:root {
  --bg: #05070a;
  --bg-elevated: #0a0e14;
  --surface: #10151d;
  --surface-hover: #161d28;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.16);
  --emerald: #3ddc97;
  --emerald-dim: #2a9c6c;
  --violet: #8b7cf6;
  --gold: #d9a35a;
  --text: #f2f5f7;
  --text-dim: #97a1af;
  --text-dimmer: #5c6572;
  --font-headline: 'Fraunces', serif;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Manrope', sans-serif;
  --max-width: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--font-headline); font-weight: 600; letter-spacing: -0.005em; }

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

.accent { color: var(--emerald); }
.accent-text {
  font-style: italic;
  font-weight: 500;
  color: var(--gold);
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--emerald);
  margin-bottom: 14px;
}

/* ===== Grain + cursor glow ===== */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 9999;
  opacity: 0.025; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.cursor-glow {
  position: fixed; top: 0; left: 0; width: 500px; height: 500px;
  border-radius: 50%; pointer-events: none; z-index: 1;
  background: radial-gradient(circle, rgba(61,220,151,0.06) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
  will-change: transform;
}

/* ===== Nav ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 22px 0;
  transition: background 0.3s, padding 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(5, 7, 10, 0.82);
  backdrop-filter: blur(14px);
  padding: 14px 0;
  border-bottom-color: var(--border);
}
.nav-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav-brand {
  display: flex; align-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 18px;
}
.nav-links { display: flex; gap: 34px; font-size: 14.5px; color: var(--text-dim); }
.nav-links a { transition: color 0.2s; position: relative; }
.nav-links a:hover { color: var(--text); }
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 32px; height: 32px; background: none; border: none; cursor: pointer; padding: 0;
}
.nav-toggle span {
  display: block; height: 2px; width: 100%; background: var(--text); border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 14.5px;
  padding: 13px 22px; border-radius: 100px; border: none; cursor: pointer;
  transition: transform 0.25s cubic-bezier(.2,.8,.2,1), box-shadow 0.25s, background 0.25s, border-color 0.25s;
}
.btn svg { transition: transform 0.25s; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary {
  background: var(--emerald); color: #04120c;
  box-shadow: 0 0 0 0 rgba(61,220,151,0);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -6px rgba(61,220,151,0.45); }
.btn-ghost {
  background: transparent; color: var(--text); border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.btn-nav {
  padding: 10px 20px; font-size: 13.5px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
}
.btn-nav:hover { border-color: var(--emerald); }

/* ===== Hero ===== */
.hero {
  position: relative; min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 140px 24px 80px; overflow: hidden;
}
#orbitCanvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0.9; }
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(ellipse 70% 55% at 50% 30%, rgba(5,7,10,0) 0%, var(--bg) 88%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; max-width: 880px; }
.hero-title {
  font-size: clamp(38px, 6.4vw, 76px); line-height: 1.08; font-weight: 700;
  letter-spacing: -0.02em; margin: 18px 0 26px;
}
.reveal-line { display: block; overflow: hidden; padding-bottom: 4px; }
.reveal-word { display: inline-block; }
.hero-sub {
  font-size: clamp(15px, 1.6vw, 18px); color: var(--text-dim);
  max-width: 560px; margin: 0 auto 40px;
}
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-scroll-hint {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.hero-scroll-hint span {
  width: 1px; height: 40px;
  background: linear-gradient(var(--emerald), transparent);
  animation: scrollpulse 2s ease-in-out infinite;
}
.hero-scroll-hint p { font-size: 11px; letter-spacing: 0.12em; color: var(--text-dimmer); text-transform: uppercase; }
@keyframes scrollpulse { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }

/* ===== Marquee ===== */
.marquee {
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  overflow: hidden; padding: 18px 0; background: var(--bg-elevated);
}
.marquee-track {
  display: flex; gap: 18px; white-space: nowrap; width: max-content;
  animation: marquee 32s linear infinite;
  font-family: var(--font-display); font-size: 14px; color: var(--text-dimmer);
}
.marquee-track span:nth-child(2n) { color: var(--emerald); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ===== Section shared ===== */
section { padding: 130px 24px; position: relative; }
.section-head { max-width: var(--max-width); margin: 0 auto 64px; }
.section-head h2 { font-size: clamp(28px, 4vw, 44px); line-height: 1.2; }

/* ===== Services ===== */
.services {
  position: relative;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 26px 26px;
  background-position: -13px -13px;
}
.services::before, .services::after {
  content: ''; position: absolute; z-index: 0; border-radius: 50%; filter: blur(90px); pointer-events: none;
}
.services::before {
  width: 480px; height: 480px; top: -120px; left: -140px;
  background: radial-gradient(circle, rgba(61,220,151,0.16), transparent 70%);
}
.services::after {
  width: 420px; height: 420px; bottom: -100px; right: -120px;
  background: radial-gradient(circle, rgba(139,124,246,0.14), transparent 70%);
}
.services .section-head, .services .services-grid { position: relative; z-index: 1; }

.services-grid {
  max-width: var(--max-width); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--border); border: 1px solid var(--border); border-radius: 20px; overflow: hidden;
}
.service-card {
  background: var(--bg-elevated); padding: 40px 32px;
  transition: background 0.35s, transform 0.4s cubic-bezier(.2,.8,.2,1), box-shadow 0.4s;
  position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(61,220,151,0.14), transparent 65%);
  opacity: 0; transition: opacity 0.4s;
}
.service-card:hover::before { opacity: 1; }
.service-card:hover {
  background: var(--surface);
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -18px rgba(0,0,0,0.55);
  z-index: 2;
}
.service-card.highlight { background: linear-gradient(160deg, rgba(61,220,151,0.09), var(--bg-elevated) 60%); }
.service-num {
  position: relative; z-index: 1;
  font-family: var(--font-display); font-size: 12px; color: var(--text-dimmer);
  margin-bottom: 22px; letter-spacing: 0.05em;
}
.service-icon-badge {
  position: relative; z-index: 1;
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(155deg, rgba(61,220,151,0.16), rgba(139,124,246,0.1));
  border: 1px solid rgba(61,220,151,0.25);
  margin-bottom: 22px;
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1), box-shadow 0.4s, border-color 0.4s;
}
.service-card:hover .service-icon-badge {
  transform: scale(1.08) rotate(-4deg);
  box-shadow: 0 0 26px rgba(61,220,151,0.3);
  border-color: rgba(61,220,151,0.5);
}
.service-icon { color: var(--emerald); }
.service-card h3 { position: relative; z-index: 1; font-size: 18.5px; margin-bottom: 10px; }
.service-card p { position: relative; z-index: 1; font-size: 14.5px; color: var(--text-dim); line-height: 1.55; }

