/* ─────────────────────────────────────────
   PeptidePilot — Custom Theme
   Font: Instrument Serif (display) + DM Sans (body)
   Palette: Deep Navy + Amber + Ivory
───────────────────────────────────────── */

:root {
  --nav-height: 60px;
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --bg: #0f1b2d;
  --bg-secondary: #131f35;
  --fg: #f5f0e8;
  --fg-secondary: #bfb9ae;
  --fg-muted: #7a7570;
  --accent: #d4a843;
  --accent-dim: #9e7d32;
  --border: rgba(212, 168, 67, 0.15);
  --card-bg: #131f35;
  --section-pad: 100px 24px;
  --max-w: 960px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent-dim); border-radius: 3px; }

::selection { background: var(--accent); color: var(--bg); }

/* NAV */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  border-bottom: 1px solid var(--border);
  background: rgba(15, 27, 45, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--fg);
  letter-spacing: 0.01em;
}
.nav-tag {
  font-size: 0.75rem;
  color: var(--fg-muted);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* HERO */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-height) + 60px) 24px 100px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(212, 168, 67, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 20%, rgba(212, 168, 67, 0.04) 0%, transparent 50%);
  pointer-events: none;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 200px;
  background: linear-gradient(to bottom, rgba(212,168,67,0.03) 0%, transparent 100%);
  pointer-events: none;
}
.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
  z-index: 1;
  width: 100%;
}
.hero-eyebrow {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--fg);
  margin-bottom: 28px;
  max-width: 780px;
}
.hero-sub {
  font-size: 1.125rem;
  color: var(--fg-secondary);
  line-height: 1.7;
  max-width: 600px;
  font-weight: 300;
}

/* SHARED SECTION STYLES */
.section-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.section-headline {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--fg);
}
.section-sub {
  color: var(--fg-secondary);
  font-size: 1.0625rem;
  margin-top: 16px;
  font-weight: 300;
}

/* WHY */
.why {
  background: var(--bg-secondary);
  padding: var(--section-pad);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.why-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.why-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.why-headline {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  font-weight: 400;
  line-height: 1.25;
  color: var(--fg);
  margin-bottom: 24px;
  max-width: 780px;
}
.why-sub {
  color: var(--fg-secondary);
  font-size: 1.0625rem;
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 680px;
  font-weight: 300;
}
.why-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pill {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.8125rem;
  color: var(--accent);
  font-weight: 500;
  background: rgba(212,168,67,0.04);
}

/* FEATURES */
.features {
  padding: var(--section-pad);
}
.features-header {
  max-width: var(--max-w);
  margin: 0 auto 60px;
}
.feature-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}
.feature-card {
  background: var(--card-bg);
  padding: 48px 40px;
  border: 1px solid var(--border);
  transition: border-color 0.2s ease;
}
.feature-card:hover {
  border-color: rgba(212, 168, 67, 0.35);
}
.feature-icon {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 24px;
}
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--fg);
  margin-bottom: 12px;
}
.feature-card p {
  color: var(--fg-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
  font-weight: 300;
}

/* TIMELINE */
.timeline {
  background: var(--bg-secondary);
  padding: var(--section-pad);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.timeline-header {
  max-width: var(--max-w);
  margin: 0 auto 64px;
}
.timeline-items {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.timeline-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 40px;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}
.timeline-item:last-child {
  border-bottom: none;
}
.timeline-date {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.04em;
  padding-top: 4px;
}
.timeline-highlight {
  color: #e8b94a;
}
.timeline-content h3 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 400;
  color: var(--fg);
  margin-bottom: 10px;
  line-height: 1.3;
}
.timeline-content p {
  color: var(--fg-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
  font-weight: 300;
  max-width: 560px;
}

/* PRICING */
.pricing {
  padding: var(--section-pad);
}
.pricing-header {
  max-width: var(--max-w);
  margin: 0 auto 56px;
}
.pricing-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.pricing-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 48px 40px;
}
.pricing-pro {
  border-color: rgba(212,168,67,0.4);
  position: relative;
}
.pricing-tier {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.pricing-price {
  font-size: 3rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 32px;
  font-family: var(--font-body);
}
.pricing-price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--fg-muted);
}
.pricing-features {
  list-style: none;
}
.pricing-features li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
  color: var(--fg-secondary);
  font-weight: 300;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.pricing-features li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 8px;
}

/* CLOSING */
.closing {
  padding: 100px 24px;
  text-align: center;
  background: linear-gradient(to bottom, var(--bg) 0%, var(--bg-secondary) 100%);
}
.closing-inner {
  max-width: 700px;
  margin: 0 auto;
}
.closing-overline {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.75rem);
  font-weight: 400;
  line-height: 1.25;
  color: var(--fg);
}

/* FOOTER */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 24px;
  text-align: center;
  background: var(--bg-secondary);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--fg);
  display: block;
  margin-bottom: 12px;
}
.footer-sub {
  color: var(--fg-muted);
  font-size: 0.875rem;
  margin-bottom: 20px;
  font-weight: 300;
}
.footer-legal {
  color: var(--fg-muted);
  font-size: 0.75rem;
  line-height: 1.6;
  max-width: 500px;
  margin: 0 auto;
  font-weight: 300;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .feature-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .timeline-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .hero-headline br { display: none; }
  .feature-card { padding: 36px 28px; }
  .pricing-card { padding: 36px 28px; }
}
@media (max-width: 480px) {
  :root { --section-pad: 72px 20px; }
  .hero { padding-bottom: 72px; }
}