/* ============================================================
   voxn8 — AI Automation. Premium Apple-grade design system.
   ============================================================ */

:root {
  /* Palette */
  --black: #000000;
  --ink: #0a0a0c;
  --ink-2: #111114;
  --panel: #15151a;
  --white: #f5f5f7;        /* Apple off-white */
  --grey: #86868b;         /* Apple secondary text */
  --grey-2: #6e6e73;
  --line: rgba(255,255,255,0.08);

  /* Accents */
  --gold: #e8b54d;
  --gold-soft: #f5cd7a;
  --teal: #2fd9c5;
  --teal-soft: #57e7d6;
  --blue: #2997ff;         /* Apple link blue */

  /* Type */
  --sans: -apple-system, "SF Pro Display", "SF Pro Text", "Inter",
          system-ui, "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --maxw: 1180px;
  --nav-h: 52px;
  --radius: 20px;
  --radius-lg: 28px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  background: var(--black);
  color: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
section { position: relative; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* Type scale */
.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--gold), var(--teal));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
h1, h2, h3 { font-weight: 700; letter-spacing: -0.025em; line-height: 1.05; }
.display { font-size: clamp(40px, 7vw, 88px); }
.h-xl { font-size: clamp(34px, 5.2vw, 64px); }
.h-lg { font-size: clamp(28px, 4vw, 48px); }
.lead { font-size: clamp(19px, 2.2vw, 26px); color: var(--grey); font-weight: 400; }
.muted { color: var(--grey); }
.gradient-text {
  background: linear-gradient(100deg, var(--gold-soft) 0%, var(--teal-soft) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Buttons (Apple pill) */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; height: 50px; padding: 0 26px; border-radius: 980px;
  font-size: 17px; font-weight: 500; cursor: pointer; border: none;
  transition: transform .25s var(--ease), background .25s var(--ease), opacity .25s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--white); color: var(--black); }
.btn-primary:hover { background: #ffffff; transform: translateY(-2px); }
.btn-accent {
  background: linear-gradient(100deg, var(--gold) 0%, var(--teal) 120%);
  color: #08130f; font-weight: 600;
}
.btn-accent:hover { transform: translateY(-2px); filter: brightness(1.06); }
.btn-ghost {
  background: rgba(255,255,255,0.08); color: var(--white);
  backdrop-filter: blur(8px); border: 1px solid var(--line);
}
.btn-ghost:hover { background: rgba(255,255,255,0.14); transform: translateY(-2px); }
.link-arrow {
  color: var(--teal-soft); font-size: 17px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 5px;
}
.link-arrow span { transition: transform .25s var(--ease); }
.link-arrow:hover span { transform: translateX(4px); }

/* ============================================================ NAV */
.nav {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h);
  z-index: 100; display: flex; align-items: center;
  background: rgba(10,10,12,0.6);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s;
}
.nav.scrolled { background: rgba(10,10,12,0.8); border-color: var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 19px; letter-spacing: -0.02em; }
.brand .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--teal));
  box-shadow: 0 0 14px rgba(47,217,197,0.7);
}
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { font-size: 14px; color: var(--white); opacity: 0.82; transition: opacity .2s; }
.nav-links a:hover { opacity: 1; }
.nav-cta {
  font-size: 14px; font-weight: 500; padding: 8px 16px; border-radius: 980px;
  background: linear-gradient(100deg, var(--gold), var(--teal)); color: #08130f;
}
.nav-toggle { display: none; background: none; border: none; color: var(--white); cursor: pointer; }