/* ===== Spotlight (Orbit) ===== */
.spotlight {
  max-width: var(--max-width); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.spotlight-visual {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  position: relative;
}
.spotlight-orbit { position: relative; width: 100%; max-width: 420px; aspect-ratio: 1; }
.sp-core {
  position: absolute; top: 50%; left: 50%; width: 30px; height: 30px;
  margin: -15px 0 0 -15px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #6ff0bd, var(--emerald));
  box-shadow: 0 0 50px 12px rgba(61,220,151,0.45), 0 0 100px 40px rgba(61,220,151,0.15);
}
.sp-ring {
  position: absolute; top: 50%; left: 50%; border: 1px solid rgba(139,124,246,0.28);
  border-radius: 50%;
}
.sp-ring-1 { width: 52%; height: 52%; margin: -26% 0 0 -26%; animation: sp-spin 16s linear infinite; border-color: rgba(61,220,151,0.3); }
.sp-ring-2 { width: 76%; height: 76%; margin: -38% 0 0 -38%; animation: sp-spin-rev 24s linear infinite; transform: rotate(40deg); }
.sp-ring-3 { width: 100%; height: 100%; margin: -50% 0 0 -50%; animation: sp-spin 36s linear infinite; transform: rotate(-25deg); }
.sp-ring span {
  position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; margin-left: -4px;
  border-radius: 50%; background: var(--violet); box-shadow: 0 0 14px 4px rgba(139,124,246,0.5);
}
.sp-ring-1 span { background: var(--emerald); box-shadow: 0 0 14px 4px rgba(61,220,151,0.5); }
@keyframes sp-spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@keyframes sp-spin-rev { from { transform: rotate(40deg); } to { transform: rotate(-320deg); } }

.spotlight-lead { font-size: 17px; color: var(--text-dim); margin: 20px 0 30px; max-width: 480px; }
.spotlight-list { list-style: none; margin-bottom: 36px; display: flex; flex-direction: column; gap: 14px; }
.spotlight-list li {
  display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--text);
}
.spotlight-list li::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--emerald); flex-shrink: 0;
  box-shadow: 0 0 8px 2px rgba(61,220,151,0.5);
}

