/* ============================================================
   SGM24 — Design System
   Clean · architectural · blue & white · professional
   Derived from design.md (Sora / Hanken Grotesk · navy + azure)
   ============================================================ */

:root {
  /* ---- Brand ---- */
  --navy:          #0d2535;  /* primary — text, headers, structure */
  --navy-800:      #11304a;
  --navy-700:      #1c4565;
  --navy-600:      #2c5a7e;

  --azure:         #0072a8;  /* secondary accent — CTA, links, data */
  --azure-600:     #008cce;
  --azure-bright:  #2eb3f5;  /* highlights, active sensor, fills */
  --azure-tint:    #e8f4fb;  /* 10%-ish wash for chips / soft fills */
  --azure-tint-2:  #f3f9fd;

  /* ---- Neutrals / surfaces ---- */
  --bg:            #f7f9fb;  /* page canvas */
  --surface:       #ffffff;  /* level 0 cards */
  --surface-soft:  #f4f7fa;  /* level 1 */
  --surface-soft2: #eef2f6;

  --ink:           #14222e;  /* on-surface */
  --ink-2:         #46535e;  /* on-surface-variant */
  --ink-3:         #6b7884;  /* muted / captions */

  --line:          #dfe5ea;  /* hairline borders */
  --line-strong:   #cdd6dd;

  /* ---- Ember (winter-urgency accent) ---- */
  --ember:         #d4561f;
  --ember-600:     #e2641f;
  --ember-tint:    #fbece3;

  /* ---- Status ---- */
  --good:          #1f8a4c;
  --good-tint:     #e7f4ec;
  --warn:          #c98a16;
  --error:         #ba1a1a;

  /* ---- Radius ---- */
  --r-sm: 6px;
  --r:    8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;

  /* ---- Shadow (navy-tinted, diffuse) ---- */
  --shadow-sm: 0 1px 2px rgba(13,37,53,0.05);
  --shadow:    0 10px 30px rgba(13,37,53,0.06);
  --shadow-lg: 0 24px 60px rgba(13,37,53,0.10);

  --font-head: 'Sora', sans-serif;
  --font-body: 'Hanken Grotesk', sans-serif;
}

* { box-sizing: border-box; }

.ds {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- Type ---------- */
.ds h1, .ds h2, .ds h3, .ds h4 { font-family: var(--font-head); margin: 0; color: var(--navy); }

.t-display { font-family: var(--font-head); font-weight: 700; font-size: 60px; line-height: 1.02; letter-spacing: -0.025em; color: var(--navy); }
.t-h1 { font-family: var(--font-head); font-weight: 700; font-size: 44px; line-height: 1.06; letter-spacing: -0.02em; color: var(--navy); }
.t-h2 { font-family: var(--font-head); font-weight: 600; font-size: 32px; line-height: 1.12; letter-spacing: -0.015em; color: var(--navy); }
.t-h3 { font-family: var(--font-head); font-weight: 600; font-size: 22px; line-height: 1.2; letter-spacing: -0.01em; color: var(--navy); }
.t-h4 { font-family: var(--font-head); font-weight: 600; font-size: 18px; line-height: 1.25; color: var(--navy); }

.t-lead { font-size: 19px; line-height: 1.6; color: var(--ink-2); font-weight: 400; }
.t-body { font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.t-sm   { font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.t-xs   { font-size: 12.5px; line-height: 1.5; color: var(--ink-3); }

.t-num  { font-family: var(--font-head); font-weight: 700; letter-spacing: -0.02em; color: var(--navy); font-variant-numeric: tabular-nums; }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--azure);
}
.eyebrow.muted { color: var(--ink-3); }
.eyebrow.on-navy { color: var(--azure-bright); }

.accent { color: var(--azure); }
.on-navy { color: #ffffff; }
.on-navy-soft { color: #aebccb; }

/* underline accent used on a hero word */
.mark {
  background: linear-gradient(transparent 62%, rgba(46,179,245,0.28) 62%);
  padding: 0 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  padding: 12px 20px; border-radius: var(--r);
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: all .16s ease; text-decoration: none;
}
.btn-lg { padding: 15px 26px; font-size: 16px; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-800); }
.btn-azure { background: var(--azure); color: #fff; }
.btn-azure:hover { background: var(--azure-600); }
.btn-secondary { background: transparent; color: var(--navy); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--navy); }
.btn-ghost { background: transparent; color: var(--azure); padding-left: 6px; padding-right: 6px; }
.btn-on-navy { background: #fff; color: var(--navy); }
.btn-on-navy-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.32); }

/* ---------- Card ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
}
.card-soft { background: var(--surface-soft); }
.card-navy { background: var(--navy); border-color: var(--navy); color: #fff; }
.card-navy .t-h3, .card-navy .t-h2, .card-navy .t-num { color: #fff; }
.card-flat { border-radius: var(--r-md); padding: 22px; }
.card-pad-lg { padding: 36px; }

/* ---------- Chip / Tag ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-body); font-weight: 600; font-size: 12.5px;
  padding: 5px 11px; border-radius: var(--r-sm);
  background: var(--azure-tint); color: var(--azure);
  letter-spacing: 0.01em; white-space: nowrap;
}
.chip.dark { background: rgba(255,255,255,0.12); color: #fff; }
.chip.neutral { background: var(--surface-soft2); color: var(--ink-2); }
.chip.good { background: var(--good-tint); color: var(--good); }
.chip-dot::before { content: ''; width: 6px; height: 6px; border-radius: 999px; background: currentColor; display: inline-block; }

/* ---------- Input ---------- */
.field-label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 7px; }
.input {
  display: flex; align-items: center; justify-content: space-between;
  background: #fff; border: 1px solid var(--line-strong);
  border-radius: var(--r); padding: 13px 14px; gap: 10px;
}
.input.focus { border-color: var(--azure); box-shadow: 0 0 0 3px rgba(46,179,245,0.18); }
.input input { border: 0; outline: 0; font-family: var(--font-body); font-size: 16px; color: var(--ink); width: 100%; background: transparent; }
.input .suffix { font-size: 14px; color: var(--ink-3); font-weight: 600; white-space: nowrap; }
.input .ph { color: var(--ink-3); font-size: 16px; }

