/* ==========================================================================
   HazardNet — Temporal Hazard Intelligence
   Design system & page styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  color-scheme: light;

  --bg: #f4f7fb;
  --bg-2: #eef3f9;
  --panel: rgba(255, 255, 255, .86);
  --panel-solid: #ffffff;
  --panel-soft: #f8fbff;
  --line: #d8e2ee;
  --line-soft: #e6edf5;
  --line-strong: #c2d1e2;
  --ink: #102033;
  --ink-soft: #516579;
  --ink-faint: #73879b;
  --ink-inverse: #ffffff;

  --blue: #1d74f5;
  --blue-2: #5ea8ff;
  --blue-soft: #eef5ff;
  --teal: #12a7a0;
  --teal-soft: #e8f7f6;
  --green: #0f9f67;
  --green-soft: #e7f7f0;
  --amber: #e7a928;
  --amber-soft: #fff6e3;
  --red: #db5d5d;
  --red-soft: #fdeeee;
  --violet: #7c5cff;
  --violet-soft: #f0ecff;
  --navy: #153a68;

  --shadow: 0 18px 50px rgba(20, 53, 92, .09);
  --shadow-soft: 0 8px 24px rgba(17, 39, 67, .06);
  --shadow-hover: 0 24px 60px rgba(20, 53, 92, .14);

  --radius-xl: 28px;
  --radius: 22px;
  --radius-sm: 16px;
  --radius-xs: 12px;

  --max: 1240px;
  --gutter: 40px;

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --t-fast: .18s;
  --t-med: .32s;

  --hero-glow-1: rgba(117, 188, 255, .18);
  --hero-glow-2: rgba(18, 167, 160, .11);
  --body-grad-a: #f7faff;
  --body-grad-b: #f4f7fb;
  --body-grad-c: #f1f5fa;
  --topbar-bg: rgba(247, 250, 255, .82);
  --toast-bg: #102948;
  --map-filter: none;
}

:root[data-theme="dark"] {
  color-scheme: dark;

  --bg: #0b1320;
  --bg-2: #0f1a2b;
  --panel: rgba(18, 29, 46, .82);
  --panel-solid: #121d2e;
  --panel-soft: #16233a;
  --line: #22334d;
  --line-soft: #1b2a41;
  --line-strong: #2c4162;
  --ink: #e9f0f8;
  --ink-soft: #a8b8cc;
  --ink-faint: #7a8ca4;
  --ink-inverse: #0b1320;

  --blue: #4f94ff;
  --blue-2: #7fb5ff;
  --blue-soft: #16294a;
  --teal: #2cc5bd;
  --teal-soft: #11312f;
  --green: #35c48b;
  --green-soft: #113427;
  --amber: #f2bb4a;
  --amber-soft: #3a2e12;
  --red: #f07676;
  --red-soft: #3a1c1c;
  --violet: #9f8bff;
  --violet-soft: #251f47;
  --navy: #9bbcf0;

  --shadow: 0 18px 50px rgba(0, 0, 0, .35);
  --shadow-soft: 0 8px 24px rgba(0, 0, 0, .28);
  --shadow-hover: 0 24px 60px rgba(0, 0, 0, .45);

  --hero-glow-1: rgba(79, 148, 255, .14);
  --hero-glow-2: rgba(44, 197, 189, .10);
  --body-grad-a: #0c1524;
  --body-grad-b: #0b1320;
  --body-grad-c: #0a111c;
  --topbar-bg: rgba(11, 19, 32, .78);
  --toast-bg: #1d2f4d;
  --map-filter: none;
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 96px;
  background: var(--bg);
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font: 16px/1.6 var(--font);
  font-feature-settings: "cv02", "cv03", "cv04", "cv11", "ss01";
  color: var(--ink);
  background:
    radial-gradient(circle at top left, var(--hero-glow-1), transparent 28%),
    radial-gradient(circle at 90% 8%, var(--hero-glow-2), transparent 22%),
    linear-gradient(180deg, var(--body-grad-a) 0%, var(--body-grad-b) 32%, var(--body-grad-c) 100%);
  background-attachment: scroll;
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img, svg, canvas, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 800; letter-spacing: -.03em; line-height: 1.12; text-wrap: balance; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: #cde2ff; color: #102033; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.shell { width: min(var(--max), calc(100% - var(--gutter))); margin: 0 auto; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 14px; border-radius: 10px; background: var(--blue); color: #fff; font-weight: 700;
  transition: top var(--t-fast) var(--ease);
}
.skip-link:focus { top: 16px; }

/* --------------------------------------------------------------------------
   3. Shared components
   -------------------------------------------------------------------------- */
