/* ============================================================
   TornadoGate —   CIS ( )
    hero,  ledger,  
    styles.css  geo.css
   ============================================================ */

/* ----------  hero ---------- */
.cis-hero {
  position: relative;
  background: var(--bg);
  color: var(--ink);
  padding: 150px 0 64px;
  overflow: hidden;
}

.cis-flag,
.cis-near-flag {
  background-color: #fff;
  background-repeat: no-repeat;
  box-shadow: 0 6px 16px rgba(6,78,59,0.16), inset 0 0 0 1px rgba(255,255,255,0.35);
}
.cis-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(16,185,129,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16,185,129,0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 75% 80% at 80% 0%, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 75% 80% at 80% 0%, #000 10%, transparent 70%);
}
.cis-hero::after {
  content: "";
  position: absolute;
  right: -160px; top: -160px;
  width: 460px; height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16,185,129,0.12), transparent 70%);
  pointer-events: none;
}
.cis-hero .wrap { position: relative; z-index: 1; }

.cis-hero .crumbs { margin-bottom: 36px; }

.cis-hero-top {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 26px;
}
.cis-flag {
  width: 84px; height: 60px;
  border-radius: 14px;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  box-shadow: 0 10px 26px rgba(6,78,59,0.2);
  outline: 1px solid rgba(0,0,0,0.07);
  outline-offset: -1px;
}
.cis-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.6vw, 72px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0;
}
.cis-cur {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent-deep);
  background: var(--tint);
  border-radius: 999px;
  padding: 7px 16px;
}
.cis-hero-sub {
  font-size: 19px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 680px;
  margin-bottom: 30px;
  text-wrap: pretty;
}
.cis-tags { display: flex; flex-wrap: wrap; gap: 9px; }
.cis-tags span {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  border-radius: 999px;
  padding: 9px 17px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
}

.cis-stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 48px;
  border-top: 1px solid var(--line);
}
.cis-stat-strip .st {
  padding: 26px 24px 6px;
  border-right: 1px solid var(--line);
}
.cis-stat-strip .st:last-child { border-right: none; }
.cis-stat-strip .st-num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  color: var(--accent-deep);
}
.cis-stat-strip .st-label { font-size: 13px; color: var(--muted); margin-top: 7px; line-height: 1.45; }

