:root {
  --bg: #05070f;
  --bg-raise: #0b1022;
  --bg-card: #0d1330;
  --ink: #f2f4fb;
  --muted: #97a0c3;
  --accent: #4c6fff;
  --accent-soft: rgba(76, 111, 255, 0.14);
  --line: rgba(146, 160, 220, 0.14);
  --display: "Clash Display", "Segoe UI", sans-serif;
  --body: "Switzer", -apple-system, "Segoe UI", sans-serif;
  --max: 1160px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section { padding: 110px 0; }

.section-head { max-width: 640px; margin-bottom: 56px; }

.section-head h2, .about-text h2, .final-cta h2 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
}

.section-sub { color: var(--muted); margin-top: 16px; font-size: 1.05rem; }

/* Buttons */
.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 1rem;
  padding: 15px 30px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 32px rgba(76, 111, 255, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(76, 111, 255, 0.5);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(242, 244, 251, 0.25);
  color: var(--ink);
  backdrop-filter: blur(6px);
  cursor: pointer;
  font-family: inherit;
}

.btn-ghost:hover { border-color: rgba(242, 244, 251, 0.6); }

.btn-lg { padding: 19px 42px; font-size: 1.1rem; }

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(5, 7, 15, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.site-header.scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.35rem;
}

.logo-dot { color: var(--accent); }

.nav { display: flex; align-items: center; gap: 30px; }

.nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s ease;
}

.nav a:hover { color: var(--ink); }

.nav .nav-cta {
  color: var(--ink);
  border: 1px solid rgba(146, 160, 220, 0.35);
  padding: 9px 20px;
  border-radius: 999px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.nav .nav-cta:hover { background: var(--accent); border-color: var(--accent); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  transform: translateY(-4px) rotate(-45deg);
}

/* Hero */
.hero {
  padding-top: 72px;
  padding-bottom: 100px;
}

.hero-video-wrap {
  position: relative;
  width: 100%;
  height: calc(100svh - 72px);
  background: #000;
  overflow: hidden;
  margin-bottom: 64px;
}

.hero-video-wrap::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 160px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  filter: brightness(1.22) saturate(1.12) contrast(1.03);
}

.hero-sound {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 5;
  background: rgba(5, 7, 15, 0.6);
  color: var(--ink);
  border: 1px solid rgba(146, 160, 220, 0.35);
  border-radius: 999px;
  padding: 10px 18px;
  font-family: var(--body);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.hero-sound:hover {
  background: rgba(76, 111, 255, 0.35);
  border-color: var(--accent);
}

.hero-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

/* Cursor-following play button */
.cursor-play {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px 12px 14px;
  background: rgba(5, 7, 15, 0.72);
  color: var(--ink);
  border: 1px solid rgba(146, 160, 220, 0.4);
  border-radius: 999px;
  font-family: var(--body);
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  pointer-events: none;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.cursor-play.active {
  opacity: 1;
}

.cursor-play.hide {
  opacity: 0;
  pointer-events: none;
}

.cursor-play-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  font-size: 0.8rem;
  padding-left: 2px;
}

@media (hover: none) {
  /* On touch devices, pin it centered over the hero instead of following */
  .cursor-play {
    top: auto;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
  }
}

.hero-inner .eyebrow { display: flex; justify-content: center; }

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin-bottom: 22px;
}

.hero-sub {
  font-size: 1.12rem;
  color: rgba(242, 244, 251, 0.82);
  max-width: 560px;
  margin: 0 auto 36px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

/* Trusted */
.trusted { padding: 48px 0; border-bottom: 1px solid var(--line); }

.trusted-inner {
  display: flex;
  align-items: center;
  gap: 28px;
}

.trusted-inner p {
  white-space: nowrap;
  color: var(--muted);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.trusted-inner strong { color: var(--ink); }

.trusted-line { flex: 1; height: 1px; background: var(--line); }

/* Compare */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.compare-grid + .compare-grid { margin-top: 28px; }

.compare-panel { min-width: 0; }

.compare-media {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  aspect-ratio: 1 / 1;
}

.compare-media img,
.compare-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.compare-panel:last-child .compare-media {
  background: var(--bg-raise);
  border-color: rgba(76, 111, 255, 0.45);
  box-shadow: 0 0 60px rgba(76, 111, 255, 0.18);
}

.compare-panel figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.95rem;
}

.tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
}

.tag-accent {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

/* App carousel */
.app-layout {
  display: flex;
  align-items: flex-start;
  gap: 28px;
}

.app-carousel-col {
  flex: 1;
  min-width: 0;
}

.app-video-panel {
  flex: 0 0 42%;
  min-width: 0;
  margin: 8px 0 0;
}

.app-video {
  width: 100%;
  height: auto;
  border-radius: 20px;
  border: 1px solid rgba(76, 111, 255, 0.45);
  background: var(--bg-raise);
  box-shadow: 0 0 60px rgba(76, 111, 255, 0.18);
  display: block;
}

.app-video-panel figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.95rem;
}

.carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.carousel-track {
  display: flex;
  align-items: center;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  padding: 8px 4px 20px;
  -ms-overflow-style: none;
  scrollbar-width: none;
  flex: 1;
}

.carousel-track::-webkit-scrollbar { display: none; }

.carousel-slide {
  flex: 0 0 auto;
  height: clamp(420px, 58vh, 560px);
  scroll-snap-align: center;
}

.carousel-slide img {
  height: 100%;
  width: auto;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--bg-raise);
}

.carousel-btn {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg-card);
  color: var(--ink);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.carousel-btn:hover { background: var(--accent); border-color: var(--accent); }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}

