/* ============================================
   NeuroCompass — Stylesheet
   ============================================ */

:root {
  --bg-deep: #0f1a2e;
  --bg-darker: #0a1322;
  --gold: #e8a93a;
  --gold-soft: #d49426;
  --gold-glow: rgba(232, 169, 58, 0.35);
  --white: #f4f1ea;
  --white-dim: rgba(244, 241, 234, 0.72);
  --white-faint: rgba(244, 241, 234, 0.45);
  --line: rgba(232, 169, 58, 0.18);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-deep);
  color: var(--white);
  font-family: 'Manrope', sans-serif;
  font-weight: 300;
  line-height: 1.6;
  overflow-x: clip;
  min-height: 100vh;
  position: relative;
}

/* Atmospheric background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(232, 169, 58, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(232, 169, 58, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(15, 26, 46, 0) 0%, var(--bg-darker) 100%);
  pointer-events: none;
  z-index: 0;
}

/* Grain texture */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  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%3CfeColorMatrix values='0 0 0 0 0.9 0 0 0 0 0.66 0 0 0 0 0.23 0 0 0 0.08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.5;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: overlay;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 2;
}

/* ===== NAV ===== */
nav {
  padding: 32px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  opacity: 0;
  animation: fadeIn 1s ease 0.2s forwards;
}

.logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--gold);
  text-transform: uppercase;
}

.logo span {
  color: var(--white);
  font-weight: 300;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-meta {
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  color: var(--white-faint);
  text-transform: uppercase;
  font-weight: 400;
}

.language-switcher {
  display: flex;
  align-items: center;
}

.language-switcher-item {
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Manrope', sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--white-faint);
  padding: 0;
  transition: color 0.3s ease;
}

.language-switcher-item:hover {
  color: var(--white);
}

.language-switcher-item.active {
  color: var(--gold);
}

.language-switcher-item::after {
  content: '·';
  margin: 0 8px;
  color: var(--white-faint);
  opacity: 0.5;
}

.language-switcher-item:last-child::after {
  content: none;
}

/* ===== HERO ===== */
.hero {
  padding: 60px 0 100px;
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
  min-height: 80vh;
  overflow: hidden;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeIn 1s ease 0.4s forwards;
}

.hero-meta-line {
  width: 48px;
  height: 1px;
  background: var(--gold);
}

.hero-meta-text {
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  color: var(--gold);
  text-transform: uppercase;
  font-weight: 500;
}

.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.6rem, 5.2vw, 4.4rem);
  line-height: 1.05;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeInUp 1.2s ease 0.6s forwards;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold);
  font-weight: 500;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--white-dim);
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeInUp 1.2s ease 0.9s forwards;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 32px;
  opacity: 0;
  animation: fadeInUp 1.2s ease 1.1s forwards;
}

.scroll-hint {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--white-faint);
  text-transform: uppercase;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: color 0.3s ease;
}

.scroll-hint:hover {
  color: var(--gold);
}

.scroll-hint::after {
  content: '';
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  display: inline-block;
  animation: scrollBar 2s ease-in-out infinite;
}

@keyframes scrollBar {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); }
}

/* Hero brain visual */
.hero-visual {
  position: relative;
  aspect-ratio: 1;
  max-width: 520px;
  margin-left: auto;
  opacity: 0;
  animation: fadeIn 1.8s ease 0.5s forwards;
}

.hero-visual svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.ray {
  transform-origin: center;
  animation: rayPulse 4s ease-in-out infinite;
}

@keyframes rayPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.9; }
}

.ray:nth-child(odd) { animation-delay: 0.5s; }
.ray:nth-child(3n) { animation-delay: 1s; }
.ray:nth-child(5n) { animation-delay: 1.5s; }

.orbit-icon {
  transform-origin: center;
  animation: float 5s ease-in-out infinite;
}
.orbit-icon:nth-child(2n) { animation-delay: 1s; }
.orbit-icon:nth-child(3n) { animation-delay: 2s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.gear-spin {
  transform-origin: center;
  animation: spin 18s linear infinite;
}
.gear-spin-reverse {
  transform-origin: center;
  animation: spin 14s linear infinite reverse;
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ===== SECTION DIVIDER ===== */
.divider {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 80px 0 60px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 1s ease;
}
.divider.visible {
  opacity: 1;
  transform: translateY(0);
}

.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--line), transparent);
}

