:root {
  --rf-surface: #020d16;
  --rf-surface-raised: #061722;
  --rf-line: rgba(116, 169, 196, .22);
  --rf-blue: #24a8f2;
  --rf-blue-soft: #6bc8f7;
  --rf-text: #eef6fa;
  --rf-muted: #91a8b5;
}

/* Hero: product copy and the real application share the first viewport. */
.landing-hero {
  min-height: 790px;
  margin-bottom: 0;
}
.landing-hero::before {
  background-image: linear-gradient(90deg, rgba(2,13,22,.62) 0%, rgba(2,13,22,.28) 48%, rgba(2,13,22,.18) 75%, rgba(2,13,22,.5) 100%), url("assets/hero-helmet.png");
}
.landing-hero::after {
  background: linear-gradient(180deg, transparent 0 64%, rgba(2,13,22,.42) 83%, #020d16 100%);
}
.landing-hero .landing-hero-content {
  display: grid;
  grid-template-columns: minmax(430px, .82fr) minmax(560px, 1.18fr);
  align-items: center;
  gap: clamp(36px, 5vw, 84px);
  width: min(1440px, calc(100% - 96px));
  min-height: 670px;
  padding: 28px 0 106px;
}
.landing-copy {
  width: auto;
  max-width: 650px;
}
.landing-hero .landing-title {
  font-size: clamp(52px, 4.65vw, 76px);
  line-height: .9;
  white-space: normal;
}
.landing-hero .landing-title span {
  white-space: nowrap;
}
.landing-lead {
  max-width: 590px;
  margin-top: 28px;
  color: #bdcbd3;
  font-size: 16px;
  line-height: 1.65;
}
.landing-compatibility {
  margin: 14px 0 0;
  color: #78919e;
  font-size: 11px;
  line-height: 1.5;
}
.hero-app-preview,
.workflow-media {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--rf-line);
  border-radius: 14px;
  background: #06131d;
  box-shadow: none;
}
.hero-app-preview::after,
.workflow-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 1px rgba(255,255,255,.045);
}
.hero-app-preview img,
.workflow-media img {
  display: block;
  width: 100%;
  height: auto;
}
.app-frame-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-bottom: 1px solid rgba(104,153,178,.16);
  background: #081824;
}
.app-frame-bar span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #315365;
}
.app-frame-bar span:first-child { background: #208ccc; }
.app-frame-bar b {
  margin-left: auto;
  color: #6f8998;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.module-showcase {
  margin-top: -96px;
}

/* One editorial workflow replaces the former duplicate grids and card reel. */
.workflow-showcase {
  position: relative;
  isolation: isolate;
  padding: clamp(92px, 9vw, 142px) 0 32px;
  overflow: hidden;
  border-top: 1px solid rgba(73,126,151,.14);
  background: #03111b;
}
.workflow-showcase::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: -1;
  height: 460px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(14,46,65,.34), transparent);
  opacity: .48;
}
.workflow-intro,
.workflow-list {
  width: min(1420px, calc(100% - 96px));
  margin-inline: auto;
}
.workflow-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
  align-items: end;
  gap: 64px;
  padding-bottom: clamp(62px, 7vw, 100px);
}
.workflow-intro h2 {
  max-width: 920px;
  margin: 0;
  color: var(--rf-text);
  font-size: clamp(48px, 6.2vw, 88px);
  font-weight: 800;
  line-height: .94;
  letter-spacing: -.04em;
  text-transform: uppercase;
  text-wrap: balance;
}
.workflow-intro h2 span {
  display: inline-block;
  color: var(--rf-text);
}
.workflow-intro h2 span:nth-child(even) {
  color: var(--rf-text);
}
.workflow-intro h2 span:nth-child(n + 3) {
  color: var(--rf-blue);
}
.workflow-intro > p {
  max-width: 530px;
  margin: 0 0 7px;
  color: var(--rf-muted);
  font-size: 16px;
  line-height: 1.7;
  text-transform: uppercase;
}
.workflow-list {
  border-top: 1px solid rgba(91,145,170,.22);
}
.workflow-item {
  display: grid;
  grid-template-columns: minmax(290px, .72fr) minmax(0, 1.48fr);
  align-items: center;
  gap: clamp(48px, 7vw, 112px);
  padding: clamp(68px, 8vw, 116px) 0;
  border-bottom: 1px solid rgba(91,145,170,.18);
}
.workflow-item:nth-child(even) {
  grid-template-columns: minmax(0, 1.48fr) minmax(290px, .72fr);
}
.workflow-item:nth-child(even) .workflow-media { order: -1; }
.workflow-copy {
  max-width: 440px;
}
.workflow-stage {
  margin: 0 0 16px;
  color: var(--rf-blue-soft) !important;
  font-size: 11px !important;
  font-weight: 800;
  letter-spacing: .22em;
  line-height: 1.2 !important;
  text-transform: uppercase;
}
.workflow-copy h3 {
  margin: 0;
  color: var(--rf-text);
  font-size: clamp(30px, 3vw, 46px);
  font-weight: 750;
  line-height: 1.04;
  letter-spacing: -.035em;
  text-wrap: balance;
  text-transform: uppercase;
}
.workflow-copy h3 span {
  display: inline;
}
.workflow-copy h3 .workflow-title-light {
  color: var(--rf-text);
}
.workflow-copy h3 .workflow-title-blue {
  color: var(--rf-blue);
}
.workflow-racecut-brand {
  display: flex;
  align-items: center;
  margin-top: 28px;
  width: min(250px, 100%);
}
.workflow-racecut-brand img {
  display: block;
  width: 100%;
  height: auto;
}
.workflow-copy > p:not(.workflow-stage) {
  margin: 22px 0 0;
  color: #9cb1bd;
  font-size: 15px;
  line-height: 1.7;
}
.workflow-copy ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 20px;
  margin: 26px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid rgba(89,142,166,.18);
  list-style: none;
}
.workflow-copy li {
  position: relative;
  padding-left: 15px;
  color: #c3d1d8;
  font-size: 12px;
  line-height: 1.5;
  text-transform: uppercase;
}
.workflow-copy li::before {
  content: "";
  position: absolute;
  top: .55em;
  left: 0;
  width: 5px;
  height: 5px;
  background: #2ca8e8;
  transform: rotate(45deg);
}
.workflow-media {
  align-self: center;
  transition: border-color .28s ease, transform .35s cubic-bezier(.16,1,.3,1);
}
.workflow-media:hover {
  border-color: rgba(86,201,255,.3);
  transform: translateY(-3px);
}
.workflow-edge-glow { --edge-sensitivity: 18; }
.workflow-edge-glow > .section-edge-light::before {
  box-shadow:
    inset 0 0 0 1px var(--section-glow),
    inset 0 0 8px var(--section-glow-soft);
}

