/* ============================================================
   LIQUIDYNAMIX · Design system
   Deep-ocean dark theme, industrial precision, water-energy brand
   Fonts: Bricolage Grotesque (display+body) / JetBrains Mono (data)
   ============================================================ */

:root {
  /* Surfaces (no pure black / pure white) */
  --bg: #020f18;
  --bg-deep: #010a12;
  --surface: #0a2233;
  --surface-2: #0e2c3f;
  --surface-3: #12374c;

  /* Text */
  --fg: #e9f2f7;
  --muted: #9db8c6;
  --faint: #6f8d9d;

  /* Brand + accent (single accent: electric cyan) */
  --accent: #00d9ff;
  --accent-text: #3ce4ff;
  --accent-soft: rgba(0, 217, 255, 0.12);
  --teal: #0a4d68;
  --teal-2: #05bfdb;

  /* Lines */
  --line: rgba(140, 205, 225, 0.14);
  --line-strong: rgba(0, 217, 255, 0.32);

  /* Semantic */
  --success: #2ed573;
  --danger: #ff6b6b;

  /* Type */
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Mono", Consolas, monospace;

  /* Shape (one radius scale: 12 / 16 / pill) */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;

  /* Elevation */
  --shadow-panel: 0 24px 60px rgba(1, 8, 13, 0.55);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 150ms;
  --dur-med: 260ms;
  --dur-slow: 480ms;

  /* Layout */
  --nav-h: 68px;
  --container: 1200px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent-text);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

::selection {
  background: rgba(0, 217, 255, 0.28);
  color: #ffffff;
}

/* ---------- Ambient grain (fixed, pointer-events none) ---------- */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Layout ---------- */
.container {
  width: min(var(--container), 100% - clamp(2.5rem, 7vw, 5rem));
  margin-inline: auto;
}

section {
  position: relative;
  padding-block: clamp(4.5rem, 9vw, 7rem);
}

.skip-link {
  position: fixed;
  top: -60px;
  left: 1rem;
  z-index: 3000;
  padding: 0.6rem 1.1rem;
  background: var(--accent);
  color: #02101a;
  font-weight: 700;
  border-radius: 8px;
  transition: top var(--dur-fast) var(--ease-out);
}

.skip-link:focus {
  top: 0.75rem;
  text-decoration: none;
}