/* ============================================================ HERO */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 50%, rgba(0,0,0,0.85) 100%),
    linear-gradient(90deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 55%, rgba(0,0,0,0) 100%);
}
/* Fallback gradient backdrop until image loads */
.hero-media.fallback {
  background:
    radial-gradient(120% 80% at 75% 30%, rgba(47,217,197,0.18), transparent 60%),
    radial-gradient(120% 80% at 20% 90%, rgba(232,181,77,0.16), transparent 55%),
    linear-gradient(160deg, #05060a, #0a0a0c 60%, #000);
}
.hero-inner { position: relative; z-index: 2; padding-bottom: 8vh; padding-left: max(26px, 5vw); padding-right: 24px; max-width: 640px; margin-left: 0; margin-right: auto; }
.hero h1.display { font-size: clamp(36px, 5vw, 62px); }
.hero .eyebrow { margin-bottom: 16px; display: inline-block; }
.hero h1 { margin-bottom: 18px; }
.hero .lead { color: #d6d6da; max-width: 470px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-pill {
  position: absolute; right: 22px; bottom: 8vh; z-index: 2;
  display: flex; align-items: center; gap: 14px;
  background: rgba(20,20,24,0.6); border: 1px solid var(--line);
  backdrop-filter: blur(14px); border-radius: 16px; padding: 12px 16px;
}
.hero-pill .p-label { font-size: 12px; color: var(--grey); }
.hero-pill .p-value { font-size: 17px; font-weight: 600; }
.scroll-cue {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  z-index: 2; font-size: 12px; color: var(--grey); letter-spacing: .1em;
  text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 6px;
  animation: bob 2.4s var(--ease) infinite;
}
@keyframes bob { 0%,100%{transform:translate(-50%,0)} 50%{transform:translate(-50%,6px)} }

/* ============================================================ MARQUEE / TRUST */
.trust { padding: 46px 0; border-bottom: 1px solid var(--line); }
.trust p { text-align: center; color: var(--grey); font-size: 14px; margin-bottom: 22px; }
.logos { display: flex; gap: 54px; justify-content: center; flex-wrap: wrap; opacity: .7; }
.logos span { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; color: #c9c9ce; }

/* ============================================================ SECTION shells */
.section { padding: clamp(72px, 12vh, 150px) 0; }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head .eyebrow { margin-bottom: 14px; display: inline-block; }
.section-head p { margin-top: 16px; }

/* Big statement */
.statement { padding: clamp(90px,16vh,200px) 0; text-align: center; }
.statement h2 { max-width: 16ch; margin: 0 auto; }
.statement .sub { margin-top: 26px; max-width: 600px; margin-left: auto; margin-right: auto; }

/* ============================================================ ALTERNATING FEATURE */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px,5vw,72px); align-items: center; padding: clamp(60px,9vh,110px) 0; }
.feature.reverse .f-text { order: 2; }
.feature .f-text .eyebrow { margin-bottom: 14px; display: inline-block; }
.feature .f-text h3 { margin-bottom: 18px; }
.feature .f-text p { color: var(--grey); font-size: 18px; margin-bottom: 22px; }
.feature .f-list { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 26px; }
.feature .f-list li { display: flex; gap: 11px; align-items: flex-start; font-size: 16px; color: #d6d6da; }
.feature .f-list .ic { color: var(--teal); flex: 0 0 auto; margin-top: 2px; }
.f-visual {
  border-radius: var(--radius-lg); overflow: hidden; position: relative;
  aspect-ratio: 4/3; background: var(--panel); border: 1px solid var(--line);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.8);
}
.f-visual img { width: 100%; height: 100%; object-fit: cover; }
.f-visual.placeholder { display: grid; place-items: center; }
.f-visual.placeholder .ph {
  font-size: 13px; color: var(--grey); text-align: center; padding: 20px;
}

/* ============================================================ STATS */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.stat {
  text-align: center; padding: 34px 16px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid var(--line);
}
.stat .num { font-size: clamp(38px,5vw,58px); font-weight: 700; letter-spacing: -0.03em; }
.stat .lbl { color: var(--grey); font-size: 15px; margin-top: 8px; }

/* ============================================================ STEPS */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.step {
  padding: 32px; border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0));
  position: relative; overflow: hidden;
}
.step .n {
  font-size: 14px; font-weight: 700; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(135deg, var(--gold), var(--teal)); color: #08130f;
}
.step h4 { font-size: 21px; margin-bottom: 10px; letter-spacing: -0.02em; }
.step p { color: var(--grey); font-size: 15px; }

/* ============================================================ SERVICE GRID */
.cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.card {
  padding: 32px; border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  transition: transform .35s var(--ease), border-color .35s, background .35s;
}
.card:hover { transform: translateY(-6px); border-color: rgba(47,217,197,0.4); }
.card .ic {
  width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center;
  margin-bottom: 20px; background: rgba(47,217,197,0.12); color: var(--teal-soft);
}
.card h4 { font-size: 20px; margin-bottom: 10px; letter-spacing: -0.02em; }
.card p { color: var(--grey); font-size: 15px; }

/* ============================================================ PRODUCTS / PORTFOLIO */
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pcard {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
  display: flex; flex-direction: column;
}
.pcard:hover { transform: translateY(-6px); border-color: rgba(47,217,197,0.45);
  box-shadow: 0 30px 70px -34px rgba(0,0,0,0.85); }
