/* ============================================================
   TruthBox — Landing v4
   Vibrant, bold, TruthBox teal on warm light base
   ============================================================ */

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

:root {
  --bg: #FDFCF9;
  --cream: #F3F0E7;
  --ink: #101418;
  --ink-soft: #384046;
  --muted: #5E666D;
  --teal: #157A6E;
  --teal-bright: #2E9C8E;
  --teal-deep: #0E5D54;
  --warn: #E8A33D;
  --alert: #F07A5A;
  --line: rgba(16, 20, 24, 0.1);
  --dark: #0B211D;
  --dark-panel: #0F2A24;
  --dark-panel-2: #0A1E19;
  --dark-line: rgba(255, 255, 255, 0.1);
  --dark-ink: #F2F5F3;
  --dark-muted: rgba(242, 245, 243, 0.6);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.container {
  width: min(100% - 48px, 1200px);
  margin: 0 auto;
}

.grid-two {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 64px;
  align-items: center;
}

.accent-text {
  background: linear-gradient(100deg, var(--teal) 0%, var(--teal-bright) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  background: var(--teal);
  border: none;
  border-radius: 999px;
  padding: 15px 30px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
  box-shadow: 0 2px 10px rgba(14, 93, 84, 0.28);
}

.btn:hover {
  background: var(--teal-deep);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(14, 93, 84, 0.3);
}

.btn:active { transform: translateY(0); }

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

.btn--small { font-size: 13px; padding: 10px 20px; }
.btn--large { font-size: 16px; padding: 17px 36px; }
.btn--full { width: 100%; }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid rgba(16, 20, 24, 0.18);
  box-shadow: none;
}

.btn--ghost:hover {
  background: rgba(21, 122, 110, 0.06);
  border-color: var(--teal);
  color: var(--teal-deep);
  box-shadow: none;
}

.btn--invert {
  background: #fff;
  color: var(--teal-deep);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.18);
}

.btn--invert:hover {
  background: var(--ink);
  color: #fff;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 252, 249, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.nav.is-scrolled { border-bottom-color: var(--line); }

.nav__inner {
  width: min(100% - 48px, 1200px);
  margin: 0 auto;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.nav__wordmark {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.03em;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 92px 0 72px;
  background:
    radial-gradient(ellipse 60% 45% at 72% 8%, rgba(46, 156, 142, 0.14), transparent 70%),
    var(--bg);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 72px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(21, 122, 110, 0.28);
  border-radius: 999px;
  background: rgba(21, 122, 110, 0.08);
  padding: 9px 16px;
  color: var(--teal-deep);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.badge__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal-bright);
  flex-shrink: 0;
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(46, 156, 142, 0.2); }
  50% { box-shadow: 0 0 0 7px rgba(46, 156, 142, 0.06); }
}

.hero__headline {
  margin-top: 26px;
  font-size: clamp(42px, 5.4vw, 76px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.045em;
  max-width: 15ch;
}

.lead {
  margin-top: 26px;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.5;
  letter-spacing: -0.015em;
  color: var(--muted);
  max-width: 52ch;
}

.lead--dark { color: var(--ink-soft); }
.lead--light { color: var(--dark-muted); }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

/* ---------- Console (dashboard card) ---------- */
.console {
  position: relative;
  border: 1px solid var(--dark-line);
  border-radius: 28px;
  background: var(--dark-panel);
  padding: 12px;
  box-shadow: 0 34px 90px rgba(11, 33, 29, 0.35);
}

.console::before {
  content: '';
  position: absolute;
  inset: -24%;
  z-index: -1;
  background: radial-gradient(circle, rgba(46, 156, 142, 0.22), transparent 58%);
  filter: blur(38px);
}

.console--glow { box-shadow: 0 40px 110px rgba(0, 0, 0, 0.45); }

.console__inner {
  border: 1px solid var(--dark-line);
  border-radius: 20px;
  background: var(--dark-panel-2);
  padding: 20px;
  color: var(--dark-ink);
}

.console__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--dark-line);
  padding-bottom: 16px;
}

