/* ============================================================
   Kelvix — tropical cooling control layer
   Palette: deep ink navy, ice blue, cyan/mint accent
   ============================================================ */
:root {
  --ink-900: #060B18;
  --ink-850: #08101F;
  --ink-800: #0B1526;
  --ink-700: #0F1D33;
  --ink-600: #16263F;
  --line: rgba(120, 170, 220, 0.14);
  --line-strong: rgba(120, 190, 230, 0.28);

  --cyan: #38E1D6;
  --cyan-bright: #5BF0E6;
  --ice: #8CC5FF;
  --ice-soft: #A9D3FF;
  --blue: #4E8BFF;

  --white: #F3F8FF;
  --text: #C9D8EC;
  --muted: #8195AE;
  --muted-2: #61748C;

  --grad: linear-gradient(120deg, #38E1D6 0%, #6FB6FF 55%, #8CC5FF 100%);
  --grad-warm: linear-gradient(120deg, #5BF0E6, #4E8BFF);

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
  --maxw: 1180px;

  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --display: 'Sora', 'Inter', -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  font-family: var(--sans);
  background: var(--ink-900);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

a { color: inherit; text-decoration: none; }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: var(--grad); z-index: 200;
  box-shadow: 0 0 14px rgba(56, 225, 214, 0.6);
  transition: width 0.05s linear;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(6, 11, 24, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 16px 28px;
  display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 26px; height: 26px; fill: var(--cyan); filter: drop-shadow(0 0 8px rgba(56,225,214,0.5)); }
.brand-word {
  font-family: var(--display); font-weight: 800; letter-spacing: 0.16em;
  font-size: 1.05rem; color: var(--white);
}
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a {
  font-size: 0.9rem; color: var(--muted); font-weight: 500;
  transition: color 0.2s ease; position: relative;
}
.nav-links a:hover { color: var(--white); }
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--grad); transition: width 0.25s ease;
}
.nav-links a:hover::after { width: 100%; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-weight: 600; font-size: 0.92rem;
  padding: 11px 20px; border-radius: 999px; cursor: pointer;
  background: var(--grad); color: #05131A; border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  box-shadow: 0 8px 24px -8px rgba(56, 225, 214, 0.5);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -8px rgba(56, 225, 214, 0.65); filter: brightness(1.05); }
.btn-sm { padding: 9px 16px; font-size: 0.85rem; }
.btn-lg { padding: 15px 30px; font-size: 1rem; }
.btn-ghost {
  background: transparent; color: var(--white);
  border: 1px solid var(--line-strong); box-shadow: none;
}
.btn-ghost:hover { background: rgba(140, 197, 255, 0.08); border-color: var(--ice); box-shadow: none; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: 0.3s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; padding: 168px 0 70px; overflow: hidden;
  background: radial-gradient(1200px 620px at 70% -10%, rgba(30, 70, 120, 0.5), transparent 60%), var(--ink-900);
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background: url('images/hero.jpg') center 30% / cover no-repeat;
  opacity: 0.30;
}
.hero-veil {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(6,11,24,0.55) 0%, rgba(6,11,24,0.35) 40%, rgba(6,11,24,0.9) 100%),
    linear-gradient(90deg, rgba(6,11,24,0.85) 0%, rgba(6,11,24,0.25) 55%, rgba(6,11,24,0.15) 100%);
}
.hero-glow {
  position: absolute; top: -160px; right: -120px; width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(56, 225, 214, 0.22), transparent 62%);
  filter: blur(30px); pointer-events: none;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(120, 180, 230, 0.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(120, 180, 230, 0.05) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(900px 520px at 60% 0%, black, transparent 75%);
  -webkit-mask-image: radial-gradient(900px 520px at 60% 0%, black, transparent 75%);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 900px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em;
  color: var(--ice); padding: 7px 15px; border-radius: 999px;
  background: rgba(78, 139, 255, 0.1); border: 1px solid var(--line-strong);
  margin-bottom: 26px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

.hero-title {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 4.3rem); line-height: 1.04;
  letter-spacing: -0.02em; color: var(--white); margin-bottom: 24px;
}
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub {
  font-size: clamp(1.02rem, 2vw, 1.28rem); color: var(--text);
  max-width: 700px; margin-bottom: 34px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-badges { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-badge {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.88rem; color: var(--text);
  padding: 10px 16px; border-radius: 12px;
  background: rgba(15, 29, 51, 0.6); border: 1px solid var(--line);
}
.hb-status { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; padding: 3px 8px; border-radius: 6px; }
.hb-status.live { background: rgba(56, 225, 214, 0.16); color: var(--cyan-bright); border: 1px solid rgba(56,225,214,0.35); }
.hb-status.dev { background: rgba(140, 197, 255, 0.12); color: var(--ice); border: 1px solid rgba(140,197,255,0.3); }

.hero-stats {
  position: relative; display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 22px; margin-top: 72px; padding-top: 42px;
  border-top: 1px solid var(--line);
}
.hstat-num {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(1.8rem, 3.2vw, 2.7rem); color: var(--white);
  line-height: 1; letter-spacing: -0.01em;
}
.hstat-num .u { color: var(--cyan); }
.hstat-label { font-size: 0.86rem; color: var(--muted); margin-top: 10px; max-width: 220px; }

/* ---------- Section shells ---------- */
.section { padding: 100px 0; position: relative; }
.section-alt { background: linear-gradient(180deg, var(--ink-850), var(--ink-900)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 820px; margin-bottom: 54px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker {
  display: inline-block; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--cyan);
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.8rem, 3.6vw, 2.85rem); line-height: 1.1;
  letter-spacing: -0.02em; color: var(--white);
}
.section-lead { font-size: 1.08rem; color: var(--muted); margin-top: 18px; max-width: 720px; }
.section-lead.center { margin-left: auto; margin-right: auto; }
.muted { color: var(--muted); }
.source-line { font-size: 0.78rem; color: var(--muted-2); margin-top: 34px; }

/* ---------- Problem ---------- */
.problem-layout { display: grid; grid-template-columns: 0.9fr 1.4fr; gap: 40px; align-items: start; }
.problem-hero {
  background: linear-gradient(160deg, var(--ink-700), var(--ink-800));
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 38px 34px; position: sticky; top: 110px;
}
.big-stat { font-family: var(--display); font-weight: 800; font-size: clamp(3rem, 7vw, 4.6rem); line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.big-stat span { font-size: 0.5em; }
.big-stat-label { font-size: 1.05rem; color: var(--white); font-weight: 600; margin: 14px 0 16px; }
.problem-cards { display: grid; gap: 18px; }
.card {
  background: var(--ink-800); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 28px; transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-strong); background: var(--ink-700); }
.card-ic { font-size: 1.6rem; margin-bottom: 12px; }
.card h3 { font-family: var(--display); font-size: 1.14rem; color: var(--white); font-weight: 600; margin-bottom: 8px; }
.card p { font-size: 0.94rem; color: var(--muted); }

/* ---------- Solution / engine ---------- */
.engine-diagram { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: center; }
.engine-core {
  position: relative; aspect-ratio: 1; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-family: var(--display); font-weight: 700; font-size: 1.2rem; color: var(--white);
  background: radial-gradient(circle at 50% 40%, rgba(56,225,214,0.25), rgba(11,21,38,0.9) 68%);
  border: 1px solid var(--line-strong);
}
.engine-pulse {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid rgba(56, 225, 214, 0.4); animation: ripple 3s ease-out infinite;
}
@keyframes ripple { 0% { transform: scale(0.85); opacity: 0.8; } 100% { transform: scale(1.25); opacity: 0; } }
.engine-branches { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.product-card {
  background: var(--ink-800); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: transform 0.25s ease, border-color 0.25s ease;
}
.product-card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.pc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.pc-head h3 { font-family: var(--display); font-size: 1.32rem; color: var(--white); font-weight: 700; }
.pc-sub { font-size: 0.9rem; color: var(--cyan); font-weight: 600; margin-bottom: 12px; }
.product-card p { font-size: 0.94rem; color: var(--muted); }
.product-card strong { color: var(--white); }
.tag { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; padding: 4px 10px; border-radius: 6px; white-space: nowrap; }
.tag-live { background: rgba(56, 225, 214, 0.16); color: var(--cyan-bright); border: 1px solid rgba(56,225,214,0.35); }
.tag-dev { background: rgba(140, 197, 255, 0.12); color: var(--ice); border: 1px solid rgba(140,197,255,0.3); }

/* ---------- Grids ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

.numbered-card {
  background: var(--ink-800); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; transition: transform 0.25s ease, border-color 0.25s ease;
}
.numbered-card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.numbered-card .num {
  font-family: var(--display); font-weight: 800; font-size: 1.5rem;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 14px;
}
.numbered-card h3 { font-family: var(--display); font-size: 1.1rem; color: var(--white); font-weight: 600; margin-bottom: 10px; }
.numbered-card p { font-size: 0.9rem; color: var(--muted); }

.window-banner, .wedge-banner, .outcome-banner {
  margin-top: 34px; padding: 24px 30px; border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(56,225,214,0.08), rgba(78,139,255,0.06));
  border: 1px solid var(--line-strong);
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.wb-label {
  font-family: var(--display); font-weight: 700; font-size: 0.8rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--cyan);
  padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(56,225,214,0.35);
  white-space: nowrap;
}
.wb-text { font-size: 1.05rem; color: var(--text); }
.wb-text strong { color: var(--white); }
.outcome-banner p { font-size: 1rem; color: var(--text); }
.outcome-banner strong { color: var(--cyan-bright); }

/* ---------- Flow ---------- */
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; gap: 14px; align-items: stretch; }
.flow-step {
  background: var(--ink-800); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; transition: transform 0.25s ease, border-color 0.25s ease;
}
.flow-step:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.flow-badge {
  display: inline-block; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.06em;
  color: var(--cyan); background: rgba(56,225,214,0.1);
  padding: 5px 11px; border-radius: 7px; margin-bottom: 14px;
}
.flow-step h3 { font-family: var(--display); font-size: 1.06rem; color: var(--white); font-weight: 600; margin-bottom: 8px; }
.flow-step p { font-size: 0.88rem; color: var(--muted); }
.flow-arrow { display: flex; align-items: center; justify-content: center; color: var(--muted-2); font-size: 1.4rem; }

/* ---------- Market / TAM ---------- */
.tam-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 34px; }
.tam-card {
  background: var(--ink-800); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; position: relative; overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.tam-card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.tam-card.featured { border-color: rgba(56,225,214,0.4); background: linear-gradient(160deg, var(--ink-700), var(--ink-800)); }
.tam-label { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.12em; color: var(--ice); }
.tam-num { font-family: var(--display); font-weight: 800; font-size: 2.3rem; color: var(--white); margin: 10px 0 14px; letter-spacing: -0.01em; }
.tam-card.featured .tam-num { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tam-desc { font-size: 0.92rem; color: var(--muted); }

.segment-block {
  background: var(--ink-800); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 32px;
}
.segment-title { font-family: var(--display); font-size: 1rem; color: var(--white); font-weight: 600; margin-bottom: 22px; }
.segment-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.seg-num { font-family: var(--display); font-weight: 800; font-size: 1.55rem; color: var(--cyan-bright); }
.seg-label { font-size: 0.8rem; color: var(--muted); margin-top: 5px; }

/* ---------- Reference deployments ---------- */
.ref-card {
  background: var(--ink-800); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0 28px 28px; overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.ref-card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.ref-photo {
  height: 158px; margin: 0 -28px 22px; background-size: cover; background-position: center;
  position: relative; filter: saturate(1.05);
}
.ref-photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,11,24,0.1), rgba(11,21,38,0.85));
}
.ref-tag {
  display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ice); background: rgba(140,197,255,0.1);
  padding: 5px 11px; border-radius: 7px; margin-bottom: 14px;
}
.ref-card h3 { font-family: var(--display); font-size: 1.24rem; color: var(--white); font-weight: 700; margin-bottom: 18px; }
.ref-dl { display: grid; gap: 12px; }
.ref-dl > div { display: grid; grid-template-columns: 66px 1fr; gap: 12px; }
.ref-dl dt { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-2); padding-top: 2px; }
.ref-dl dd { font-size: 0.9rem; color: var(--text); }
.ref-result { color: var(--cyan-bright) !important; font-weight: 600; }

