/* --- Base & Theme --- */
:root{
  --bg:#010107;
  --accent:#00aaff;
  --muted:#5588aa;
  --panel-bg: rgba(0,0,0,0.35);
  --border-color: rgba(0,170,255,0.15);
}
*{box-sizing:border-box}
html,body{height:100%;margin:0}
body{
  background:linear-gradient(180deg,#00020a 0%,var(--bg) 100%);
  color:var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
  padding: 24px;
}
/* Class to prevent scrolling when modal is open */
body.modal-open {
  overflow: hidden;
}

/* --- Header & Navigation --- */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  width: 100%;
  position: fixed;
  top: 0; left: 0;
  background: rgba(1,1,7,0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 100;
}
.logo {
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cursor {
  width:8px; height:16px; background:var(--accent);
  border-radius:2px; animation:blink 1s steps(2,start) infinite;
}
@keyframes blink{50%{opacity:0}}

.page-header nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.page-header nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}
.page-header nav a:hover {
  color: var(--accent);
}

/* --- Main Content --- */
.container {
  width: min(1200px, 95vw);
  margin: 120px auto 40px auto;
}
section:not(:first-child) {
  margin-top: 80px;
}
h2 {
  font-size: 28px;
  color: #e4f6ff;
  text-align: center;
}
h1 {
  font-size: 36px;
  color: #e4f6ff;
  margin-bottom: 0;
  text-align: center;
  /* Flexbox for better cursor alignment */
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0; /* Remove global gap */
}
h1 > span:first-child {
  margin-right: 1ch; /* Add specific gap after the first word */
}
.subtitle {
  font-size: 16px;
  color: var(--muted);
  margin-top: 8px;
  text-align: center;
}
/* Specific cursor style for the h1 */
h1 .cursor {
  height: 32px; /* Taller to match h1 font-size */
  width: 4px;
  box-shadow: 0 0 8px rgba(0, 170, 255, 0.7); /* Neon glow */
}

/* --- Product Grid --- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.product-card {
  position: relative; /* Needed for absolute positioning of the icon */
  background: var(--panel-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  cursor: pointer; /* Indicate that the card is clickable */
}
.product-icon {
  position: absolute;
  top: 16px;
  right: 16px;
  color: var(--accent);
  opacity: 0.15;
  filter: drop-shadow(0 0 4px rgba(0, 170, 255, 0.5));
  transition: opacity 0.3s ease;
}
.product-card:hover .product-icon {
  opacity: 0.4;
}
.product-card h3 {
  margin: 0 0 10px 0;
  color: #e4f6ff;
}
.product-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  flex-grow: 1;
}
.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}
.price {
  font-size: 14px;
  font-weight: 700;
}

/* --- Reusable Button --- */
.btn{
  padding: 8px 12px; border-radius:8px; border:1px solid rgba(0,170,255,0.3);
  background:linear-gradient(180deg,rgba(0,170,255,0.1),rgba(0,170,255,0.05));
  color:var(--accent); font-weight:700; cursor:pointer; text-transform:uppercase; font-size:13px;
  text-decoration: none;
}
.btn:hover {
  background:linear-gradient(180deg,rgba(0,170,255,0.15),rgba(0,170,255,0.08));
  border-color: var(--accent);
}

/* --- Testimonials --- */
.testimonial-scroller {
  margin-top: 40px;
  overflow: hidden;
  /* Fade-out effect on the edges */
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.testimonial-grid {
  display: flex;
  gap: 20px;
  /* Animation */
  animation: scroll 40s linear infinite;
}
@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    /* Move by the width of the first 5 cards + gaps */
    transform: translateX(calc(-5 * 340px));
  }
}
.testimonial-card {
  background: var(--panel-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  /* Fixed width for consistent animation */
  width: 320px;
  flex-shrink: 0;
}
.rating-stars {
  color: var(--accent);
  font-size: 20px;
  margin-bottom: 12px;
  text-shadow: 0 0 8px rgba(0, 170, 255, 0.7);
}
.rating-stars span {
  letter-spacing: 2px;
}
.testimonial-card blockquote {
  margin: 0;
  color: var(--muted);
  font-style: italic;
  line-height: 1.6;
  flex-grow: 1;
  border-left: 3px solid var(--accent);
  padding-left: 16px;
}
.testimonial-card cite {
  margin-top: 15px;
  font-style: normal;
  font-weight: 700;
  text-align: right;
  color: #e4f6ff;
}

/* --- Why Us Section --- */
.feature-carousel {
  position: relative;
  margin-top: 40px;
  overflow: hidden;
  padding: 20px 0; /* Add vertical padding to avoid clipping shadows */
}
.feature-grid {
  display: flex;
  gap: 30px;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}
.feature-item {
  background: var(--panel-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 32px 24px;
  text-align: center;
  flex-shrink: 0;
  width: 320px;
  /* Style for inactive items */
  transform: scale(0.85);
  opacity: 0.5;
  filter: blur(2px);
  transition: all 0.5s ease;
}
.feature-item.active {
  /* Style for the centered, active item */
  transform: scale(1);
  opacity: 1;
  filter: blur(0);
  border-color: var(--accent);
  box-shadow: 0 0 25px rgba(0, 170, 255, 0.2);
}
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--border-color);
  color: var(--accent);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s, border-color 0.2s;
}
.carousel-arrow:hover {
  background: var(--panel-bg);
  border-color: var(--accent);
}
.carousel-arrow.prev { left: 10px; }
.carousel-arrow.next { right: 10px; }
.feature-icon {
  width: 40px;
  height: 40px;
  stroke: var(--accent);
  stroke-width: 1.5;
  margin-bottom: 16px;
  /* Neon Glow Effect */
  filter: drop-shadow(0 0 6px rgba(0, 170, 255, 0.7));
}
.feature-item h3 {
  margin: 0 0 10px 0;
  color: #e4f6ff;
}
.feature-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