/* ---------- Typography ---------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-text);
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.38rem 0.85rem;
  margin-bottom: 1.4rem;
}

.kicker svg {
  width: 13px;
  height: 13px;
}

h1,
h2,
h3 {
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.h-display {
  font-size: clamp(2.55rem, 5.2vw, 4.15rem);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.h-section {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  font-weight: 650;
  letter-spacing: -0.018em;
}

.h-sub {
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.lead {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 58ch;
}

.section-head {
  margin-bottom: clamp(2.5rem, 5vw, 3.75rem);
}

.section-head.center {
  text-align: center;
}

.section-head.center .lead {
  margin-inline: auto;
}

.accent-word {
  color: var(--accent-text);
}

.mono {
  font-family: var(--font-mono);
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1rem;
  line-height: 1;
  padding: 0.95rem 1.75rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out),
    background var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out);
}

.btn svg {
  width: 17px;
  height: 17px;
  flex: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: #02101a;
  box-shadow: 0 8px 28px rgba(0, 217, 255, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: #46e6ff;
  box-shadow: 0 12px 34px rgba(0, 217, 255, 0.4);
  text-decoration: none;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--fg);
  border-color: var(--line-strong);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  background: var(--accent-soft);
  border-color: var(--accent);
  text-decoration: none;
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn-lg {
  padding: 1.1rem 2.1rem;
  font-size: 1.06rem;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(2, 15, 24, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background var(--dur-med) var(--ease-out);
}

.nav-scrolled {
  background: rgba(2, 15, 24, 0.92);
}

.nav-progress {
  position: absolute;
  top: -1px;
  left: 0;
  height: 2px;
  width: 100%;
  transform-origin: left;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--teal), var(--accent));
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--fg);
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex: none;
}

.brand-word {
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.09em;
  color: var(--fg);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.1rem;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  font-weight: 550;
  font-size: 0.95rem;
  transition: color var(--dur-fast) var(--ease-out);
}

.nav-links a:hover {
  color: var(--fg);
  text-decoration: none;
}

.nav-links a.is-active {
  color: var(--accent-text);
}

.nav-cta {
  margin-left: 0.4rem;
  padding: 0.6rem 1.25rem;
  font-size: 0.92rem;
}

.nav-links .btn,
.nav-links .btn:hover,
.nav-links .btn:focus-visible {
  color: #02101a;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  border-radius: 8px;
}

.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--fg);
  border-radius: 2px;
  transition: transform var(--dur-med) var(--ease-out), opacity var(--dur-fast);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: calc(var(--nav-h) + clamp(1.5rem, 4vw, 3.5rem)) clamp(3rem, 7vw, 5.5rem);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(52% 44% at 18% 12%, rgba(10, 77, 104, 0.55) 0%, transparent 70%),
    radial-gradient(44% 40% at 86% 24%, rgba(5, 191, 219, 0.16) 0%, transparent 70%),
    radial-gradient(60% 50% at 50% 108%, rgba(0, 217, 255, 0.08) 0%, transparent 70%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg) 100%);
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(38% 32% at 30% 40%, rgba(0, 217, 255, 0.1) 0%, transparent 60%),
    radial-gradient(30% 26% at 72% 62%, rgba(5, 191, 219, 0.08) 0%, transparent 60%);
  animation: liquid-drift 26s var(--ease-out) infinite alternate;
}

@keyframes liquid-drift {
  from {
    transform: translate3d(-3%, -2%, 0) rotate(-1.5deg);
  }
  to {
    transform: translate3d(3%, 3%, 0) rotate(1.5deg);
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}

.hero h1 {
  margin-bottom: 1.4rem;
}

.hero .lead {
  font-size: 1.13rem;
  margin-bottom: 2.2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ---------- Cycle diagram ---------- */
.cycle-wrap {
  display: flex;
  justify-content: center;
}

.cycle {
  width: min(100%, 460px);
  height: auto;
}

.cycle .orbit {
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 1.5;
  stroke-dasharray: 3 9;
  stroke-linecap: round;
}

.cycle .flow {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-dasharray: 12 16;
  stroke-linecap: round;
  opacity: 0.85;
  animation: flow-march 1.8s linear infinite;
}

@keyframes flow-march {
  to {
    stroke-dashoffset: -28;
  }
}

.cycle .node-ring {
  fill: var(--surface);
  stroke: var(--line-strong);
  stroke-width: 1.5;
}

.cycle .node-icon {
  stroke: var(--accent-text);
}

.cycle .node-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.07em;
  fill: var(--muted);
  text-transform: uppercase;
}

.cycle .node-value {
  font-family: var(--font-mono);
  font-size: 10.5px;
  fill: var(--accent-text);
  letter-spacing: 0.03em;
}

.cycle .center-title {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  fill: var(--accent-text);
  text-transform: uppercase;
}

.cycle .center-sub {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 600;
  fill: var(--fg);
}

.cycle .center-note {
  font-family: var(--font-mono);
  font-size: 10.5px;
  fill: var(--faint);
  letter-spacing: 0.05em;
}

/* ---------- Stat band ---------- */
.stat-band {
  border-block: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(10, 34, 51, 0.28), rgba(2, 15, 24, 0));
  padding-block: clamp(2.2rem, 4.5vw, 3.2rem);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
}

.stat {
  position: relative;
  padding-left: 1.1rem;
}

.stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  bottom: 0.35rem;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--accent), transparent);
  opacity: 0.7;
}

.stat-value {
  font-family: var(--font-mono);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
  line-height: 1.15;
}

.stat-value em {
  font-style: normal;
  color: var(--accent-text);
}