.carousel-dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: var(--line);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.carousel-dots button.active {
  background: var(--accent);
  transform: scale(1.3);
}

/* Services */
.services { background: var(--bg-raise); border-block: 1px solid var(--line); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(76, 111, 255, 0.5);
  box-shadow: 0 20px 50px rgba(3, 5, 14, 0.6);
}

.service-card h3 { font-size: 1.4rem; }

.service-card > p { color: var(--muted); }

.price {
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 600;
  margin-top: auto;
}

.price span {
  display: block;
  font-family: var(--body);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 2px;
}

.card-link {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
}

.card-link:hover { text-decoration: underline; }

/* Steps */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(160deg, var(--accent-soft), transparent 55%);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.15rem;
  margin-bottom: 20px;
}

.step h3 { font-size: 1.2rem; margin-bottom: 8px; }

.step p { color: var(--muted); }

/* Stats */
.stats { padding-top: 0; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat {
  text-align: center;
  padding: 36px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg-raise);
}

.stat-value {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  margin-bottom: 6px;
}

.stat-label {
  color: var(--muted);
  font-size: 0.92rem;
}

/* About */
.about { background: var(--bg-raise); border-block: 1px solid var(--line); }

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}

.about-photo img {
  border-radius: 20px;
  border: 1px solid var(--line);
  filter: grayscale(1);
  width: 100%;
}

.about-text h2 { margin-bottom: 20px; }

.about-text p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.08rem;
  margin-bottom: 32px;
}

/* FAQ */
.faq-inner { max-width: 760px; }

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 4px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.15rem;
  transition: color 0.2s ease;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary:hover { color: var(--accent); }

.faq-icon {
  position: relative;
  flex: none;
  width: 14px;
  height: 14px;
}

.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  inset: 6px 0;
  background: var(--muted);
  transition: transform 0.25s ease;
}

.faq-icon::after { transform: rotate(90deg); }

details[open] .faq-icon::after { transform: rotate(0deg); }

.faq-list details p {
  color: var(--muted);
  padding: 0 4px 24px;
  max-width: 640px;
}

/* Final CTA */
.final-cta {
  position: relative;
  padding: 150px 0;
  overflow: hidden;
}

.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 70% at 50% 100%, rgba(76, 111, 255, 0.22), transparent 70%);
  pointer-events: none;
}

.final-cta-inner {
  position: relative;
  text-align: center;
  max-width: 720px;
}

.final-cta h2 { margin-bottom: 18px; }

.final-cta p {
  color: var(--muted);
  font-size: 1.12rem;
  margin-bottom: 40px;
}

.cta-note {
  margin-top: 22px;
  margin-bottom: 0 !important;
  font-size: 0.9rem !important;
}

/* Concept modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(3, 5, 14, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 90svh;
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid rgba(76, 111, 255, 0.35);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 30px 90px rgba(3, 5, 14, 0.8), 0 0 60px rgba(76, 111, 255, 0.12);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.25s ease;
}

.modal-overlay.open .modal { transform: none; }

.modal h3 {
  font-size: 1.7rem;
  margin-bottom: 14px;
}

.modal-intro { color: var(--muted); margin-bottom: 20px; }

.modal-email {
  color: var(--accent);
  font-weight: 600;
  word-break: break-all;
}

.modal-email:hover { text-decoration: underline; }

.modal-questions {
  margin: 0 0 20px 20px;
  display: grid;
  gap: 10px;
  color: var(--ink);
}

.modal-questions li::marker { color: var(--accent); font-weight: 600; }

.modal-note {
  color: var(--muted);
  font-size: 0.95rem;
  background: var(--accent-soft);
  border: 1px solid rgba(76, 111, 255, 0.25);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 28px;
}

.modal-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.modal-actions .btn { font-size: 0.95rem; padding: 13px 24px; }

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 1rem;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.modal-close:hover { color: var(--ink); border-color: var(--accent); }

body.modal-open { overflow: hidden; }

@media (max-width: 520px) {
  .modal { padding: 28px 22px; }
  .modal-actions .btn { width: 100%; text-align: center; }
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 44px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-name { font-family: var(--display); font-weight: 600; font-size: 1.2rem; }

.footer-role { color: var(--muted); font-size: 0.9rem; }

.footer-mail { color: var(--muted); transition: color 0.2s ease; }

.footer-mail:hover { color: var(--accent); }

.footer-copy { color: var(--muted); font-size: 0.88rem; }

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .service-card { transition: none; }
}

/* Focus visibility */
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Responsive */
@media (max-width: 900px) {
  .services-grid, .steps { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-photo { max-width: 420px; }
}

@media (max-width: 720px) {
  .section { padding: 80px 0; }

  /* Show the full hero video frame on phones — no edge cropping */
  .hero-video-wrap {
    height: auto;
    margin-bottom: 48px;
  }

  .hero-video {
    height: auto;
    max-height: 80svh;
    object-fit: contain;
  }

  .hero-sound { right: 14px; bottom: 14px; padding: 8px 14px; }

  .nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 16px 24px 28px;
    background: rgba(5, 7, 15, 0.97);
    border-bottom: 1px solid var(--line);
    display: flex;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  }

  .nav.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    visibility: visible;
  }

  .nav a { padding: 10px 0; font-size: 1.05rem; }

  .nav .nav-cta { margin-top: 10px; }

  .nav-toggle { display: flex; }

  .compare-grid { grid-template-columns: 1fr; }

  .hero-actions .btn { width: 100%; text-align: center; }

  .carousel-btn { display: none; }
  .carousel-slide { height: clamp(380px, 60vh, 520px); }

  .app-layout { flex-direction: column; align-items: stretch; }
  .app-video-panel { margin-top: 24px; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
}