.divider-num {
  font-family: 'Cormorant Garamond', serif;
  color: var(--gold);
  font-size: 0.9rem;
  letter-spacing: 0.3em;
  font-style: italic;
}

/* ===== MANIFESTO ===== */
.manifesto {
  padding: 40px 0 80px;
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
}

.manifesto-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.005em;
  margin-bottom: 32px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 1.2s ease;
}
.manifesto-quote.visible {
  opacity: 1;
  transform: translateY(0);
}

.manifesto-quote em {
  font-style: italic;
  color: var(--gold);
}

.manifesto-body {
  font-size: 1.05rem;
  color: var(--white-dim);
  line-height: 1.8;
  max-width: 640px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(20px);
  transition: all 1.2s ease 0.2s;
}
.manifesto-body.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== ABOUT ===== */
.about {
  padding: 80px 0;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
}

.about-label {
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 24px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(20px);
  transition: all 1s ease;
}

.about-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 3.8vw, 3rem);
  line-height: 1.15;
  font-weight: 400;
  margin-bottom: 32px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 1s ease 0.15s;
}

.about-title em {
  color: var(--gold);
  font-style: italic;
}

.about-text {
  font-size: 1.05rem;
  color: var(--white-dim);
  line-height: 1.8;
  opacity: 0;
  transform: translateY(20px);
  transition: all 1s ease 0.3s;
}

.about-text strong {
  color: var(--white);
  font-weight: 500;
}

.about-text .gold-word {
  color: var(--gold);
  font-weight: 500;
  font-style: italic;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05em;
}

.about-visual {
  position: relative;
  aspect-ratio: 1;
  max-width: 480px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 1.2s ease 0.4s;
}

.about.visible .about-label,
.about.visible .about-title,
.about.visible .about-text,
.about.visible .about-visual {
  opacity: 1;
  transform: translateY(0);
}

/* ===== PILLARS ===== */
.pillars {
  padding: 100px 0;
}

.pillars-header {
  text-align: center;
  margin-bottom: 80px;
}

.pillars-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 400;
  line-height: 1.2;
  opacity: 0;
  transform: translateY(20px);
  transition: all 1s ease;
}
.pillars-title.visible {
  opacity: 1;
  transform: translateY(0);
}
.pillars-title em {
  color: var(--gold);
  font-style: italic;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.pillar {
  padding: 56px 36px;
  border-right: 1px solid var(--line);
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s ease;
}
.pillar:last-child {
  border-right: none;
}
.pillar.visible {
  opacity: 1;
  transform: translateY(0);
}
.pillar:nth-child(2).visible { transition-delay: 0.2s; }
.pillar:nth-child(3).visible { transition-delay: 0.4s; }

.pillar-num {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--gold);
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  margin-bottom: 28px;
  display: block;
}

.pillar-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pillar-icon svg {
  width: 100%;
  height: 100%;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.2;
}

.pillar h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--gold);
  margin-bottom: 16px;
  letter-spacing: -0.005em;
}

.pillar p {
  color: var(--white-dim);
  line-height: 1.7;
  font-size: 0.98rem;
}

/* ===== PRICING ===== */
.pricing {
  padding: 80px 0 40px;
}

.pricing-card {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 48px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(232, 169, 58, 0.04) 0%, rgba(232, 169, 58, 0) 60%);
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s ease;
}
.pricing-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.pricing-eyebrow {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--gold);
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  margin-bottom: 20px;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
}

.pricing-amount {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  font-weight: 500;
  color: var(--gold);
  line-height: 1;
  letter-spacing: -0.01em;
}

.pricing-currency {
  font-family: 'Manrope', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--white-dim);
}

.pricing-lead {
  color: var(--white);
  line-height: 1.7;
  margin-bottom: 24px;
}

.pricing-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pricing-list li {
  position: relative;
  padding-left: 22px;
  color: var(--white-dim);
  line-height: 1.65;
  font-size: 0.97rem;
}
.pricing-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gold);
}
.pricing-list strong {
  color: var(--white);
  font-weight: 500;
}

.pricing-disclaimer {
  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--white-faint);
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.pricing-disclaimer a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
  transition: color 0.3s ease, text-decoration-color 0.3s ease;
}
.pricing-disclaimer a:hover {
  color: var(--gold);
  text-decoration-color: var(--gold);
}

