@import url("./colors_and_type.css");

/* ──────────────────────────────────────────────
   RESET & BASE
────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg-1);
  font-family: var(--font-sans);
  font-size: var(--fs-15);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ──────────────────────────────────────────────
   LAYOUT
────────────────────────────────────────────── */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 80px);
}

/* ──────────────────────────────────────────────
   BUTTONS
────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 10px 22px;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: var(--fs-15);
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  border: none;
  white-space: nowrap;
  transition:
    background var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out),
    transform var(--dur-instant) var(--ease-out);
}
.btn:active { transform: scale(0.97); }

.btn-lg {
  padding: 14px 32px;
  font-size: var(--fs-16);
  border-radius: 10px;
}

.btn-block { width: 100%; }

.btn-primary {
  background: var(--accent);
  color: var(--accent-fg);
  box-shadow: var(--shadow-xs);
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:active { background: var(--accent-press); }

/* Used inside the dark hero — lighter teal so it reads clearly */
.btn-hero {
  background: var(--teal-400);
  color: var(--teal-950);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.1), var(--shadow-sm);
}
.btn-hero:hover { background: var(--teal-300); }
.btn-hero:active { background: var(--teal-200); transform: scale(0.97); }

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--fg-1);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-subtle);
}
.btn-secondary:hover { background: var(--slate-50); }

/* ──────────────────────────────────────────────
   NAV
────────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 80px);
  height: 64px;
  background: rgba(251, 249, 244, 0.88);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-wordmark {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-wordmark img {
  height: 30px;
  width: auto;
  display: block;
}

/* ──────────────────────────────────────────────
   HERO
────────────────────────────────────────────── */
.hero {
  background:
    radial-gradient(ellipse at 15% 0%, var(--teal-700) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 100%, var(--teal-900) 0%, transparent 50%),
    var(--slate-900);
  padding: clamp(64px, 10vw, 112px) 0;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--space-16);
  align-items: center;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-6);
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(var(--fs-40), 6.5vw, var(--fs-64));
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  color: #F2EEE2;
}

.hero-headline em {
  font-style: italic;
  color: var(--iris-300);
  font-style: italic;
}

.hero-sub {
  font-size: var(--fs-18);
  line-height: var(--lh-relaxed);
  color: rgba(242, 238, 226, 0.72);
  max-width: 460px;
}

.hero-mascot {
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero-mascot img {
  width: 100%;
  max-width: 300px;
  height: auto;
  filter: drop-shadow(0 24px 48px rgba(91, 79, 207, 0.4));
}

/* Spectrum stripe below hero */
.spectrum-bar {
  height: 5px;
  overflow: hidden;
  display: flex;
}
.spectrum-bar img {
  width: 100%;
  height: 5px;
  object-fit: cover;
  object-position: center;
}

/* ──────────────────────────────────────────────
   SECTION SHARED
────────────────────────────────────────────── */
section { padding: var(--space-24) 0; }

.section-eyebrow {
  margin-bottom: var(--space-3);
  color: var(--accent);
}

.section-title {
  margin-bottom: var(--space-5);
  font-family: var(--font-display);
  font-size: clamp(var(--fs-28), 4vw, var(--fs-48));
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--fg-1);
}

.section-sub {
  color: var(--fg-2);
  font-size: var(--fs-18);
  line-height: var(--lh-relaxed);
  max-width: 560px;
  margin-bottom: var(--space-12);
}