.label {
  font-size: .74rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: 8px;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 10px;
  border-radius: 999px; background: var(--panel-solid); border: 1px solid var(--line);
  color: var(--blue); font-size: .8rem; font-weight: 700; box-shadow: var(--shadow-soft);
}
.eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: linear-gradient(145deg, var(--teal), var(--blue));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 14%, transparent);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 20px; border-radius: 14px; font-weight: 700;
  border: 1px solid transparent; white-space: nowrap;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease),
    background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary {
  background: linear-gradient(135deg, var(--blue), #3b92ff); color: #fff;
  box-shadow: 0 14px 30px rgba(29, 116, 245, .22);
}
.btn-primary:hover { box-shadow: 0 18px 36px rgba(29, 116, 245, .3); }
.btn-secondary { background: var(--panel-solid); border-color: var(--line); box-shadow: var(--shadow-soft); color: var(--ink); }
.btn-secondary:hover { border-color: var(--line-strong); }
.btn-ghost { background: var(--blue-soft); border-color: transparent; color: var(--blue); }
.btn-ghost:hover { background: color-mix(in srgb, var(--blue-soft) 70%, var(--blue) 12%); }
.btn-sm { min-height: 40px; padding: 0 14px; border-radius: 11px; font-size: .9rem; }
.btn[disabled], .btn[aria-busy="true"] { opacity: .65; pointer-events: none; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px;
  background: var(--bg-2); border: 1px solid var(--line-soft); color: var(--ink-soft);
  font-size: .78rem; font-weight: 600; line-height: 1.3;
}
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }

.panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 24px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}

.section { padding: 84px 0; }
.section-head { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: end; margin-bottom: 34px; }
.section-head h2 { font-size: clamp(1.95rem, 3.6vw, 2.9rem); letter-spacing: -.045em; line-height: 1.06; margin-top: 14px; }
.section-head p { color: var(--ink-soft); font-size: 1.02rem; line-height: 1.7; max-width: 560px; }

.tag-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.tag-dot.earthquake { background: var(--red); }
.tag-dot.tsunami { background: var(--teal); }
.tag-dot.weather { background: var(--amber); }
.tag-dot.volcano { background: var(--violet); }

/* reveal on scroll */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
html.js .reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }

/* --------------------------------------------------------------------------
   4. Top bar
   -------------------------------------------------------------------------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--topbar-bg);
  backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  transition: box-shadow var(--t-med) var(--ease);
}
.topbar.is-scrolled { box-shadow: 0 10px 30px rgba(16, 32, 51, .06); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-icon { width: 44px; height: 44px; flex: none; filter: drop-shadow(0 8px 18px rgba(29, 116, 245, .22)); }
.brand-wordmark { min-width: 0; line-height: 1.1; }
.brand-wordmark strong { display: block; font-size: 1.12rem; letter-spacing: -.035em; font-weight: 800; }
.brand-wordmark strong em { font-style: normal; color: var(--blue); }
.brand-wordmark span { display: block; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); font-weight: 700; margin-top: 3px; white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 9px 12px; border-radius: 10px; color: var(--ink-soft); font-size: .93rem; font-weight: 600; white-space: nowrap;
  transition: background var(--t-fast), color var(--t-fast);
}
.nav-links a:hover, .nav-links a.is-active { color: var(--ink); background: var(--bg-2); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.status-pill {
  display: inline-flex; align-items: center; gap: 9px; padding: 9px 13px; border-radius: 999px;
  background: var(--panel-solid); border: 1px solid var(--line); box-shadow: var(--shadow-soft);
  white-space: nowrap; font-size: .8rem; font-weight: 700; color: var(--ink-soft);
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(15, 159, 103, .16); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 3px rgba(15, 159, 103, .2); } 50% { box-shadow: 0 0 0 7px rgba(15, 159, 103, .05); } }

.icon-btn {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px;
  background: var(--panel-solid); border: 1px solid var(--line); color: var(--ink-soft); box-shadow: var(--shadow-soft);
  transition: color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.icon-btn:hover { color: var(--ink); border-color: var(--line-strong); transform: translateY(-1px); }
.icon-btn svg { width: 20px; height: 20px; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
.menu-toggle { display: none; }

.mobile-nav {
  display: none; border-top: 1px solid var(--line-soft); padding: 10px 0 16px;
}
.mobile-nav.is-open { display: block; }
.mobile-nav a { display: block; padding: 12px 8px; font-weight: 600; color: var(--ink-soft); border-radius: 10px; }
.mobile-nav a:hover { background: var(--bg-2); color: var(--ink); }

/* --------------------------------------------------------------------------
   5. Hero
   -------------------------------------------------------------------------- */