.pcard .pimg { aspect-ratio: 3/2; overflow: hidden; position: relative; background: #0c0c10; }
.pcard .pimg img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.pcard:hover .pimg img { transform: scale(1.05); }
.pcard .pbody { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pcard .ptag {
  align-self: flex-start; font-size: 11px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; padding: 4px 10px; border-radius: 980px;
  background: rgba(47,217,197,0.12); color: var(--teal-soft); border: 1px solid rgba(47,217,197,0.25);
}
.pcard .ptag.live { background: rgba(120,230,140,0.12); color: #8fe6a3; border-color: rgba(120,230,140,0.3); }
.pcard h4 { font-size: 20px; letter-spacing: -0.02em; }
.pcard p { color: var(--grey); font-size: 14.5px; flex: 1; }
.pcard .plink { color: var(--teal-soft); font-size: 14px; font-weight: 500; display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; }
.pcard .plink span { transition: transform .25s var(--ease); }
.pcard:hover .plink span { transform: translate(2px,-2px); }

/* ============================================================ CTA */
.cta {
  text-align: center; padding: clamp(80px,14vh,160px) 0;
  background:
    radial-gradient(80% 120% at 50% 0%, rgba(47,217,197,0.12), transparent 60%),
    radial-gradient(80% 120% at 50% 100%, rgba(232,181,77,0.1), transparent 60%);
}
.cta h2 { max-width: 18ch; margin: 0 auto 22px; }
.cta .sub { max-width: 560px; margin: 0 auto 36px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============================================================ FOOTER */
footer { border-top: 1px solid var(--line); padding: 60px 0 40px; color: var(--grey); }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3,1fr); gap: 30px; margin-bottom: 44px; }
.foot-brand .brand { margin-bottom: 14px; }
.foot-brand p { font-size: 14px; max-width: 280px; }
.foot-col h5 { color: var(--white); font-size: 14px; margin-bottom: 16px; font-weight: 600; }
.foot-col a { display: block; font-size: 14px; margin-bottom: 11px; transition: color .2s; }
.foot-col a:hover { color: var(--white); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 26px; border-top: 1px solid var(--line); font-size: 13px; flex-wrap: wrap; gap: 12px; }

/* ============================================================ REVEAL ANIM */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }

/* ============================================================ RESPONSIVE */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .feature { grid-template-columns: 1fr; }
  .feature.reverse .f-text { order: 0; }
  .stats { grid-template-columns: repeat(2,1fr); }
  .steps, .cards { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .hero-pill { display: none; }
}
@media (max-width: 520px) {
  .stats { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1; }
}

/* ============================================================ GENERATED CSS/SVG VISUALS */
/* Hero animated aurora + grid + particles (no image needed) */
.hero-fx { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; transition: opacity .8s var(--ease); }
/* When the real cinematic photo is present, retire the synthetic backdrop */
.hero.has-photo .hero-fx { opacity: 0; }
.hero-fx .blob {
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55;
  mix-blend-mode: screen; animation: drift 18s var(--ease) infinite alternate;
}
.hero-fx .b1 { width: 46vw; height: 46vw; right: -6vw; top: -8vw;
  background: radial-gradient(circle, rgba(47,217,197,.7), transparent 65%); }
.hero-fx .b2 { width: 40vw; height: 40vw; left: 8vw; bottom: -12vw; animation-delay: -6s;
  background: radial-gradient(circle, rgba(232,181,77,.6), transparent 65%); }
.hero-fx .b3 { width: 30vw; height: 30vw; right: 24vw; bottom: 4vw; animation-delay: -11s; opacity:.4;
  background: radial-gradient(circle, rgba(41,151,255,.5), transparent 65%); }
@keyframes drift { 0%{transform:translate(0,0) scale(1)} 50%{transform:translate(3vw,-3vw) scale(1.12)} 100%{transform:translate(-3vw,2vw) scale(.96)} }
.hero-fx .grid {
  position: absolute; inset: -2px; opacity: .14;
  background-image: linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(120% 90% at 70% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(120% 90% at 70% 40%, #000 30%, transparent 75%);
}
.hero-fx svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.flow-line { stroke-dasharray: 6 10; animation: dash 3s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -160; } }
.spark { animation: spark 4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes spark { 0%,100%{opacity:.3} 50%{opacity:1} }
.rise { transform-box: fill-box; transform-origin: bottom; animation: rise 3.4s var(--ease) infinite alternate; }
.rise.r2 { animation-delay:.3s } .rise.r3 { animation-delay:.6s } .rise.r4 { animation-delay:.9s } .rise.r5 { animation-delay:1.2s }
@keyframes rise { from { transform: scaleY(.45) } to { transform: scaleY(1) } }

/* Feature SVG illustration shells */
.f-visual.illus {
  display: grid; place-items: center; padding: 6%;
  background:
    radial-gradient(90% 90% at 70% 20%, rgba(47,217,197,.10), transparent 60%),
    radial-gradient(90% 90% at 20% 90%, rgba(232,181,77,.10), transparent 60%),
    linear-gradient(160deg, #101015, #0a0a0d);
}
.f-visual.illus svg { width: 100%; height: 100%; }
.orbit { transform-box: fill-box; transform-origin: center; animation: orbit 16s linear infinite; }
.orbit.rev { animation-direction: reverse; animation-duration: 22s; }
@keyframes orbit { to { transform: rotate(360deg); } }
.pulse { animation: pulse 2.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes pulse { 0%,100%{opacity:.35; r:3} 50%{opacity:1; r:5} }
.moveDot { offset-path: var(--p); animation: move 4s linear infinite; }
@keyframes move { to { offset-distance: 100%; } }
.float { animation: float 5s var(--ease) infinite alternate; }
.float.f2 { animation-delay:-1.6s } .float.f3 { animation-delay:-3.1s }
@keyframes float { from{transform:translateY(0)} to{transform:translateY(-10px)} }

@media (prefers-reduced-motion: reduce) {
  .blob,.flow-line,.spark,.rise,.orbit,.pulse,.moveDot,.float,.scroll-cue { animation: none !important; }
}

/* Mobile menu panel */
.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 auto 0; z-index: 99;
  background: rgba(10,10,12,0.96); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  transform: translateY(-110%); transition: transform .4s var(--ease);
  padding: 20px 22px 28px;
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu a { display: block; padding: 14px 0; font-size: 18px; border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: 18px; width: 100%; }
