/* =========================================================
   NXT MEDIA — Design System
   Black + Off-white + Electric Cyan accent
   Satoshi (display) + Inter (body)
   ========================================================= */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; line-height: 1.55; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img, svg, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
input, textarea, select { font: inherit; color: inherit; }

/* ---------- Tokens ---------- */
:root {
  --bg:            #0A0A0A;
  --bg-elev:       #111111;
  --surface:       rgba(255,255,255,0.04);
  --surface-hi:    rgba(255,255,255,0.07);
  --border:        rgba(255,255,255,0.08);
  --border-hi:     rgba(255,255,255,0.16);

  --text:          #FAFAFA;
  --text-muted:    #8A8A8A;
  --text-dim:      #5A5A5A;

  --accent:        #00D9FF;
  --accent-soft:   rgba(0,217,255,0.14);
  --accent-glow:   rgba(0,217,255,0.35);

  --grad-mesh-1:   #00D9FF;
  --grad-mesh-2:   #6E00FF;
  --grad-mesh-3:   #FF2D9C;

  --radius-sm:     8px;
  --radius:        14px;
  --radius-lg:     22px;
  --radius-xl:     32px;

  --container:     1200px;
  --container-sm:  860px;

  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px;
  --space-9: 96px; --space-10: 144px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --font-display: 'Satoshi', 'Inter', system-ui, -apple-system, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
}

/* ---------- Base ---------- */
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  font-weight: 400;
  overflow-x: hidden;
  position: relative;
}

/* Subtle film grain over everything */
body::before {
  content: "";
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.5;
  pointer-events: none;
  mix-blend-mode: overlay;
  z-index: 1;
}

/* All content sits above the grain */
.site-header, main, .site-footer { position: relative; z-index: 2; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--text);
}

h1 { font-size: clamp(2.6rem, 7vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.5rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); letter-spacing: -0.015em; }
h4 { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; }

p { color: var(--text-muted); font-size: 1.0625rem; line-height: 1.65; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--text-muted); max-width: 60ch; }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-body);
  font-size: 0.78rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--accent);
  padding: 6px 12px;
  border: 1px solid var(--accent-soft);
  background: var(--accent-soft);
  border-radius: 999px;
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

.gradient-text {
  background: linear-gradient(135deg, #FFFFFF 0%, #FFFFFF 55%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--space-5); }
.container-sm { max-width: var(--container-sm); margin: 0 auto; padding: 0 var(--space-5); }

section { padding: clamp(64px, 10vw, 144px) 0; position: relative; }
.section-head { max-width: 720px; margin-bottom: var(--space-8); display: flex; flex-direction: column; gap: var(--space-4); align-items: flex-start; }
.section-head.center { margin-left: auto; margin-right: auto; align-items: center; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: var(--space-3);
  padding: 14px 22px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: transform 0.4s var(--ease), background 0.3s var(--ease), box-shadow 0.4s var(--ease);
  position: relative;
  white-space: nowrap;
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
  box-shadow: 0 0 0 0 var(--accent-glow);
}
.btn-primary:hover {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 0 32px var(--accent-glow);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
}
.btn-ghost:hover { background: var(--surface-hi); border-color: var(--border-hi); }

.btn .arrow { display: inline-block; transition: transform 0.4s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  padding: var(--space-4) 0;
  z-index: 50;
  transition: backdrop-filter 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(10,10,10,0.65);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); }
.brand { display: flex; align-items: center; gap: var(--space-3); font-family: var(--font-display); font-weight: 900; font-size: 1.1rem; letter-spacing: 0.02em; }
.brand .dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 16px var(--accent-glow); }
.brand-mark { font-weight: 900; }
.brand-mark .accent { color: var(--accent); }

.nav-links { display: flex; align-items: center; gap: var(--space-6); }
.nav-links a {
  font-size: 0.93rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.2s var(--ease);
}
.nav-links a:hover, .nav-links a.is-active { color: var(--text); }

