/* ============================================================
   AUDFLUENCE — Stylesheet
   Dark editorial, deep blue + cyan accents
   ============================================================ */

/* ============ DESIGN TOKENS ============ */
:root {
  --bg: #050B1A;
  --bg-2: #08132B;
  --bg-3: #0C1D3D;
  --ink: #E8F4FB;
  --ink-2: #8FA8C7;
  --ink-3: #4A6489;
  --cyan: #70EAFF;
  --cyan-dim: #4DC9E0;
  --blue: #0C5497;
  --blue-deep: #0A3E72;
  --line: rgba(112, 234, 255, 0.08);
  --line-strong: rgba(112, 234, 255, 0.18);
  --glow: rgba(112, 234, 255, 0.4);

  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Geist', -apple-system, sans-serif;
  --mono: 'Geist Mono', monospace;

  --container: 1280px;
  --gutter: clamp(20px, 4vw, 48px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* Grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* ============ NAV ============ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 20px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: backdrop-filter 0.3s, background 0.3s;
}
nav.scrolled {
  background: rgba(5, 11, 26, 0.7);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 0.5px solid var(--line);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.nav-logo svg { width: 28px; height: 24px; }
.nav-links {
  display: flex;
  gap: 36px;
  font-size: 14px;
  color: var(--ink-2);
}
.nav-links a { transition: color 0.2s; }
.nav-links a:hover { color: var(--cyan); }
.nav-cta {
  padding: 10px 22px;
  background: var(--cyan);
  color: var(--bg);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  transition: transform 0.2s, box-shadow 0.2s;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px var(--glow);
}
@media (max-width: 768px) {
  .nav-links { display: none; }
}

/* ============ HERO ============ */
.hero {
  min-height: 100vh;
  position: relative;
  padding: 160px var(--gutter) 80px;
  overflow: hidden;
  isolation: isolate;
}

/* Background layers */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(circle at 70% 50%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 70% 50%, black 0%, transparent 70%);
}

/* === GHOST LOGO === */
/* Oversized, partially off-screen, low opacity. The mark becomes
   the atmosphere of the section, not a sidebar decoration. */
.ghost-logo {
  --py: 0px;
  position: absolute;
  top: 50%;
  left: 65%;
  transform: translate(-50%, calc(-50% + var(--py)));
  width: 140vh;
  height: 140vh;
  max-width: 1400px;
  max-height: 1400px;
  pointer-events: none;
  will-change: transform;
}
@media (max-width: 900px) {
  .ghost-logo {
    width: 130vh;
    height: 130vh;
    left: 75%;
    top: 60%;
  }
}

/* Fill layer — soft, atmospheric, fades in slow */
.ghost-logo--fill {
  opacity: 0;
  animation: ghostFadeIn 2.4s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}
.ghost-logo--fill polygon,
.ghost-logo--fill path {
  fill: var(--blue);
  opacity: 0.18;
}

/* Outline layer — draws on top, sharper definition */
.ghost-logo--stroke polygon,
.ghost-logo--stroke path {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 0.5;
  stroke-linejoin: round;
  stroke-linecap: round;
  opacity: 0.5;
}
.ghost-logo--stroke .g-shape-1 {
  stroke-dasharray: 1180;
  stroke-dashoffset: 1180;
  animation: drawGhost1 3.4s cubic-bezier(0.6, 0.05, 0.2, 0.95) 0.6s forwards;
}
.ghost-logo--stroke .g-shape-2 {
  stroke-dasharray: 1060;
  stroke-dashoffset: 1060;
  animation: drawGhost2 3.4s cubic-bezier(0.6, 0.05, 0.2, 0.95) 1s forwards;
}

@keyframes ghostFadeIn { to { opacity: 1; } }
@keyframes drawGhost1 { to { stroke-dashoffset: 0; } }
@keyframes drawGhost2 { to { stroke-dashoffset: 0; } }

/* Ambient color blobs for depth */
.hero::before {
  content: '';
  position: absolute;
  top: -20%; left: -10%;
  width: 60%; height: 80%;
  background: radial-gradient(circle, rgba(112, 234, 255, 0.10) 0%, transparent 60%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -30%; right: -10%;
  width: 70%; height: 80%;
  background: radial-gradient(circle, rgba(12, 84, 151, 0.30) 0%, transparent 60%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

/* Vignette to keep edges anchored */
.hero::before, .hero::after { z-index: 0; }
.hero > * { position: relative; z-index: 2; }
.hero-bg { z-index: 1; }

/* Vignette overlay sits between bg and content */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, transparent 0%, rgba(5, 11, 26, 0.4) 60%, var(--bg) 100%);
  pointer-events: none;
}

/* Hero content — single column, sits on left over the ghost */
.hero-content {
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 2;
}
.hero-content > * {
  max-width: 720px;
}
.hero-eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  animation: rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}
.hero-eyebrow::before {
  content: '';
  width: 32px; height: 1px;
  background: var(--cyan);
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(44px, 7vw, 96px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin-bottom: 32px;
}
.hero h1 .line {
  display: block;
  overflow: hidden;
}
.hero h1 .line span {
  display: inline-block;
  transform: translateY(110%);
  animation: rise-text 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero h1 .line:nth-child(1) span { animation-delay: 0.3s; }
.hero h1 .line:nth-child(2) span { animation-delay: 0.45s; }
.hero h1 .line:nth-child(3) span { animation-delay: 0.6s; }
.hero h1 em {
  font-style: italic;
  color: var(--cyan);
  font-weight: 300;
}
.hero-sub {
  font-size: 19px;
  color: var(--ink-2);
  max-width: 560px;
  margin-bottom: 40px;
  opacity: 0;
  animation: rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.8s forwards;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  animation: rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.95s forwards;
}

/* Buttons */
.btn-primary {
  padding: 16px 32px;
  background: var(--cyan);
  color: var(--bg);
  border-radius: 100px;
  font-weight: 500;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px var(--glow);
}
.btn-primary svg { transition: transform 0.2s; }
.btn-primary:hover svg { transform: translateX(4px); }
.btn-secondary {
  padding: 16px 32px;
  border: 0.5px solid var(--line-strong);
  color: var(--ink);
  border-radius: 100px;
  font-weight: 500;
  font-size: 15px;
  transition: background 0.2s, border-color 0.2s;
  background: rgba(5, 11, 26, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn-secondary:hover {
  background: var(--bg-3);
  border-color: var(--cyan);
}

/* Stats ticker */
.stats-ticker {
  max-width: var(--container);
  margin: 100px auto 0;
  padding: 32px 0;
  border-top: 0.5px solid var(--line);
  border-bottom: 0.5px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
  z-index: 2;
}
@media (max-width: 700px) {
  .stats-ticker { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
.stat-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s, transform 0.8s;
}
.stat-item.in { opacity: 1; transform: translateY(0); }
.stat-num {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-num em { font-style: italic; color: var(--cyan); }
.stat-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--ink-3);
  text-transform: uppercase;
}

/* ============ SECTION COMMON ============ */
section {
  padding: 120px var(--gutter);
  position: relative;
}
.section-inner {
  max-width: var(--container);
  margin: 0 auto;
}
.section-eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-eyebrow::before {
  content: '';
  width: 32px; height: 1px;
  background: var(--cyan);
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 800px;
  margin-bottom: 24px;
}
.section-title em { font-style: italic; color: var(--cyan); font-weight: 300; }
.section-lead {
  font-size: 18px;
  color: var(--ink-2);
  max-width: 640px;
  margin-bottom: 80px;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ============ ABOUT SECTION ============ */
#about { background: var(--bg-2); }
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
}
.pillar {
  padding: 36px 32px;
  background: linear-gradient(180deg, var(--bg-3) 0%, var(--bg-2) 100%);
  border: 0.5px solid var(--line);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s, border-color 0.4s;
}
.pillar:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
}
.pillar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}
.pillar:hover::before { opacity: 1; }
.pillar-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--cyan);
  margin-bottom: 24px;
  letter-spacing: 0.15em;
}
.pillar-icon {
  width: 48px; height: 48px;
  margin-bottom: 24px;
  color: var(--cyan);
}
.pillar h3 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.pillar p {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.65;
}

/* ============ MODEL / PROCESS SECTION ============ */
.process-list {
  display: grid;
  gap: 0;
  margin-top: 60px;
}
.step {
  display: grid;
  grid-template-columns: 80px 1fr 1fr;
  gap: 48px;
  padding: 48px 0;
  border-top: 0.5px solid var(--line);
  position: relative;
  transition: padding 0.4s;
}
.step:last-child { border-bottom: 0.5px solid var(--line); }
@media (max-width: 800px) {
  .step { grid-template-columns: 1fr; gap: 16px; padding: 32px 0; }
}
.step::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 0.5px;
  background: var(--cyan);
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.step.in::before { width: 100%; }
.step:hover { padding-left: 16px; }
.step-num {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--cyan);
  letter-spacing: 0.15em;
  padding-top: 8px;
}
.step-title {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.step-title em { font-style: italic; color: var(--cyan); }
.step-body p {
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 16px;
}
.step-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.tag {
  font-family: var(--mono);
  font-size: 11px;
  padding: 6px 12px;
  background: var(--bg-3);
  border: 0.5px solid var(--line);
  border-radius: 100px;
  color: var(--ink-2);
  letter-spacing: 0.05em;
}

/* Profit-share banner */
.profit-banner {
  margin-top: 80px;
  padding: 48px;
  background:
    radial-gradient(circle at 80% 50%, rgba(112, 234, 255, 0.08) 0%, transparent 60%),
    var(--bg-2);
  border: 0.5px solid var(--line-strong);
  border-radius: 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}
@media (max-width: 800px) {
  .profit-banner { grid-template-columns: 1fr; text-align: center; }
}
.profit-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(112, 234, 255, 0.1);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
}
.profit-text strong {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  color: var(--ink);
  display: block;
  margin-bottom: 4px;
}
.profit-text span {
  color: var(--ink-2);
  font-size: 15px;
}
.profit-banner .btn-primary { white-space: nowrap; }

