/* ==========================================================
   CageVision — landing page
   Design tokens taken from the Figma file "Skillforce"
   ========================================================== */
:root {
  --ink: #060a12;          /* dark background / dark text */
  --ink-2: #0d1422;        /* image placeholder */
  --paper: #f5f6f8;        /* light background / light text */
  --red: #d23a2e;          /* accent */
  --red-2: #f0574a;        /* accent on dark */
  --muted-dark: #8f99ac;   /* secondary text on dark */
  --soft-dark: #c3cad6;    /* lead text on dark */
  --muted-light: #5b6477;  /* secondary text on light */
  --body-light: #2c3446;   /* body text on light */
  --nav-link: #9aa3b5;
  --line-dark: rgba(195, 202, 214, 0.12);
  --line-light: rgba(6, 10, 18, 0.12);

  --f-display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --container: 1200px;
  --gutter: 20px;
  --section-pad: 180px;
}

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--f-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, h4, ol, ul, dl, dd, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
strong { font-weight: inherit; }

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

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--red); color: var(--paper); padding: 10px 14px;
  font: 700 12px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase;
}
.skip-link:focus { top: 16px; }

.accent { color: var(--red); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: var(--section-pad) 0; }
.section--dark { background: var(--ink); color: var(--paper); }
.section--light { background: var(--paper); color: var(--ink); }

/* ---------- Type ---------- */
.mono {
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 11px;
  line-height: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.lead {
  font-size: 22px;
  line-height: 34.1px;
  text-wrap: pretty;
}
.section--dark .lead { color: var(--soft-dark); }
.section--light .lead { color: var(--body-light); }

.body {
  font-size: 18px;
  line-height: 29.7px;
  color: var(--muted-light);
  text-wrap: pretty;
}

.h2 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(52px, 5.84vw, 84px);
  line-height: 0.95;
  letter-spacing: 0.004em;
  text-transform: uppercase;
}

.h3 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 26px;
  line-height: 27.3px;
  letter-spacing: 0.004em;
  text-transform: uppercase;
}

/* Section header row ("02 / 06 · ...") */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-dark);
}
.section--light .section-head { border-color: var(--line-light); color: var(--muted-light); }
.section--dark .section-head { color: var(--muted-dark); }
.section--light .section-head strong { color: var(--ink); }
.section--dark .section-head strong { color: var(--paper); }