.hero { padding: 64px 0 28px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 40px; align-items: center; }
h1 { font-size: clamp(2.6rem, 5.6vw, 4.6rem); line-height: .98; letter-spacing: -.055em; margin: 20px 0 20px; max-width: 720px; }
h1 .accent {
  background: linear-gradient(100deg, var(--blue), var(--teal));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-copy { font-size: 1.1rem; line-height: 1.8; color: var(--ink-soft); max-width: 620px; }
.hero-copy strong { color: var(--ink); font-weight: 700; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-stats { display: grid; grid-template-columns: repeat(4, auto); gap: 28px; margin-top: 36px; padding-top: 26px; border-top: 1px solid var(--line-soft); width: fit-content; }
.stat b { display: block; font-size: 1.55rem; letter-spacing: -.04em; font-weight: 800; line-height: 1; }
.stat > span { display: block; margin-top: 6px; font-size: .78rem; color: var(--ink-faint); font-weight: 600; }

.hero-visual { position: relative; }
.device {
  position: relative; border-radius: var(--radius-xl); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--panel-solid);
}
.device img { width: 100%; aspect-ratio: 16 / 10.5; object-fit: cover; }
.device::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(10, 24, 44, .55) 100%);
  pointer-events: none;
}
.device-caption {
  position: absolute; left: 20px; right: 20px; bottom: 18px; display: flex; justify-content: space-between; align-items: end; gap: 14px; color: #fff; z-index: 2;
}
.device-caption strong { display: block; font-size: 1rem; letter-spacing: -.02em; }
.device-caption span { display: block; font-size: .8rem; opacity: .82; margin-top: 2px; }
.device-live { position: absolute; top: 16px; right: 16px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 7px 11px; border-radius: 999px; background: rgba(10, 24, 44, .55); color: #fff; backdrop-filter: blur(8px); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.device-live i { width: 7px; height: 7px; border-radius: 50%; background: #5ef1a4; box-shadow: 0 0 0 3px rgba(94, 241, 164, .3); }

.float-card {
  position: absolute; z-index: 3; background: var(--panel-solid); border: 1px solid var(--line);
  border-radius: 18px; padding: 12px 14px; box-shadow: var(--shadow); display: flex; gap: 12px; align-items: center;
  animation: floaty 7s ease-in-out infinite;
}
.float-card.fc-1 { left: -26px; top: 28px; animation-delay: -1s; }
.float-card.fc-2 { right: -22px; top: 44%; animation-delay: -3.5s; }
.float-card.fc-3 { right: 28px; bottom: -24px; animation-delay: -5s; }
.float-card b { display: block; font-size: .95rem; letter-spacing: -.02em; }
.float-card span { display: block; font-size: .76rem; color: var(--ink-faint); }
.float-icon { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.float-icon svg { width: 20px; height: 20px; }
.fi-blue { background: var(--blue-soft); color: var(--blue); }
.fi-teal { background: var(--teal-soft); color: var(--teal); }
.fi-amber { background: var(--amber-soft); color: var(--amber); }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

/* --------------------------------------------------------------------------
   6. Trust row
   -------------------------------------------------------------------------- */
.trust-row { padding: 26px 0 8px; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.trust-item {
  display: flex; align-items: center; gap: 12px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 18px; padding: 14px 16px; color: var(--ink-soft); box-shadow: var(--shadow-soft);
}
.trust-item svg { width: 34px; height: 34px; flex: none; }
.trust-item strong { display: block; color: var(--ink); font-size: .95rem; line-height: 1.2; }
.trust-item span { font-size: .8rem; }

/* --------------------------------------------------------------------------
   7. Live monitor (map)
   -------------------------------------------------------------------------- */
.monitor { display: grid; grid-template-columns: 1fr 380px; gap: 22px; align-items: stretch; }
.map-panel { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.map-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; border-bottom: 1px solid var(--line-soft); flex-wrap: wrap; }
.map-head h3 { font-size: 1.25rem; }
.map-head p { color: var(--ink-faint); font-size: .86rem; margin-top: 2px; }
.layer-toggles { display: flex; gap: 8px; flex-wrap: wrap; }
.layer-toggle {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--panel-solid); font-size: .8rem; font-weight: 700; color: var(--ink-soft);
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast), opacity var(--t-fast);
  user-select: none;
}
.layer-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.layer-toggle:has(input:checked) { color: var(--ink); border-color: var(--line-strong); background: var(--bg-2); }
.layer-toggle:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 2px; }
.layer-toggle:not(:has(input:checked)) .tag-dot { opacity: .35; }

.map { position: relative; flex: 1; min-height: 540px; background: var(--bg-2); z-index: 0; }
.map .leaflet-container { font-family: var(--font); background: var(--bg-2); }
.map-overlay {
  position: absolute; z-index: 500; left: 14px; bottom: 14px; display: flex; flex-direction: column; gap: 8px; pointer-events: none;
}
.map-stamp {
  pointer-events: auto; background: var(--panel-solid); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; box-shadow: var(--shadow-soft);
  font-size: .78rem; color: var(--ink-soft); font-weight: 600; display: flex; align-items: center; gap: 10px;
}
.map-stamp b { color: var(--ink); font-family: var(--mono); font-weight: 600; font-size: .8rem; }
.map-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 22px; border-top: 1px solid var(--line-soft); font-size: .8rem; color: var(--ink-faint); }
.legend { display: flex; flex-wrap: wrap; gap: 8px; }
.legend span { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; background: var(--panel-solid); border: 1px solid var(--line); border-radius: 999px; font-size: .78rem; color: var(--ink-soft); font-weight: 600; }

