/* =====================================================
   ASTERIS LABS — style.css
   Design: Preview C Light II
   Fonts: Nunito (rounded) + Lora (display italic)
   Zero Firebase. Zero Next.js. Plain HTML.
===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800;900&family=Lora:ital,wght@0,400;0,700;1,400;1,600&display=swap');

:root {
  --navy: #0A1054;
  --violet: #7C3AED;
  --violet-light: #EDE9FE;
  --gold: #C9A227;
  --gold-light: #FDF6DC;
  --orange: #EA580C;
  --red: #B91C1C;
  --blue: #1D4ED8;
  --amber: #B45309;
  --ink: #0D0D12;
  --muted: #71717A;
  --subtle: #F4F4F5;
  --border: #E4E4E7;
  --white: #FFFFFF;
  --rounded: 'Nunito', sans-serif;
  --display: 'Lora', serif;
  --max: 1160px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--white);
  color: var(--ink);
  font-family: var(--rounded);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: var(--rounded); cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

/* ── LAYOUT ── */

.container { max-width: var(--max); margin: 0 auto; padding: 0 48px; }
.container-wide { max-width: 1360px; margin: 0 auto; padding: 0 48px; }
.container-narrow { max-width: 780px; margin: 0 auto; padding: 0 48px; }
.section { padding: 80px 48px; }
.section-sm { padding: 56px 48px; }

@media (max-width: 768px) {
  .container, .container-wide, .container-narrow { padding: 0 24px; }
  .section, .section-sm { padding: 56px 24px; }
}

/* ── NAVIGATION ── */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--white);
  border-bottom: 1.5px solid var(--ink);
  height: 60px;
  display: flex;
  align-items: center;
  padding: 0 48px;
  justify-content: space-between;
}

.nav-brand {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 3px;
}

.nav-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--violet);
  transform: translateY(-1px);
}

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

.nav-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 100px;
  transition: color 0.15s, background 0.15s;
  cursor: pointer;
  position: relative;
}

.nav-link:hover { color: var(--ink); background: var(--subtle); }

/* Dropdown */
.nav-dropdown { position: relative; }

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 8px;
  padding-top: 16px;
  min-width: 260px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.12);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 300;
  /* Invisible bridge fills the gap between trigger and menu */
  margin-top: 0;
}

/* Invisible top padding acts as hover bridge */
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
  background: transparent;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  pointer-events: auto;
}

.nav-dropdown-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 12px 4px;
}

.nav-dropdown-item {
  display: block;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  border-radius: 10px;
  transition: background 0.1s;
}

.nav-dropdown-item:hover { background: var(--subtle); }
.nav-dropdown-item.bold { font-weight: 800; }
.nav-dropdown-divider { height: 1px; background: var(--border); margin: 6px 8px; }

.nav-cta {
  background: var(--ink);
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
  padding: 9px 20px;
  border-radius: 100px;
  transition: opacity 0.2s;
}
.nav-cta:hover { opacity: 0.85; }

@media (max-width: 900px) {
  .site-nav { padding: 0 24px; }
  .nav-links { display: none; }
}

/* ── TYPOGRAPHY ── */

.display-xl { font-family: var(--rounded); font-size: clamp(52px, 8vw, 108px); font-weight: 900; line-height: .87; letter-spacing: -0.05em; }
.display-lg { font-family: var(--rounded); font-size: clamp(44px, 6vw, 82px); font-weight: 900; line-height: .88; letter-spacing: -0.04em; }
.display-md { font-family: var(--rounded); font-size: clamp(32px, 4.5vw, 56px); font-weight: 900; line-height: .9; letter-spacing: -0.04em; }
.display-sm { font-family: var(--rounded); font-size: clamp(24px, 3vw, 36px); font-weight: 800; line-height: .95; letter-spacing: -0.03em; }

.lede { font-family: var(--display); font-style: italic; font-size: clamp(18px, 2.2vw, 24px); line-height: 1.45; color: var(--muted); }
.label { font-size: 11px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; }
.body { font-size: 16px; font-weight: 500; line-height: 1.7; color: var(--muted); }
.body-light { font-size: 15px; font-weight: 400; line-height: 1.7; color: var(--muted); }

.italic-accent { font-family: var(--display); font-style: italic; font-weight: 400; }

/* ── BUTTONS ── */