.console__label {
  color: var(--teal-bright);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.console__time {
  margin-top: 7px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.console__tag {
  border: 1px solid rgba(46, 156, 142, 0.35);
  border-radius: 999px;
  background: rgba(46, 156, 142, 0.12);
  padding: 7px 13px;
  color: #A9E5DC;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.stats {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.stats--four { grid-template-columns: repeat(2, 1fr); }
.stats--five { grid-template-columns: repeat(2, 1fr); }
.stats--five .stat:first-child { grid-column: 1 / -1; }

.stat {
  border: 1px solid var(--dark-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
  padding: 15px 16px;
}

.stat strong {
  display: block;
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.stat span {
  display: block;
  margin-top: 8px;
  color: var(--dark-muted);
  font-size: 12.5px;
  line-height: 1.35;
}

.stat--ok strong { color: #4ED3BF; }
.stat--ok { border-color: rgba(46, 156, 142, 0.4); background: rgba(46, 156, 142, 0.1); }

.stat--warn strong { color: var(--warn); }
.stat--warn { border-color: rgba(232, 163, 61, 0.35); background: rgba(232, 163, 61, 0.09); }

.stat--alert strong { color: var(--alert); }
.stat--alert { border-color: rgba(240, 122, 90, 0.4); background: rgba(240, 122, 90, 0.1); }

.console__notice {
  margin-top: 14px;
  border: 1px solid rgba(46, 156, 142, 0.3);
  border-radius: 14px;
  background: rgba(46, 156, 142, 0.1);
  padding: 14px 16px;
}

.console__notice strong {
  font-size: 14px;
  font-weight: 700;
  color: #CFEFE9;
}

/* ---------- Marquee ---------- */
.marquee-wrap {
  overflow: hidden;
  margin-top: 64px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(16, 20, 24, 0.03);
  padding: 13px 0;
}

.marquee {
  display: flex;
  width: max-content;
  gap: 44px;
  color: rgba(16, 20, 24, 0.45);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: marquee 26s linear infinite;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee { animation: none; }
}

/* ---------- Sections ---------- */
.sec { padding: 110px 0; }

.sec--cream { background: var(--cream); }

.sec--dark {
  background:
    radial-gradient(ellipse 55% 50% at 78% 20%, rgba(46, 156, 142, 0.14), transparent 70%),
    var(--dark);
  color: var(--dark-ink);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(21, 122, 110, 0.25);
  border-radius: 999px;
  background: rgba(21, 122, 110, 0.07);
  padding: 8px 15px;
  color: var(--teal-deep);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow--glow {
  border-color: rgba(46, 156, 142, 0.35);
  background: rgba(46, 156, 142, 0.1);
  color: #9FE3D7;
}

.sec__title {
  margin-top: 22px;
  font-size: clamp(32px, 3.9vw, 54px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.04em;
  max-width: 20ch;
}

.sec__lead {
  margin-top: 30px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink-soft);
}

.punch {
  margin-top: 14px;
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  max-width: 24ch;
}

/* ---------- Every morning: board ---------- */
.board {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #fff;
  padding: 14px;
  box-shadow: 0 30px 80px rgba(16, 20, 24, 0.1);
}

.board__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.board__tile {
  min-height: 170px;
  display: flex;
  align-items: flex-end;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--cream);
  padding: 22px;
}

.board__tile p {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--ink-soft);
}

.board__tile--dark {
  background: var(--dark);
  border-color: var(--dark);
}

.board__tile--dark p { color: #fff; }

/* ---------- Signals bento ---------- */
.signals {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 48px 0 44px;
}

.signal {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  padding: 26px 28px;
  box-shadow: 0 2px 6px rgba(16, 20, 24, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.signal:hover {
  transform: translateY(-4px);
  border-color: rgba(21, 122, 110, 0.35);
  box-shadow: 0 18px 44px rgba(16, 20, 24, 0.1);
}

.signal h3 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.signal p {
  margin-top: 28px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.55;
}

/* ---------- The intelligence layer ---------- */
.layer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 46px;
  align-items: stretch;
}

.layer__panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  padding: 34px 32px;
  box-shadow: 0 2px 8px rgba(16, 20, 24, 0.04);
}

.layer__panel--after {
  border-color: rgba(21, 122, 110, 0.32);
  background: linear-gradient(180deg, #fff 0%, rgba(46, 156, 142, 0.05) 100%);
  box-shadow: 0 20px 50px rgba(21, 122, 110, 0.1);
}

.layer__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 26px;
}

.layer__label--glow { color: var(--teal); }

.chain {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 260px;
}

.chain__node {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--cream);
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-soft);
}

.chain__node + .chain__node { margin-top: 28px; }

.chain__node + .chain__node::before {
  content: '\2193';
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 15px;
  line-height: 1;
}

.layer__outcome {
  margin-top: auto;
  padding-top: 28px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.layer__outcome--bad { color: var(--alert); }
.layer__outcome--good { color: var(--teal-deep); }

.sources {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 320px;
}

.source {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 8px 15px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
}

.layer__into {
  color: var(--teal);
  font-size: 20px;
  line-height: 1;
  margin: 14px 0;
}

.tb-node {
  border-radius: 16px;
  background: linear-gradient(135deg, #2E9C8E 0%, #157A6E 100%);
  color: #fff;
  padding: 15px 34px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
  box-shadow: 0 14px 34px rgba(14, 93, 84, 0.34);
}

/* ---------- The difference ---------- */
.contrast-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 14px;
  align-items: stretch;
  margin-top: 48px;
}

.contrast {
  border-radius: 26px;
  padding: 30px 32px;
}

.contrast--old {
  border: 1px solid var(--line);
  background: #fff;
}

.contrast--new {
  background: var(--dark);
  color: var(--dark-ink);
  box-shadow: 0 26px 70px rgba(11, 33, 29, 0.3);
}

.contrast__label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.contrast__label--glow { color: #9FE3D7; }

.contrast ul { list-style: none; }

.contrast li {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
  padding: 11px 0;
  color: var(--ink-soft);
}

.contrast li + li { border-top: 1px solid var(--line); }

.contrast--new li { color: var(--dark-ink); }
.contrast--new li + li { border-top-color: var(--dark-line); }

/* ---------- How it starts ---------- */
.loop-line {
  margin-top: 30px;
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 800;
  letter-spacing: -0.035em;
}

.loop {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 40px 0 44px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #fff;
  padding: 14px;
  box-shadow: 0 2px 8px rgba(16, 20, 24, 0.04);
}

.loop__item {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 20px;
  background: var(--cream);
  padding: 20px;
}

.loop__item span {
  color: var(--teal);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.loop__item strong {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.learn {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 40px;
}

.learn__chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(21, 122, 110, 0.25);
  border-radius: 999px;
  background: rgba(21, 122, 110, 0.06);
  padding: 11px 18px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--teal-deep);
}

.learn--questions { margin: 20px 0 28px; }

/* ---------- Systems row (the way businesses work today) ---------- */
.systems {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 30px 0 40px;
}

.system-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 11px 18px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink-soft);
  box-shadow: 0 1px 2px rgba(16, 20, 24, 0.04);
}

.board__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 4px 0 14px 4px;
}

/* ---------- Why a box (dark) ---------- */
.device {
  position: relative;
  display: flex;
  justify-content: center;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    radial-gradient(ellipse 75% 65% at 50% 28%, rgba(46, 156, 142, 0.14), transparent 72%),
    linear-gradient(180deg, #F8F6EF 0%, #E2ECE6 100%);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  padding: 12px 0;
}

.device__led { animation: led 2.6s ease-in-out infinite; }
.device__led-halo { animation: ledHalo 2.6s ease-in-out infinite; }

@keyframes led {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

@keyframes ledHalo {
  0%, 100% { opacity: 0.15; }
  50% { opacity: 0.05; }
}

.mockup-scene {
  perspective: 1100px;
  width: 480px;
  height: 330px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  transform: scale(1.12);
}

.mockup-scene:active { cursor: grabbing; }

.mockup-box {
  width: 340px;
  height: 68px;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(-15deg) rotateY(-25deg);
  animation: mockupRotate 20s ease-in-out infinite;
}

@keyframes mockupRotate {
  0%   { transform: rotateX(-15deg) rotateY(-25deg); }
  25%  { transform: rotateX(-20deg) rotateY(-50deg); }
  50%  { transform: rotateX(-12deg) rotateY(-25deg); }
  75%  { transform: rotateX(-15deg) rotateY(5deg); }
  100% { transform: rotateX(-15deg) rotateY(-25deg); }
}

.mockup-face {
  position: absolute;
  background: #223447;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.mockup-face svg { display: block; width: 100%; height: 100%; }

.mockup-top {
  width: 340px; height: 245px;
  top: calc((68px - 245px) / 2); left: 0;
  transform: rotateX(90deg) translateZ(34px);
}

.mockup-front {
  width: 340px; height: 68px;
  transform: translateZ(122.5px);
}

.mockup-back {
  width: 340px; height: 68px;
  transform: rotateY(180deg) translateZ(122.5px);
}

.mockup-left {
  width: 245px; height: 68px;
  left: calc((340px - 245px) / 2);
  transform: rotateY(-90deg) translateZ(170px);
}

.mockup-right {
  width: 245px; height: 68px;
  left: calc((340px - 245px) / 2);
  transform: rotateY(90deg) translateZ(170px);
}

.mockup-bottom {
  width: 340px; height: 245px;
  top: calc((68px - 245px) / 2); left: 0;
  transform: rotateX(-90deg) translateZ(34px);
  background: #16263A;
}

.mockup-shadow {
  position: absolute;
  width: 430px; height: 430px;
  background: rgba(15, 30, 26, 0.22);
  border-radius: 50%;
  filter: blur(42px);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotateX(90deg) translateZ(-40px);
  pointer-events: none;
}

.reasons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 18px;
  border: 1px solid var(--dark-line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
  padding: 12px;
}

.reasons__item {
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.3);
  padding: 18px 16px;
  display: flex;
  align-items: flex-end;
  min-height: 130px;
}

.reasons__item p {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--dark-muted);
}

.reasons__item--hot {
  border: 1px solid rgba(46, 156, 142, 0.4);
  background: rgba(46, 156, 142, 0.12);
}

.reasons__item--hot p { color: #CFEFE9; }

/* ---------- Flywheel ---------- */
.flywheel {
  position: relative;
  width: min(100%, 500px);
  aspect-ratio: 1;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  padding: 34px;
}

.flywheel::before,
.flywheel::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.flywheel::before { inset: 34px; border: 1px solid rgba(21, 122, 110, 0.3); }
.flywheel::after { inset: 88px; border: 1px solid var(--line); }

.flywheel__center {
  height: 100%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--dark);
  color: #fff;
  text-align: center;
  box-shadow: 0 24px 60px rgba(11, 33, 29, 0.3);
}

.flywheel__center strong {
  max-width: 170px;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.flywheel__tag {
  position: absolute;
  max-width: 184px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 12px 14px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  box-shadow: 0 12px 32px rgba(16, 20, 24, 0.1);
}

.flywheel__tag--2 { right: -16px; top: 104px; }
.flywheel__tag--3 { right: -16px; bottom: 96px; }
.flywheel__tag--4 { left: 50%; bottom: 18px; transform: translateX(-50%); }
.flywheel__tag--5 { left: -16px; bottom: 96px; }

.flywheel__tag--1 {
  left: -10px;
  top: 44px;
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
  box-shadow: 0 14px 36px rgba(14, 93, 84, 0.38);
}

/* ---------- Final CTA ---------- */
.final {
  padding: 130px 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(255, 255, 255, 0.14), transparent 60%),
    linear-gradient(135deg, var(--teal-bright) 0%, var(--teal) 55%, var(--teal-deep) 100%);
  color: #fff;
  text-align: center;
}

.final__title {
  font-size: clamp(44px, 8vw, 104px);
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: -0.05em;
  max-width: 14ch;
  margin: 0 auto;
}

.final__sub {
  margin: 26px auto 0;
  font-size: clamp(18px, 2.4vw, 26px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.85);
  max-width: 32ch;
}

.final__action { margin-top: 40px; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: var(--muted);
}

.footer__inner a {
  color: var(--teal);
  text-decoration: none;
  font-weight: 600;
}

.footer__inner a:hover { text-decoration: underline; }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .badge__dot, .device__led, .device__led-halo, .mockup-box { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 33, 29, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 100;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: #fff;
  border-radius: 24px;
  padding: 36px;
  width: 100%;
  max-width: 460px;
  max-height: 90dvh;
  overflow-y: auto;
  position: relative;
  transform: translateY(12px) scale(0.98);
  transition: transform 0.2s ease;
  box-shadow: 0 28px 80px rgba(11, 33, 29, 0.3);
}

.modal-overlay.active .modal { transform: none; }

.modal__close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: none;
  border: none;
  font-size: 26px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
}

.modal__close:hover { color: var(--ink); }

.modal__title {
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-bottom: 8px;
}

.modal__sub {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 24px;
  line-height: 1.5;
}

.modal__hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.modal__field { margin-bottom: 16px; }

.modal__label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.modal__input {
  width: 100%;
  font-family: var(--font);
  font-size: 16px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid rgba(16, 20, 24, 0.14);
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.modal__input::placeholder { color: #A8ACB0; }

.modal__input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(21, 122, 110, 0.14);
}

.modal__submit { margin-top: 6px; }

.modal__success {
  text-align: center;
  padding: 26px 0 10px;
}

.modal__success-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(21, 122, 110, 0.12);
  color: var(--teal);
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.modal__success h3 {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.modal__success p {
  font-size: 15px;
  color: var(--muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__grid,
  .grid-two {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .hero { padding: 64px 0 56px; }

  .console { max-width: 560px; }
}

@media (max-width: 640px) {
  .sec { padding: 76px 0; }
  .final { padding: 96px 0; }

  .container, .nav__inner { width: min(100% - 36px, 1200px); }

  .signals { grid-template-columns: 1fr; }
  .board__grid { grid-template-columns: 1fr; }
  .board__tile { min-height: 120px; }

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

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

  .loop { grid-template-columns: 1fr 1fr; }
  .loop__item { min-height: 120px; }

  .stats--four, .stats--five { grid-template-columns: 1fr 1fr; }

  .reasons { grid-template-columns: 1fr; }
  .reasons__item { min-height: 0; }

  .flywheel { padding: 24px; aspect-ratio: auto; border-radius: 28px; }
  .flywheel::before, .flywheel::after { display: none; }
  .flywheel__center { min-height: 200px; height: auto; border-radius: 24px; }
  .flywheel__tag { position: static; max-width: none; margin-top: 8px; transform: none; }

  .footer__inner {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .modal { padding: 28px 22px; }

  .mockup-scene { width: 260px; height: 210px; transform: none; }

  .mockup-box { width: 200px; height: 40px; }
  .mockup-box .mockup-top { width: 200px; height: 144px; top: calc((40px - 144px) / 2); left: 0; transform: rotateX(90deg) translateZ(20px); }
  .mockup-box .mockup-front { width: 200px; height: 40px; transform: translateZ(72px); }
  .mockup-box .mockup-back { width: 200px; height: 40px; transform: rotateY(180deg) translateZ(72px); }
  .mockup-box .mockup-left { width: 144px; height: 40px; left: calc((200px - 144px) / 2); transform: rotateY(-90deg) translateZ(100px); }
  .mockup-box .mockup-right { width: 144px; height: 40px; left: calc((200px - 144px) / 2); transform: rotateY(90deg) translateZ(100px); }
  .mockup-box .mockup-bottom { width: 200px; height: 144px; top: calc((40px - 144px) / 2); left: 0; transform: rotateX(-90deg) translateZ(20px); }
  .mockup-box .mockup-shadow { width: 240px; height: 240px; }
}