/* ============ PRINCIPLES + FAQ ============ */
#voices { background: var(--bg-2); }

.principles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-bottom: 120px;
  background: var(--line);
  border: 0.5px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
}
@media (max-width: 800px) {
  .principles-grid { grid-template-columns: 1fr; }
}
.principle {
  padding: 56px 48px;
  background: var(--bg-2);
  position: relative;
  transition: background 0.4s;
}
.principle:hover {
  background: var(--bg-3);
}
.principle::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 1px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.principle:hover::after { width: 100%; }
@media (max-width: 800px) {
  .principle { padding: 40px 32px; }
}
.principle-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--cyan);
  letter-spacing: 0.2em;
  margin-bottom: 28px;
}
.principle-title {
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
  color: var(--ink);
}
.principle-title em {
  font-style: italic;
  color: var(--cyan);
  font-weight: 300;
}
.principle-body {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 460px;
}

/* FAQ */
.faq-wrap {
  max-width: 820px;
  margin: 0 auto;
}
.faq-head {
  text-align: center;
  margin-bottom: 48px;
}
.faq-head h3 {
  font-family: var(--serif);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.faq-head h3 em { font-style: italic; color: var(--cyan); }
.faq-head p { color: var(--ink-2); }
.faq-item {
  border-bottom: 0.5px solid var(--line);
}
.faq-q {
  width: 100%;
  text-align: left;
  padding: 28px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.015em;
  transition: color 0.2s;
}
.faq-q:hover { color: var(--cyan); }
.faq-toggle {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 0.5px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s, background 0.3s;
}
.faq-item.open .faq-toggle {
  transform: rotate(45deg);
  background: var(--cyan);
  color: var(--bg);
}
.faq-toggle svg { width: 14px; height: 14px; }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-item.open .faq-a { max-height: 400px; }
.faq-a-inner {
  padding: 0 0 28px;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.7;
  max-width: 700px;
}

/* ============ CONTACT ============ */
#contact {
  padding: 140px var(--gutter);
  position: relative;
  overflow: hidden;
}
#contact::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(12, 84, 151, 0.4) 0%, transparent 60%);
  filter: blur(80px);
  pointer-events: none;
}
.contact-inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}
.contact-eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 24px;
}
.contact-title {
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 32px;
}
.contact-title em { font-style: italic; color: var(--cyan); }
.contact-lead {
  font-size: 18px;
  color: var(--ink-2);
  margin-bottom: 48px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}
.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 20px 36px;
  background: var(--cyan);
  color: var(--bg);
  border-radius: 100px;
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 500;
  transition: transform 0.2s, box-shadow 0.2s;
}
.contact-email:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px var(--glow);
}
.contact-email svg { transition: transform 0.2s; }
.contact-email:hover svg { transform: translate(4px, -4px); }
.contact-foot {
  margin-top: 56px;
  font-size: 13px;
  color: var(--ink-3);
  font-family: var(--mono);
  letter-spacing: 0.1em;
}

/* ============ FOOTER ============ */
footer {
  border-top: 0.5px solid var(--line);
  padding: 40px var(--gutter);
  background: var(--bg);
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ink-3);
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-inner a:hover { color: var(--cyan); }

/* ============ KEYFRAMES ============ */
@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes rise-text {
  to { transform: translateY(0); }
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}