.nav-cta { display: flex; align-items: center; gap: var(--space-3); }

/* ---------- Mobile menu toggle ---------- */
.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  align-items: center; justify-content: center;
  flex: none;
  -webkit-tap-highlight-color: transparent;
}
.menu-toggle .bars { width: 18px; height: 12px; position: relative; }
.menu-toggle .bars::before,
.menu-toggle .bars::after {
  content: ""; position: absolute; left: 0; right: 0; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}
.menu-toggle .bars::before { top: 2px; }
.menu-toggle .bars::after  { top: 8px; }
.menu-toggle[aria-expanded="true"] .bars::before { top: 5px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars::after  { top: 5px; transform: rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: 68px 0 0 0;
  background: rgba(10,10,10,0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 49;
  padding: var(--space-7) var(--space-5);
  display: flex; flex-direction: column; gap: var(--space-2);
  opacity: 0; pointer-events: none;
  transform: translateY(-12px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  overflow-y: auto;
}
.mobile-nav.is-open { opacity: 1; pointer-events: auto; transform: none; }
.mobile-nav a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  color: var(--text);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.mobile-nav a .arrow { color: var(--text-muted); transition: color 0.2s var(--ease), transform 0.2s var(--ease); }
.mobile-nav a:hover { color: var(--accent); }
.mobile-nav a:hover .arrow { color: var(--accent); transform: translateX(4px); }
.mobile-nav .btn { margin-top: var(--space-5); justify-content: center; font-size: 1rem; padding: 16px 22px; }

body.is-locked { overflow: hidden; }

@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-cta .btn-ghost { display: none; }
  .nav-cta .btn-primary { display: none; }
  .menu-toggle { display: inline-flex; }
}
@media (min-width: 881px) {
  .mobile-nav { display: none !important; }
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(140px, 18vw, 220px) 0 clamp(80px, 12vw, 160px);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero-mesh {
  position: absolute;
  inset: -10%;
  z-index: -1;
  opacity: 0.55;
  filter: blur(80px) saturate(1.1);
  pointer-events: none;
}
.hero-mesh::before, .hero-mesh::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}
.hero-mesh::before {
  width: 60vw; height: 60vw;
  left: -10%; top: -20%;
  background: radial-gradient(circle, var(--grad-mesh-1) 0%, transparent 60%);
  animation: mesh-1 18s var(--ease) infinite alternate;
}
.hero-mesh::after {
  width: 50vw; height: 50vw;
  right: -10%; bottom: -20%;
  background: radial-gradient(circle, var(--grad-mesh-2) 0%, transparent 60%);
  animation: mesh-2 22s var(--ease) infinite alternate;
}

@keyframes mesh-1 {
  0%   { transform: translate(0,0) scale(1); }
  100% { transform: translate(15%, 10%) scale(1.15); }
}
@keyframes mesh-2 {
  0%   { transform: translate(0,0) scale(1); }
  100% { transform: translate(-12%, -8%) scale(1.2); }
}

.hero-grid {
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black, transparent 75%);
  opacity: 0.6;
}

.hero-content { display: flex; flex-direction: column; gap: var(--space-6); max-width: 900px; }
.hero-content .eyebrow { align-self: flex-start; }
.hero h1 { letter-spacing: -0.035em; }
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .word-wrap { display: inline-block; }
.hero-lead { max-width: 56ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-3); }
.hero-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-5);
  margin-top: var(--space-7);
  font-size: 0.85rem;
  color: var(--text-dim);
}
.hero-meta strong { color: var(--text-muted); font-weight: 500; }
.hero-meta .pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px;
}

/* ---------- Marquee (platforms strip) ---------- */
.marquee {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: var(--space-6) 0;
  overflow: hidden;
}
.marquee-track {
  display: flex; align-items: center; gap: var(--space-9);
  animation: marquee 28s linear infinite;
  width: max-content;
}
.marquee span {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  letter-spacing: -0.02em;
  color: var(--text-dim);
  display: inline-flex; align-items: center; gap: var(--space-9);
  white-space: nowrap;
}
.marquee span::after {
  content: "✦";
  color: var(--accent);
  font-size: 0.7em;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- Service cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-5); }

