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

:root {
  --bg: #05060b;
  --bg-alt: #0a0d18;
  --ink: #e8edf7;
  --muted: #8d97ad;
  --accent-blue: #1e7dff;
  --accent-cyan: #39e6ff;
  --accent-gradient: linear-gradient(120deg, var(--accent-blue), var(--accent-cyan));
  --border: color-mix(in srgb, var(--accent-cyan) 18%, transparent);
  --radius: 16px;
  --container: 1120px;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  main, .site-footer {
    opacity: 0;
    transition: opacity 0.7s ease;
  }
  body.revealed main, body.revealed .site-footer {
    opacity: 1;
  }
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.15;
}

.accent-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

a { color: var(--accent-cyan); text-decoration: none; }

a:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 3px;
}

/* ---- Intro splash ---- */
#intro-splash {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}
#intro-splash.hide { opacity: 0; pointer-events: none; }
#intro-video {
  width: min(60vw, 480px);
  height: auto;
}

/* ---- Nav ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem clamp(1.25rem, 4vw, 3rem);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-brand { display: flex; align-items: center; gap: 0.55rem; }
.nav-logo {
  width: 30px;
  height: 30px;
  object-fit: contain;
  mix-blend-mode: screen;
  display: block;
  flex-shrink: 0;
}
.brand-word {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 24px color-mix(in srgb, var(--accent-cyan) 35%, transparent);
}
.brand-dot { color: var(--accent-cyan); -webkit-text-fill-color: var(--accent-cyan); }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a:not(.nav-cta) { color: var(--muted); font-weight: 500; font-size: 0.95rem; }
.nav-links a:not(.nav-cta):hover { color: var(--ink); }
.nav-cta {
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--ink) !important;
  font-size: 0.9rem;
  font-weight: 600;
}
.nav-cta:hover { border-color: var(--accent-cyan); }

@media (max-width: 1024px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 0.9rem 1.8rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
}
.btn-primary {
  background: var(--accent-gradient);
  color: #04070f !important;
  box-shadow: 0 8px 30px color-mix(in srgb, var(--accent-blue) 35%, transparent);
}
.btn-ghost {
  border: 1px solid var(--border);
  color: var(--ink) !important;
}
.btn-lg { padding: 1.1rem 2.4rem; font-size: 1.05rem; }

/* ---- Hero ---- */
.hero {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem) 1.5rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-kicker {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 600;
  font-size: clamp(1.1rem, 2vw, 1.15rem);
  letter-spacing: 0.01em;
  margin-bottom: 1rem;
  max-width: 48ch;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  max-width: 18ch;
}

.hero-sub {
  margin-top: 1.5rem;
  font-size: clamp(1.25rem, 2vw, 1.3rem);
  color: var(--muted);
  max-width: 56ch;
}

.hero-actions {
  margin-top: 2.2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

@media (max-width: 1024px) {
  .hero-actions { flex-direction: column; width: 100%; max-width: 320px; }
  .hero-actions .btn { width: 100%; text-align: center; }
}

/* ---- Services carousel (Cover Flow) ---- */
.services {
  max-width: 100%;
  margin: 0 auto;
  padding: 1rem 0 5rem;
  overflow: hidden;
}
.services h2 {
  text-align: center;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  margin-bottom: 1.5rem;
  padding: 0 1.5rem;
}

.carousel {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(0.75rem, 2.5vw, 2rem);
}
.carousel-stage {
  position: relative;
  height: 300px;
  perspective: 1600px;
}
.carousel-track {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}
.carousel:focus-visible { outline: none; }
.carousel:focus-visible .carousel-stage {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 6px;
  border-radius: var(--radius);
}

/* The item is just the floating photo + its reflection — all the Cover
   Flow motion (position/depth/rotation/scale) lives here. No card chrome,
   no text: that's handled separately by .carousel-caption below. */
.carousel-item {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(560px, 85vw);
  cursor: pointer;
  transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1),
              opacity 0.55s ease;
}
.carousel-item.is-active { cursor: default; }

.carousel-shot {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 8;
}
.carousel-shot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  border-radius: 8px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.55);
}
.carousel-shot-reflection {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  border-radius: 8px;
  transform: scaleY(-1);
  /* scaleY(-1) flips the mask along with the image, so this gradient is
     written for the PRE-flip box: "to top" puts the strong stop at the
     local bottom, which lands at the visual top (right under the real
     photo) once flipped — fading out as the reflection goes down. */
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent 60%);
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent 60%);
  opacity: 0.55;
  pointer-events: none;
}

/* ---- Caption: stays put, just crossfades with the active item ---- */
.carousel-caption {
  position: relative;
  z-index: 50;
  max-width: 560px;
  margin: 0 auto;
  padding: 1rem 2rem 1.25rem;
  text-align: center;
  min-height: 9rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.carousel-caption.is-visible { opacity: 1; }
.carousel-caption::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  pointer-events: none;
}
.carousel-caption .service-num {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--accent-cyan);
  opacity: 0.7;
  letter-spacing: 0.05em;
}
.carousel-caption h3 {
  font-size: 1.25rem;
  margin: 0.6rem 0 0.7rem;
}
.carousel-caption p {
  color: var(--muted);
  font-size: 1rem;
  max-width: 48ch;
  margin: 0 auto;
}
.carousel-caption .service-link {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-alt) 85%, transparent);
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.carousel-arrow:hover { border-color: var(--accent-cyan); color: var(--accent-cyan); }
.carousel-prev { left: 0; }
.carousel-next { right: 0; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.5rem;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.carousel-dot.is-active {
  background: var(--accent-gradient);
  transform: scale(1.3);
}

@media (max-width: 1024px) {
  .carousel-arrow { width: 40px; height: 40px; font-size: 1.2rem; }
}
@media (max-width: 640px) {
  .carousel-stage { height: 240px; }
  .carousel-item { width: min(420px, 90vw); }
  .carousel-arrow { display: none; }
  .carousel { padding: 0 1.25rem; }
}

/* ---- Platform ---- */
.platform {
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem 1.5rem 5rem;
  text-align: center;
}
.platform h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-bottom: 1.2rem;
}
.platform p {
  color: var(--muted);
  font-size: 1.05rem;
}

/* ---- Final CTA band ---- */
.cta-band {
  max-width: var(--container);
  margin: 0 auto 4rem;
  padding: clamp(2.5rem, 6vw, 4rem) 1.5rem;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-alt), transparent);
  border: 1px solid var(--border);
  border-radius: 24px;
}
.cta-band h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
}
.cta-band p {
  margin: 1rem 0 2rem;
  color: var(--muted);
  font-size: 1.05rem;
}

/* ---- Footer ---- */
.site-footer {
  text-align: center;
  padding: 3rem 1.5rem calc(2rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent-cyan); }
.site-footer p + p { margin-top: 0.4rem; }
