/* ============ Design tokens ============ */
:root {
  --navy: #10193d;
  --navy-dark: #0a1129;
  --gold: #d9a22a;
  --gold-light: #e8b74a;
  --gold-dark: #b5841e;
  --gold-gradient: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
  --bg: #fcfcfb;
  --bg-alt: #f4f6f9;
  --text-primary: #0b0b0b;
  --text-secondary: #52514e;
  --text-muted: #898781;
  --border: rgba(11, 11, 11, 0.10);
  --radius: 14px;
  --shadow: 0 10px 30px rgba(16, 25, 61, 0.08);
  --font-heading: "Poppins", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  /* chart tokens (dataviz categorical slots 1 & 2) */
  --series-1: #2a78d6;
  --series-2: #eb6834;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg);
  line-height: 1.6;
}
h1, h2, h3, h4 { font-family: var(--font-heading); margin: 0 0 .5em; line-height: 1.2; }
p { margin: 0 0 1em; color: var(--text-secondary); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { padding: 0; margin: 0; list-style: none; }
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-icon {
  width: 60px; height: 60px; border-radius: 50%; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  background: var(--navy); border: 2px solid var(--gold); font-size: 1.6rem;
}
.eyebrow { color: var(--gold); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: .8rem; margin-bottom: 8px; }
.section-sub { color: var(--text-secondary); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--navy); }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-dark); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-sm { padding: 9px 18px; font-size: .85rem; }
.btn-block { width: 100%; margin-top: 8px; }

