/* RavePilot marketing site — shared styles */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --ink:      oklch(0.22 0.02 264);
  --ink-soft: oklch(0.45 0.015 264);
  --ink-faint:oklch(0.58 0.012 264);
  --paper:    oklch(0.988 0.003 250);
  --paper-2:  oklch(0.965 0.006 260);
  --card:     oklch(1 0 0);
  --hair:     oklch(0.9 0.008 264);
  --night:    oklch(0.175 0.02 264);
  --night-2:  oklch(0.23 0.022 264);
  --indigo:   oklch(0.55 0.20 268);
  --indigo-2: oklch(0.66 0.17 264);
  --indigo-3: oklch(0.76 0.155 266);
  --indigo-bg:oklch(0.94 0.035 268);
  --amber:    oklch(0.78 0.14 75);
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container { max-width: 1140px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); }

/* ── nav ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: oklch(0.988 0.003 250 / 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid oklch(0.9 0.008 264 / 0.6);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand .mk { width: 32px; height: 32px; display: block; }
.brand .wm { font-family: var(--font-display); font-size: 20px; letter-spacing: -0.02em; line-height: 1; }
.brand .wm .a { font-weight: 700; }
.brand .wm .b { font-weight: 500; color: var(--ink-soft); }

.nav-links { display: flex; gap: 6px; align-items: center; }
.nav-signin { text-decoration: none; color: var(--ink-soft); font-size: 14px; font-weight: 700; padding: 8px 12px; border-radius: 9px; transition: color .15s, background .15s; }
.nav-signin:hover { color: var(--ink); background: var(--paper-2); }
.nav-links a, .nav-links .dd-btn {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 14.5px;
  font-weight: 600;
  font-family: var(--font-body);
  padding: 8px 13px;
  border-radius: 9px;
  transition: color .15s, background .15s;
  border: 0;
  background: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-links a:hover, .nav-links .dd-btn:hover { color: var(--ink); background: var(--paper-2); }
.nav-links a.active, .nav-links .dd-btn.active { color: var(--indigo); }

.nav-dd { position: relative; }
.nav-dd .chev { transition: transform .18s; margin-top: 1px; }
.nav-dd:hover .chev { transform: rotate(180deg); }
.dd-wrap {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding-top: 12px;
  opacity: 0;
  visibility: hidden;
  translate: 0 -6px;
  transition: opacity .18s, translate .18s, visibility .18s;
  z-index: 60;
}
.nav-dd:hover .dd-wrap, .nav-dd:focus-within .dd-wrap { opacity: 1; visibility: visible; translate: 0 0; }
.dd-menu {
  background: var(--card);
  border: 1px solid var(--hair);
  border-radius: 20px;
  box-shadow:
    0 2px 6px -2px oklch(0.3 0.03 264 / 0.12),
    0 30px 60px -24px oklch(0.3 0.06 268 / 0.35);
  padding: 10px;
  display: flex;
  gap: 10px;
}
.dd-col { display: flex; flex-direction: column; gap: 2px; min-width: 248px; }
.dd-item {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  text-decoration: none;
  padding: 12px 13px;
  border-radius: 13px;
  transition: background .13s;
}
.dd-item:hover { background: var(--paper-2); }
.dd-item .di {
  flex: none;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--indigo-bg);
  color: var(--indigo);
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s;
}
.dd-item:hover .di { transform: scale(1.07); }
.dd-item .di svg { width: 18px; height: 18px; }
.dd-item b { display: block; font: 700 14px/1.2 var(--font-display); letter-spacing: -0.01em; color: var(--ink); }
.dd-item.active b { color: var(--indigo); }
.dd-item span { display: block; font-size: 12.5px; line-height: 1.45; color: var(--ink-faint); margin-top: 3px; }

/* featured card inside dropdown */
.dd-feature {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  width: 218px;
  border-radius: 14px;
  padding: 18px 18px 16px;
  text-decoration: none;
  background:
    radial-gradient(120% 90% at 80% -10%, oklch(0.42 0.14 268 / 0.8), transparent 65%),
    linear-gradient(180deg, var(--night-2), var(--night));
  color: white;
  position: relative;
  overflow: hidden;
  transition: filter .15s;
}
.dd-feature:hover { filter: brightness(1.12); }
.dd-feature .mk { width: 30px; height: 30px; margin-bottom: 26px; }
.dd-feature b { font: 700 14.5px/1.25 var(--font-display); letter-spacing: -0.01em; }
.dd-feature span { font-size: 12px; line-height: 1.45; color: oklch(0.78 0.015 264); }
.dd-feature .tag-go {
  margin-top: 10px;
  font: 700 12px var(--font-display);
  color: var(--indigo-3);
}