.stat-label {
  margin-top: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Panels / cards ---------- */
.panel {
  background: linear-gradient(180deg, rgba(14, 44, 63, 0.85) 0%, rgba(8, 28, 41, 0.9) 100%);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.6rem, 3vw, 2.2rem);
  box-shadow: var(--shadow-panel);
  transition: border-color var(--dur-med) var(--ease-out), transform var(--dur-med) var(--ease-out);
}

.panel:hover {
  border-color: var(--line-strong);
}

.icon-chip {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  border: 1px solid var(--line);
  margin-bottom: 1.3rem;
}

.icon-chip svg {
  width: 22px;
  height: 22px;
  stroke: var(--accent-text);
}

.panel h3 {
  font-size: 1.32rem;
  font-weight: 650;
  margin-bottom: 0.45rem;
}

.panel .panel-tag {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.4rem;
}

.spec-list {
  list-style: none;
}

.spec-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.72rem;
  border-top: 1px solid rgba(140, 205, 225, 0.1);
}

.spec-list li:first-child {
  border-top: 0;
}

.spec-list .k {
  color: var(--muted);
  font-size: 0.9rem;
}

.spec-list .v {
  font-family: var(--font-mono);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--accent-text);
  white-space: nowrap;
}

/* ---------- Technology section ---------- */
.tech-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.4rem;
}

.tech-integrated {
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(1.2rem, 3vw, 2.2rem);
}

.tech-integrated .icon-chip {
  margin-bottom: 0;
}

.tech-integrated h3 {
  margin-bottom: 0.3rem;
}

.tech-integrated p {
  color: var(--muted);
  font-size: 0.98rem;
}

.tech-loop {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--accent-text);
  white-space: nowrap;
}

.tech-loop .arrow {
  color: var(--faint);
}

/* ---------- Market section ---------- */
.market-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1.4rem;
}

.market-card {
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.market-card.feature {
  grid-row: span 2;
  min-height: 100%;
  justify-content: space-between;
}

.market-card.wide {
  grid-column: span 2;
}

.market-value {
  font-family: var(--font-mono);
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
  line-height: 1.1;
}

.market-value em {
  font-style: normal;
  color: var(--accent-text);
}

.market-name {
  margin-top: 0.9rem;
  font-weight: 650;
  font-size: 1.05rem;
}

.market-note {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.88rem;
  max-width: 34ch;
}

.tam-band {
  margin-top: 1.4rem;
  padding: 1.5rem clamp(1.6rem, 3vw, 2.4rem);
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: linear-gradient(90deg, var(--accent-soft), rgba(5, 191, 219, 0.04));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.tam-band .t {
  font-weight: 650;
  font-size: 1.05rem;
}

.tam-band .v {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.7rem;
  color: var(--accent-text);
  letter-spacing: -0.02em;
}

/* ---------- Investment section ---------- */
.invest-band {
  background:
    radial-gradient(46% 60% at 8% 0%, rgba(10, 77, 104, 0.4) 0%, transparent 70%),
    radial-gradient(40% 50% at 95% 100%, rgba(5, 191, 219, 0.1) 0%, transparent 70%),
    var(--bg-deep);
  border-block: 1px solid var(--line);
}

.readout-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  margin-bottom: clamp(2.6rem, 5vw, 3.8rem);
}

.readout {
  padding: 1.5rem 1.6rem;
}

.readout .rv {
  font-family: var(--font-mono);
  font-size: clamp(1.55rem, 2.6vw, 2.05rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
  line-height: 1.15;
}

.readout .rv em {
  font-style: normal;
  color: var(--accent-text);
}

.readout .rl {
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Revenue timeline */
.timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.1rem;
  margin-bottom: clamp(2.4rem, 5vw, 3.4rem);
}

.tl-step {
  position: relative;
  padding-top: 2.1rem;
}

.tl-step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--teal), var(--accent));
  opacity: 0.85;
}

.tl-year {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--accent-text);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.tl-value {
  font-family: var(--font-mono);
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--fg);
}

.tl-bar {
  margin-top: 0.85rem;
  height: 4px;
  border-radius: 4px;
  background: rgba(140, 205, 225, 0.12);
  overflow: hidden;
}