/* Small bordered label with red square */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px 8px 10px;
  border: 1px solid var(--line-dark);
  font: 500 11.5px/11.5px var(--f-mono);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-dark);
  white-space: nowrap;
}
.section--light .tag { border-color: var(--line-light); color: var(--muted-light); }
.tag__dot { width: 6px; height: 6px; background: var(--red); flex: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  height: 46px;
  padding: 6px 6px 6px 20px;
  font: 700 12.5px/12.5px var(--f-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper);
  white-space: nowrap;
  transition: background-color .2s ease, box-shadow .2s ease;
}
.btn__icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  transition: transform .25s ease, background-color .2s ease;
}
.btn--primary { background: var(--red); }
.btn--primary .btn__icon { background: rgba(6, 10, 18, 0.22); }
.btn--primary:hover { background: #e04a3d; }
.btn--primary:hover .btn__icon { transform: translate(2px, -2px); }

.btn--ghost { padding-left: 18px; box-shadow: inset 0 0 0 1px var(--line-dark); }
.btn--ghost .btn__icon { background: rgba(255, 255, 255, 0.04); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px rgba(195, 202, 214, 0.3); }
.btn--ghost:hover .btn__icon { transform: translateY(2px); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 14px;
  left: 50%;
  z-index: 50;
  transform: translateX(-50%);
  width: min(1160px, calc(100% - 32px));
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 8px 8px 8px 20px;
  background: rgba(9, 14, 24, 0.72);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform .35s ease;
}
.nav.is-hidden { transform: translate(-50%, calc(-100% - 20px)); }
.nav__logo { flex: none; }
.nav__links {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  gap: 2px;
}
.nav__links a {
  position: relative;
  padding: 14px;
  font: 500 12px/12px var(--f-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--nav-link);
  transition: color .2s ease;
}
.nav__links a::after {
  content: "";
  position: absolute; left: 14px; right: 14px; bottom: 6px;
  height: 1px; background: var(--red);
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.nav__links a:hover,
.nav__links a.is-active { color: var(--paper); }
.nav__links a:hover::after,
.nav__links a.is-active::after { transform: scaleX(1); }

/* ---------- Media frames (with red corner brackets) ---------- */
.frame {
  position: relative;
  padding: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.frame--light {
  background: rgba(6, 10, 18, 0.04);
  border-color: rgba(6, 10, 18, 0.09);
}
.frame__inner {
  position: relative;
  overflow: hidden;
  background: var(--ink-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.frame--light .frame__inner { background: #dde1e7; }
.frame__img { width: 100%; height: 100%; object-fit: cover; }

.corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 0 solid var(--red);
  pointer-events: none;
  transition: transform .9s cubic-bezier(.32, .72, 0, 1);
}
.corner--tl { left: -5px; top: -5px; border-left-width: 2px; border-top-width: 2px; }
.corner--tr { right: -5px; top: -5px; border-right-width: 2px; border-top-width: 2px; }
.corner--bl { left: -5px; bottom: -5px; border-left-width: 2px; border-bottom-width: 2px; }
.corner--br { right: -5px; bottom: -5px; border-right-width: 2px; border-bottom-width: 2px; }
.frame:hover .corner--tl { transform: translate(-3px, -3px); }
.frame:hover .corner--tr { transform: translate(3px, -3px); }
.frame:hover .corner--bl { transform: translate(-3px, 3px); }
.frame:hover .corner--br { transform: translate(3px, 3px); }

/* HUD intro (from the Figma prototype): corners fly in, then a red
   scan line sweeps the image once. Triggered by .is-seen (script.js). */
.scan {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 3;
  height: 2px;
  background: var(--red-2);
  box-shadow: 0 0 22px 3px rgba(240, 87, 74, 0.5);
  opacity: 0;
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .js .frame--hud:not(.is-seen) .corner--tl { transform: translate(-16px, -16px); }
  .js .frame--hud:not(.is-seen) .corner--tr { transform: translate(16px, -16px); }
  .js .frame--hud:not(.is-seen) .corner--bl { transform: translate(-16px, 16px); }
  .js .frame--hud:not(.is-seen) .corner--br { transform: translate(16px, 16px); }
  .frame--hud.is-seen .scan { animation: scan 1.5s cubic-bezier(.32, .72, 0, 1) .2s 1 both; }
}
@keyframes scan {
  0% { top: 0; opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { top: calc(100% - 2px); opacity: 0; }
}

/* Overlay badge ("Main camera · live") */
.badge {
  position: absolute;
  left: 14px;
  top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: rgba(6, 10, 18, 0.78);
  color: var(--paper);
  font: 500 11px/11px var(--f-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.badge__dot {
  width: 6px; height: 6px; border-radius: 3px;
  background: var(--red-2);
  animation: blink 1.6s ease-in-out infinite;
}
.badge--btn {
  left: auto; top: auto; right: 14px; bottom: 14px;
  padding: 9px 11px;
  border: 0;
  cursor: pointer;
  transition: background-color .2s ease;
}
.badge--btn:hover { background: rgba(6, 10, 18, 0.92); }

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

/* ==========================================================
   01 · Hero
   ========================================================== */
.hero { padding-top: var(--section-pad); }
.hero__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 30px;
}
.hero__clock { color: var(--muted-dark); font-size: 11.5px; letter-spacing: .14em; }

.hero__title {
  padding-top: 28px;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(64px, 11.12vw, 160px);
  line-height: 0.9;
  letter-spacing: 0.004em;
  text-transform: uppercase;
  color: var(--paper);
}
.hero__line { display: block; overflow: hidden; padding-bottom: 0.03em; }
.hero__line > span { display: inline-block; }
.hero__line--accent { color: var(--red); }

/* Headline lines slide up from behind a mask (from the Figma prototype) */
@media (prefers-reduced-motion: no-preference) {
  .hero__line > span { animation: line-up 1.1s cubic-bezier(.32, .72, 0, 1) both; }
  .hero__line:nth-child(2) > span { animation-delay: .1s; }
}
@keyframes line-up { from { transform: translateY(105%); } to { transform: none; } }

.hero__intro {
  display: grid;
  grid-template-columns: minmax(0, 495px) auto;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
  padding-top: 36px;
}
.hero__ctas { display: flex; gap: 10px; flex-wrap: wrap; }

.hero__figure { margin-top: 80px; }
.hero__figure .frame__inner { aspect-ratio: 16 / 9; } /* matches the hero video (1920×1080) so the full frame is visible */
.hero__img { display: block; }
.hero__figure.is-paused .badge__dot { animation-play-state: paused; }

/* Key figures */
.figures {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 96px;
  border-top: 1px solid var(--line-dark);
}
.figures__item {
  display: flex;
  flex-direction: column;
  padding: 28px 24px 0;
  border-left: 1px solid var(--line-dark);
}
.figures__item:first-child { padding-left: 0; border-left: 0; }
.figures__num {
  font-family: var(--f-display);
  font-size: 80px;
  line-height: 76px;
  color: var(--paper);
  font-variant-numeric: tabular-nums;
}
.figures__label {
  max-width: 159px;
  padding-top: 12px;
  font: 500 12px/18px var(--f-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-dark);
}

/* ==========================================================
   02 · Challenge → Goal
   ========================================================== */
.versus {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 72px;
  margin-top: 80px;
}
.versus__col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}
.versus__col .h2 { color: var(--ink); }
.versus__strike {
  font-family: var(--f-display);
  font-size: 24px;
  line-height: 24px;
  text-transform: uppercase;
  text-decoration: line-through;
  color: var(--muted-light);
}
.versus__kicker { font-size: 13px; line-height: 19.5px; letter-spacing: 0.14em; color: var(--muted-light); }
.versus__divider { position: relative; background: var(--line-light); }
.versus__divider span {
  position: absolute;
  top: 50%; left: 50%;
  width: 11px; height: 11px;
  background: var(--red);
  transform: translate(-50%, -50%) rotate(45deg);
}

/* ==========================================================
   03 · Technology
   ========================================================== */
.split {
  display: grid;
  gap: 96px;
  margin-top: 80px;
}
.split--tech {
  grid-template-columns: minmax(0, 620fr) minmax(0, 443fr);
  align-items: end;
}
.split__title { padding-top: 22px; }

.layers {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto auto;
  gap: 20px;
  margin-top: 80px;
}
.layer {
  grid-column: 8 / span 5;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.layer .frame__inner { aspect-ratio: 453.67 / 243.84; }
.layer--main {
  grid-column: 1 / span 7;
  grid-row: 1 / span 2;
}
.layer--main .frame { flex: 1; display: flex; }
.layer--main .frame__inner { flex: 1; aspect-ratio: auto; min-height: 320px; }
.layer--main .frame__img { position: absolute; inset: 0; }
.layer .frame__img { transition: transform .6s ease; }
.layer:hover .frame__img { transform: scale(1.03); }

.layer__text { display: grid; gap: 8px; padding: 0 4px; }
.layer__num {
  font: 700 11px/11px var(--f-mono);
  letter-spacing: 0.18em;
  color: var(--red-2);
}
.layer__desc { font-size: 16px; line-height: 26.4px; color: var(--muted-dark); }

/* ==========================================================
   04 · How it works
   ========================================================== */
.split--how {
  grid-template-columns: minmax(0, 443fr) minmax(0, 620fr);
  align-items: start;
}
.how__intro { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }

.steps { counter-reset: none; }
.step {
  display: grid;
  grid-template-columns: 96px 1fr;
  grid-template-rows: auto auto;
  column-gap: 24px;
  row-gap: 6px;
  padding: 34px 0;
  border-top: 1px solid var(--line-light);
}
.step:last-child { border-bottom: 1px solid var(--line-light); }

/* Red line draws across the top of each step when the list scrolls in
   (from the Figma prototype). .is-seen is set in script.js. */
.step { position: relative; }
.step::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  width: 100%;
  height: 2px;
  background: var(--red);
  transform-origin: 0 50%;
  transition: transform 1.1s cubic-bezier(.32, .72, 0, 1);
}
.js .steps:not(.is-seen) .step::before { transform: scaleX(0); }
.steps.is-seen .step:nth-child(2)::before { transition-delay: .18s; }
.steps.is-seen .step:nth-child(3)::before { transition-delay: .36s; }
.step__num {
  grid-row: 1 / span 2;
  font-family: var(--f-display);
  font-size: 64px;
  line-height: 57.6px;
  color: transparent;
  -webkit-text-stroke: 1px rgba(6, 10, 18, 0.28);
  transition: color .3s ease, -webkit-text-stroke-color .3s ease;
}
.step:hover .step__num { color: var(--red); -webkit-text-stroke-color: var(--red); }
.step .h3 { grid-column: 2; color: var(--ink); }
.step p {
  grid-column: 2;
  font-size: 17px;
  line-height: 28.05px;
  color: var(--body-light);
  text-wrap: pretty;
}

.console { padding-top: 104px; }
.console .frame__inner { aspect-ratio: 1142 / 642.375; }
.console figcaption {
  padding-top: 16px;
  font-size: 12px;
  line-height: 18px;
  letter-spacing: 0.14em;
  color: var(--muted-light);
}

/* ==========================================================
   05 · Preview
   ========================================================== */
.preview__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  margin-top: 80px;
}
.preview__figure { margin-top: 80px; }
.preview__figure .frame__inner { aspect-ratio: 1142 / 642.375; }
.preview__figure .frame__img { transition: transform .6s ease; }
.preview__figure:hover .frame__img { transform: scale(1.02); }

.preview__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(to bottom, rgba(6, 10, 18, 0) 40%, rgba(6, 10, 18, 0.55));
}
.preview__pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 8px 22px 8px 74px;
  background: var(--red);
  font: 700 13px/13px var(--f-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper);
  white-space: nowrap;
  transition: transform .25s ease, background-color .2s ease;
}
.preview__circle {
  position: absolute;
  left: 8px;
  top: 50%;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  padding-left: 3px;
  background: rgba(6, 10, 18, 0.25);
  border: 2px solid var(--red);
  transform: translateY(-50%);
}
.preview__circle::after {
  content: "";
  position: absolute; inset: -2px;
  border: 2px solid var(--red);
  animation: ping 2.2s ease-out infinite;
}
.preview__play:hover .preview__pill { transform: scale(1.05); background: #e04a3d; }

@keyframes ping {
  0% { transform: scale(1); opacity: .9; }
  80%, 100% { transform: scale(1.6); opacity: 0; }
}

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 40px;
  border-top: 1px solid var(--line-dark);
}
.features li {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 20px 16px 20px 0;
  min-height: 68px;
  border-bottom: 1px solid var(--line-dark);
  font-weight: 500;
  font-size: 16.5px;
  line-height: 27.2px;
  color: var(--paper);
}
.features span {
  flex: none;
  width: 12px;
  font: 500 11.5px/11.5px var(--f-mono);
  letter-spacing: 0.1em;
  color: var(--red-2);
}

/* ==========================================================
   06 · Contact
   ========================================================== */
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 539px);
  gap: 64px;
  margin-top: 80px;
}
.contact__intro { display: flex; flex-direction: column; align-items: flex-start; }
.contact__title {
  padding-top: 24px;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(72px, 8.9vw, 128px);
  line-height: 0.91;
  letter-spacing: 0.004em;
  text-transform: uppercase;
  color: var(--ink);
}
.contact__intro .body { max-width: 440px; padding-top: 44px; line-height: 28px; }

.tag--pill { border-radius: 999px; color: var(--ink); }
.tag--pill .tag__dot { border-radius: 50%; }

.contact__cards { display: grid; gap: 31px; }
.contact-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 30px 32px;
  background: #fff;
  border: 1px solid var(--line-light);
}
.contact-card .corner { width: 14px; height: 14px; }
.contact-card .corner { border-color: var(--muted-dark); }
.contact-card--accent .corner { border-color: var(--red); }
.contact-card:hover .corner--tl { transform: translate(-3px, -3px); }
.contact-card:hover .corner--tr { transform: translate(3px, -3px); }
.contact-card:hover .corner--bl { transform: translate(-3px, 3px); }
.contact-card:hover .corner--br { transform: translate(3px, 3px); }
.contact-card__label { color: var(--muted-light); }
.contact-card__title {
  padding-top: 9px;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--ink);
}
.contact-card__text {
  max-width: 340px;
  font-size: 15px;
  line-height: 21px;
  color: var(--muted-light);
  text-wrap: pretty;
}
.contact-card .btn { margin-top: 17px; }