.btn { display: inline-flex; align-items: center; justify-content: center; font-family: var(--rounded); font-weight: 800; font-size: 14px; padding: 14px 30px; border-radius: 100px; transition: all 0.2s; cursor: pointer; letter-spacing: -0.01em; }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { opacity: 0.85; }
.btn-violet { background: var(--violet); color: var(--white); }
.btn-violet:hover { opacity: 0.85; }
.btn-outline { border: 2px solid var(--border); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); }
.btn-outline-white { border: 2px solid rgba(255,255,255,0.4); color: var(--white); }
.btn-outline-white:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { opacity: 0.9; }
.btn-lg { padding: 16px 36px; font-size: 15px; }
.btn-sm { padding: 10px 20px; font-size: 13px; }

/* ── HERO (navy) ── */

.hero-navy {
  background: var(--navy);
  color: var(--white);
  padding: 100px 48px 90px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-navy::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(124,58,237,0.2) 0%, transparent 60%);
  pointer-events: none;
}

.hero-navy .label { color: rgba(255,255,255,0.5); }
.hero-navy .lede { color: rgba(255,255,255,0.8); }
.hero-navy .body { color: rgba(255,255,255,0.6); }

/* ── HERO (white split) ── */

.hero-split {
  background: var(--white);
  border-bottom: 1.5px solid var(--border);
  padding: 80px 48px;
}

.hero-split-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
}

@media (max-width: 860px) {
  .hero-split { padding: 60px 24px; }
  .hero-split-grid { grid-template-columns: 1fr; }
}

/* ── CARDS ── */

.card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}

.card:hover { box-shadow: 0 8px 40px rgba(13,13,18,0.08); transform: translateY(-2px); }
.card-top-navy { border-top: 4px solid var(--navy); }
.card-top-gold { border-top: 4px solid var(--gold); }
.card-top-violet { border-top: 4px solid var(--violet); }
.card-top-orange { border-top: 4px solid var(--orange); }
.card-top-red { border-top: 4px solid var(--red); }

/* ── INSTRUMENT GRID ── */

.inst-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--border);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
}

@media (max-width: 800px) { .inst-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .inst-grid { grid-template-columns: 1fr; } }

.inst-cell {
  background: var(--white);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: background 0.15s;
}

.inst-cell:hover { background: var(--subtle); }
.inst-dot { width: 10px; height: 10px; border-radius: 50%; margin-bottom: 2px; }
.inst-cell h4 { font-size: 16px; font-weight: 800; letter-spacing: -0.02em; }
.inst-cell p { font-size: 13px; color: var(--muted); line-height: 1.5; flex: 1; }
.inst-price { font-size: 12px; font-weight: 700; color: var(--violet); }

/* ── TWO-COLUMN EXPRESSIONS ── */

.expressions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1.5px solid var(--ink);
  border-radius: 20px;
  overflow: hidden;
}

@media (max-width: 680px) { .expressions { grid-template-columns: 1fr; } }

.expr { padding: 40px; display: flex; flex-direction: column; }
.expr:first-child { border-right: 1.5px solid var(--ink); }

@media (max-width: 680px) {
  .expr:first-child { border-right: none; border-bottom: 1.5px solid var(--ink); }
}

/* ── BADGE ── */

.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; padding: 5px 12px; border-radius: 100px; }
.badge-navy { background: var(--navy); color: var(--white); }
.badge-gold { background: var(--gold); color: var(--ink); }
.badge-violet { background: var(--violet-light); color: var(--violet); }

/* ── SECTION VARIANTS ── */

.bg-subtle { background: var(--subtle); }
.bg-navy { background: var(--navy); color: var(--white); }
.bg-white { background: var(--white); }
.border-top { border-top: 1.5px solid var(--border); }
.border-bottom { border-bottom: 1.5px solid var(--border); }

/* ── LINK ARROW ── */

.link-arrow { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; font-size: 13px; letter-spacing: -0.01em; transition: gap 0.15s; }
.link-arrow::after { content: '→'; }
.link-arrow:hover { gap: 8px; }

/* ── CTA BAND ── */

.cta-band {
  background: var(--ink);
  color: var(--white);
  padding: 80px 48px;
  text-align: center;
}
.cta-band .lede { color: rgba(255,255,255,0.6); }

/* ── STEP LIST ── */