.tl-bar i {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--teal-2), var(--accent));
}

.invest-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.1rem;
}

.invest-note {
  color: var(--faint);
  font-size: 0.9rem;
}

/* ---------- Newsletter ---------- */
.newsletter-panel {
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
  padding: clamp(2.2rem, 5vw, 3.6rem) clamp(1.6rem, 4vw, 3.2rem);
  background:
    radial-gradient(70% 90% at 50% 0%, rgba(10, 77, 104, 0.5) 0%, transparent 75%),
    linear-gradient(180deg, rgba(14, 44, 63, 0.9), rgba(7, 24, 36, 0.95));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-panel);
}

.newsletter-panel h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  margin-bottom: 0.8rem;
}

.newsletter-panel .lead {
  margin-inline: auto;
  margin-bottom: 2rem;
}

/* ---------- Forms ---------- */
.field {
  text-align: left;
  margin-bottom: 1.1rem;
}

.field label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.45rem;
  color: var(--fg);
}

.field .hint {
  display: block;
  font-size: 0.8rem;
  color: var(--faint);
  margin-top: 0.35rem;
}

.field .error {
  display: none;
  font-size: 0.82rem;
  color: var(--danger);
  margin-top: 0.35rem;
}

.field.is-invalid .error {
  display: block;
}

.field.is-invalid input,
.field.is-invalid textarea {
  border-color: rgba(255, 107, 107, 0.65);
}

.input,
.textarea {
  width: 100%;
  padding: 0.85rem 1.05rem;
  font-family: var(--font-display);
  font-size: 0.98rem;
  color: var(--fg);
  background: rgba(2, 15, 24, 0.55);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  outline: none;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}

.textarea {
  min-height: 120px;
  resize: vertical;
}

.input::placeholder,
.textarea::placeholder {
  color: var(--faint);
}

.input:focus-visible,
.textarea:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 217, 255, 0.18);
}

.newsletter-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.8rem;
  max-width: 560px;
  margin-inline: auto;
}

.newsletter-form .form-status {
  grid-column: 1 / -1;
}

.form-status {
  display: none;
  margin-top: 1.1rem;
  padding: 0.85rem 1.1rem;
  border-radius: var(--r-sm);
  font-size: 0.92rem;
  text-align: center;
  border: 1px solid;
}

.form-status.success {
  display: block;
  color: var(--success);
  border-color: rgba(46, 213, 115, 0.45);
  background: rgba(46, 213, 115, 0.1);
}

.form-status.error {
  display: block;
  color: var(--danger);
  border-color: rgba(255, 107, 107, 0.45);
  background: rgba(255, 107, 107, 0.08);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.contact-list {
  list-style: none;
  margin-top: 2.1rem;
  display: grid;
  gap: 1.15rem;
}

.contact-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-list .icon-chip {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  margin-bottom: 0;
  flex: none;
}

.contact-list .icon-chip svg {
  width: 19px;
  height: 19px;
}

.contact-list .cl {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 0.15rem;
}

.contact-list .cv {
  color: var(--fg);
  font-weight: 550;
  line-height: 1.45;
}

.contact-list a.cv:hover {
  color: var(--accent-text);
}

.schedule-panel {
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
}

.schedule-panel p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 0.6rem;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
  padding-block: clamp(2.6rem, 5vw, 3.6rem) 1.8rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.6rem;
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 36ch;
  margin-top: 0.9rem;
}

.footer h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 1rem;
}

