/**
 * Piper Marketing Site — Shared Styles
 * =====================================
 * Brand: Piper Color Guide v1 (March 2026)
 * Palette: All-dark navy backgrounds, Piper Gold primary accent
 * Typography: Barlow Condensed + Barlow
 * Pattern: Grid overlays, bordered components, structured editorial
 *
 * Google Fonts link for each HTML:
 *   Barlow Condensed: 400,600,700,900
 *   Barlow: 400,500,600
 */

/* ===== DESIGN TOKENS ===== */
:root {
  /* Backgrounds */
  --bg-base:          #0A0F1E;
  --bg-section:       #0D1526;
  --bg-surface:       #111D33;
  --bg-elevated:      #182D45;
  --bg-input:         #0B1322;

  /* Borders */
  --border:           #1A2B47;
  --border-subtle:    #132037;
  --border-strong:    #243A5C;

  /* Accent */
  --accent:           #F5A623;
  --accent-hover:     #C8821A;
  --accent-muted:     #D4A03A;
  --accent-soft:      #FEF9E7;
  --accent-secondary: #3B6EF5;

  /* Text */
  --text-primary:     #FFFFFF;
  --text-secondary:   #8FA3BF;
  --text-muted:       #7A94AD;
  --text-inverse:     #0A0F1E;
  --text-on-accent:   #0A0F1E;

  /* Feedback */
  --feedback-error:   #D94F4F;
  --feedback-success: #79B894;
  --feedback-success-soft: #E6F4EC;
  --feedback-warning: #E6943A;
  --feedback-info:    #5B8FE6;

  /* Interactive */
  --interactive-hover: #2A5AD4;
  --interactive-muted: #2A4A7A;

  /* Typography */
  --font-wordmark: 'Syne', sans-serif;
  --font-heading:  'Barlow Condensed', sans-serif;
  --font-body:     'Barlow', sans-serif;

}

/* ===== BASE RESET ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-base);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }

body > * {
  position: relative;
  z-index: 1;
}

/* ===== SCROLL PROGRESS ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-hover) 100%);
  z-index: 999;
  transform-origin: left;
  transition: transform 0.1s ease-out;
}

/* ===== HEADER ===== */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 56px;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 15, 30, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.logo-section { display: flex; align-items: center; text-decoration: none; }
.logo-section img { height: 32px; width: auto; }

/* Text-based PIPER logo — Syne 800 per brand guidelines */
.logo-text {
  font-family: 'Syne', sans-serif;
  font-size: 28px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1;
}

.logo-text .tm {
  font-size: 0.4em;
  vertical-align: super;
  font-weight: 400;
  opacity: 0.5;
  display: inline-block;
  text-decoration: none !important;
  border-bottom: none !important;
}

.logo-text-gold {
  color: var(--accent);
}

.logo-descriptor {
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-left: 12px;
  padding-left: 12px;
  border-left: 1px solid var(--border);
  line-height: 1;
}

/* Footer logo */
.footer-brand .logo-text {
  font-size: 24px;
  margin-bottom: 16px;
  display: inline-block;
}

.nav-links { display: flex; align-items: center; gap: 0; }

.nav-link {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-primary);
  padding: 19px 16px;
  transition: color 0.2s;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.nav-link:hover { color: var(--text-secondary); }
.nav-link.active { color: var(--accent); border-bottom-color: var(--accent); }

.nav-link.secondary {
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 7px 14px;
  margin-left: 12px;
  border-bottom: 1px solid var(--accent);
  transition: all 0.2s;
}
.nav-link.secondary:hover {
  color: var(--text-primary);
  border-color: var(--text-muted);
}

.nav-link.cta {
  background: var(--accent);
  color: var(--bg-base);
  padding: 7px 18px;
  margin-left: 8px;
  font-weight: 700;
  border: none;
  transition: background 0.2s;
}
.nav-link.cta:hover { background: var(--accent-hover); }

/* ===== MOBILE MENU ===== */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px; height: 32px;
  background: none; border: none; cursor: pointer;
  padding: 4px; z-index: 1001;
}
.mobile-menu-btn span {
  display: block; width: 22px; height: 1.5px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: all 0.3s ease;
}
.mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
  display: none;
  position: fixed; inset: 0;
  background: var(--bg-base);
  z-index: 1000;
  padding: 72px 30px 40px;
  flex-direction: column; gap: 0;
}
.mobile-menu.active { display: flex; }
.mobile-menu a {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--text-primary); }
.mobile-menu a.active { color: var(--accent); }
.mobile-menu a.cta {
  margin-top: 24px;
  background: var(--accent);
  color: var(--bg-base);
  text-align: center;
  padding: 16px;
  border: none;
  font-weight: 700;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 28px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-base);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-dark {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-dark:hover {
  background: var(--accent);
  color: var(--bg-base);
  border-color: var(--accent);
}

/* ===== SECTION LABEL WITH RULE ===== */
.section-label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 0px;
}