/* Leaflet overrides */
.leaflet-container a { color: var(--blue); }
.leaflet-bar { border: 1px solid var(--line) !important; box-shadow: var(--shadow-soft) !important; border-radius: 12px !important; overflow: hidden; }
.leaflet-bar a { background: var(--panel-solid) !important; color: var(--ink) !important; border-bottom-color: var(--line-soft) !important; width: 34px !important; height: 34px !important; line-height: 34px !important; }
.leaflet-bar a:hover { background: var(--bg-2) !important; }
.leaflet-control-attribution { background: color-mix(in srgb, var(--panel-solid) 85%, transparent) !important; color: var(--ink-faint) !important; font-size: 10.5px !important; border-radius: 8px 0 0 0; padding: 3px 8px !important; }
.leaflet-popup-content-wrapper { background: var(--panel-solid); color: var(--ink); border-radius: 16px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.leaflet-popup-tip { background: var(--panel-solid); }
.leaflet-popup-content { margin: 14px 16px; font-family: var(--font); line-height: 1.5; min-width: 220px; }
.leaflet-popup-close-button { color: var(--ink-faint) !important; top: 8px !important; right: 8px !important; }
.popup-kicker { font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; display: flex; align-items: center; gap: 7px; margin-bottom: 6px; }
.popup-title { font-weight: 800; font-size: 1rem; letter-spacing: -.02em; margin-bottom: 4px; }
.popup-body { color: var(--ink-soft); font-size: .85rem; }
.popup-meta { display: flex; justify-content: space-between; gap: 10px; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line-soft); font-size: .75rem; color: var(--ink-faint); font-family: var(--mono); }

.hn-marker { position: relative; width: 22px; height: 22px; }
.hn-marker .core { position: absolute; inset: 6px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px var(--panel-solid), 0 4px 10px rgba(0, 0, 0, .2); }
.hn-marker .pulse { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--c); opacity: .7; animation: ripple 2.6s ease-out infinite; }
.hn-marker .pulse.p2 { animation-delay: 1.3s; }
.hn-marker.severity-high .pulse { animation-duration: 1.6s; }
.hn-marker.severity-low .pulse.p2 { display: none; }
@keyframes ripple { 0% { transform: scale(.6); opacity: .8; } 100% { transform: scale(2.3); opacity: 0; } }
.hn-label { background: var(--panel-solid); border: 1px solid var(--line); color: var(--ink); border-radius: 8px; padding: 3px 8px; font-size: .72rem; font-weight: 700; box-shadow: var(--shadow-soft); white-space: nowrap; }
.hn-label::before { display: none; }

.feed-panel { display: flex; flex-direction: column; min-height: 0; }
.feed-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; margin-bottom: 14px; }
.feed-head h3 { font-size: 1.2rem; }
.feed-head p { color: var(--ink-faint); font-size: .84rem; margin-top: 3px; }
.feed { display: grid; gap: 10px; overflow: auto; max-height: 560px; padding-right: 4px; scrollbar-width: thin; }
.feed-item {
  display: grid; grid-template-columns: 38px 1fr; gap: 12px; padding: 12px; border-radius: 16px;
  background: var(--panel-solid); border: 1px solid var(--line-soft); animation: feedIn .5s var(--ease);
}
@keyframes feedIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.feed-icon { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; }
.feed-icon svg { width: 20px; height: 20px; }
.feed-item strong { display: block; font-size: .92rem; letter-spacing: -.01em; }
.feed-item p { color: var(--ink-soft); font-size: .84rem; line-height: 1.5; margin-top: 2px; }
.feed-meta { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; font-size: .74rem; color: var(--ink-faint); font-family: var(--mono); }
.feed-foot { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-soft); display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: .8rem; color: var(--ink-faint); }

.hz-earthquake { background: var(--red-soft); color: var(--red); }
.hz-tsunami { background: var(--teal-soft); color: var(--teal); }
.hz-weather { background: var(--amber-soft); color: var(--amber); }
.hz-volcano { background: var(--violet-soft); color: var(--violet); }
.hz-system { background: var(--blue-soft); color: var(--blue); }

/* --------------------------------------------------------------------------
   8. Hazards
   -------------------------------------------------------------------------- */
.hazard-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.hazard-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-soft);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.hazard-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.hazard-art { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.hazard-art img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.hazard-card:hover .hazard-art img { transform: scale(1.05); }
.hazard-art .badge {
  position: absolute; left: 14px; top: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px;
  border-radius: 999px; background: rgba(255, 255, 255, .9); color: #102033; font-size: .74rem; font-weight: 800; letter-spacing: .03em;
  backdrop-filter: blur(6px);
}
.hazard-art .badge svg { width: 14px; height: 14px; }
.hazard-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.hazard-body h3 { font-size: 1.2rem; }
.hazard-body p { color: var(--ink-soft); font-size: .93rem; line-height: 1.6; flex: 1; }
.skill { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line-soft); font-size: .78rem; color: var(--ink-faint); font-weight: 600; }
.skill b { color: var(--ink); font-family: var(--mono); font-weight: 600; }