/* Rounded button variants used in the contact cards */
.btn--pill { gap: 32px; border-radius: 999px; font-size: 13px; letter-spacing: 0.1em; }
.btn--pill .btn__icon { border-radius: 50%; }
.btn--primary.btn--pill .btn__icon { background: #fff; }
.btn--outline { color: var(--ink); box-shadow: inset 0 0 0 1px rgba(6, 10, 18, 0.35); }
.btn--outline .btn__icon { background: var(--ink); }
.btn--outline:hover { background: rgba(6, 10, 18, 0.04); box-shadow: inset 0 0 0 1px var(--ink); }
.btn--outline:hover .btn__icon { transform: translate(2px, -2px); }

/* ==========================================================
   07 · Footer
   ========================================================== */
.footer { padding-bottom: 0; }
.footer__cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 32px;
  margin-top: 80px;
  padding-bottom: 96px;
  border-bottom: 1px solid var(--line-dark);
}
.footer__title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(60px, 9.45vw, 136px);
  line-height: 0.9;
  letter-spacing: 0.004em;
  text-transform: uppercase;
  color: var(--paper);
}
.footer__cta .lead { padding-top: 24px; }

.footer__cols {
  display: grid;
  grid-template-columns: 371fr 203fr 522fr;
  gap: 32px;
  padding: 56px 0;
}
.footer__logo { width: 174.75px; height: 24px; object-fit: contain; }
.footer__tagline {
  max-width: 281px;
  padding-top: 16px;
  font-size: 15px;
  line-height: 24.75px;
  color: var(--muted-dark);
}
.footer__heading {
  font: 500 11.5px/11.5px var(--f-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-dark);
}
.footer__list { display: grid; gap: 10px; padding-top: 18px; }
.footer__list a {
  font-size: 16px;
  line-height: 26.4px;
  color: var(--paper);
  background: linear-gradient(var(--red), var(--red)) left bottom / 0 1px no-repeat;
  transition: background-size .25s ease, color .2s ease;
}
.footer__list a:hover { background-size: 100% 1px; color: var(--red-2); }