.section-label-text {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

.section-label-rule {
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Gold variant for emphasis */
.section-label--gold .section-label-text { color: var(--accent); }

/* ===== SECTION TITLE ===== */
.section-title {
  font-family: var(--font-heading);
  font-size: 52px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.section-title span {
  color: var(--accent);
}

.section-intro {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 14px;
  max-width: 540px;
  font-weight: 500;
}

/* ===== EYEBROW ===== */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.eyebrow-text {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ===== BADGE ===== */
.badge {
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 12px;
}

/* ===== ACCENT BAR ===== */
.accent-bar {
  height: 4px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-hover) 40%, transparent 100%);
}

/* ===== FEATURE TABLE ===== */
.feature-group { margin-bottom: 5px; }

.feature-table-header {
  background: var(--bg-base);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 2px solid var(--accent);
}

.feature-table-header span {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.feature-table-header-rule {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.feature-table {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-top: none;
}

.feature-row {
  display: grid;
  grid-template-columns: 44px 1fr;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

.feature-row:last-child { border-bottom: none; }
.feature-row:hover { background: rgba(26, 43, 71, 0.5); }

.feature-row-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--border);
  padding: 12px 0;
}

.feature-row-body { padding: 12px 20px; }

.feature-row-body h3 {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.feature-row-body p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Muted feature row */
.feature-row.muted h3 { color: var(--text-muted); }
.feature-row.muted p { color: var(--text-muted); opacity: 0.7; }

/* ===== STEP ROWS ===== */
.steps-table {
  border: 1px solid var(--border);
  background: var(--bg-surface);
  border-radius: 6px;
  overflow: hidden;
}

.step-row {
  display: grid;
  grid-template-columns: 52px 1fr;
  border-bottom: 1px solid var(--border);
}

.step-row:last-child { border-bottom: none; }

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--border);
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 900;
  color: var(--accent);
  padding: 14px 0;
}

.step-text {
  padding: 14px 24px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
  display: flex;
  align-items: center;
}

/* ===== DATA NOTE ===== */
.data-note {
  border: 1px solid var(--border);
  background: var(--bg-surface);
  border-radius: 6px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 52px 1fr;
}

.data-note-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--border);
  background: var(--bg-section);
  padding: 0 16px;
}

.data-note-text {
  padding: 12px 18px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.data-note-text strong { color: var(--text-primary); }

/* ===== PERKS GRID ===== */
.perks-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  border-radius: 6px;
  overflow: hidden;
}

.perk-card {
  padding: 20px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.perk-card:nth-child(2n) { border-right: none; }
.perk-card:nth-last-child(-n+2) { border-bottom: none; }

.perk-icon { flex-shrink: 0; margin-top: 2px; }

.perk-text strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.perk-text span {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ===== INTRO BLOCK (left rule + text) ===== */
.intro-block {
  display: grid;
  grid-template-columns: 4px 1fr;
  gap: 0 28px;
  margin: 20px 0;
  align-items: stretch;
}

.intro-rule { background: var(--accent-secondary); }

.intro-text p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-secondary);
}

.intro-text p + p { margin-top: 10px; }

.intro-text strong { color: var(--text-primary); }

/* ===== TIMELINE TABLE ===== */
.timeline-table {
  background: var(--bg-surface);
  border: 1px solid var(--border);
}

.timeline-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  border-bottom: 1px solid var(--border);
  align-items: stretch;
}

.timeline-row:last-child { border-bottom: none; }

.timeline-label {
  padding: 11px 20px;
  border-right: 1px solid var(--border);
  display: flex;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--bg-section);
}

.timeline-desc {
  padding: 11px 24px;
  font-size: 14px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
}

/* ===== DIVIDER ===== */
hr.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2px 0;
}

/* ===== ASK NOTE (accent bar) ===== */
.ask-note {
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-top: none;
  padding: 16px 24px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  text-align: center;
}

/* ===== STATS GRID ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.stat-card {
  background: var(--bg-surface);
  padding: 32px 28px;
  text-align: center;
  transition: background 0.3s;
}

.stat-card:hover { background: var(--bg-section); }

.stat-value {
  font-family: var(--font-heading);
  font-size: 44px;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 10px;
}

.stat-label {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.stat-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ===== CARDS (bordered, dark) ===== */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 28px;
  transition: transform 0.15s ease;
}

.card:hover { transform: translateY(-3px); }

.card-number {
  font-family: var(--font-heading);
  font-size: 44px;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 16px;
  opacity: 0.4;
}

.card h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ===== ROTATING CTA TEXT ===== */
.rotating-text-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  line-height: 1;
  gap: 0;
}

