:root {
  --bg: #0b1120;
  --bg-elevated: #0f172a;
  --surface: #162033;
  --surface-hover: #1c2840;
  --border: rgba(148, 163, 184, 0.16);
  --border-strong: rgba(59, 130, 246, 0.4);
  --cobalt: #2563eb;
  --cobalt-bright: #3b82f6;
  --cyan: #0891b2;
  --amber: #d97706;
  --amber-soft: rgba(217, 119, 6, 0.14);
  --crimson: #dc2626;
  --crimson-soft: rgba(220, 38, 38, 0.14);
  --violet: #7c3aed;
  --text: #f8fafc;
  --text-secondary: #cbd5e1;
  --muted: #94a3b8;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 50px rgba(2, 6, 23, 0.45);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 18% 12%, rgba(37, 99, 235, 0.16), transparent 42%),
    radial-gradient(circle at 82% 18%, rgba(217, 119, 6, 0.09), transparent 36%),
    linear-gradient(rgba(148, 163, 184, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.04) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: #60a5fa;
  text-decoration: none;
}

a:hover {
  color: #93c5fd;
  text-decoration: underline;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88em;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border);
  padding: 2px 7px;
  border-radius: 6px;
  color: #93c5fd;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(11, 17, 32, 0.82);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
  flex-wrap: wrap;
  padding: 10px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand:hover {
  color: var(--text);
  text-decoration: none;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.brand-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #93c5fd;
  background: rgba(37, 99, 235, 0.16);
  border: 1px solid rgba(59, 130, 246, 0.35);
  padding: 2px 8px;
  border-radius: 999px;
}

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

.site-nav a {
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 7px 13px;
  border-radius: 9px;
  transition: background-color 0.18s, color 0.18s;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a.active {
  background: rgba(37, 99, 235, 0.16);
  color: #ffffff;
  text-decoration: none;
}

/* Main */
main {
  flex: 1;
}

/* Hero */
.hero {
  padding: 64px 0 44px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #93c5fd;
  background: rgba(37, 99, 235, 0.14);
  border: 1px solid rgba(59, 130, 246, 0.36);
  margin-bottom: 18px;
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cobalt-bright);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.22);
}

.hero h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.15rem);
  font-weight: 850;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.hero h1 span {
  background: linear-gradient(120deg, #60a5fa 0%, #38bdf8 55%, #f59e0b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: 1.08rem;
  color: var(--text-secondary);
  margin-bottom: 26px;
  max-width: 58ch;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 11px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.16s, background-color 0.16s, border-color 0.16s;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-primary {
  background: var(--cobalt);
  color: #ffffff;
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  background: #1d4ed8;
  color: #ffffff;
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
  color: #ffffff;
}

.spec-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.spec-chip {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(22, 32, 51, 0.9);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 9px;
}

/* Radar Panel */
.radar-panel {
  background: linear-gradient(180deg, #131c31 0%, #0f172a 100%);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.radar-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  font-size: 0.84rem;
}

.radar-title {
  font-weight: 700;
  color: var(--text);
}

.radar-band {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #93c5fd;
  font-size: 0.78rem;
}

.radar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
  font-size: 0.78rem;
  color: var(--muted);
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.dot-cobalt { background: var(--cobalt-bright); }
.dot-amber { background: var(--amber); }
.dot-crimson { background: var(--crimson); }
.dot-violet { background: var(--violet); }

/* Sections */
.section {
  padding: 36px 0;
}

.section-head {
  margin-bottom: 24px;
}

.section-head h2 {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.section-head p {
  color: var(--muted);
  max-width: 64ch;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.18s, border-color 0.18s;
}

.card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
}

.card-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 7px;
  margin-bottom: 14px;
}

.tag-cobalt {
  color: #93c5fd;
  background: rgba(37, 99, 235, 0.16);
  border: 1px solid rgba(59, 130, 246, 0.35);
}

.tag-amber {
  color: #fbbf24;
  background: var(--amber-soft);
  border: 1px solid rgba(217, 119, 6, 0.38);
}

.tag-crimson {
  color: #fca5a5;
  background: var(--crimson-soft);
  border: 1px solid rgba(220, 38, 38, 0.38);
}

.card h3 {
  font-size: 1.15rem;
  font-weight: 750;
  margin-bottom: 10px;
  color: var(--text);
}

.card p,
.card li {
  color: var(--text-secondary);
  font-size: 0.94rem;
}

.card ul {
  padding-left: 18px;
  margin-top: 10px;
}

.card li + li {
  margin-top: 6px;
}

/* Interactive Whip Calc */
.calc-card {
  background: linear-gradient(145deg, #131c31 0%, #162033 100%);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
}

.field-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}

label {
  display: block;
  font-size: 0.84rem;
  font-weight: 650;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

input[type="number"],
select {
  width: 100%;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

input[type="number"]:focus,
select:focus {
  outline: none;
  border-color: var(--cobalt-bright);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.22);
}

.calc-outputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.metric-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
}

.metric-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 6px;
}

.metric-value {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.75rem;
  font-weight: 800;
  color: #60a5fa;
}

.metric-value.amber {
  color: #fbbf24;
}

.calc-note {
  margin-top: 10px;
  font-size: 0.82rem;
  color: var(--muted);
}

/* Legal & Support Pages */
.legal-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 24px 72px;
}

.legal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px;
  box-shadow: var(--shadow);
}

.legal-card h1 {
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.legal-meta {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 26px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.legal-card h2 {
  font-size: 1.18rem;
  font-weight: 750;
  margin: 26px 0 10px;
  color: #93c5fd;
}

.legal-card p,
.legal-card li {
  color: var(--text-secondary);
  line-height: 1.72;
}

.legal-card p + p {
  margin-top: 10px;
}

.legal-card ul {
  padding-left: 20px;
  margin-top: 8px;
}

.legal-card li + li {
  margin-top: 8px;
}

.callout {
  margin-top: 22px;
  padding: 16px 18px;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: var(--text-secondary);
  font-size: 0.93rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(11, 17, 32, 0.92);
  padding: 32px 0 38px;
  margin-top: 28px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.footer-links a:hover {
  color: #ffffff;
}

.copy {
  color: #64748b;
  font-size: 0.85rem;
}

@media (max-width: 900px) {
  .hero-grid,
  .grid-3,
  .grid-2,
  .calc-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .field-group,
  .calc-outputs {
    grid-template-columns: 1fr;
  }
  .legal-card,
  .calc-card {
    padding: 22px;
  }
}