/* ============ Header ============ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(252,252,251,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark { display: flex; align-items: center; }
.logo-mark img { width: 44px; height: 44px; object-fit: contain; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; font-family: var(--font-heading); }
.logo-text strong { color: var(--navy); font-size: 1.05rem; font-weight: 700; }
.logo-text span { color: var(--gold); font-size: .78rem; font-weight: 600; letter-spacing: .04em; }
.logo-text.light strong { color: #fff; }
.logo-text.light span { color: var(--gold-light); }

.main-nav { display: flex; gap: 28px; flex: 1; justify-content: center; }
.main-nav a { font-weight: 600; font-size: .92rem; color: var(--navy); position: relative; }
.main-nav a:hover { color: var(--gold); }

.header-actions { display: flex; align-items: center; gap: 16px; }
.header-email { display: none; align-items: center; gap: 6px; font-size: .85rem; color: var(--text-secondary); font-weight: 600; }
.header-email:hover { color: var(--navy); }
.header-social { display: none; align-items: center; color: var(--text-secondary); }
.header-social:hover { color: var(--gold); }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 38px; height: 38px; border: none; background: none; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; width: 100%; background: var(--navy); border-radius: 2px; }

@media (min-width: 900px) {
  .header-email { display: flex; }
  .header-social { display: flex; }
}

/* ============ Hero ============ */
.hero { padding: 70px 0 60px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero-copy h1 { font-size: clamp(2rem, 4vw, 3rem); color: var(--navy); }
.hero-copy h1 span { color: var(--gold); }
.hero-sub { font-size: 1.05rem; max-width: 520px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-trust { display: flex; flex-direction: column; gap: 8px; }
.hero-trust li { font-size: .92rem; color: var(--text-secondary); padding-left: 26px; position: relative; }
.hero-trust li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 700; }

.hero-visual { position: relative; height: 340px; }
.hero-illustration { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero-card {
  position: absolute; background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 18px 22px; display: flex; flex-direction: column; gap: 4px;
  border: 1px solid var(--border); width: 200px;
}
.hc-label { font-weight: 700; color: var(--navy); font-size: .95rem; }
.hc-rate { font-size: .8rem; color: var(--text-secondary); }
.card-1 { top: 0; left: 10%; }
.card-2 { top: 130px; left: 40%; border-left: 4px solid var(--gold); }
.card-3 { top: 250px; left: 5%; border-left: 4px solid var(--navy); }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
}

/* ============ Values band ============ */
.values-band { background: var(--navy); padding: 44px 0 64px; position: relative; }
.wave-divider { position: absolute; bottom: -1px; left: 0; width: 100%; height: 60px; display: block; }
.wave-fill { fill: var(--bg); }
.wave-line { stroke: var(--gold); stroke-width: 3; }
.values-inner { text-align: center; }
.values-tagline { color: #fff; font-size: 1.05rem; margin-bottom: 30px; }
.values-tagline strong { color: var(--gold-light); }
.values-grid { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; }
.value-item { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.value-icon {
  width: 56px; height: 56px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: rgba(255, 255, 255, 0.08); border: 2px solid var(--gold);
  font-size: 1.5rem;
}
.value-item span:last-child { color: #fff; font-weight: 700; font-size: .8rem; letter-spacing: .05em; text-transform: uppercase; }

@media (max-width: 600px) {
  .values-grid { gap: 26px 20px; }
  .value-icon { width: 48px; height: 48px; font-size: 1.25rem; }
}

/* ============ Product cards ============ */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }
.product-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: transform .15s ease, box-shadow .15s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pc-icon { font-size: 1.8rem; display: inline-block; margin-bottom: 10px; }
.product-card h3 { font-size: 1.1rem; color: var(--navy); }
.product-card p { font-size: .92rem; }
.pc-link { font-weight: 700; color: var(--gold); font-size: .88rem; }
.pc-link:hover { color: var(--navy); }

@media (max-width: 900px) {
  .card-grid, .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .card-grid, .card-grid-4 { grid-template-columns: 1fr; }
}

/* ============ Calculator ============ */
.calc-wrap { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.calc-tabs { display: flex; background: var(--bg-alt); }
.calc-tab {
  flex: 1; padding: 18px; border: none; background: none; font-weight: 700;
  font-size: .95rem; color: var(--text-secondary); cursor: pointer; border-bottom: 3px solid transparent;
}
.calc-tab.active { color: var(--navy); border-bottom-color: var(--gold); background: #fff; }
.calc-panel { display: none; padding: 36px; }
.calc-panel.active { display: block; }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }

.field { margin-bottom: 26px; }
.field-label { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: .9rem; font-weight: 600; color: var(--navy); }
.field-value { color: var(--gold); font-weight: 700; }
input[type="range"] {
  width: 100%; height: 6px; border-radius: 4px; background: var(--bg-alt);
  appearance: none; accent-color: var(--navy);
}
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px;
  font-family: var(--font-body); font-size: .95rem; background: #fff; color: var(--text-primary);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--navy); outline-offset: 1px; }
label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 6px; color: var(--navy); }

.result-hero { text-align: center; padding: 18px 0; border-bottom: 1px solid var(--border); margin-bottom: 18px; }
.result-hero-label { display: block; font-size: .85rem; color: var(--text-secondary); margin-bottom: 4px; }
.result-hero-value { font-size: 2.1rem; font-weight: 700; color: var(--navy); font-family: var(--font-heading); }
.result-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 22px; }
.result-tile { background: var(--bg-alt); border-radius: 10px; padding: 12px; text-align: center; }
.rt-label { display: block; font-size: .72rem; color: var(--text-muted); margin-bottom: 4px; }
.rt-value { font-weight: 700; color: var(--navy); font-size: .95rem; font-variant-numeric: tabular-nums; }

/* breakdown chart (dataviz: two-series stacked bar) */
.breakdown-chart { margin-bottom: 22px; }
.breakdown-legend { display: flex; gap: 18px; margin-bottom: 10px; font-size: .82rem; color: var(--text-secondary); }
.legend-item { display: flex; align-items: center; gap: 6px; }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot-1 { background: var(--series-1); }
.dot-2 { background: var(--series-2); }
.breakdown-bar { display: flex; height: 22px; border-radius: 6px; overflow: hidden; background: var(--bg-alt); gap: 2px; }
.breakdown-seg { height: 100%; transition: width .25s ease; }
.seg-1 { background: var(--series-1); border-radius: 4px 0 0 4px; }
.seg-2 { background: var(--series-2); border-radius: 0 4px 4px 0; }

.calc-disclaimer { text-align: center; font-size: .78rem; color: var(--text-muted); padding: 16px 24px 24px; margin: 0; }

@media (max-width: 800px) {
  .calc-grid { grid-template-columns: 1fr; gap: 24px; }
  .calc-panel { padding: 24px; }
  .result-tiles { grid-template-columns: 1fr 1fr; }
}

/* ============ About ============ */
.about-inner { max-width: 720px; text-align: center; margin: 0 auto; }
.about-copy .eyebrow, .about-copy h2 { text-align: center; }
.about-points { display: inline-grid; text-align: left; gap: 10px; margin-top: 18px; }
.about-points li { padding-left: 26px; position: relative; font-size: .95rem; color: var(--text-secondary); }
.about-points li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 700; }

/* ============ Contact ============ */
.contact-inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; }
.info-item { display: flex; gap: 14px; margin-bottom: 20px; align-items: flex-start; }
.info-icon { font-size: 1.3rem; color: var(--gold); display: inline-flex; }
.info-item strong { display: block; color: var(--navy); margin-bottom: 2px; }
.info-item a { color: var(--gold); font-weight: 600; }

.contact-form { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { margin-top: 12px; font-size: .88rem; font-weight: 600; text-align: center; min-height: 1.2em; }
.form-note.success { color: #0ca30c; }
.form-note.error { color: #d03b3b; }

@media (max-width: 900px) {
  .contact-inner { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* ============ Footer ============ */
.site-footer { background: var(--navy); color: #d9e2ef; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; padding: 56px 24px; }
.footer-brand p { color: #b7c4d9; font-size: .88rem; margin-top: 10px; }
.footer-logo { display: flex; align-items: center; gap: 10px; }
.footer-logo-chip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 10px; background: #fff; flex-shrink: 0;
}
.footer-logo-chip img { width: 30px; height: 30px; object-fit: contain; }
.footer-col h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.footer-col a, .footer-col p { display: block; color: #b7c4d9; font-size: .88rem; margin-bottom: 10px; }
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 18px 0; }
.footer-bottom p { text-align: center; font-size: .8rem; color: #93a3bc; margin: 0; }

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

/* ============ Mobile nav ============ */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute; top: 76px; left: 0; right: 0; background: #fff;
    flex-direction: column; padding: 20px 24px; gap: 18px;
    box-shadow: var(--shadow); border-bottom: 1px solid var(--border);
    display: none;
  }
  .main-nav.open { display: flex; }
}

/* ============ Scroll reveal ============ */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