/* ---------- Check list ---------- */
.check { display: flex; gap: 11px; align-items: flex-start; }
.check + .check { margin-top: 12px; }
.check .tick {
  flex: 0 0 auto; width: 20px; height: 20px; border-radius: 999px;
  background: var(--azure-tint); color: var(--azure);
  display: grid; place-items: center; margin-top: 1px;
}
.check.on-navy .tick { background: rgba(46,179,245,0.18); color: var(--azure-bright); }
.check.muted .tick { background: var(--surface-soft2); color: var(--ink-3); }
.check-text { font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.card-navy .check-text { color: #d6e0ea; }
.check.muted .check-text { color: var(--ink-3); }

/* ---------- Nav ---------- */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 56px; border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.85); backdrop-filter: blur(6px);
}
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-link { font-size: 15px; color: var(--ink-2); font-weight: 500; text-decoration: none; }
.nav-link:hover { color: var(--navy); }
.brand { display: flex; align-items: center; gap: 11px; }
.brand-logo {
  width: 34px; height: 34px; border-radius: 9px; background: var(--navy);
  display: grid; place-items: center; color: #fff;
}
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 19px; letter-spacing: -0.01em; color: var(--navy); }

/* ---------- Divider ---------- */
.hr { height: 1px; background: var(--line); border: 0; }
.hr-navy { height: 1px; background: rgba(255,255,255,0.16); border: 0; }

/* ---------- Stat ---------- */
.stat-eyebrow { font-size: 11.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }

/* ---------- Designer note (clean, optional) ---------- */
.dnote {
  position: absolute; z-index: 6; max-width: 230px;
  background: var(--navy); color: #fff;
  font-family: var(--font-body); font-size: 12.5px; line-height: 1.45;
  padding: 10px 13px; border-radius: 10px; box-shadow: var(--shadow);
  pointer-events: none;
}
.dnote b { color: var(--azure-bright); font-weight: 600; }
.dnote::after {
  content: ''; position: absolute; width: 10px; height: 10px;
  background: var(--navy); transform: rotate(45deg);
}
.dnote.pin-tr::after { top: 16px; left: -5px; }
.dnote.pin-tl::after { top: 16px; right: -5px; }
.dnote.pin-bl::after { bottom: 16px; right: -5px; }

/* ---------- Responsive layout ---------- */
.r-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.r-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 40px);
}
.r-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.hero-nav-links { display: flex; align-items: center; gap: 30px; }

@media (max-width: 768px) {
  .r-2col    { grid-template-columns: 1fr; }
  .r-3col    { grid-template-columns: 1fr; }
  .r-gallery { grid-template-columns: 1fr 1fr; }
  .hero-nav-links { display: none; }
}

/* ---------- Misc helpers ---------- */
.row { display: flex; }
.col { display: flex; flex-direction: column; }
.between { justify-content: space-between; }
.center { align-items: center; }
.wrap { flex-wrap: wrap; }
.imgslot {
  background:
    linear-gradient(135deg, rgba(13,37,53,0.04), rgba(13,37,53,0.07)),
    var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  display: grid; place-items: center;
  color: var(--ink-3); font-size: 13px; text-align: center;
  position: relative; overflow: hidden;
}
.imgslot::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(13,37,53,0.06) 1px, transparent 0);
  background-size: 16px 16px;
}
.imgslot span { position: relative; z-index: 1; font-weight: 500; letter-spacing: 0.02em; padding: 0 16px; }