@media (max-width: 980px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  position: relative;
  padding: var(--space-7) var(--space-6) var(--space-6);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.5s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease);
  overflow: hidden;
  isolation: isolate;
}
.card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 0%), var(--accent-soft), transparent 40%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  z-index: -1;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hi);
  background: var(--surface-hi);
}
.card:hover::before { opacity: 1; }

.card .icon {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: var(--space-5);
  border: 1px solid var(--accent-soft);
}
.card h3 { margin-bottom: var(--space-3); }
.card p { font-size: 1rem; }
.card .num {
  position: absolute; top: var(--space-5); right: var(--space-6);
  font-family: var(--font-display);
  font-size: 0.85rem; font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

/* ---------- Process / How It Works ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); position: relative; }
.process::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-hi), transparent);
  z-index: 0;
}
.step {
  position: relative;
  display: flex; flex-direction: column; gap: var(--space-3);
  padding-top: var(--space-7);
}
.step .step-num {
  position: absolute; top: 0; left: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg-elev);
  border: 1px solid var(--border-hi);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1rem;
  color: var(--accent);
}
.step h3 { font-size: 1.2rem; }
.step p { font-size: 0.96rem; }

@media (max-width: 880px) {
  .process { grid-template-columns: 1fr 1fr; }
  .process::before { display: none; }
}
@media (max-width: 540px) {
  .process { grid-template-columns: 1fr; }
}

/* ---------- Why / Feature list ---------- */
.feat-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6) var(--space-7); }
.feat {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: var(--space-4);
  padding: var(--space-5) 0;
  border-top: 1px solid var(--border);
}
.feat .check {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  flex: none;
  margin-top: 4px;
}
.feat h4 { margin-bottom: var(--space-2); }
.feat p { font-size: 0.96rem; }
@media (max-width: 720px) { .feat-list { grid-template-columns: 1fr; } }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
@media (max-width: 980px) { .pricing-grid { grid-template-columns: 1fr; } }

.price {
  position: relative;
  padding: var(--space-7);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  display: flex; flex-direction: column; gap: var(--space-4);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.price:hover { transform: translateY(-4px); border-color: var(--border-hi); }
.price.featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(0,217,255,0.06), rgba(0,217,255,0) 40%), var(--surface);
  box-shadow: 0 0 60px rgba(0,217,255,0.08);
}
.price.featured::before {
  content: "Most popular";
  position: absolute; top: -12px; left: var(--space-7);
  padding: 4px 10px;
  background: var(--accent);
  color: var(--bg);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
}
.price h3 { font-size: 1.3rem; }
.price .amount {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(2.2rem, 4vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 1;
}
.price .amount small {
  font-size: 0.95rem; font-weight: 500;
  color: var(--text-muted);
  font-family: var(--font-body);
  letter-spacing: 0;
  margin-left: 4px;
}
.price .startat { font-size: 0.78rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.12em; font-weight: 500; }
.price ul { display: flex; flex-direction: column; gap: var(--space-3); margin: var(--space-4) 0; }
.price li {
  display: grid; grid-template-columns: 16px 1fr; gap: var(--space-3);
  font-size: 0.95rem; color: var(--text-muted);
}
.price li svg { width: 16px; height: 16px; color: var(--accent); margin-top: 5px; }
.price .btn { justify-content: center; width: 100%; }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 0; max-width: 880px; margin: 0 auto; }
.faq {
  border-top: 1px solid var(--border);
  padding: var(--space-5) 0;
}
.faq:last-child { border-bottom: 1px solid var(--border); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-5);
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  letter-spacing: -0.01em;
  color: var(--text);
  padding: var(--space-3) 0;
  transition: color 0.2s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq summary .chev {
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border-hi);
  flex: none;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}
