/* =========================================================
   Meteorender — style.css
   Bảng màu lấy từ logo:
   Navy #0B1B3A · Teal #0E96B8 · Cyan #22D3EE · Ink #050B18 · Paper #F3F7FC
   ========================================================= */

:root {
  --navy: #0B1B3A;
  --teal: #0E96B8;
  --cyan: #22D3EE;
  --ink: #050B18;
  --paper: #F3F7FC;

  --font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius: 18px;
  --radius-sm: 10px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --container: 1200px;
}

/* ---------- Theme: tối (mặc định, theo logo nền đen) ---------- */
[data-theme="dark"] {
  --bg: #050B18;
  --bg-2: #081227;
  --surface: rgba(148, 197, 230, .04);
  --surface-2: rgba(148, 197, 230, .07);
  --line: rgba(148, 197, 230, .13);
  --text: #E7F1FA;
  --muted: #8DA4BE;
  --accent: #22D3EE;
  --accent-2: #0E96B8;
  --accent-ink: #04202A;
  --logo-a: #FFFFFF;
  --logo-b: #22D3EE;
  --mark-gap: #050B18;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, .7);
  --glow: 0 0 0 1px rgba(34, 211, 238, .25), 0 10px 40px -10px rgba(34, 211, 238, .45);
  color-scheme: dark;
}

/* ---------- Theme: sáng (theo logo nền trắng) ---------- */
[data-theme="light"] {
  --bg: #F3F7FC;
  --bg-2: #E9F1F9;
  --surface: #FFFFFF;
  --surface-2: #F6FAFD;
  --line: rgba(11, 27, 58, .1);
  --text: #0B1B3A;
  --muted: #4B607C;
  --accent: #0E96B8;
  --accent-2: #0B7E9B;
  --accent-ink: #FFFFFF;
  --logo-a: #0B1B3A;
  --logo-b: #0E96B8;
  --mark-gap: #F3F7FC;
  --shadow: 0 30px 70px -35px rgba(11, 27, 58, .35);
  --glow: 0 0 0 1px rgba(14, 150, 184, .25), 0 10px 30px -12px rgba(14, 150, 184, .5);
  color-scheme: light;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: background .4s var(--ease), color .4s var(--ease);
  overflow-x: hidden;
}
img, svg, canvas { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--accent); color: var(--accent-ink); }

.container { width: min(var(--container), 100% - 48px); margin-inline: auto; }
.mono { font-family: var(--mono); letter-spacing: .02em; }
.dim { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px;
  font-weight: 600; font-size: 15px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, border-color .25s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  color: #03141B;
  box-shadow: var(--glow);
}
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost {
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { border-color: var(--accent); }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-block { width: 100%; }

.icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color .2s, transform .2s;
}
.icon-btn:hover { border-color: var(--accent); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; flex-direction: column; gap: 2px; }
.logo-word { display: inline-flex; align-items: center; font-size: 25px; line-height: 1; letter-spacing: -.01em; }
.logo-a { font-weight: 800; color: var(--logo-a); transition: color .4s; }
.logo-b { font-weight: 300; color: var(--logo-b); transition: color .4s; }
.logo-mark {
  width: .86em; height: .86em; margin: 0 .04em 0 .03em;
  color: var(--logo-a);
  transition: color .4s, transform 1.2s var(--ease);
}
.logo:hover .logo-mark { transform: rotate(120deg); }
.logo-waves { width: 0; min-width: 100%; height: 8px; color: var(--logo-b); }
.logo-lg .logo-word { font-size: 34px; }
.logo-lg .logo-waves { height: 11px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding: 18px 0;
  transition: padding .3s var(--ease), background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  padding: 10px 0;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom-color: var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-links { display: flex; gap: 34px; font-size: 15px; font-weight: 500; }
.nav-links a:not(.btn) { color: var(--muted); position: relative; transition: color .2s; }
.nav-links a:not(.btn):hover, .nav-links a.active { color: var(--text); }
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--accent); border-radius: 2px;
  transform: scaleX(0); transition: transform .3s var(--ease);
}
.nav-links a.active::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-cta-mobile, .burger { display: none; }