/* ===== Process ===== */
.process-line {
  max-width: var(--max-width); margin: 0 auto;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 0;
  position: relative;
}
.process-line::before {
  content: ''; position: absolute; top: 15px; left: 4%; right: 4%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border) 15%, var(--border) 85%, transparent);
}
.process-step { position: relative; padding: 0 18px 0 0; }
.process-index {
  width: 30px; height: 30px; border-radius: 50%; background: var(--bg);
  border: 1.5px solid var(--emerald); color: var(--emerald);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 12px; font-weight: 600;
  margin-bottom: 22px; position: relative; z-index: 1;
}
.process-step h3 { font-size: 16.5px; margin-bottom: 8px; }
.process-step p { font-size: 13.5px; color: var(--text-dim); line-height: 1.55; }

/* ===== About ===== */
.about { background: var(--bg-elevated); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.about-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.about h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 24px; }
.about-text { font-size: 17px; color: var(--text-dim); line-height: 1.75; }

/* ===== Contact ===== */
.contact-inner { max-width: 620px; margin: 0 auto; text-align: center; }
.contact h2 { font-size: clamp(28px, 4vw, 42px); }
.contact-lead { color: var(--text-dim); margin: 16px 0 44px; font-size: 16px; }
.contact-form { text-align: left; display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field label { font-size: 13px; color: var(--text-dim); }
.form-field input, .form-field textarea {
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 13px 15px; color: var(--text); font-family: var(--font-body); font-size: 14.5px;
  transition: border-color 0.2s, background 0.2s; resize: vertical;
}
.form-field input:focus, .form-field textarea:focus {
  outline: none; border-color: var(--emerald); background: var(--surface-hover);
}
.contact-form .btn { align-self: flex-start; margin-top: 4px; }
.form-note { font-size: 13.5px; color: var(--emerald); min-height: 18px; }

/* ===== Footer ===== */
.footer { padding: 48px 24px; border-top: 1px solid var(--border); }
.footer-inner {
  max-width: var(--max-width); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.footer p { font-size: 13.5px; color: var(--text-dimmer); }

/* ===== Scroll reveal base states =====
   Deliberately NOT hidden via plain CSS — every .reveal/.reveal-up/.reveal-word is visible
   by default. script.js uses gsap.from() (which sets the "from" state and animates to the
   element's natural state in one atomic call) instead of pre-hiding + gsap.to(), so if the
   GSAP CDN script is ever blocked, slow, or fails, visitors see the full page immediately
   instead of a permanently blank hero — the previous version of this file hit exactly that
   failure mode in testing. */

/* ===== Features page ===== */
.nav-links a.nav-active { color: var(--emerald); }

.features-hero {
  padding: 160px 24px 70px; text-align: center; position: relative; overflow: hidden;
}
.features-hero::before {
  content: ''; position: absolute; top: -180px; left: 50%; transform: translateX(-50%);
  width: 720px; height: 480px; border-radius: 50%; filter: blur(110px); z-index: 0;
  background: radial-gradient(ellipse, rgba(61,220,151,0.14), transparent 70%);
}
.features-hero-inner { max-width: 780px; margin: 0 auto; position: relative; z-index: 1; }
.features-hero h1 { font-size: clamp(32px, 5vw, 54px); line-height: 1.15; margin: 16px 0 22px; }
.features-hero-sub { font-size: clamp(15px, 1.6vw, 17px); color: var(--text-dim); max-width: 620px; margin: 0 auto; }

.highlight-section { padding: 0 24px 20px; }
.highlight-strip {
  max-width: var(--max-width); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--border); border: 1px solid var(--border); border-radius: 18px; overflow: hidden;
}
.highlight-item {
  background: var(--bg-elevated); padding: 26px 24px;
  display: flex; align-items: flex-start; gap: 16px;
}
.highlight-icon {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(155deg, rgba(61,220,151,0.16), rgba(139,124,246,0.1));
  border: 1px solid rgba(61,220,151,0.25); color: var(--emerald);
}
.highlight-item h4 { font-family: var(--font-display); font-weight: 600; font-size: 14.5px; margin-bottom: 5px; }
.highlight-item p { font-size: 12.5px; color: var(--text-dim); line-height: 1.5; }

.persona-section { padding: 40px 24px 130px; max-width: var(--max-width); margin: 0 auto; }

.persona-tabs {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  margin-bottom: 64px; padding-bottom: 2px;
}
.persona-tab {
  font-family: var(--font-body); font-weight: 600; font-size: 13.5px; color: var(--text-dim);
  background: var(--surface); border: 1px solid var(--border); border-radius: 100px;
  padding: 11px 20px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.persona-tab-num { font-family: var(--font-display); font-size: 11px; color: var(--text-dimmer); }
.persona-tab:hover { border-color: var(--border-hover); color: var(--text); }
.persona-tab.active {
  background: linear-gradient(155deg, rgba(61,220,151,0.16), rgba(139,124,246,0.1));
  border-color: rgba(61,220,151,0.45); color: var(--text);
}
.persona-tab.active .persona-tab-num { color: var(--emerald); }

.persona-panel { display: none; }
.persona-panel.active { display: block; }
.persona-intro { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.persona-intro h2 { font-size: clamp(26px, 3.6vw, 38px); line-height: 1.2; margin-bottom: 16px; }
.persona-intro p { color: var(--text-dim); font-size: 15.5px; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-tile {
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 16px;
  padding: 30px 26px; transition: border-color 0.3s, transform 0.3s cubic-bezier(.2,.8,.2,1), background 0.3s;
}
.feature-tile:hover { border-color: var(--border-hover); background: var(--surface); transform: translateY(-4px); }
.feature-icon-badge {
  width: 46px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(155deg, rgba(61,220,151,0.16), rgba(139,124,246,0.1));
  border: 1px solid rgba(61,220,151,0.25);
  color: var(--emerald); margin-bottom: 18px;
}
.feature-tile h4 { font-family: var(--font-display); font-weight: 600; font-size: 16px; margin-bottom: 8px; }
.feature-tile p { font-size: 13.5px; color: var(--text-dim); line-height: 1.55; }

.features-cta {
  background: var(--bg-elevated); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  text-align: center;
}
.features-cta-inner { max-width: 560px; margin: 0 auto; }
.features-cta h2 { font-size: clamp(24px, 3.4vw, 34px); margin: 14px 0 30px; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; top: 66px; left: 0; right: 0; z-index: 99;
    flex-direction: column; gap: 4px; padding: 20px 28px 26px;
    background: rgba(5,7,10,0.98); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform 0.3s cubic-bezier(.2,.8,.2,1), opacity 0.3s;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a { font-size: 16px; padding: 10px 0; border-bottom: 1px solid var(--border); }
  .nav-links a:last-child { border-bottom: none; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .spotlight { grid-template-columns: 1fr; gap: 50px; }
  .process-line { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
  .process-line::before { display: none; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .highlight-strip { grid-template-columns: repeat(2, 1fr); }
  .hide-mobile { display: none; }
}
@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .process-line { grid-template-columns: 1fr; }
  section { padding: 90px 20px; }
  .hero { padding: 120px 20px 70px; }
  .feature-grid { grid-template-columns: 1fr; }
  .persona-tabs { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; padding-bottom: 8px; }
  .persona-tab { flex-shrink: 0; }
  .features-hero { padding: 130px 20px 60px; }
  .persona-section { padding: 30px 20px 90px; }
  .highlight-strip { grid-template-columns: 1fr; }
  .highlight-section { padding: 0 20px 16px; }
}