.faq[open] summary .chev { transform: rotate(45deg); background: var(--accent); color: var(--bg); border-color: var(--accent); }
.faq p { padding: var(--space-3) 0 var(--space-4); font-size: 1rem; max-width: 70ch; }

/* ---------- Stats row ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5);
  padding: var(--space-7);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat .num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
}
.stat .num .accent { color: var(--accent); }
.stat .label { font-size: 0.82rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.12em; }
@media (max-width: 720px) { .stats { grid-template-columns: 1fr 1fr; gap: var(--space-6); } }

/* ---------- Final CTA ---------- */
.final-cta {
  position: relative;
  padding: clamp(64px, 10vw, 120px) var(--space-6);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(0,217,255,0.06), rgba(0,217,255,0) 80%), var(--bg-elev);
  border: 1px solid var(--border);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.final-cta::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(50% 80% at 50% 0%, var(--accent-soft), transparent 60%),
    radial-gradient(40% 60% at 50% 100%, rgba(110,0,255,0.18), transparent 60%);
  z-index: -1;
}
.final-cta h2 { max-width: 18ch; margin: 0 auto var(--space-5); }
.final-cta .lead { margin: 0 auto var(--space-6); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: var(--space-8) 0 var(--space-6);
  margin-top: var(--space-9);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-7);
  margin-bottom: var(--space-7);
}
.footer-grid h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--text-muted); margin-bottom: var(--space-4); font-weight: 600; }
.footer-grid ul { display: flex; flex-direction: column; gap: var(--space-3); }
.footer-grid a { color: var(--text-muted); font-size: 0.95rem; transition: color 0.2s var(--ease); }
.footer-grid a:hover { color: var(--text); }
.footer-brand { display: flex; flex-direction: column; gap: var(--space-4); max-width: 320px; }
.footer-brand p { font-size: 0.95rem; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: var(--space-5);
  display: flex; flex-wrap: wrap; gap: var(--space-4); justify-content: space-between; align-items: center;
  font-size: 0.85rem;
  color: var(--text-dim);
}
.footer-bottom .socials { display: flex; gap: var(--space-3); }
.footer-bottom .socials a {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.footer-bottom .socials a:hover { color: var(--bg); background: var(--accent); border-color: var(--accent); }

@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding: clamp(140px, 18vw, 200px) 0 clamp(48px, 6vw, 80px);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-hero .hero-grid { opacity: 0.4; }
.page-hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
.page-hero .lead { margin-top: var(--space-4); }

/* ---------- About specifics ---------- */
.bio-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: var(--space-8); align-items: center; }
@media (max-width: 880px) {
  .bio-grid { grid-template-columns: 1fr; }
  /* On mobile, ignore desktop order overrides so the headline always appears first. */
  .bio-grid > * { order: 0 !important; }
}
.bio-card {
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: var(--space-7);
  backdrop-filter: blur(12px);
}
.bio-card h3 { margin-bottom: var(--space-3); }
.bio-card p + p { margin-top: var(--space-3); }
.kv { display: grid; grid-template-columns: 1fr; gap: var(--space-3); margin-top: var(--space-5); }
.kv-row { display: grid; grid-template-columns: 120px 1fr; gap: var(--space-4); padding: var(--space-3) 0; border-top: 1px solid var(--border); font-size: 0.95rem; }
.kv-row:last-child { border-bottom: 1px solid var(--border); }
.kv-row .k { color: var(--text-muted); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-7); }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info { display: flex; flex-direction: column; gap: var(--space-5); }
.contact-info .item {
  padding: var(--space-5);
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
}
.contact-info .item h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--text-muted); margin-bottom: var(--space-2); font-weight: 600; }
.contact-info .item p { color: var(--text); font-size: 1.05rem; font-weight: 500; }
.contact-info .item a { color: var(--text); }
.contact-info .item a:hover { color: var(--accent); }

.contact-cta {
  padding: var(--space-7);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  display: flex; flex-direction: column; gap: var(--space-5);
}
.contact-cta h3 { font-size: 1.6rem; }
.contact-cta .btn { width: fit-content; }