/* Social links: icon + label, underline only under the label */
.footer__list--social a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: none;
}
.footer__list--social a span {
  background: linear-gradient(var(--red), var(--red)) left bottom / 0 1px no-repeat;
  transition: background-size .25s ease;
}
.footer__list--social a:hover span { background-size: 100% 1px; }
.footer__icon { flex: none; color: var(--muted-dark); transition: color .2s ease; }
.footer__list--social a:hover .footer__icon { color: var(--red-2); }

/* Round timer bar (moves with scroll) */
.round-bar {
  position: relative;
  height: 30px;
  border-top: 1px solid var(--line-dark);
}
.round-bar__marker {
  position: absolute;
  top: 6px;
  left: 0;
  width: 2px;
  height: 20px;
  background: var(--red);
  will-change: left;
}
.round-bar__marker span {
  position: absolute;
  left: 8px;
  top: 2px;
  font: 500 10.5px/10.5px var(--f-mono);
  letter-spacing: 0.1em;
  color: var(--muted-dark);
  white-space: nowrap;
}
.round-bar__marker.is-end span { left: auto; right: 8px; }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0 32px;
  font-size: 11.5px;
  line-height: 18.4px;
  letter-spacing: 0.14em;
  color: var(--muted-dark);
}
.footer__bottom a { transition: color .2s ease; }
.footer__bottom a:hover { color: var(--red-2); }

