/* ============================================================
   Compound — Marketing Website
   Dark, contemplative, editorial aesthetic
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Brand */
  --color-amber: #FFAB00;
  --color-amber-dark: #F7930A;
  --color-green: #1CCE13;
  --color-positive: #34C759;
  --color-neutral: #FF9500;
  --color-negative: #FF3B30;

  /* Surfaces */
  --bg: #0A0A0A;
  --surface: #1C1C1E;
  --surface-elevated: #2C2C2E;
  --border: rgba(255, 255, 255, 0.08);

  /* Text */
  --text-primary: rgba(255, 255, 255, 0.92);
  --text-secondary: rgba(255, 255, 255, 0.55);
  --text-tertiary: rgba(255, 255, 255, 0.30);

  /* Layout */
  --max-w: 1120px;
  --gutter: 24px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (color-gamut: p3) {
  :root {
    --color-amber: color(display-p3 1.0 0.67169 0.0);
    --color-amber-dark: color(display-p3 0.92 0.56 0.04);
    --color-green: color(display-p3 0.10960 0.80367 0.07550);
  }
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: -apple-system, 'SF Pro Display', 'SF Pro Text', system-ui, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; }

/* --- Utility --- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.nav__wordmark {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--color-amber), var(--color-amber-dark));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  flex-shrink: 0;
}

.nav__links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.25s;
  white-space: nowrap;
}
.nav__link:hover,
.nav__link.active {
  color: var(--text-primary);
}

/* Mobile menu toggle */
.nav__toggle {
  display: none;
  width: 24px;
  height: 24px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0;
}
.nav__toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: transform 0.3s var(--ease-out), opacity 0.2s;
}
.nav__toggle.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav__toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav__toggle.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile nav */
@media (max-width: 640px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed;
    top: 56px;
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
    transform: translateY(-110%);
    opacity: 0;
    transition: transform 0.35s var(--ease-out), opacity 0.35s var(--ease-out);
    pointer-events: none;
  }
  .nav__links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav__link {
    display: block;
    padding: 14px var(--gutter);
    font-size: 16px;
  }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding: 120px 0 80px;
  text-align: center;
}

.hero__question {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 720px;
  margin: 0 auto 24px;
}

.hero__question em {
  font-style: italic;
  background: linear-gradient(135deg, var(--color-amber), var(--color-amber-dark));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 48px;
  line-height: 1.5;
}

.hero__badge {
  display: inline-block;
  transition: opacity 0.25s, transform 0.25s var(--ease-spring);
}
.hero__badge:hover {
  opacity: 0.85;
  transform: scale(1.03);
}
.hero__badge img {
  height: 54px;
  width: auto;
}

/* ============================================================
   Trajectory Chart (SVG illustration)
   ============================================================ */
.trajectory {
  padding: 40px 0 100px;
}

.trajectory__card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
}

.trajectory__label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 20px;
}

.trajectory__svg {
  width: 100%;
  height: auto;
}

.trajectory__line {
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: drawLine 2.5s var(--ease-out) 0.5s forwards;
}

.trajectory__area {
  opacity: 0;
  animation: fadeArea 1.5s var(--ease-out) 1.8s forwards;
}

.trajectory__dot {
  opacity: 0;
  animation: popDot 0.4s var(--ease-spring) 2.8s forwards;
}

@keyframes drawLine {
  to { stroke-dashoffset: 0; }
}
@keyframes fadeArea {
  to { opacity: 0.15; }
}
@keyframes popDot {
  0% { opacity: 0; transform: scale(0); }
  100% { opacity: 1; transform: scale(1); }
}

/* ============================================================
   How It Works
   ============================================================ */
.how-it-works {
  padding: 80px 0;
}

.section-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 48px;
}

.how-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.how-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s var(--ease-out);
}
.how-card:hover {
  transform: translateY(-4px);
}

.how-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: 16px 16px 0 0;
}
.how-card--positive::before { background: var(--color-positive); }
.how-card--positive:hover { border-color: rgba(52, 199, 89, 0.3); }
.how-card--neutral::before { background: var(--color-neutral); }
.how-card--neutral:hover { border-color: rgba(255, 149, 0, 0.3); }
.how-card--negative::before { background: var(--color-negative); }
.how-card--negative:hover { border-color: rgba(255, 59, 48, 0.3); }

.how-card__arrow {
  font-size: 28px;
  margin-bottom: 16px;
  display: block;
}

.how-card__title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.how-card__desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.how-card__badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  margin-top: 16px;
  padding: 4px 12px;
  border-radius: 100px;
  letter-spacing: 0.02em;
}
.how-card--positive .how-card__badge {
  background: rgba(52, 199, 89, 0.12);
  color: var(--color-positive);
}
.how-card--neutral .how-card__badge {
  background: rgba(255, 149, 0, 0.12);
  color: var(--color-neutral);
}
.how-card--negative .how-card__badge {
  background: rgba(255, 59, 48, 0.12);
  color: var(--color-negative);
}