/* ===== CTA SECTION ===== */
.cta-section {
  padding: 140px 0 120px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.4em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 32px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 1s ease;
}

.cta-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 28px;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  transform: translateY(20px);
  transition: all 1s ease 0.2s;
}
.cta-title em {
  color: var(--gold);
  font-style: italic;
}

.cta-sub {
  font-size: 1.1rem;
  color: var(--white-dim);
  max-width: 560px;
  margin: 0 auto 56px;
  line-height: 1.7;
  opacity: 0;
  transform: translateY(20px);
  transition: all 1s ease 0.4s;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding: 22px 44px;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--white);
  text-decoration: none;
  font-family: 'Manrope', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.7, 0, 0.3, 1);
  opacity: 0;
  transform: translateY(20px);
  z-index: 1;
  cursor: pointer;
}
.cta-button.visible {
  opacity: 1;
  transform: translateY(0);
  transition: all 1s ease 0.6s, background 0.5s, color 0.5s;
}

.cta-button::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: translateX(-101%);
  transition: transform 0.6s cubic-bezier(0.7, 0, 0.3, 1);
  z-index: -1;
}

.cta-button:hover::before {
  transform: translateX(0);
}

.cta-button:hover {
  color: var(--bg-deep);
}

.cta-button-arrow {
  transition: transform 0.4s ease;
}
.cta-button:hover .cta-button-arrow {
  transform: translateX(6px);
}

.cta-section.visible .cta-eyebrow,
.cta-section.visible .cta-title,
.cta-section.visible .cta-sub,
.cta-section.visible .cta-button {
  opacity: 1;
  transform: translateY(0);
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--gold-glow) 0%, transparent 60%);
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

/* ===== FOOTER ===== */
footer {
  padding: 48px 0 40px;
  margin-top: 40px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  font-size: 0.78rem;
  color: var(--white-faint);
  line-height: 1.7;
}
footer em {
  color: var(--gold);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.05em;
  text-transform: none;
  letter-spacing: 0.02em;
}

.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 60%;
}

.footer-email {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.3s ease;
  align-self: flex-start;
}
.footer-email:hover {
  color: var(--white);
}

.footer-legal-lines {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--white-faint);
  letter-spacing: 0.02em;
}

.footer-legal-line .dot {
  color: var(--gold);
  margin: 0 6px;
  opacity: 0.6;
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  text-align: right;
}

.footer-sig {
  color: var(--white-dim);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 500;
  font-size: 0.75rem;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.7rem;
}
.footer-links a {
  color: var(--white-faint);
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer-links a:hover {
  color: var(--gold);
}
.footer-sep {
  color: var(--gold);
  opacity: 0.5;
}

/* ===== KEYFRAME ANIMATIONS ===== */
@keyframes fadeIn {
  to { opacity: 1; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; 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;
  }

  .divider, .manifesto-quote, .manifesto-body, .pillars-title, .pillar,
  .about-label, .about-title, .about-text, .about-visual,
  .pricing-card,
  .cta-eyebrow, .cta-title, .cta-sub, .cta-button {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .container { padding: 0 24px; }
  .hero {
    grid-template-columns: 1fr;
    gap: 50px;
    padding: 40px 0 70px;
    min-height: auto;
  }
  .hero-visual {
    max-width: 380px;
    margin: 0 auto;
  }
  .about {
    grid-template-columns: 1fr;
    gap: 50px;
    padding: 60px 0;
  }
  .about-visual {
    max-width: 360px;
    margin: 0 auto;
  }
  .pillars-grid {
    grid-template-columns: 1fr;
  }
  .pillar {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 44px 24px;
  }
  .pillar:last-child {
    border-bottom: none;
  }
  .pillars {
    padding: 60px 0;
  }
  .pricing {
    padding: 50px 0 30px;
  }
  .pricing-card {
    padding: 40px 24px;
  }
  .cta-section {
    padding: 80px 0;
  }
  .hero-cta-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    text-align: left;
  }
  .footer-legal {
    max-width: 100%;
  }
  .footer-right {
    align-items: flex-start;
    text-align: left;
  }
  nav {
    padding: 24px 0;
  }
  .nav-meta {
    display: none;
  }
  .nav-right {
    gap: 0;
  }
}