/* The workflow reveal is tied directly to scroll position, not fired as a one-off entrance. */
.workflow-scroll-motion .workflow-item .workflow-copy {
  opacity: var(--workflow-copy-opacity, 1);
  transform: translate3d(0, var(--workflow-copy-y, 0), 0);
}
.workflow-scroll-motion .workflow-item .workflow-media {
  opacity: var(--workflow-media-opacity, 1);
  transform: translate3d(var(--workflow-media-x, 0), 0, 0) scale(var(--workflow-media-scale, 1));
  transition: border-color .28s ease;
}
.workflow-scroll-motion .workflow-item.is-revealing .workflow-copy,
.workflow-scroll-motion .workflow-item.is-revealing .workflow-media {
  will-change: transform, opacity;
}

.site-footer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 48px;
  width: min(1240px, calc(100% - 48px));
  padding: 34px 0 42px;
  color: #667d89;
  text-transform: none;
  letter-spacing: 0;
}
.site-footer-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.site-footer p {
  justify-self: end;
  max-width: 820px;
  margin: 0;
  color: #607582;
  font-size: 10px;
  line-height: 1.65;
  text-align: right;
}
.site-footer .cookie-settings {
  color: #71818d;
}

@media (max-width: 1120px) {
  .landing-hero { min-height: 790px; }
  .landing-hero .landing-hero-content {
    grid-template-columns: 1fr;
    align-items: center;
    gap: 0;
    min-height: 670px;
    padding-bottom: 106px;
  }
  .landing-copy { max-width: 760px; }
  .workflow-item,
  .workflow-item:nth-child(even) {
    grid-template-columns: minmax(260px, .72fr) minmax(0, 1.35fr);
    gap: 42px;
  }
}

@media (max-width: 820px) {
  .landing-hero { min-height: auto; }
  .landing-hero .landing-hero-content {
    width: min(100% - 48px, 900px);
    min-height: 0;
    padding: 58px 0 120px;
  }
  .landing-hero .landing-title { font-size: clamp(46px, 9vw, 70px); }
  .landing-lead { max-width: 640px; }
  .module-showcase { margin-top: -40px; }
  .workflow-intro,
  .workflow-list { width: min(100% - 48px, 900px); }
  .workflow-intro {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .workflow-intro > p { max-width: 650px; }
  .workflow-item,
  .workflow-item:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .workflow-item:nth-child(even) .workflow-media { order: initial; }
  .workflow-copy { max-width: 650px; }

  .site-footer { grid-template-columns: 1fr; gap: 24px; }
  .site-footer p { justify-self: start; max-width: 720px; text-align: left; }
}

@media (max-width: 520px) {
  .landing-hero .landing-hero-content {
    width: calc(100% - 28px);
    gap: 34px;
    padding: 64px 0 90px;
  }
  .landing-hero .landing-title { font-size: clamp(37px, 11vw, 52px); line-height: .92; }
  .landing-hero .landing-title span { font-size: 1em; }
  .landing-lead { margin-top: 24px; font-size: 14px; }
  .landing-compatibility { max-width: 300px; font-size: 10px; }
  .hero-app-preview,
  .workflow-media { border-radius: 10px; }
  .app-frame-bar { height: 28px; padding-inline: 10px; }
  .app-frame-bar b { font-size: 8px; }
  .workflow-showcase { padding: 72px 0 18px; }
  .workflow-intro,
  .workflow-list { width: calc(100% - 28px); }
  .workflow-intro { padding-bottom: 54px; }
  .workflow-intro h2 { font-size: clamp(39px, 12vw, 56px); }
  .workflow-intro > p { font-size: 14px; }
  .workflow-item,
  .workflow-item:nth-child(even) { gap: 26px; padding: 56px 0; }
  .workflow-copy h3 { font-size: clamp(29px, 9vw, 38px); }
  .workflow-copy > p:not(.workflow-stage) { margin-top: 18px; font-size: 14px; }
  .workflow-copy ul { gap: 8px 12px; margin-top: 22px; padding-top: 17px; }
  .workflow-copy li { font-size: 11px; }
  .site-footer { width: calc(100% - 28px); }
  .site-footer-meta { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  .workflow-scroll-motion .workflow-item .workflow-copy,
  .workflow-scroll-motion .workflow-item .workflow-media {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .workflow-media:hover { transform: none; }
}