/* --------------------------------------------------------------------------
   9. Technology (QEFC)
   -------------------------------------------------------------------------- */
.tech-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: stretch; margin-bottom: 22px; }
.tech-photo { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); min-height: 380px; }
.tech-photo img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.tech-photo figcaption {
  position: absolute; left: 18px; right: 18px; bottom: 18px; padding: 14px 16px; border-radius: 16px;
  background: rgba(10, 24, 44, .62); color: #fff; backdrop-filter: blur(10px); font-size: .84rem; line-height: 1.5;
}
.tech-photo figcaption b { display: block; font-size: .95rem; margin-bottom: 2px; }
.tech-copy h3 { font-size: 1.5rem; margin-bottom: 12px; }
.tech-copy p { color: var(--ink-soft); line-height: 1.75; }
.tech-copy p + p { margin-top: 12px; }
.principles { display: grid; gap: 12px; margin-top: 20px; }
.principle { display: grid; grid-template-columns: 42px 1fr; gap: 14px; padding: 14px; border-radius: 18px; background: var(--panel-solid); border: 1px solid var(--line-soft); }
.principle b { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: var(--blue-soft); color: var(--blue); }
.principle b svg { width: 22px; height: 22px; }
.principle strong { display: block; margin-bottom: 3px; }
.principle p { font-size: .9rem; color: var(--ink-soft); line-height: 1.55; }

.pipeline-panel { padding: 24px; }
.pipeline-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.pipeline-head h3 { font-size: 1.3rem; }
.pipeline-head p { color: var(--ink-faint); font-size: .88rem; margin-top: 4px; }
.pipeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; position: relative; }
.pipeline::before {
  content: ""; position: absolute; left: 10%; right: 10%; top: 36px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 8px, transparent 8px 16px);
}
.stage { position: relative; text-align: center; padding: 0 10px; }
.stage-icon {
  width: 72px; height: 72px; border-radius: 22px; margin: 0 auto 14px; display: grid; place-items: center;
  background: var(--panel-solid); border: 1px solid var(--line); box-shadow: var(--shadow-soft); color: var(--blue); position: relative; z-index: 1;
}
.stage-icon svg { width: 30px; height: 30px; }
.stage-icon.hot { background: linear-gradient(145deg, var(--blue), var(--teal)); color: #fff; border-color: transparent; box-shadow: 0 14px 30px rgba(29, 116, 245, .25); }
.stage strong { display: block; font-size: .95rem; letter-spacing: -.01em; }
.stage span { display: block; font-size: .8rem; color: var(--ink-faint); line-height: 1.45; margin-top: 4px; }
.stage small { display: inline-block; margin-top: 8px; padding: 3px 8px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line-soft); color: var(--ink-soft); font-family: var(--mono); font-size: .68rem; }

.spec-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 22px; margin-top: 22px; }
.spec-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.spec-table th, .spec-table td { padding: 12px 10px; text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.spec-table th { color: var(--ink-faint); font-weight: 700; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.spec-table td:first-child { color: var(--ink-soft); font-weight: 600; width: 44%; }
.spec-table td:last-child { font-family: var(--mono); font-size: .85rem; color: var(--ink); }
.spec-table tr:last-child td { border-bottom: 0; }
.spec-note { margin-top: 12px; font-size: .8rem; color: var(--ink-faint); line-height: 1.55; }

.capacitor-panel { display: flex; flex-direction: column; gap: 14px; }
.capacitor-viz { position: relative; border-radius: 18px; overflow: hidden; background: #0a1a30; border: 1px solid var(--line); aspect-ratio: 4 / 3; }
.capacitor-viz svg { width: 100%; height: 100%; }
.capacitor-readouts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.readout { padding: 12px; border-radius: 14px; background: var(--panel-solid); border: 1px solid var(--line-soft); }
.readout span { display: block; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); font-weight: 800; }
.readout b { display: block; margin-top: 4px; font-family: var(--mono); font-weight: 600; font-size: .98rem; letter-spacing: -.01em; }

/* QEFC schematic animation */
.qefc .q-flow { animation: qflow 1.6s linear infinite; }
.qefc .q-flow-rev { animation-direction: reverse; }
.qefc .q-core { transform-origin: 200px 150px; animation: qcore 2.8s ease-in-out infinite; }
.qefc .q-future { transform-origin: 348px 60px; animation: qblink 2.8s ease-in-out infinite; }
.qefc .q-entangle { animation: qentangle 6s linear infinite; }
.qefc .q-tube { stroke-opacity: .9; }
@keyframes qflow { to { stroke-dashoffset: -36; } }
@keyframes qcore { 0%, 100% { transform: scale(1); opacity: .85; } 50% { transform: scale(1.18); opacity: 1; } }
@keyframes qblink { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.6); } }
@keyframes qentangle { to { stroke-dashoffset: -120; } }

/* --------------------------------------------------------------------------
   10. Forecast console
   -------------------------------------------------------------------------- */