.step-list { display: flex; flex-direction: column; }
.step-item { display: grid; grid-template-columns: 56px 1fr; gap: 24px; align-items: start; padding: 32px 0; border-bottom: 1px solid var(--border); }
.step-item:last-child { border-bottom: none; }
.step-num { width: 44px; height: 44px; background: var(--navy); color: var(--white); display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 14px; border-radius: 12px; flex-shrink: 0; }
.step-body h3 { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 8px; }
.step-body p { font-size: 15px; color: var(--muted); line-height: 1.65; font-weight: 500; }

/* ── CALLOUT BOX ── */

.callout { background: var(--ink); color: var(--white); border-radius: 20px; padding: 36px; display: flex; flex-direction: column; }
.callout-eyebrow { font-size: 10px; font-weight: 700; letter-spacing: 0.28em; text-transform: uppercase; color: var(--violet); margin-bottom: 18px; }
.callout-quote { font-family: var(--display); font-style: italic; font-size: 21px; line-height: 1.35; margin-bottom: 24px; opacity: 0.9; }
.callout-list { display: flex; flex-direction: column; gap: 10px; }
.callout-item { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: rgba(255,255,255,0.75); }
.callout-item::before { content: ''; display: block; width: 6px; height: 6px; border-radius: 50%; background: var(--violet); flex-shrink: 0; }
.callout-cta { margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.12); font-size: 13px; font-weight: 700; color: var(--violet); }
.callout-cta::after { content: ' →'; }

/* ── PRICING TABLE ── */

.price-table { width: 100%; border-collapse: collapse; }
.price-table th { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding: 12px 16px; text-align: left; border-bottom: 1.5px solid var(--border); }
.price-table td { padding: 16px; font-size: 15px; border-bottom: 1px solid var(--border); font-weight: 600; color: var(--ink); }
.price-table tr:last-child td { border-bottom: none; }
.price-table td.muted { color: var(--muted); font-weight: 400; }
.price-table td.price { font-weight: 900; color: var(--navy); }

/* ── CONTACT FORM ── */

.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-label { font-size: 10px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.form-input { padding: 14px 16px; background: var(--subtle); border: none; border-radius: 12px; font-family: var(--rounded); font-size: 15px; font-weight: 500; color: var(--ink); outline: none; transition: box-shadow 0.15s; }
.form-input:focus { box-shadow: 0 0 0 2px var(--ink); }
.form-input::placeholder { color: #A1A1AA; }
textarea.form-input { resize: vertical; min-height: 120px; }

/* ── FOOTER ── */

site-footer { background: var(--subtle); border-top: 1.5px solid var(--border); }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 60px 48px 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

.footer-brand { font-size: 36px; font-weight: 900; letter-spacing: -0.04em; color: var(--ink); line-height: .9; margin-bottom: 8px; }
.footer-tagline { font-family: var(--display); font-style: italic; font-size: 16px; color: var(--muted); margin-bottom: 12px; }
.footer-body { font-size: 14px; color: var(--muted); line-height: 1.6; font-weight: 500; max-width: 300px; }

.footer-col h5 { font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink); margin-bottom: 14px; }
.footer-col ul { display: flex; flex-direction: column; gap: 9px; }
.footer-col a { font-size: 14px; color: var(--muted); font-weight: 500; transition: color 0.15s; }
.footer-col a:hover { color: var(--ink); }

.footer-bottom { padding-top: 20px; border-top: 1.5px solid var(--border); display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--muted); font-weight: 500; flex-wrap: wrap; gap: 8px; }

/* ── GRID UTILS ── */

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }

@media (max-width: 760px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 760px) and (min-width: 500px) { .grid-3 { grid-template-columns: 1fr 1fr; } }

/* ── MISC ── */

.text-center { text-align: center; }
.text-left { text-align: left; }
.mb-4 { margin-bottom: 4px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-40 { margin-bottom: 40px; }
.mb-48 { margin-bottom: 48px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.gap-flex { display: flex; gap: 12px; flex-wrap: wrap; }
.gap-flex-center { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

.inline-badge { display: inline-block; padding: 3px 10px; border-radius: 100px; font-size: 11px; font-weight: 700; background: var(--subtle); color: var(--muted); }

/* ── REDIRECT PAGES ── */
.redirect-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.redirect-page p { font-size: 16px; color: var(--muted); }