/* ---------- Lead form ---------- */
.lead-form { display: flex; flex-direction: column; gap: var(--space-4); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  font-weight: 600;
}
.field label .req { color: var(--accent); margin-left: 4px; }
.field input {
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1rem;
  font-family: var(--font-body);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
  width: 100%;
}
.field input::placeholder { color: var(--text-dim); }
.field input:hover { border-color: var(--border-hi); }
.field input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(0,217,255,0.04);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field input:invalid:not(:placeholder-shown) {
  border-color: rgba(255,80,80,0.5);
}
.field .err {
  font-size: 0.82rem;
  color: rgba(255,120,120,0.9);
  display: none;
}
.field.is-error .err { display: block; }
.field.is-error input { border-color: rgba(255,80,80,0.6); background: rgba(255,80,80,0.04); }

.form-foot {
  display: flex; flex-direction: column; gap: var(--space-3);
  margin-top: var(--space-2);
}
.form-foot small { font-size: 0.82rem; color: var(--text-dim); }
.form-foot .btn { width: 100%; justify-content: center; }

.form-success {
  display: none;
  padding: var(--space-5);
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  color: var(--text);
  font-size: 0.95rem;
}
.form-success.is-visible { display: block; }

.divider-or {
  display: flex; align-items: center; gap: var(--space-4);
  font-size: 0.78rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin: var(--space-2) 0;
}
.divider-or::before, .divider-or::after {
  content: ""; flex: 1; height: 1px; background: var(--border);
}

/* ---------- Select (Plan dropdown) ---------- */
.field select {
  padding: 14px 44px 14px 16px;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1rem;
  font-family: var(--font-body);
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238A8A8A' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 14px;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field select:hover { border-color: var(--border-hi); }
.field select:focus {
  outline: none;
  border-color: var(--accent);
  background-color: rgba(0,217,255,0.04);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field select option { background: var(--bg-elev); color: var(--text); }

/* ---------- Modal ---------- */
.modal {
  position: fixed; inset: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: var(--space-5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.modal.is-open { opacity: 1; pointer-events: auto; }

.modal-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.modal-dialog {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: var(--bg-elev);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-lg);
  padding: var(--space-7) var(--space-6) var(--space-6);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 0 1px var(--border-hi), 0 0 60px rgba(0,217,255,0.06);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.4s var(--ease);
  isolation: isolate;
}
.modal.is-open .modal-dialog { transform: translateY(0) scale(1); }

.modal-dialog::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background: radial-gradient(80% 60% at 50% 0%, var(--accent-soft), transparent 60%);
  z-index: -1;
  opacity: 0.6;
}

.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease);
}
.modal-close:hover { color: var(--text); border-color: var(--border-hi); background: var(--surface-hi); transform: rotate(90deg); }

.modal-head {
  display: flex; flex-direction: column; gap: var(--space-3);
  margin-bottom: var(--space-5);
}
.modal-head .eyebrow { align-self: flex-start; }
.modal-head h3 { font-size: clamp(1.5rem, 3vw, 1.9rem); }
.modal-head p { font-size: 0.96rem; }

@media (max-width: 540px) {
  .modal { padding: var(--space-3); align-items: flex-end; }
  .modal-dialog {
    padding: var(--space-6) var(--space-5) var(--space-5);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    max-height: 90vh;
    transform: translateY(40px);
  }
}

/* ---------- Reveal-on-scroll baseline ---------- */
.reveal { opacity: 0; transform: translateY(28px); will-change: opacity, transform; }
.reveal.is-visible { opacity: 1; transform: none; transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }

/* No-JS fallback */
.no-js .reveal { opacity: 1; transform: none; }
.no-js .hero-mesh { animation: none; }

/* ---------- Selection ---------- */
::selection { background: var(--accent); color: var(--bg); }

/* ---------- Reduce motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .hero-mesh::before, .hero-mesh::after, .marquee-track { animation: none; }
}