/* ──────────────────────────────────────────────
   HOW IT WORKS
────────────────────────────────────────────── */
.how-it-works {
  background: var(--bg-sunken);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.steps {
  display: grid;
  grid-template-columns: 1fr 40px 1fr 40px 1fr;
  gap: 0;
  align-items: start;
  margin-top: var(--space-10);
}

.step {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.step-num {
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  font-weight: 500;
  color: var(--accent);
  letter-spacing: var(--tracking-caps);
  display: block;
  margin-bottom: var(--space-1);
}

.step-title {
  color: var(--fg-1);
  font-size: var(--fs-20);
  font-weight: 600;
}

.step-desc {
  color: var(--fg-2);
  font-size: var(--fs-15);
  line-height: var(--lh-relaxed);
  max-width: 280px;
}

.step-arrow {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 32px;
  color: var(--border-default);
  font-size: var(--fs-18);
  user-select: none;
  flex-shrink: 0;
}

/* ──────────────────────────────────────────────
   FEATURES
────────────────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-10);
}

.feature-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: box-shadow var(--dur-fast) var(--ease-out);
}
.feature-card:hover { box-shadow: var(--shadow-md); }

/* Deep Sight card — mystic tint */
.feature-card--mystic {
  background: linear-gradient(160deg, var(--iris-50) 0%, var(--cream-100) 100%);
  border-color: color-mix(in oklab, var(--iris-300) 30%, transparent);
}

.feature-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  border-radius: var(--radius-md);
  color: var(--accent);
  flex-shrink: 0;
}

.feature-icon--mystic {
  background: var(--mystic-soft);
  color: var(--mystic);
  font-size: var(--fs-18);
  font-weight: 400;
}

.feature-title {
  color: var(--fg-1);
  font-size: var(--fs-18);
  font-weight: 600;
  line-height: var(--lh-snug);
}

.feature-desc {
  color: var(--fg-2);
  font-size: var(--fs-15);
  line-height: var(--lh-relaxed);
  flex: 1;
}

.feature-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-12);
  font-weight: 600;
  color: var(--mystic);
  margin-top: auto;
  padding-top: var(--space-2);
}

/* ──────────────────────────────────────────────
   PRICING
────────────────────────────────────────────── */
.pricing { background: var(--bg-sunken); }

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  max-width: 760px;
  margin-top: var(--space-10);
}

.pricing-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

/* Pro card — premium gold gradient */
.pricing-card--premium {
  background: linear-gradient(160deg, var(--gold-50) 0%, var(--gold-100) 100%);
  border-color: color-mix(in oklab, var(--gold-400) 35%, transparent);
  box-shadow: var(--shadow-md);
}

.pricing-tier {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-sans);
  font-size: var(--fs-12);
  font-weight: 600;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--fg-2);
}

.premium-star {
  color: var(--premium);
}

.pricing-price-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.pricing-price {
  font-family: var(--font-display);
  font-size: var(--fs-48);
  line-height: 1;
  color: var(--fg-1);
  letter-spacing: var(--tracking-tight);
}

.pricing-per {
  font-family: var(--font-sans);
  font-size: var(--fs-18);
  font-weight: 400;
  color: var(--fg-2);
}

.pricing-alt {
  font-size: var(--fs-13);
  color: var(--fg-3);
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--fs-14);
  color: var(--fg-2);
  line-height: var(--lh-normal);
}

.pricing-features li::before {
  content: "—";
  color: var(--accent);
  flex-shrink: 0;
  font-weight: 700;
  line-height: var(--lh-normal);
}

.pricing-card--premium .pricing-features li::before {
  color: var(--premium);
}

.pricing-note {
  margin-top: var(--space-6);
  font-size: var(--fs-13);
  color: var(--fg-3);
  max-width: 560px;
}

/* ──────────────────────────────────────────────
   FOOTER
────────────────────────────────────────────── */
.site-footer {
  padding: var(--space-8) 0;
  border-top: 1px solid var(--border-subtle);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-copy {
  font-size: var(--fs-13);
  color: var(--fg-3);
}

.footer-links {
  display: flex;
  gap: var(--space-6);
  list-style: none;
}

.footer-links a {
  font-size: var(--fs-13);
  color: var(--fg-3);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}
.footer-links a:hover { color: var(--fg-1); }

/* ──────────────────────────────────────────────
   RESPONSIVE
────────────────────────────────────────────── */
@media (max-width: 900px) {
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-mascot {
    order: -1;
  }
  .hero-mascot img {
    max-width: 200px;
  }
  .hero-text {
    align-items: center;
  }
  .hero-sub {
    max-width: 100%;
  }
  .steps {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  .step-arrow { display: none; }
  .step-desc { max-width: 100%; }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}