.console { display: grid; grid-template-columns: 400px 1fr; gap: 22px; align-items: start; }
.console-card, .results-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow); padding: 24px; backdrop-filter: blur(10px); }
.console-card { position: sticky; top: 96px; }
.console-card h3 { font-size: 1.4rem; margin-bottom: 6px; }
.console-card > p { color: var(--ink-soft); margin-bottom: 18px; font-size: .95rem; }
.field-grid { display: grid; gap: 16px; }
.field label { display: block; font-size: .76rem; font-weight: 800; color: var(--ink-faint); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; }
.field select, .field input[type="date"] {
  width: 100%; height: 50px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 14px;
  background: var(--panel-solid); color: var(--ink); outline: none; appearance: none; -webkit-appearance: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--ink-faint) 50%), linear-gradient(135deg, var(--ink-faint) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field select:focus, .field input[type="date"]:focus { border-color: var(--blue); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 18%, transparent); }
.range-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.range-head strong { font-family: var(--mono); font-weight: 600; font-size: .95rem; }
input[type="range"] { width: 100%; appearance: none; -webkit-appearance: none; height: 6px; border-radius: 999px; background: linear-gradient(90deg, var(--blue) var(--fill, 58%), var(--line) var(--fill, 58%)); outline: none; }
input[type="range"]::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(145deg, var(--blue), #4995ff); border: 3px solid var(--panel-solid); box-shadow: 0 4px 12px rgba(29, 116, 245, .35); cursor: grab; }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(145deg, var(--blue), #4995ff); border: 3px solid var(--panel-solid); box-shadow: 0 4px 12px rgba(29, 116, 245, .35); cursor: grab; }
input[type="range"]:focus-visible { outline-offset: 6px; }
.helper { margin-top: 6px; color: var(--ink-faint); font-size: .84rem; line-height: 1.5; }
.control-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.control-actions .btn-primary { grid-column: 1 / -1; }
.console-foot { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-soft); display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: .84rem; color: var(--ink-faint); }
.console-foot strong { color: var(--ink); }

.results-head { display: flex; justify-content: space-between; gap: 16px; align-items: start; margin-bottom: 18px; }
.results-head h3 { font-size: 1.5rem; letter-spacing: -.035em; line-height: 1.15; }
.results-head p { margin-top: 8px; color: var(--ink-soft); line-height: 1.6; }
.metric-stack { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; flex: none; max-width: 240px; }
.metric-chip { padding: 9px 12px; border-radius: 13px; background: var(--bg-2); border: 1px solid var(--line-soft); font-size: .8rem; font-weight: 700; color: var(--ink-soft); white-space: nowrap; }
.metric-chip b { color: var(--ink); font-family: var(--mono); font-weight: 600; }

.highlight { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.headline-card { background: linear-gradient(180deg, var(--panel-soft), var(--blue-soft)); border: 1px solid var(--line); border-radius: 20px; padding: 20px; display: flex; flex-direction: column; }
.kicker { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 999px; background: var(--panel-solid); border: 1px solid var(--line); font-size: .72rem; font-weight: 800; color: var(--blue); text-transform: uppercase; letter-spacing: .06em; width: fit-content; }
.headline-card h4 { margin: 14px 0 10px; font-size: 1.25rem; line-height: 1.2; letter-spacing: -.03em; }
.headline-card p { color: var(--ink-soft); line-height: 1.6; font-size: .95rem; flex: 1; }
.headline-card .advice { margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: var(--panel-solid); border: 1px dashed var(--line-strong); font-size: .86rem; color: var(--ink-soft); }
.headline-card .advice b { color: var(--ink); }

.forecast-map-card { border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--panel-solid); display: flex; flex-direction: column; }
.forecast-map { height: 100%; min-height: 250px; flex: 1; z-index: 0; }
.forecast-map-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--line-soft); font-size: .78rem; color: var(--ink-faint); font-family: var(--mono); }