/* mobile panel section labels */
.nav-panel .sec {
  font: 700 11px var(--font-display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding: 16px 2px 6px;
  border-bottom: 0;
}

.nav-ctas { display: flex; gap: 10px; align-items: center; }

.nav-burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1.5px solid var(--hair);
  border-radius: 10px;
  background: var(--card);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  flex: none;
}
.nav-panel {
  display: none;
  flex-direction: column;
  border-top: 1px solid oklch(0.9 0.008 264 / 0.6);
  padding: 8px clamp(20px, 4vw, 40px) 14px;
}
.nav.open .nav-panel { display: flex; }
.nav-panel a {
  text-decoration: none;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  padding: 14px 2px;
  border-bottom: 1px solid var(--paper-2);
}
.nav-panel a:last-child { border-bottom: 0; }

/* ── buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: 600 15px/1 var(--font-display);
  letter-spacing: -0.01em;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  border-radius: 11px;
  padding: 0 20px;
  height: 46px;
  transition: transform .15s, filter .2s, background .15s, border-color .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  color: white;
  background: linear-gradient(180deg, var(--indigo-2), var(--indigo));
  box-shadow: 0 6px 16px -6px oklch(0.5 0.2 268 / 0.55), inset 0 1px 0 oklch(1 0 0 / 0.22);
}
.btn-primary:hover { filter: brightness(1.07); transform: translateY(-1px); }
.btn-ghost {
  color: var(--ink);
  background: transparent;
  border: 1.5px solid var(--hair);
}
.btn-ghost:hover { border-color: var(--ink-soft); background: var(--card); }
.btn-lg { height: 52px; padding: 0 26px; font-size: 16px; }
.btn-dark-ghost {
  color: oklch(0.95 0.005 264);
  background: oklch(1 0 0 / 0.07);
  border: 1px solid oklch(1 0 0 / 0.16);
}
.btn-dark-ghost:hover { background: oklch(1 0 0 / 0.12); }

/* ── type helpers ── */
.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--indigo);
  margin-bottom: 18px;
}
.h-display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.04;
  text-wrap: balance;
}
.h-section {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 4.4vw, 44px);
  letter-spacing: -0.025em;
  line-height: 1.08;
  text-wrap: balance;
}
.lead {
  font-size: clamp(16px, 1.9vw, 19px);
  line-height: 1.6;
  color: var(--ink-soft);
  text-wrap: pretty;
}