.rotating-top-wrapper {
  position: relative;
  height: 56px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rotating-top {
  position: absolute;
  width: 100%;
  text-align: center;
  font-family: var(--font-heading);
  font-size: 52px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  line-height: 1;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.rotating-top.active {
  opacity: 1;
}

.rotating-top.fading {
  opacity: 0;
}

.rotating-text-bottom {
  font-family: var(--font-heading);
  font-size: 52px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--accent);
  line-height: 1;
  display: block;
  text-align: center;
}

@media (max-width: 768px) {
  .rotating-top-wrapper {
    height: 40px;
  }

  .rotating-top,
  .rotating-text-bottom {
    font-size: 36px;
  }
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--bg-base);
  border-top: 1px solid var(--border);
  padding: 48px;
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-brand { max-width: 280px; }
.footer-brand img { height: 28px; margin-bottom: 16px; }

.footer-brand p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.footer-links h4 {
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.footer-links a {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text-primary); }

.footer-bottom {
  max-width: 1100px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-secondary);
}

.footer-bottom a {
  color: var(--text-secondary);
  margin-left: 24px;
  transition: color 0.2s;
}
.footer-bottom a:hover { color: var(--text-primary); }

/* ===== ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .site-header { padding: 0 20px; height: 52px; }
  .nav-links { display: none; }
  .mobile-menu-btn { display: flex; }
  .logo-descriptor { display: none; }

  .site-footer { padding: 40px 24px; }
  .footer-content { flex-direction: column; }
  .footer-bottom {
    flex-direction: column; gap: 16px; text-align: center;
  }
  .footer-bottom a { margin: 0 12px; }

  .section-title { font-size: 36px; }

  .perks-grid { grid-template-columns: 1fr; }
  .perk-card { border-right: none !important; }
  .perk-card:not(:last-child) { border-bottom: 1px solid var(--border) !important; }

  .stats-grid { grid-template-columns: 1fr; }

  .timeline-row { grid-template-columns: 90px 1fr; }
}

/* ===== PRINT ===== */
@media print {
  .site-header, .mobile-menu, .mobile-menu-btn, .scroll-progress { display: none !important; }
  body { background: white; color: black; }
}

/* ===== THEME PICKER ===== */
.theme-picker {
  position: relative;
  display: flex;
  align-items: center;
  margin-left: 8px;
}
.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  padding: 6px;
  line-height: 0;
  transition: color 0.2s;
}
.theme-toggle:hover { color: var(--text-primary); }

.theme-picker-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  min-width: 130px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  transform: translateY(-4px);
  z-index: 200;
  backdrop-filter: blur(12px);
  padding: 4px;
}
.theme-picker-menu.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.theme-picker-menu button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 12px;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  background: none;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.theme-picker-menu button:hover {
  color: var(--text-primary);
  background: var(--bg-elevated);
}
.theme-picker-menu button.active {
  color: var(--accent);
}