@media (max-width: 640px) {
  .how-cards {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Philosophy
   ============================================================ */
.philosophy {
  padding: 100px 0;
  text-align: center;
}

.philosophy__statements {
  display: flex;
  flex-direction: column;
  gap: 64px;
  max-width: 700px;
  margin: 0 auto;
}

.philosophy__line {
  font-size: clamp(1.5rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.philosophy__line--amber {
  background: linear-gradient(135deg, var(--color-amber), var(--color-amber-dark));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.philosophy__line--muted {
  color: var(--text-secondary);
}

.philosophy__divider {
  width: 48px;
  height: 2px;
  background: var(--border);
  margin: 0 auto;
  border: none;
}

/* ============================================================
   What's Different
   ============================================================ */
.different {
  padding: 80px 0 100px;
}

.different__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 48px;
}

.different__col-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.different__col--most .different__col-title {
  color: var(--text-tertiary);
}
.different__col--compound .different__col-title {
  color: var(--color-amber);
}

.different__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.different__item {
  font-size: 16px;
  line-height: 1.5;
  padding-left: 20px;
  position: relative;
}
.different__item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.different__col--most .different__item {
  color: var(--text-secondary);
}
.different__col--most .different__item::before {
  background: var(--text-tertiary);
}
.different__col--compound .different__item::before {
  background: var(--color-amber);
}

@media (max-width: 640px) {
  .different__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ============================================================
   Bottom CTA
   ============================================================ */
.cta {
  padding: 80px 0 120px;
  text-align: center;
}

.cta__phrase {
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer__wordmark {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--color-amber), var(--color-amber-dark));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer__links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer__link {
  font-size: 14px;
  color: var(--text-tertiary);
  transition: color 0.25s;
}
.footer__link:hover {
  color: var(--text-secondary);
}

.footer__copy {
  font-size: 13px;
  color: var(--text-tertiary);
  width: 100%;
  text-align: center;
  margin-top: 24px;
}

@media (max-width: 640px) {
  .footer__inner {
    flex-direction: column;
    text-align: center;
  }
  .footer__links {
    justify-content: center;
  }
}

/* ============================================================
   Legal / Support Pages
   ============================================================ */
.page-header {
  padding: 80px 0 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}

.page-header__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.page-header__date {
  font-size: 14px;
  color: var(--text-tertiary);
}

.legal-content {
  max-width: 720px;
  padding-bottom: 100px;
}

.legal-content h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 48px 0 16px;
  letter-spacing: -0.01em;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.legal-content ul {
  margin-bottom: 16px;
  padding-left: 20px;
}

.legal-content li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  position: relative;
  padding-left: 16px;
  margin-bottom: 8px;
}

.legal-content li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-tertiary);
}

.legal-content a {
  color: var(--color-amber);
  transition: opacity 0.2s;
}
.legal-content a:hover {
  opacity: 0.75;
}

.legal-content strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ============================================================
   Support Page
   ============================================================ */
.support-contact {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 48px;
}

.support-contact__label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 8px;
}

.support-contact__email {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-amber);
  transition: opacity 0.2s;
}
.support-contact__email:hover {
  opacity: 0.75;
}

.support-contact__note {
  font-size: 14px;
  color: var(--text-tertiary);
  margin-top: 8px;
}

/* FAQ Accordion */
.faq {
  margin-bottom: 100px;
}

.faq__title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
}

.faq__item {
  border-bottom: 1px solid var(--border);
}

.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  color: var(--text-primary);
  transition: color 0.2s;
}
.faq__question:hover {
  color: var(--color-amber);
}

.faq__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-left: 16px;
  transition: transform 0.3s var(--ease-out);
  color: var(--text-tertiary);
}
.faq__item.open .faq__icon {
  transform: rotate(45deg);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out);
}

.faq__answer-inner {
  padding: 0 0 20px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ============================================================
   404 Page
   ============================================================ */
.error-page {
  min-height: calc(100vh - 56px - 140px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 0;
}

.error-page__code {
  font-size: clamp(6rem, 15vw, 12rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--color-amber), var(--color-amber-dark));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 16px;
}

.error-page__text {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 100px;
  transition: transform 0.25s var(--ease-spring), opacity 0.25s;
}
.btn:hover {
  opacity: 0.85;
  transform: scale(1.03);
}

.btn--amber {
  background: linear-gradient(135deg, var(--color-amber), var(--color-amber-dark));
  color: #000;
}

/* ============================================================
   Background Atmosphere
   ============================================================ */
.bg-glow {
  position: fixed;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(255, 171, 0, 0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* ============================================================
   Responsive: Tablet
   ============================================================ */
@media (min-width: 641px) and (max-width: 1024px) {
  :root {
    --gutter: 32px;
  }
  .hero {
    padding: 100px 0 60px;
  }
}

/* ============================================================
   Responsive: Desktop
   ============================================================ */
@media (min-width: 1025px) {
  :root {
    --gutter: 40px;
  }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .trajectory__line {
    stroke-dasharray: none;
    stroke-dashoffset: 0;
    animation: none;
  }
  .trajectory__area {
    opacity: 0.15;
    animation: none;
  }
  .trajectory__dot {
    opacity: 1;
    animation: none;
  }
  html { scroll-behavior: auto; }
}