.proof-strip {
  margin-top: 34px; padding: 30px; border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(56,225,214,0.08), rgba(78,139,255,0.05));
  border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: space-around; gap: 16px; flex-wrap: wrap;
}
.ps-item { text-align: center; }
.ps-num { display: block; font-family: var(--display); font-weight: 800; font-size: 1.7rem; color: var(--white); }
.ps-label { font-size: 0.82rem; color: var(--muted); }
.ps-div { width: 1px; height: 42px; background: var(--line-strong); }

/* ---------- Showcase band ---------- */
.showcase { position: relative; padding: 120px 0; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.showcase-img {
  position: absolute; inset: 0; background: url('images/chiller.jpg') center 40% / cover no-repeat;
  transform: scale(1.04);
}
.showcase-veil {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(6,11,24,0.94) 0%, rgba(6,11,24,0.7) 45%, rgba(6,11,24,0.55) 100%);
}
.showcase-inner { position: relative; }
.showcase-caption {
  max-width: 620px; font-family: var(--display); font-weight: 600;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem); line-height: 1.3; color: var(--white);
}
.showcase-caption strong { color: var(--cyan-bright); }

/* ---------- Business model ---------- */
.model-card {
  background: var(--ink-800); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
}
.model-list { list-style: none; display: grid; gap: 14px; margin-top: 18px; }
.model-list li { font-size: 0.94rem; color: var(--text); padding-left: 0; }
.model-list li span {
  display: inline-block; min-width: 74px; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--cyan); margin-right: 6px;
}
.model-note { margin-top: 26px; font-size: 1rem; color: var(--muted); text-align: center; }
.model-note strong { color: var(--white); }

