:root {
  --navy: #0B1F3A;
  --navy-muted: #3A4D66;
  --navy-faint: #6B7C93;
  --brand: #1D4ED8;
  --brand-deep: #1E3A8A;
  --accent: #0284C7;
  --sky: #38BDF8;
  --brand-soft: #DBEAFE;
  --accent-soft: #E0F2FE;
  --ice: #F1F6FC;
  --surface: #FAFCFF;
  --steel: #D6E0EC;
  --success: #2E7D32;
  --success-soft: #E8F5E9;
  --warning: #B45309;
  --warning-soft: #FFF9C4;
  --danger: #B3261E;
}

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

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--ice);
  color: var(--navy);
  line-height: 1.55;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Top Navigation */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 252, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--steel);
}

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

.brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--navy), var(--brand));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
}

.brand-title {
  font-weight: 800;
  font-size: 18px;
  color: var(--navy);
}

.brand-subtitle {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 18px;
  list-style: none;
  flex-wrap: wrap;
}

.nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy-muted);
  padding: 8px 4px;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--brand);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-deep);
}

.btn-outline {
  background: var(--surface);
  color: var(--navy);
  border-color: var(--steel);
}

.btn-outline:hover {
  border-color: var(--brand);
  color: var(--brand);
}

/* Hero */
.hero {
  padding: 56px 0 44px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--ice) 100%);
  border-bottom: 1px solid var(--steel);
}

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

.eyebrow {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 16px;
}

.hero p.lead {
  font-size: 17px;
  color: var(--navy-muted);
  margin-bottom: 24px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.trade-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.trade-pill {
  min-height: 40px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--steel);
  background: var(--surface);
  color: var(--navy);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}

.trade-pill.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--steel);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 12px 32px rgba(11, 31, 58, 0.08);
}

.hero-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.badge-warranty-ok {
  background: #E8F5E9;
  border: 1px solid #4CAF50;
  color: var(--navy);
  font-weight: 800;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 6px;
}

.badge-warranty-exp {
  background: #FFF9C4;
  border: 1px solid #FFC107;
  color: var(--navy);
  font-weight: 800;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 6px;
}

/* Sections */
.section {
  padding: 56px 0;
  border-bottom: 1px solid var(--steel);
}

.section-header {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-header h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
}

.section-header p {
  color: var(--navy-muted);
  font-size: 16px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--steel);
  border-radius: 14px;
  padding: 22px;
}

.card h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--navy);
}

.card p {
  font-size: 14px;
  color: var(--navy-muted);
}

/* Simulator */
.sim-box {
  background: var(--surface);
  border: 1px solid var(--steel);
  border-radius: 16px;
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 24px;
}

.sim-select {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--navy-faint);
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  background: #fff;
  margin-top: 6px;
  margin-bottom: 16px;
}

.readiness-meter {
  font-size: 32px;
  font-weight: 800;
  color: var(--brand);
}

.mpn-list {
  list-style: none;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mpn-list li {
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--ice);
  border: 1px solid var(--steel);
  font-size: 13px;
  font-weight: 600;
}

/* ROI Calculator */
.roi-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  background: var(--surface);
  border: 1px solid var(--steel);
  border-radius: 16px;
  padding: 24px;
}

.slider-row {
  margin-bottom: 16px;
}

.slider-row label {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 6px;
}

.slider-row input[type="range"] {
  width: 100%;
  accent-color: var(--brand);
}

.roi-output {
  background: var(--navy);
  color: #fff;
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.roi-number {
  font-size: 36px;
  font-weight: 800;
  color: var(--sky);
}

pre.code-snippet {
  background: var(--navy);
  color: #fff;
  padding: 14px;
  border-radius: 10px;
  overflow-x: auto;
  font-size: 13px;
  margin-top: 12px;
}

.footer {
  padding: 36px 0;
  background: var(--navy);
  color: #fff;
}

.footer a {
  color: var(--sky);
}

@media (max-width: 860px) {
  .hero-grid,
  .sim-box,
  .roi-grid {
    grid-template-columns: 1fr;
  }
}