[data-theme="dark"] .i-sun { display: block; }
[data-theme="dark"] .i-moon { display: none; }
[data-theme="light"] .i-sun { display: none; }
[data-theme="light"] .i-moon { display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: 130px 0 90px;
  overflow: hidden;
  isolation: isolate;
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; background: radial-gradient(ellipse at 70% 40%, #0E3550, var(--bg)); }
.hero-shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 70%, transparent) 38%, transparent 70%),
    linear-gradient(0deg, var(--bg) 0%, transparent 28%);
}
.hero-inner { display: grid; grid-template-columns: 1.35fr .65fr; align-items: end; gap: 48px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
  backdrop-filter: blur(8px);
  font-family: var(--mono); font-size: 12.5px; color: var(--muted);
  margin-bottom: 26px;
}
.pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 70%, transparent); }
  70% { box-shadow: 0 0 0 10px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.hero h1 {
  font-size: clamp(40px, 6.2vw, 82px);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.04;
  margin-bottom: 26px;
}
.hero h1 em {
  font-style: normal; font-weight: 300;
  background: linear-gradient(100deg, var(--cyan), var(--teal) 60%, var(--cyan));
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }
.lead { font-size: clamp(16px, 1.4vw, 19px); color: var(--muted); max-width: 600px; margin-bottom: 36px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }

.readout {
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
}
.readout-head { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 14px; }
.readout-head .mono:first-child { color: var(--accent); font-weight: 500; }
.readout-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.readout-grid > div { display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 6px; }
.ro-label { grid-column: 1 / -1; font-size: 12px; color: var(--muted); }
.ro-val { font-family: var(--mono); font-size: 24px; font-weight: 500; font-variant-numeric: tabular-nums; }
.ro-unit { font-size: 12px; color: var(--muted); }
.readout-foot { font-size: 11px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }

.hero-scroll {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  width: 22px; height: 36px; border-radius: 12px; border: 1.5px solid var(--line);
}
.hero-scroll span {
  position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px;
  border-radius: 2px; background: var(--accent);
  animation: scrollDot 1.8s var(--ease) infinite;
}
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- Sources marquee ---------- */
.sources { padding: 34px 0 10px; border-block: 1px solid var(--line); background: var(--bg-2); overflow: hidden; }
.sources-title { text-align: center; font-size: 11.5px; color: var(--muted); letter-spacing: .18em; margin-bottom: 18px; }
.marquee { mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 64px; width: max-content; padding-bottom: 24px; animation: marquee 38s linear infinite; }
.marquee-track span { font-size: 19px; font-weight: 600; color: var(--muted); opacity: .75; white-space: nowrap; }
.marquee-track span::before { content: "◇"; color: var(--accent); margin-right: 14px; font-size: 13px; vertical-align: 2px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.section-head { max-width: 760px; margin-bottom: 60px; }
.kicker { display: inline-block; font-family: var(--mono); font-size: 13px; color: var(--accent); margin-bottom: 16px; letter-spacing: .04em; }
.section-head h2, .contact h2 { font-size: clamp(30px, 4vw, 50px); font-weight: 700; margin-bottom: 18px; }
.section-head p { color: var(--muted); font-size: 18px; }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  position: relative; padding: 30px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  overflow: hidden;
  transition: transform .4s var(--ease), border-color .3s, box-shadow .4s;
}
.feature::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--accent) 14%, transparent), transparent 45%);
  opacity: 0; transition: opacity .3s;
}
.feature:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 45%, transparent); box-shadow: var(--shadow); }
.feature:hover::before { opacity: 1; }
.feature-icon {
  width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 22px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
}
.feature-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 20px; font-weight: 650; margin-bottom: 12px; }
.feature p { color: var(--muted); font-size: 15.5px; margin-bottom: 20px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-family: var(--mono); font-size: 11.5px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }

/* ---------- Platform console (luôn tối) ---------- */
.platform { background: linear-gradient(180deg, var(--bg), var(--bg-2)); }
.console {
  --c-bg: #060E1F; --c-line: rgba(148, 197, 230, .12); --c-text: #E7F1FA; --c-muted: #7E96B2;
  color: var(--c-text);
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: 22px;
  box-shadow: 0 50px 120px -40px rgba(4, 30, 50, .8), 0 0 0 1px rgba(34, 211, 238, .06);
  overflow: hidden;
}
.console-bar { display: flex; align-items: center; gap: 16px; padding: 12px 18px; border-bottom: 1px solid var(--c-line); background: rgba(255, 255, 255, .02); }
.dots { display: flex; gap: 7px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: #1C2C47; }
.dots i:first-child { background: #0E96B8; }
.console-title { font-size: 12px; color: var(--c-muted); flex: 1; }
.live { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; color: #22D3EE; }
.live .pulse { --accent: #22D3EE; }

.console-body { display: grid; grid-template-columns: 220px 1fr 250px; min-height: 480px; }
.console-side, .console-kpis { padding: 18px; }
.console-side { border-right: 1px solid var(--c-line); }
.console-kpis { border-left: 1px solid var(--c-line); display: flex; flex-direction: column; gap: 12px; }
.side-label { font-size: 10.5px; color: var(--c-muted); letter-spacing: .14em; margin: 4px 0 10px; }
.layer-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 26px; }
.layer {
  display: flex; align-items: center; gap: 10px; text-align: left;
  padding: 10px 12px; border-radius: 10px; font-size: 14px; color: var(--c-muted);
  border: 1px solid transparent; transition: all .2s;
}
.layer:hover { color: var(--c-text); background: rgba(255, 255, 255, .03); }
.layer.active { color: var(--c-text); background: rgba(34, 211, 238, .08); border-color: rgba(34, 211, 238, .3); }
.sw { width: 26px; height: 8px; border-radius: 4px; flex: none; }
.sw-wind { background: linear-gradient(90deg, #0B1B3A, #0E96B8, #22D3EE, #E8FBFF); }
.sw-temp { background: linear-gradient(90deg, #2B4CC4, #0E96B8, #F5C342, #E8542F); }
.sw-rain { background: linear-gradient(90deg, #0E96B8, #2DD4A0, #F5D142, #E8542F); }

.alerts { display: flex; flex-direction: column; gap: 8px; }
.al { padding: 10px 12px 10px 14px; border-radius: 10px; background: rgba(255, 255, 255, .025); border-left: 3px solid; font-size: 13px; }
.al b { display: block; font-weight: 600; }
.al span { color: var(--c-muted); font-size: 12px; }
.al-high { border-color: #F0643C; }
.al-mid { border-color: #F5C342; }
.al-low { border-color: #22D3EE; }

.console-map { position: relative; overflow: hidden; background: #040A16; min-height: 420px; }
.console-map canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-legend {
  position: absolute; left: 14px; bottom: 14px; width: 190px;
  padding: 10px 12px; border-radius: 10px; font-size: 10.5px; color: var(--c-muted);
  background: rgba(5, 11, 24, .72); border: 1px solid var(--c-line); backdrop-filter: blur(8px);
}
.legend-bar { height: 7px; border-radius: 4px; margin: 7px 0 5px; }
.legend-ticks { display: flex; justify-content: space-between; }
.map-tag {
  position: absolute; padding: 5px 9px; border-radius: 6px; font-size: 10.5px; white-space: nowrap;
  background: rgba(240, 100, 60, .14); color: #FFB59C; border: 1px solid rgba(240, 100, 60, .4);
  transform: translate(-50%, -170%); pointer-events: none; transition: left .3s linear, top .3s linear;
}
.map-note { position: absolute; right: 12px; bottom: 10px; font-size: 10px; color: var(--c-muted); opacity: .7; }

.kpi { padding: 13px 14px; border-radius: 12px; background: rgba(255, 255, 255, .025); border: 1px solid var(--c-line); }
.kpi-label { font-size: 12px; color: var(--c-muted); }
.kpi-row { display: flex; align-items: baseline; gap: 5px; margin: 2px 0 6px; }
.kpi-row b { font-family: var(--mono); font-size: 24px; font-weight: 500; font-variant-numeric: tabular-nums; }
.kpi-row small { color: var(--c-muted); font-size: 12px; }
.delta { margin-left: auto; font-family: var(--mono); font-size: 11px; padding: 2px 7px; border-radius: 6px; }
.delta.up { color: #2DD4A0; background: rgba(45, 212, 160, .1); }
.delta.down { color: #F59E7C; background: rgba(245, 158, 124, .1); }
.spark { width: 100%; height: 38px; overflow: visible; }
.risk-bar { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .06); overflow: hidden; margin-top: 6px; }
.risk-bar span { display: block; height: 100%; width: 30%; border-radius: 4px; background: linear-gradient(90deg, #22D3EE, #F5C342, #F0643C); background-size: 300px 100%; transition: width .4s var(--ease); }

.console-timeline { display: flex; align-items: center; gap: 18px; padding: 14px 20px; border-top: 1px solid var(--c-line); }
.play {
  width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: linear-gradient(135deg, #22D3EE, #0E96B8); color: #03141B;
}
.play svg { width: 16px; height: 16px; fill: currentColor; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
.play .i-pause { display: none; }
.play.playing .i-play { display: none; }
.play.playing .i-pause { display: block; }
.tl-track { flex: 1; }
.tl-ticks { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--c-muted); margin-top: 6px; }
.tl-time { font-size: 14px; color: #22D3EE; min-width: 52px; text-align: right; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 3px; background: linear-gradient(90deg, #0E96B8 var(--p, 0%), rgba(255,255,255,.08) var(--p, 0%)); outline: none; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #E8FBFF; border: 3px solid #22D3EE; cursor: grab; box-shadow: 0 0 12px rgba(34,211,238,.6); }
input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #E8FBFF; border: 3px solid #22D3EE; cursor: grab; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 60px; }
.stat { padding: 24px 4px; border-top: 1px solid var(--line); }
.stat b { display: block; font-size: clamp(32px, 3.6vw, 46px); font-weight: 700; letter-spacing: -.03em; color: var(--accent); font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 14.5px; }

/* ---------- Industries ---------- */
.industries { display: grid; grid-template-columns: 300px 1fr; gap: 24px; }
.ind-tabs { display: flex; flex-direction: column; gap: 8px; }
.ind-tab {
  display: flex; align-items: center; gap: 14px; text-align: left;
  padding: 16px 18px; border-radius: 14px; font-weight: 550; font-size: 15.5px;
  border: 1px solid var(--line); background: var(--surface); color: var(--muted);
  transition: all .25s var(--ease);
}
.ind-tab svg { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ind-tab:hover { color: var(--text); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.ind-tab.active { color: var(--text); border-color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, var(--surface)); box-shadow: var(--glow); }
.ind-tab.active svg { color: var(--accent); }

.ind-panel {
  display: grid; grid-template-columns: 1fr 1fr; border-radius: 22px; overflow: hidden;
  border: 1px solid var(--line); background: var(--surface); min-height: 440px;
}
.ind-visual { position: relative; background: #050B18; }
.ind-visual canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.ind-content { padding: 36px; display: flex; flex-direction: column; }
.ind-content h3 { font-size: 26px; margin-bottom: 14px; }
.ind-content > p { color: var(--muted); margin-bottom: 22px; }
.ind-uses { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.ind-uses li { position: relative; padding-left: 28px; font-size: 15px; }
.ind-uses li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  box-shadow: inset 0 0 0 4.5px var(--surface), inset 0 0 0 10px var(--accent);
}
.ind-metric { margin-top: auto; padding-top: 22px; border-top: 1px solid var(--line); display: flex; align-items: baseline; gap: 14px; }
.ind-metric b { font-size: 40px; font-weight: 700; color: var(--accent); letter-spacing: -.03em; }
.ind-metric span { color: var(--muted); font-size: 14px; }
.ind-content.swap { animation: swapIn .5s var(--ease); }
@keyframes swapIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Process ---------- */
.process { background: var(--bg-2); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; position: relative; }
.steps::before {
  content: ""; position: absolute; left: 0; right: 0; top: 27px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: .5;
}
.step { position: relative; padding-top: 4px; }
.step-n {
  display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent);
  background: var(--bg-2); color: var(--accent); font-size: 15px; margin-bottom: 22px;
  position: relative; z-index: 1;
}
.step h3 { font-size: 19px; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 15px; }

/* ---------- Contact ---------- */
.contact { overflow: hidden; }
.contact::before {
  content: ""; position: absolute; width: 700px; height: 700px; right: -200px; top: -100px; z-index: -1;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 16%, transparent), transparent 65%);
  pointer-events: none;
}
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact-copy p { color: var(--muted); font-size: 18px; margin-bottom: 28px; }
.contact-points { display: flex; flex-direction: column; gap: 14px; }
.contact-points li { display: flex; gap: 12px; align-items: center; }
.contact-points svg { width: 22px; height: 22px; padding: 3px; border-radius: 50%; flex: none; fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; background: color-mix(in srgb, var(--accent) 14%, transparent); }

.form { padding: 32px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field span { font-size: 13px; font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 15px; color: var(--text);
  padding: 12px 14px; border-radius: 10px;
  background: var(--bg); border: 1px solid var(--line);
  transition: border-color .2s, box-shadow .2s;
  resize: vertical;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }
.field input.invalid { border-color: #F0643C; }
.form-msg { font-size: 14px; min-height: 1.2em; text-align: center; }
.form-msg.ok { color: #2DD4A0; }
.form-msg.err { color: #F0643C; }
.form-msg a { text-decoration: underline; }
.btn:disabled { opacity: .7; cursor: wait; transform: none; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 64px 0 28px; background: var(--bg-2); }
.footer-inner { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.footer-brand p { color: var(--muted); margin-top: 16px; max-width: 280px; }
.footer-cols { display: flex; gap: 72px; flex-wrap: wrap; }
.footer-cols h4 { font-size: 13px; font-weight: 600; margin-bottom: 14px; letter-spacing: .02em; }
.footer-cols a { display: block; color: var(--muted); font-size: 14.5px; margin-bottom: 9px; transition: color .2s; }
.footer-cols a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 52px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.features .reveal:nth-child(3n+2), .steps .reveal:nth-child(2), .stats .reveal:nth-child(2) { transition-delay: .08s; }
.features .reveal:nth-child(3n+3), .steps .reveal:nth-child(3), .stats .reveal:nth-child(3) { transition-delay: .16s; }
.steps .reveal:nth-child(4), .stats .reveal:nth-child(4) { transition-delay: .24s; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .console-body { grid-template-columns: 1fr; }
  .console-side { border-right: 0; border-bottom: 1px solid var(--c-line); display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
  .console-side .side-label:nth-of-type(2) { grid-row: 1; grid-column: 2; }
  .alerts { grid-column: 2; }
  .layer-list { grid-row: 2; grid-column: 1; }
  .console-kpis { border-left: 0; border-top: 1px solid var(--c-line); display: grid; grid-template-columns: repeat(2, 1fr); }
  .console-map { min-height: 380px; }
  .industries { grid-template-columns: 1fr; }
  .ind-tabs { flex-direction: row; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
  .ind-tab { flex: none; }
}

@media (max-width: 900px) {
  .nav-links {
    position: fixed; inset: 64px 16px auto 16px; flex-direction: column; gap: 4px;
    padding: 14px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); box-shadow: var(--shadow);
    opacity: 0; pointer-events: none; transform: translateY(-10px); transition: all .25s var(--ease);
  }
  .nav-links.open { opacity: 1; pointer-events: auto; transform: none; }
  .nav-links a:not(.btn) { padding: 12px 10px; }
  .nav-links a:not(.btn)::after { display: none; }
  .nav-cta-mobile { display: inline-flex; margin-top: 8px; }
  .nav-cta { display: none; }
  .burger { display: grid; }

  .hero-inner { grid-template-columns: 1fr; }
  .readout { max-width: 380px; }
  .features { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .steps::before { display: none; }
  .ind-panel { grid-template-columns: 1fr; }
  .ind-visual { min-height: 240px; }
  .contact-inner { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 600px) {
  .container { width: calc(100% - 32px); }
  .features, .steps { grid-template-columns: 1fr; }
  .console-side { display: block; padding: 14px; }
  .console-side .side-label:nth-of-type(2), .alerts { display: none; }
  .layer-list { flex-direction: row; overflow-x: auto; margin-bottom: 0; scrollbar-width: none; }
  .layer { flex: none; font-size: 13px; padding: 8px 10px; }
  .console-kpis { grid-template-columns: 1fr; }
  .console-map { min-height: 320px; }
  .tl-ticks span:nth-child(even) { visibility: hidden; }
  .field-row { grid-template-columns: 1fr; }
  .form, .ind-content { padding: 24px; }
  .footer-cols { gap: 40px; }
  .logo-word { font-size: 22px; }
}

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