/* ----------   ---------- */
.cis-spectrum { padding: 96px 0; }
.spectrum-bar {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  margin-bottom: 30px;
}
.spectrum-seg {
  height: 64px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.spectrum-seg span { position: relative; z-index: 1; }
.seg-low  { background: linear-gradient(135deg, #34d399, #10b981); }
.seg-mid  { background: linear-gradient(135deg, #f0b429, #d99413); }
.seg-high { background: linear-gradient(135deg, #0a5238, #06311f); }
.spectrum-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.spectrum-col {
  padding: 26px 24px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: none;
  border-radius: 0 0 var(--r-md) var(--r-md);
}
.spectrum-col h3 { font-size: 17px; font-weight: 500; font-family: var(--font-display); margin-bottom: 6px; }
.spectrum-col > p { font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
.spectrum-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.spectrum-col li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-soft); }
.spectrum-col li::before {
  content: "";
  flex-shrink: 0;
  width: 16px; height: 16px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23047857' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4 10-10'/%3E%3C/svg%3E") center / 9px no-repeat;
}

/* ----------  ledger « » ---------- */
.cis-ledger { padding: 96px 0; }
.ledger {
  border-top: 1px solid var(--line);
}
.ledger-row {
  display: grid;
  grid-template-columns: 64px minmax(220px, 1fr) 2fr;
  gap: 28px;
  align-items: center;
  padding: 28px 8px;
  border-bottom: 1px solid var(--line);
  transition: background 0.25s ease, padding-left 0.25s ease;
}
.ledger-row:hover { background: var(--tint-soft); padding-left: 20px; }
.ledger-num {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--accent);
}
.ledger-title { display: flex; flex-direction: column; gap: 4px; }
.ledger-title b { font-family: var(--font-display); font-size: 18px; font-weight: 500; }
.ledger-title small { font-size: 13.5px; color: var(--muted); }
.ledger-body { display: flex; flex-direction: column; gap: 12px; }
.ledger-body p { font-size: 15px; color: var(--muted); text-wrap: pretty; }
.ledger-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ledger-chips span {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-dark);
}

/* ----------    ---------- */
.cis-local { padding: 0 0 96px; }
.local-panel {
  background: linear-gradient(150deg, #07382a 0%, #0a523c 60%, #0c6a4b 100%);
  border-radius: 28px;
  padding: 50px 52px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.local-panel::after {
  content: "";
  position: absolute;
  left: -120px; bottom: -140px;
  width: 340px; height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(52,211,153,0.26), transparent 70%);
}
.local-panel-head { position: relative; max-width: 560px; margin-bottom: 30px; }
.local-panel .eyebrow { color: #5eeab0; }
.local-panel .eyebrow::before { background: #5eeab0; }
.local-panel h2 { font-family: var(--font-display); font-size: clamp(24px, 2.8vw, 34px); font-weight: 600; color: #fff; margin-bottom: 12px; }
.local-panel-head p { color: rgba(255,255,255,0.72); font-size: 16px; }
.local-methods { position: relative; display: flex; flex-wrap: wrap; gap: 12px; }
.local-method {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 14px;
  padding: 16px 22px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
}
.local-method .lm-dot { width: 9px; height: 9px; border-radius: 50%; background: #5eeab0; flex-shrink: 0; }

/* ----------  ( ) ---------- */
.cis-insights { padding: 0 0 96px; }
.cis-insights-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cis-insight {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px 28px;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.cis-insight:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.cis-insight .ci-num {
  display: inline-grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 11px;
  background: var(--tint);
  color: var(--accent-deep);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 18px;
}
.cis-insight h3 { font-size: 17px; font-weight: 500; font-family: var(--font-display); margin-bottom: 10px; }
.cis-insight p { font-size: 14.5px; color: var(--muted); text-wrap: pretty; }

/* ----------   ---------- */
.cis-near { padding: 0 0 100px; }
.cis-near-track { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.cis-near-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 15px 16px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.cis-near-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: #bfe8d4; }
.cis-near-flag {
  width: 34px; height: 24px;
  border-radius: 5px;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  outline: 1px solid rgba(0,0,0,0.08);
  outline-offset: -1px;
}
.cis-near-card span { font-size: 14px; font-weight: 600; }

@media (max-width: 980px) {
  .cis-stat-strip { grid-template-columns: 1fr 1fr; }
  .cis-stat-strip .st:nth-child(2) { border-right: none; }
  .cis-stat-strip .st { border-bottom: 1px solid var(--line); }
  .spectrum-bar, .spectrum-cols { grid-template-columns: 1fr; }
  .spectrum-col { border-radius: 0 0 var(--r-md) var(--r-md); }
  .cis-insights-grid { grid-template-columns: 1fr; }
  .cis-near-track { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .cis-hero-top { flex-direction: column; align-items: flex-start; gap: 16px; }
  .cis-stat-strip { grid-template-columns: 1fr; }
  .cis-stat-strip .st { border-right: none; }
  .ledger-row { grid-template-columns: 40px 1fr; gap: 14px; }
  .ledger-body { grid-column: 1 / -1; }
  .cis-near-track { grid-template-columns: 1fr 1fr; }
  .local-panel { padding: 38px 26px; }
}

@media (max-width: 760px) {
  .cis-hero {
    padding: 106px 0 52px;
  }

  .cis-hero .crumbs {
    margin-bottom: 22px;
    overflow-x: auto;
    padding-bottom: 4px;
    white-space: nowrap;
  }

  .cis-flag {
    width: 78px;
    height: 56px;
    border-radius: 13px;
  }

  .cis-hero h1 {
    font-size: clamp(29px, 9vw, 40px);
  }

  .cis-cur,
  .cis-tags span {
    font-size: 12.5px;
    padding: 7px 12px;
  }

  .cis-hero-sub {
    font-size: 16px;
  }

  .cis-stat-strip,
  .spectrum-bar,
  .spectrum-cols,
  .ledger,
  .local-panel,
  .cis-insight {
    border-radius: 18px;
  }

  .cis-spectrum,
  .cis-ledger {
    padding: 66px 0;
  }

  .spectrum-seg,
  .spectrum-col,
  .cis-insight {
    padding: 22px 20px;
  }

  .ledger-row {
    padding: 18px 0;
  }

  .ledger-row:hover {
    padding-left: 0;
  }

  .local-panel {
    padding: 30px 20px;
  }

  .local-method {
    width: 100%;
  }

  .cis-local,
  .cis-insights,
  .cis-near {
    padding-bottom: 66px;
  }

  .cis-near-track {
    gap: 10px;
  }

  .cis-near-card {
    padding: 13px;
    border-radius: 14px;
  }
}

@media (max-width: 430px) {
  .cis-near-track {
    grid-template-columns: 1fr;
  }
}

.cis-flag,
.cis-near-flag {
  background-color: #fff;
  background-repeat: no-repeat;
  box-shadow: 0 6px 16px rgba(6,78,59,0.16), inset 0 0 0 1px rgba(255,255,255,0.35);
}