/* ==========================================================
   Scroll reveal (only when JS is running)
   ========================================================== */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--d, 0ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1100px) {
  :root { --section-pad: 140px; }
  .split, .versus { gap: 56px; }
}

@media (max-width: 900px) {
  :root { --section-pad: 112px; }

  .nav__links { display: none; }
  .nav { justify-content: space-between; }

  .hero__intro { grid-template-columns: 1fr; gap: 28px; }
  .figures { grid-template-columns: repeat(2, 1fr); }
  .figures__item:nth-child(3) { padding-left: 0; border-left: 0; }
  .figures__item:nth-child(n+3) { padding-top: 28px; margin-top: 28px; border-top: 1px solid var(--line-dark); }

  .versus { grid-template-columns: 1fr; gap: 48px; }
  .versus__divider { height: 1px; }

  .split--tech, .split--how { grid-template-columns: 1fr; gap: 40px; }

  .layers { grid-template-columns: 1fr; gap: 40px; }
  .layer, .layer--main { grid-column: auto; grid-row: auto; }
  .layer--main .frame__inner { aspect-ratio: 650 / 504; min-height: 0; }

  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .contact__grid { grid-template-columns: 1fr; gap: 56px; }

  .footer__cta { grid-template-columns: 1fr; justify-items: start; padding-bottom: 72px; }
  .footer__cols { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
}

@media (max-width: 600px) {
  :root { --section-pad: 88px; --gutter: 16px; }

  .nav { top: 10px; padding-left: 14px; gap: 12px; }
  .nav .btn { height: 40px; padding-left: 14px; font-size: 11px; }
  .nav .btn__icon { width: 28px; height: 28px; }
  .nav__logo img { width: 120px; height: auto; }

  .hero { padding-top: 120px; }
  .hero__clock { display: none; }
  .lead { font-size: 19px; line-height: 30px; }
  .body { font-size: 17px; line-height: 28px; }

  .hero__ctas .btn { flex: 1 1 auto; justify-content: space-between; }

  .figures__num { font-size: 64px; line-height: 62px; }
  .figures__item { padding-left: 16px; padding-right: 12px; }

  .section-head { flex-wrap: wrap; row-gap: 10px; }

  .step { grid-template-columns: 56px 1fr; column-gap: 16px; }
  .step__num { font-size: 44px; line-height: 44px; }

  .preview__pill { font-size: 11.5px; padding-left: 66px; padding-right: 16px; }
  .preview__circle { width: 46px; height: 46px; }

  .features { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; }

  .badge--btn { right: 10px; bottom: 10px; }
  .badge { left: 10px; top: 10px; }
}

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