.footer ul {
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.footer a {
  color: var(--muted);
  font-size: 0.93rem;
}

.footer a:hover {
  color: var(--accent-text);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.85rem;
}

/* ---------- Modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.modal.open {
  display: flex;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(1, 8, 13, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fade-in var(--dur-med) var(--ease-out);
}

.modal-dialog {
  position: relative;
  width: min(680px, 100%);
  max-height: 90dvh;
  overflow-y: auto;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  padding: clamp(1.6rem, 4vw, 2.4rem);
  box-shadow: 0 30px 80px rgba(1, 8, 13, 0.7);
  animation: slide-up var(--dur-med) var(--ease-out);
}

.modal-dialog.wide {
  width: min(880px, 100%);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  cursor: pointer;
  transition: color var(--dur-fast), border-color var(--dur-fast), transform var(--dur-fast) var(--ease-out);
}

.modal-close:hover {
  color: var(--fg);
  border-color: var(--accent);
  transform: rotate(90deg);
}

.modal-title {
  font-size: 1.55rem;
  font-weight: 650;
  margin-bottom: 1.5rem;
  padding-right: 3rem;
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #010a12;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}

.video-frame video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.video-fallback {
  display: none;
  position: absolute;
  inset: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
  padding: 2rem;
  color: var(--muted);
}

.video-frame.has-fallback video {
  display: none;
}

.video-frame.has-fallback .video-fallback {
  display: flex;
}

.video-fallback svg {
  width: 44px;
  height: 44px;
  stroke: var(--accent-text);
  opacity: 0.8;
}

.video-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin-top: 1.2rem;
}

.deck-frame {
  width: 100%;
  height: min(72vh, 720px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}

.deck-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.deck-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin-top: 1.2rem;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity var(--dur-slow) var(--ease-out),
    transform var(--dur-slow) var(--ease-out);
  transition-delay: var(--d, 0ms);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .cycle-wrap {
    order: -1;
  }

  .cycle {
    max-width: 380px;
  }

  .tech-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .schedule-panel {
    position: static;
  }

  .market-grid {
    grid-template-columns: 1fr 1fr;
  }

  .market-card.feature {
    grid-row: auto;
    grid-column: span 2;
  }

  .market-card.wide {
    grid-column: span 2;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(2, 15, 24, 0.97);
    border-bottom: 1px solid var(--line);
    padding: 0.75rem 1.4rem 1.4rem;
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li a {
    display: block;
    padding: 0.8rem 0.4rem;
    border-top: 1px solid rgba(140, 205, 225, 0.08);
    font-size: 1rem;
  }

  .nav-cta {
    margin: 0.9rem 0 0;
    justify-content: center;
  }

  .nav-toggle {
    display: flex;
  }

  .stat-grid {
    grid-template-columns: 1fr 1fr;
  }

  .readout-grid {
    grid-template-columns: 1fr 1fr;
  }

  .timeline {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }

  .tech-integrated {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .tech-loop {
    flex-wrap: wrap;
  }

  .newsletter-form {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .stat-grid,
  .readout-grid {
    grid-template-columns: 1fr;
  }

  .market-grid {
    grid-template-columns: 1fr;
  }

  .market-card.feature,
  .market-card.wide {
    grid-column: auto;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

/* ---------- Legal pages ---------- */
.legal-hero {
  padding-block: calc(var(--nav-h) + clamp(1.8rem, 4vw, 3rem)) clamp(1.6rem, 3vw, 2.4rem);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(46% 60% at 10% 0%, rgba(10, 77, 104, 0.42) 0%, transparent 70%),
    radial-gradient(36% 46% at 92% 100%, rgba(5, 191, 219, 0.08) 0%, transparent 70%);
}

.legal-hero .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.6rem;
  margin-top: 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--faint);
}

.legal {
  padding-block: clamp(2.6rem, 5vw, 4rem) clamp(3rem, 6vw, 4.5rem);
}

.legal-doc {
  max-width: 780px;
}

.legal-doc > section {
  padding-block: 0;
  margin-bottom: 2.4rem;
}

.legal-doc h2 {
  font-size: 1.35rem;
  font-weight: 650;
  letter-spacing: -0.012em;
  margin-bottom: 0.9rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}

.legal-doc h2:first-child {
  border-top: 0;
  padding-top: 0;
}

.legal-doc h3 {
  font-size: 1.06rem;
  font-weight: 600;
  margin: 1.3rem 0 0.55rem;
}

.legal-doc p {
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.65;
  margin-bottom: 0.85rem;
  max-width: 72ch;
}