.gauge-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; margin-bottom: 16px; }
.gauge-card { background: var(--panel-solid); border: 1px solid var(--line); border-radius: 20px; padding: 16px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.gauge-wrap { position: relative; display: grid; place-items: center; }
.ring { width: 124px; height: 124px; transform: rotate(-90deg); }
.ring-track { fill: none; stroke: var(--line-soft); stroke-width: 12; }
.ring-bar { fill: none; stroke-width: 12; stroke-linecap: round; stroke-dasharray: 339.3; stroke-dashoffset: 120; transition: stroke-dashoffset .7s var(--ease); }
.ring-text { position: absolute; text-align: center; }
.ring-text strong { display: block; font-size: 1.5rem; letter-spacing: -.04em; font-family: var(--mono); font-weight: 600; }
.ring-text span { display: block; font-size: .7rem; color: var(--ink-faint); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.gauge-card p { font-size: .82rem; color: var(--ink-soft); line-height: 1.5; }

.event-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.event { padding: 16px; border-radius: 18px; background: var(--panel-solid); border: 1px solid var(--line); display: grid; gap: 10px; align-content: start; animation: feedIn .5s var(--ease) both; }
.event:nth-child(2) { animation-delay: .08s; }
.event:nth-child(3) { animation-delay: .16s; }
.event-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.event-top span { display: inline-flex; align-items: center; gap: 7px; font-size: .74rem; font-weight: 800; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .06em; }
.event-top i { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; }
.event-top i svg { width: 18px; height: 18px; }
.event h5 { font-size: 1rem; line-height: 1.3; letter-spacing: -.015em; }
.event p { color: var(--ink-soft); font-size: .88rem; line-height: 1.55; }
.event-foot { display: flex; justify-content: space-between; gap: 10px; padding-top: 10px; border-top: 1px solid var(--line-soft); font-size: .78rem; color: var(--ink-faint); font-family: var(--mono); }
.prob { display: inline-flex; align-items: center; gap: 6px; }
.prob i { display: inline-block; width: 46px; height: 5px; border-radius: 999px; background: var(--line-soft); position: relative; overflow: hidden; }
.prob i::after { content: ""; position: absolute; inset: 0; width: var(--p, 50%); background: var(--c, var(--blue)); border-radius: 999px; }

.wave-card { margin-top: 16px; background: var(--panel-solid); border: 1px solid var(--line); border-radius: 20px; padding: 16px; }
.wave-top { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.wave-top strong { display: block; font-size: .95rem; font-family: var(--mono); font-weight: 600; }
.wave-legend { display: flex; gap: 12px; font-size: .76rem; color: var(--ink-faint); font-weight: 600; }
.wave-legend i { display: inline-block; width: 18px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 6px; }
canvas#waveform { width: 100%; height: 160px; border-radius: 14px; background: linear-gradient(180deg, var(--panel-soft), var(--bg-2)); border: 1px solid var(--line-soft); }
.log-list { display: grid; gap: 8px; margin-top: 12px; }
.log-item { display: flex; gap: 12px; padding: 9px 12px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line-soft); color: var(--ink-soft); font-size: .86rem; line-height: 1.5; animation: feedIn .4s var(--ease) both; }
.log-item b { color: var(--blue); flex: none; min-width: 64px; font-family: var(--mono); font-weight: 600; font-size: .8rem; padding-top: 1px; }

/* --------------------------------------------------------------------------
   11. Method
   -------------------------------------------------------------------------- */
.method-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: stretch; }
.steps { display: grid; gap: 14px; }
.step { display: grid; grid-template-columns: 48px 1fr; gap: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 20px; box-shadow: var(--shadow-soft); }
.step-number { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); font-weight: 800; font-size: 1.05rem; }
.step h3 { font-size: 1.1rem; margin-bottom: 6px; }
.step p { color: var(--ink-soft); font-size: .94rem; line-height: 1.6; }
.method-photo { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); min-height: 400px; }
.method-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.method-photo .photo-stats { position: absolute; left: 18px; right: 18px; bottom: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.photo-stat { padding: 12px 14px; border-radius: 14px; background: rgba(10, 24, 44, .66); backdrop-filter: blur(10px); color: #fff; }
.photo-stat b { display: block; font-size: 1.2rem; letter-spacing: -.03em; font-family: var(--mono); font-weight: 600; }
.photo-stat span { display: block; font-size: .72rem; opacity: .8; margin-top: 2px; }

/* --------------------------------------------------------------------------
   12. FAQ
   -------------------------------------------------------------------------- */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.faq { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-soft); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; font-weight: 700; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 10px; height: 10px; border-right: 2px solid var(--ink-faint); border-bottom: 2px solid var(--ink-faint); transform: rotate(45deg); transition: transform var(--t-med) var(--ease); flex: none; margin-right: 4px; }
.faq[open] summary::after { transform: rotate(-135deg); }
.faq summary:hover { color: var(--blue); }
.faq-body { padding: 0 20px 20px; color: var(--ink-soft); line-height: 1.7; font-size: .95rem; }
.faq-body a { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* --------------------------------------------------------------------------
   13. CTA band
   -------------------------------------------------------------------------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-xl); padding: 48px; color: #fff;
  background: radial-gradient(circle at 15% 20%, rgba(94, 168, 255, .5), transparent 45%), radial-gradient(circle at 85% 80%, rgba(18, 167, 160, .45), transparent 45%), linear-gradient(135deg, #10305f, #0f2446);
  box-shadow: var(--shadow); display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center;
}
.cta-band h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); letter-spacing: -.045em; }
.cta-band p { margin-top: 12px; color: rgba(255, 255, 255, .8); line-height: 1.7; max-width: 520px; }
.cta-form { display: grid; gap: 10px; }
.cta-form .row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.cta-form input[type="email"] { height: 52px; padding: 0 16px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .1); color: #fff; outline: none; width: 100%; }
.cta-form input[type="email"]::placeholder { color: rgba(255, 255, 255, .55); }
.cta-form input[type="email"]:focus { border-color: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .18); }
.cta-form .btn-light { background: #fff; color: #10305f; box-shadow: 0 10px 24px rgba(0, 0, 0, .18); }
.cta-form .btn-light:hover { background: #f1f6ff; }
.cta-form small { color: rgba(255, 255, 255, .62); font-size: .78rem; line-height: 1.5; }
.cta-form .ok { display: none; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25); font-weight: 600; }
.cta-form.is-done .row, .cta-form.is-done small { display: none; }
.cta-form.is-done .ok { display: block; }

/* --------------------------------------------------------------------------
   14. Footer
   -------------------------------------------------------------------------- */
.footer { padding: 70px 0 36px; color: var(--ink-faint); }
.disclaimer {
  display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; padding: 20px 22px; border-radius: 20px;
  background: var(--amber-soft); border: 1px solid color-mix(in srgb, var(--amber) 40%, transparent); color: var(--ink-soft); margin-bottom: 28px;
}
.disclaimer svg { width: 44px; height: 44px; color: var(--amber); }
.disclaimer strong { display: block; color: var(--ink); margin-bottom: 4px; font-size: 1rem; }
.disclaimer p { font-size: .92rem; line-height: 1.65; }
.disclaimer a { color: var(--blue); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--line-soft); }
.footer-brand p { margin-top: 12px; font-size: .9rem; line-height: 1.65; max-width: 360px; }
.footer h4 { font-size: .78rem; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 12px; font-weight: 800; }
.footer-col a { display: block; padding: 5px 0; color: var(--ink-soft); font-size: .92rem; }
.footer-col a:hover { color: var(--blue); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 22px; font-size: .84rem; flex-wrap: wrap; }
.footer-bottom .status { display: inline-flex; align-items: center; gap: 8px; }
.footer-bottom .status i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }

/* --------------------------------------------------------------------------
   15. Toast & misc
   -------------------------------------------------------------------------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); z-index: 90;
  background: var(--toast-bg); color: #fff; padding: 13px 18px; border-radius: 14px; max-width: min(92vw, 520px);
  box-shadow: 0 20px 50px rgba(16, 32, 51, .3); opacity: 0; pointer-events: none;
  transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease); font-weight: 600; font-size: .92rem; line-height: 1.4;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

noscript .nojs { display: block; padding: 14px 18px; background: var(--amber-soft); color: var(--ink); text-align: center; font-weight: 600; }

/* --------------------------------------------------------------------------
   16. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1280px) {
  .status-pill { display: none; }
}

@media (max-width: 1180px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-visual { max-width: 720px; }
  .float-card.fc-1 { left: 10px; }
  .float-card.fc-2 { right: 10px; }
  .monitor { grid-template-columns: 1fr; }
  .feed { max-height: 420px; }
  .console { grid-template-columns: 1fr; }
  .console-card { position: static; }
  .tech-intro, .spec-grid, .method-grid, .cta-band { grid-template-columns: 1fr; }
  .pipeline { grid-template-columns: repeat(3, 1fr); row-gap: 28px; }
  .pipeline::before { display: none; }
  .hazard-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section-head { grid-template-columns: 1fr; gap: 14px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1000px) {
  .nav-links, .nav-cta { display: none; }
  .menu-toggle { display: grid; }
}

@media (max-width: 860px) {
  :root { --gutter: 28px; }
  .hero { padding-top: 36px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); width: 100%; gap: 20px; }
  .highlight, .gauge-row, .event-grid, .faq-grid { grid-template-columns: 1fr; }
  .forecast-map { min-height: 280px; }
  .results-head { flex-direction: column; }
  .metric-stack { justify-content: flex-start; max-width: none; }
  .pipeline { grid-template-columns: repeat(2, 1fr); }
  .capacitor-readouts { grid-template-columns: 1fr 1fr 1fr; }
}

@media (max-width: 600px) {
  :root { --gutter: 24px; }
  .brand-wordmark span { white-space: normal; }
  .section { padding: 56px 0; }
  .panel, .console-card, .results-card { padding: 18px; }
  .hazard-grid, .trust-grid, .control-actions { grid-template-columns: 1fr; }
  .float-card { display: none; }
  .map { min-height: 420px; }
  .pipeline { grid-template-columns: 1fr 1fr; }
  .cta-band { padding: 28px; }
  .cta-form .row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .method-photo .photo-stats { grid-template-columns: 1fr; }
  .capacitor-readouts { grid-template-columns: 1fr; }
  .spec-table td:first-child { width: 50%; }
}

/* --------------------------------------------------------------------------
   17. Motion & print
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .float-card { animation: none; }
}

@media print {
  .topbar, .hero-visual, .trust-row, .map-panel, .feed-panel, .cta-band, .toast, .skip-link, .hero-actions, .control-actions { display: none !important; }
  body { background: #fff; color: #000; }
  .panel, .console-card, .results-card, .hazard-card, .step, .faq { box-shadow: none; border-color: #bbb; background: #fff; }
  .section { padding: 24px 0; }
}