section { padding: clamp(64px, 9vw, 110px) 0; }
.section-head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head .lead { margin-top: 18px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ── dark band sections ── */
.band-dark {
  background:
    radial-gradient(800px 500px at 70% -20%, oklch(0.38 0.12 268 / 0.5), transparent 60%),
    linear-gradient(180deg, var(--night-2), var(--night));
  color: oklch(0.95 0.005 264);
}
.band-dark .lead { color: oklch(0.78 0.015 264); }
.band-dark .eyebrow { color: var(--indigo-3); }

/* ── cards ── */
.card {
  background: var(--card);
  border: 1px solid var(--hair);
  border-radius: 18px;
  box-shadow: 0 1px 2px oklch(0.3 0.02 264 / 0.04), 0 12px 32px -18px oklch(0.3 0.04 264 / 0.18);
}

/* ── platform chips ── */
.platforms { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  font-family: var(--font-display);
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid var(--hair);
  background: var(--card);
  color: var(--ink-soft);
}
.chip .dot { width: 8px; height: 8px; border-radius: 50%; }

/* ── footer ── */
footer.site {
  background: var(--night);
  color: oklch(0.62 0.012 264);
  padding: 60px 0 36px;
  font-size: 14px;
}
footer.site .foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 36px;
}
@media (max-width: 860px) {
  footer.site .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  footer.site .foot-grid { grid-template-columns: 1fr; }
}
footer.site .brand { color: oklch(0.95 0.005 264); }
footer.site .brand .wm .b { color: oklch(0.7 0.015 264); }
footer.site .foot-about p {
  margin-top: 16px;
  font-size: 13.5px;
  line-height: 1.6;
  color: oklch(0.6 0.012 264);
  max-width: 30ch;
  text-wrap: pretty;
}
footer.site .foot-col h4 {
  font: 700 11.5px var(--font-display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: oklch(0.55 0.012 264);
  margin-bottom: 16px;
}
footer.site .foot-col nav { display: flex; flex-direction: column; gap: 11px; }
footer.site a { color: oklch(0.78 0.012 264); text-decoration: none; font-size: 13.5px; transition: color .15s; }
footer.site a:hover { color: white; }
footer.site .legal {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid oklch(1 0 0 / 0.08);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12.5px;
  color: oklch(0.5 0.012 264);
}
footer.site .legal a { font-size: 12.5px; color: inherit; }

/* ── email capture (shared) ── */
.capture {
  display: flex;
  gap: 8px;
  width: 100%;
  max-width: 460px;
  background: var(--card);
  border: 1.5px solid var(--hair);
  border-radius: 14px;
  padding: 7px;
  transition: border-color .2s, box-shadow .2s;
}
.capture:focus-within {
  border-color: var(--indigo-2);
  box-shadow: 0 0 0 4px oklch(0.6 0.15 268 / 0.13);
}
.capture input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font: 500 15.5px/1 var(--font-body);
  color: var(--ink);
  padding: 0 12px;
}
.capture input:focus { outline: none; }
.capture input::placeholder { color: var(--ink-faint); }
.capture .btn { height: 44px; }
.capture-note { margin-top: 12px; font-size: 13px; color: var(--ink-faint); min-height: 18px; }
.capture-note.err { color: oklch(0.55 0.18 25); }
.capture-note.ok { color: var(--indigo); }

.band-dark .capture { background: oklch(1 0 0 / 0.07); border-color: oklch(1 0 0 / 0.14); }
.band-dark .capture input { color: oklch(0.96 0.005 264); }
.band-dark .capture input::placeholder { color: oklch(0.62 0.015 264); }

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-inner { height: 60px; gap: 12px; }
  .nav-ctas .btn { height: 40px; padding: 0 14px; font-size: 13.5px; }
  .nav-signin { display: none; }
  .brand .mk { width: 28px; height: 28px; }
  .brand .wm { font-size: 18px; }
}
@media (min-width: 761px) {
  .nav-panel { display: none !important; }
}
@media (max-width: 520px) {
  .capture { flex-direction: column; gap: 8px; padding: 10px; }
  .capture input { padding: 12px 6px; text-align: center; }
  .capture .btn { width: 100%; }
  .btn-lg { width: 100%; }
  section { padding: 52px 0; }
  .h-section { font-size: 27px; }
  .section-head { margin-bottom: 30px; }
  .lead { font-size: 15.5px; }
  .eyebrow { font-size: 12px; margin-bottom: 12px; }
  .chip { font-size: 12.5px; padding: 8px 12px; }
}