.legal-doc ul,
.legal-doc ol {
  margin: 0 0 1rem 1.2rem;
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.65;
}

.legal-doc li {
  margin-bottom: 0.45rem;
  max-width: 72ch;
}

.legal-doc strong {
  color: var(--fg);
  font-weight: 600;
}

.legal-doc a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-table-wrap {
  overflow-x: auto;
  margin: 1rem 0 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: linear-gradient(180deg, rgba(14, 44, 63, 0.5), rgba(8, 28, 41, 0.6));
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
  font-size: 0.92rem;
}

.legal-table th {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  text-align: left;
  font-weight: 500;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--line);
}

.legal-table td {
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid rgba(140, 205, 225, 0.08);
  color: var(--muted);
  vertical-align: top;
  line-height: 1.55;
}

.legal-table tr:last-child td {
  border-bottom: 0;
}

.legal-table td:first-child {
  font-weight: 550;
  color: var(--fg);
  white-space: nowrap;
}

.legal-note {
  padding: 1rem 1.2rem;
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  border-radius: var(--r-sm);
  background: var(--accent-soft);
  color: var(--muted);
  font-size: 0.92rem;
  margin: 1.2rem 0 1.6rem;
}

/* Footer legal bar */
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.6rem;
  padding-top: 1.2rem;
  margin-top: 1.6rem;
  border-top: 1px solid var(--line);
}

.footer-legal a {
  color: var(--faint);
  font-size: 0.83rem;
}

.footer-legal a:hover {
  color: var(--accent-text);
}

.footer-incorp {
  margin-top: 0.9rem;
  color: var(--faint);
  font-size: 0.8rem;
  line-height: 1.6;
}

/* ============================================================
   ADEPT AIOS integration
   ============================================================ */

/* OS section grid (index page) */
.os-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.os-card h3 {
  margin: 1rem 0 0.5rem;
}

.os-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

.os-card .mono-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-text);
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  margin-bottom: 0.9rem;
}

.os-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
  margin-top: 2rem;
}

.os-note {
  color: var(--faint);
  font-size: 0.85rem;
  margin-top: 1.1rem;
}

/* Closed-loop comparison strip */
.loop-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  margin-top: 2rem;
}

.compare-col {
  padding: 1.5rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: linear-gradient(180deg, rgba(14, 44, 63, 0.5), rgba(8, 28, 41, 0.6));
}

.compare-col h3 {
  font-size: 1.05rem;
  margin-bottom: 0.9rem;
}

.compare-col ul {
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.compare-col li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  color: var(--muted);
  font-size: 0.92rem;
}

.compare-col li::before {
  font-family: var(--font-mono);
  font-weight: 700;
  line-height: 1.4;
}

.compare-col.bad li::before {
  content: "\2715";
  color: var(--danger);
}

.compare-col.good li::before {
  content: "\2713";
  color: var(--success);
}

.compare-col.good {
  border-color: var(--line-strong);
  background: linear-gradient(180deg, rgba(0, 217, 255, 0.08), rgba(8, 28, 41, 0.6));
}

@media (max-width: 768px) {
  .loop-compare {
    grid-template-columns: 1fr;
  }
}

/* Financial table (shared: investor summary + ADEPT AIOS) */
.fin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: linear-gradient(180deg, rgba(14, 44, 63, 0.6), rgba(8, 28, 41, 0.7));
}

.fin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

.fin-table th {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  text-align: left;
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}

.fin-table td {
  padding: 1.05rem 1.4rem;
  border-bottom: 1px solid rgba(140, 205, 225, 0.08);
  font-size: 0.98rem;
  color: var(--muted);
}

.fin-table tr:last-child td {
  border-bottom: 0;
}

.fin-table td.num {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--fg);
  white-space: nowrap;
}

.fin-table td.num strong {
  color: var(--accent-text);
}

.fin-table .total-row td {
  border-top: 1px solid var(--line-strong);
  color: var(--fg);
  font-weight: 600;
}

@media (max-width: 900px) {
  .os-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-bg::before,
  .cycle .flow {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