/* --- FAQ Section --- */
.faq-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 40px;
}
.faq-container details {
  background: var(--panel-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 16px 20px;
}
.faq-container details[open] {
  border-color: var(--accent);
}
.faq-container summary {
  font-weight: 700;
  color: #e4f6ff;
  cursor: pointer;
}
.faq-container details p {
  margin: 16px 0 0 0;
  color: var(--muted);
  line-height: 1.6;
}

/* --- Product Modal --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(1, 1, 7, 0.7);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-overlay.visible {
  opacity: 1;
  visibility: visible;
}
.modal-content {
  background: var(--bg);
  border: 1px solid var(--accent);
  border-radius: 12px;
  padding: 40px 40px 24px 40px; /* Increased side padding to make video smaller */
  width: min(900px, 95vw);
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 0 40px rgba(0, 170, 255, 0.3);
  /* Animation */
  transform: scale(0.95);
  transition: transform 0.3s ease;
}
.modal-overlay.visible .modal-content {
  transform: scale(1);
}
.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 32px;
  cursor: pointer;
  transition: color 0.2s;
}
.modal-close:hover {
  color: var(--accent);
}
.modal-video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 24px;
  border: 1px solid var(--border-color);
}
.modal-video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.modal-content h2 { text-align: left; margin-bottom: 12px; }
.modal-content p { color: var(--muted); line-height: 1.7; }

.purchase-options {
  display: none; /* Hidden by default */
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 24px;
}
.option-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 8px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--panel-bg);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}
.option-btn:hover {
  color: #e4f6ff;
  border-color: var(--accent);
}
.option-btn.active {
  color: #e4f6ff;
  border-color: var(--accent);
  background: rgba(0, 170, 255, 0.1);
  transform: translateY(-2px);
}
.option-price { font-weight: 700; font-size: 16px; margin-top: 4px; color: var(--accent); }

.modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
  /* --- Header anpassen --- */
  .page-header {
    flex-direction: column;
    padding: 16px;
    gap: 16px;
    position: relative; /* Header scrollt mit */
  }

  /* --- Hauptinhalt anpassen --- */
  .container {
    margin-top: 40px; /* Abstand zum Header reduzieren */
  }

  h1 {
    font-size: 28px;
    flex-direction: column; /* Überschrift untereinander anordnen */
    gap: 8px;
  }
  h1 > span:first-child {
    margin-right: 0; /* Abstand zurücksetzen */
  }
  h1 .cursor {
    display: none; /* Cursor in der H1 auf Mobilgeräten ausblenden */
  }

  h2 { font-size: 22px; }

  /* --- Product Grid anpassen --- */
  .product-grid {
    grid-template-columns: 1fr;
  }

  /* --- Testimonial Scroller anpassen --- */
  .testimonial-scroller {
    -webkit-mask-image: none; /* Maske entfernen */
    mask-image: none;
  }
  .testimonial-grid {
    animation: none; /* Animation stoppen */
    overflow-x: auto; /* Horizontales Scrollen aktivieren */
    scroll-snap-type: x mandatory;
    padding-bottom: 16px; /* Platz für Scrollbar */
  }
  .testimonial-card {
    width: 85vw; /* Kartenbreite an Bildschirm anpassen */
    scroll-snap-align: center;
  }

  /* --- Feature Carousel anpassen --- */
  .feature-carousel {
    overflow: visible; /* Clipping aufheben */
    padding: 0;
  }
  .feature-grid {
    display: grid; /* Zu Grid-Layout wechseln */
    grid-template-columns: 1fr;
    transform: none !important; /* JS-Transformation überschreiben */
  }
  .feature-item {
    transform: scale(1); /* Alle Elemente auf Normalgröße */
    opacity: 1;
    filter: blur(0);
    width: auto; /* Automatische Breite */
  }
  .carousel-arrow {
    display: none; /* Pfeile ausblenden */
  }
}