/* ===== LIGHT THEME ===== */
html[data-theme="light"] {
  /* Backgrounds */
  --bg-base:          #F5F2EB;
  --bg-section:       #EAE5DC;
  --bg-surface:       #FFFFFF;
  --bg-elevated:      #FFFFFF;
  --bg-input:         #FAF8F4;
  /* Borders */
  --border:           #D4CCC0;
  --border-subtle:    #E2DDD5;
  --border-strong:    #B8AFA3;
  /* Accent */
  --accent:           #8A351D;
  --accent-hover:     #6B2716;
  --accent-muted:     #7A260C;
  --accent-soft:      #FEF0CC;
  --accent-secondary: #1A52D8;
  /* Text */
  --text-primary:     #1E2E40;
  --text-secondary:   #3A5068;
  --text-muted:       #7A94A8;
  --text-inverse:     #FFFFFF;
  --text-on-accent:   #F5F2EB;
  /* Feedback */
  --feedback-error:   #B83030;
  --feedback-success: #79B894;
  --feedback-success-soft: #E6F4EC;
  --feedback-warning: #C47A20;
  --feedback-info:    #3B6EF5;
  /* Interactive */
  --interactive-hover: #1445B5;
  --interactive-muted: #8FADD4;
}
html[data-theme="light"] body { background: #F5F2EB; color: #1E2E40; }
html[data-theme="light"] .site-header { background: rgba(245,242,235,0.92); border-bottom-color: #D4CCC0; }
html[data-theme="light"] .logo-text { color: #1E2E40; }
html[data-theme="light"] .nav-link { color: #1E2E40; }
html[data-theme="light"] .nav-link:hover { color: #3A5068; }
html[data-theme="light"] .nav-dropdown-trigger { color: #1E2E40; }
html[data-theme="light"] .nav-dropdown-trigger:hover { color: #3A5068; }
html[data-theme="light"] .nav-dropdown-content {
  background: #FFFFFF;
  border-color: #D4CCC0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
html[data-theme="light"] .nav-dropdown-content a { color: #3A5068; border-bottom-color: #D4CCC0; }
html[data-theme="light"] .nav-dropdown-content a:hover { color: #8A351D; background: #EAE5DC; }
html[data-theme="light"] .mobile-menu-btn span { background: #1E2E40; }
html[data-theme="light"] .mobile-menu { background: #F5F2EB; }
html[data-theme="light"] .mobile-menu a { color: #7A94A8; border-bottom-color: #D4CCC0; }
html[data-theme="light"] .mobile-menu a:hover { color: #1E2E40; }
html[data-theme="light"] .mobile-menu a.active { color: #8A351D; }
html[data-theme="light"] .mobile-menu a.cta { background: #8A351D; color: #F5F2EB; }
html[data-theme="light"] .hero-orb--1 { background: radial-gradient(circle, rgba(138,53,29,0.22) 0%, transparent 65%); }
html[data-theme="light"] .hero-orb--2 { background: radial-gradient(circle, rgba(26,82,216,0.14) 0%, transparent 65%); }
html[data-theme="light"] .hero-orb--3 { background: radial-gradient(circle, rgba(138,53,29,0.12) 0%, transparent 65%); }
html[data-theme="light"] .btn-primary { color: #F5F2EB !important; }
html[data-theme="light"] .nav-link.cta { color: #F5F2EB !important; }
html[data-theme="light"] .sticky-cta { background: rgba(245,242,235,0.94); border-top-color: #D4CCC0; }
html[data-theme="light"] .sticky-cta-text { color: #3A5068; }
html[data-theme="light"] .demo-hint { color: #8A351D; }
html[data-theme="light"] .sticky-cta .btn { color: #F5F2EB !important; }
html[data-theme="light"] .btn-ghost { color: #3A5068; border-color: #D4CCC0; }
html[data-theme="light"] .btn-ghost:hover { border-color: #8A351D; color: #8A351D; }
html[data-theme="light"] .feature-row:hover { background: rgba(0,0,0,0.04); }
html[data-theme="light"] .demo-table .summary.final td { background: rgba(0,0,0,0.04); color: #1E2E40; }
html[data-theme="light"] .theme-toggle { color: #3A5068; }
html[data-theme="light"] .theme-toggle:hover { color: #1E2E40; }
html[data-theme="light"] .theme-picker-menu { background: #FFFFFF; border-color: #D4CCC0; }
html[data-theme="light"] .theme-picker-menu button { color: #3A5068; }
html[data-theme="light"] .theme-picker-menu button:hover { color: #1E2E40; background: #EAE5DC; }
html[data-theme="light"] .theme-picker-menu button.active { color: #8A351D; }

/* ===== NAV DROPDOWN ===== */
.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-dropdown-trigger {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-primary);
  padding: 19px 16px;
  cursor: pointer;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 5px;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  background: none;
  user-select: none;
}
.nav-dropdown-trigger:hover { color: var(--text-secondary); }
.nav-dropdown-trigger.active { color: var(--accent); border-bottom-color: var(--accent); }

.nav-dropdown-trigger svg {
  transition: transform 0.2s;
}
.nav-dropdown:hover .nav-dropdown-trigger svg {
  transform: rotate(180deg);
}

.nav-dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-top: none;
  min-width: 180px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  transform: translateY(-4px);
  z-index: 200;
  backdrop-filter: blur(12px);
}

.nav-dropdown:hover .nav-dropdown-content,
.nav-dropdown:focus-within .nav-dropdown-content {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.nav-dropdown-content a {
  display: block;
  padding: 12px 18px;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-primary);
  transition: color 0.15s, background 0.15s;
  border-bottom: 1px solid var(--border);
}
.nav-dropdown-content a:last-child { border-bottom: none; }
.nav-dropdown-content a:hover { color: var(--accent); background: var(--bg-surface); }
.nav-dropdown-content a.active { color: var(--accent); }

.nav-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2px 6px;
  margin-left: 8px;
  vertical-align: middle;
  line-height: 1.4;
  border-radius: 4px;
}
.nav-badge--beta {
  background: rgba(245,166,35,0.15);
  color: var(--accent);
  border: 1px solid rgba(245,166,35,0.3);
}
.nav-badge--soon {
  background: rgba(74,99,122,0.2);
  color: var(--text-muted);
  border: 1px solid rgba(74,99,122,0.3);
}
html[data-theme="light"] .nav-badge--beta {
  background: rgba(138,53,29,0.1);
  color: #8A351D;
  border-color: rgba(138,53,29,0.25);
}
html[data-theme="light"] .nav-badge--soon {
  background: rgba(0,0,0,0.06);
  color: #7A94A8;
  border-color: rgba(0,0,0,0.12);
}