/* ---------- Team ---------- */
.team-card { background: var(--ink-800); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.team-top { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.avatar {
  width: 58px; height: 58px; border-radius: 16px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 800; font-size: 1.5rem; color: #05131A;
  background: var(--grad); box-shadow: 0 8px 20px -8px rgba(56,225,214,0.5);
}
.team-card h3 { font-family: var(--display); font-size: 1.3rem; color: var(--white); font-weight: 700; }
.role { font-size: 0.88rem; color: var(--cyan); font-weight: 500; }
.team-card p { font-size: 0.94rem; color: var(--muted); margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chips span {
  font-size: 0.78rem; color: var(--ice); background: rgba(140,197,255,0.08);
  border: 1px solid var(--line); padding: 5px 12px; border-radius: 999px;
}

/* ---------- Vision / contact ---------- */
.vision { background: radial-gradient(900px 500px at 50% 0%, rgba(30,70,120,0.4), transparent 62%), var(--ink-900); overflow: hidden; }
.vision-glow { top: 0; right: 50%; transform: translateX(50%); }
.vision-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 20px 0 54px; }
.vstat { text-align: center; padding: 30px 22px; background: var(--ink-800); border: 1px solid var(--line); border-radius: var(--radius); }
.vstat-num { font-family: var(--display); font-weight: 800; font-size: 2.6rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: -0.01em; }
.vstat-label { font-size: 0.9rem; color: var(--muted); margin-top: 10px; }

.contact-card {
  max-width: 940px; margin: 0 auto;
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 40px; align-items: start;
  background: linear-gradient(160deg, var(--ink-700), var(--ink-800));
  border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 44px;
}
.contact-copy h3 { font-family: var(--display); font-size: 1.9rem; color: var(--white); font-weight: 700; margin-bottom: 14px; }
.contact-copy > p { color: var(--muted); font-size: 1rem; margin-bottom: 26px; }
.contact-meta { list-style: none; display: grid; gap: 14px; }
.contact-meta li { display: flex; flex-direction: column; gap: 2px; font-size: 0.96rem; color: var(--text); }
.contact-meta span { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); }
.contact-meta a { color: var(--cyan-bright); }
.contact-meta a:hover { text-decoration: underline; }

.contact-form { display: grid; gap: 16px; text-align: left; }
.field { display: grid; gap: 7px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { font-size: 0.8rem; font-weight: 600; color: var(--text); letter-spacing: 0.02em; }
.contact-form input, .contact-form select, .contact-form textarea {
  font-family: var(--sans); font-size: 0.94rem; color: var(--white);
  background: rgba(6, 11, 24, 0.55); border: 1px solid var(--line-strong);
  border-radius: 10px; padding: 12px 14px; width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.contact-form textarea { resize: vertical; min-height: 96px; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--muted-2); }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(56, 225, 214, 0.15);
}
.contact-form select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--ice) 50%), linear-gradient(135deg, var(--ice) 50%, transparent 50%);
  background-position: calc(100% - 20px) center, calc(100% - 15px) center; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-submit { justify-self: start; margin-top: 4px; }
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.form-status { font-size: 0.9rem; margin-top: 4px; min-height: 1.2em; }
.form-status.ok { color: var(--cyan-bright); }
.form-status.err { color: #ff9b9b; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 48px 0; background: var(--ink-850); }
.footer-inner { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.footer-brand { justify-content: center; }
.footer-tag { color: var(--muted); font-size: 0.96rem; }
.footer-meta { font-size: 0.86rem; color: var(--muted-2); }
.footer-meta a:hover { color: var(--cyan); }
.footer-copy { font-size: 0.8rem; color: var(--muted-2); margin-top: 6px; }
.footer-credits { font-size: 0.72rem; color: var(--muted-2); max-width: 620px; margin-top: 4px; opacity: 0.8; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s cubic-bezier(0.2,0.7,0.2,1), transform 0.7s cubic-bezier(0.2,0.7,0.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; gap: 4px;
    position: absolute; top: 68px; left: 0; right: 0; margin: 0 16px;
    background: rgba(8, 16, 31, 0.97); backdrop-filter: blur(14px);
    border: 1px solid var(--line); border-radius: 14px; padding: 14px;
  }
  .nav-links.open a { padding: 10px 8px; }
  .nav-toggle { display: flex; margin-left: auto; }
  .nav .btn-sm { display: none; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .problem-layout { grid-template-columns: 1fr; }
  .problem-hero { position: static; }
  .engine-diagram { grid-template-columns: 1fr; }
  .engine-core { max-width: 220px; margin: 0 auto; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: 1fr; }
  .flow-arrow { transform: rotate(90deg); }
  .tam-grid { grid-template-columns: 1fr; }
  .segment-grid { grid-template-columns: repeat(3, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .vision-stats { grid-template-columns: 1fr; }
  .contact-card { grid-template-columns: 1fr; gap: 30px; padding: 34px; }
  .showcase { padding: 90px 0; }
}
@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .section { padding: 72px 0; }
  .hero { padding: 140px 0 50px; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 22px; }
  .engine-branches { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .segment-grid { grid-template-columns: 1fr 1fr; }
  .proof-strip { flex-direction: column; }
  .ps-div { width: 60px; height: 1px; }
  .field-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .engine-pulse, .eyebrow .dot { animation: none; }
  html { scroll-behavior: auto; }
}
