:root {
  --bg: #FAF8F5;
  --surface: #FFFFFF;
  --surface-alt: #F3F0EA;
  --navy: #0B132B;
  --navy-soft: #162244;
  --ink: #0F172A;
  --ink-secondary: #334155;
  --ink-muted: #64748B;
  --cobalt: #1D4ED8;
  --cobalt-hover: #1E40AF;
  --linkedin: #0A66C2;
  --emerald: #0A6847;
  --emerald-bg: #ECFDF5;
  --emerald-border: #A7F3D0;
  --amber: #B45309;
  --amber-bg: #FFFBEB;
  --amber-border: #FDE68A;
  --border: #E2E8F0;
  --border-strong: #CBD5E1;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 12px 32px rgba(15, 23, 42, 0.07);
  --shadow-lg: 0 20px 48px rgba(11, 19, 43, 0.12);
  --radius: 14px;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* Top Announcement & Navbar */
.top-ribbon {
  background: var(--navy);
  color: #F8FAFC;
  font-size: 0.82rem;
  padding: 9px 16px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.top-ribbon strong { color: #6EE7B7; font-weight: 700; }
.top-ribbon a { color: #93C5FD; text-decoration: underline; margin-left: 8px; font-weight: 600; }

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark {
  width: 36px; height: 36px; border-radius: 9px;
  background: var(--navy); color: #FFF;
  display: grid; place-items: center;
  font-family: var(--font-serif); font-size: 1.35rem; font-weight: 700;
  box-shadow: 0 4px 12px rgba(11,19,43,0.18);
}
.brand-name { font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; }
.brand-tag {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  padding: 3px 8px; border-radius: 99px;
  background: var(--emerald-bg); color: var(--emerald); border: 1px solid var(--emerald-border);
}
.nav-links { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.nav-links a {
  text-decoration: none; color: var(--ink-secondary);
  font-size: 0.9rem; font-weight: 600; transition: color 0.15s;
}
.nav-links a:hover { color: var(--cobalt); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 10px; font-weight: 700; font-size: 0.92rem;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: all 0.16s ease; font-family: var(--font-sans);
}
.btn-primary { background: var(--cobalt); color: #FFF; box-shadow: 0 4px 14px rgba(29, 78, 216, 0.25); }
.btn-primary:hover { background: var(--cobalt-hover); transform: translateY(-1px); }
.btn-navy { background: var(--navy); color: #FFF; }
.btn-navy:hover { background: var(--navy-soft); transform: translateY(-1px); }
.btn-emerald { background: var(--emerald); color: #FFF; box-shadow: 0 4px 14px rgba(10, 104, 71, 0.22); }
.btn-emerald:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-linkedin { background: var(--linkedin); color: #FFF; box-shadow: 0 4px 14px rgba(10, 102, 194, 0.25); }
.btn-linkedin:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-outline { background: var(--surface); color: var(--ink); border-color: var(--border-strong); }
.btn-outline:hover { border-color: var(--cobalt); color: var(--cobalt); }

/* Hero & Industry Persona Switcher */
.hero { padding: 54px 0 40px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--emerald-bg); color: var(--emerald);
  border: 1px solid var(--emerald-border);
  padding: 6px 14px; border-radius: 99px;
  font-size: 0.8rem; font-weight: 700; margin-bottom: 18px;
}
.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 4.6vw, 4.1rem);
  font-weight: 400; line-height: 1.07; letter-spacing: -0.02em;
  color: var(--ink); max-width: 980px; margin-bottom: 18px;
}
.hero h1 em { font-style: italic; color: var(--cobalt); }
.hero-sub { font-size: 1.14rem; color: var(--ink-secondary); max-width: 820px; margin-bottom: 26px; }

.persona-tabs {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 18px;
}
.persona-tab {
  padding: 9px 16px; border-radius: 99px; font-size: 0.85rem; font-weight: 700;
  background: var(--surface); color: var(--ink-secondary);
  border: 1px solid var(--border-strong); cursor: pointer; transition: all 0.15s;
}
.persona-tab.active {
  background: var(--navy); color: #FFF; border-color: var(--navy);
  box-shadow: 0 4px 12px rgba(11,19,43,0.16);
}
.persona-showcase {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px 26px;
  box-shadow: var(--shadow-sm); margin-bottom: 28px;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 22px; align-items: center;
}
.metric-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 24px;
}
.metric-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 18px 20px; box-shadow: var(--shadow-sm);
}
.metric-val { font-family: var(--font-mono); font-size: 1.65rem; font-weight: 700; color: var(--ink); }
.metric-lbl { font-size: 0.82rem; color: var(--ink-muted); font-weight: 600; margin-top: 3px; }

/* Sections & Cards */
section { padding: 52px 0; border-top: 1px solid var(--border); }
.sec-title { font-family: var(--font-serif); font-size: clamp(2rem, 3.4vw, 2.85rem); font-weight: 400; line-height: 1.12; margin-bottom: 10px; }
.sec-sub { color: var(--ink-secondary); font-size: 1.05rem; max-width: 780px; margin-bottom: 32px; }

/* 4-Stage Onboarding Funnel */
.funnel-shell {
  background: var(--surface); border: 2px solid var(--navy);
  border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden;
}
.funnel-header {
  background: var(--navy); color: #FFF; padding: 22px 28px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px;
}
.step-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.step-pill {
  padding: 6px 13px; border-radius: 99px; font-size: 0.78rem; font-weight: 700;
  background: rgba(255,255,255,0.1); color: #CBD5E1;
}
.step-pill.active { background: #10B981; color: #052E16; }
.funnel-body { padding: 30px; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 28px; }
.stage-box {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 12px; padding: 20px; margin-bottom: 18px;
}
.stage-title { font-size: 1rem; font-weight: 800; margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 10px; }
.field label { font-size: 0.78rem; font-weight: 700; color: var(--ink-secondary); text-transform: uppercase; letter-spacing: 0.03em; }
.field input, .field select, .field textarea {
  padding: 10px 12px; border-radius: 8px; border: 1px solid var(--border-strong);
  background: #FFF; font-family: var(--font-sans); font-size: 0.9rem; color: var(--ink);
}
.dropzone {
  border: 2px dashed var(--cobalt); background: #EFF6FF;
  border-radius: 12px; padding: 20px; text-align: center; cursor: pointer;
  transition: background 0.15s; margin-bottom: 12px;
}
.dropzone:hover { background: #DBEAFE; }
.file-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.file-pill {
  background: var(--emerald-bg); color: var(--emerald); border: 1px solid var(--emerald-border);
  padding: 4px 10px; border-radius: 99px; font-size: 0.78rem; font-weight: 700;
}

/* Pricing Grid */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.price-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 28px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; justify-content: space-between; position: relative;
}
.price-card.featured { border: 2px solid var(--cobalt); box-shadow: var(--shadow-md); }
.pop-badge {
  position: absolute; top: -12px; right: 20px;
  background: var(--cobalt); color: #FFF; font-size: 0.72rem; font-weight: 800;
  padding: 4px 12px; border-radius: 99px; text-transform: uppercase;
}
.price-amount { font-family: var(--font-serif); font-size: 3rem; line-height: 1; margin: 12px 0 6px; }
.price-amount span { font-family: var(--font-sans); font-size: 0.95rem; color: var(--ink-muted); }
.quota-pill {
  display: inline-block; background: var(--amber-bg); color: var(--amber);
  border: 1px solid var(--amber-border); padding: 5px 10px; border-radius: 8px;
  font-family: var(--font-mono); font-size: 0.8rem; font-weight: 700; margin-bottom: 14px;
}
.feature-list { list-style: none; margin: 14px 0 22px; }
.feature-list li { font-size: 0.88rem; color: var(--ink-secondary); margin-bottom: 9px; display: flex; gap: 8px; }
.feature-list li::before { content: "✔"; color: var(--emerald); font-weight: 800; }

/* Code & Vault Output */
.code-box {
  background: var(--navy); color: #E2E8F0; border-radius: 10px;
  padding: 14px; font-family: var(--font-mono); font-size: 0.78rem;
  overflow-x: auto; white-space: pre-wrap; word-break: break-all; margin: 8px 0;
}
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(11,19,43,0.65);
  display: none; place-items: center; z-index: 200; padding: 20px;
}
.modal-backdrop.open { display: grid; }
.modal-card {
  background: var(--surface); border-radius: 16px; max-width: 540px; width: 100%;
  padding: 26px; box-shadow: var(--shadow-lg); border: 1px solid var(--border);
}

@media (max-width: 960px) {
  .persona-showcase, .funnel-body, .pricing-grid, .metric-strip, .form-grid { grid-template-columns: 1fr; }
}
