/* ============================================================
   Backlo — site design system
   Field Rally graphite + chartreuse. Space Grotesk display,
   Inter body. Motion is springy but restrained, and every
   animated affordance respects prefers-reduced-motion.
   ============================================================ */

:root {
  /* color */
  --field-950: #07130e;
  --field-900: #0d2b1e;
  --field-800: #173827;
  --field-700: #315c3b;
  --graphite-950: #08100e;
  --graphite-900: #101816;
  --graphite-800: #18221f;
  --paper: #fbfaf2;
  --soft: #f1efe5;
  --card: #fffdf6;
  --ink: #0c1712;
  --muted: #5f6860;
  --line: #e7e0ce;
  --line-dark: rgba(255, 255, 255, 0.1);
  --action: #a9f13f;
  --action-bright: #c8ff62;
  --action-deep: #72c921;
  --rally-orange: #ff4d24;
  --rally-blue: #2497ff;
  --rally-teal: #27d6c8;
  --green: #66b84a;
  --red: #f04438;
  --blue: var(--rally-blue);

  /* type */
  --font-display: "Space Grotesk", "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  /* surfaces + depth */
  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 24px;
  --shadow-card: 0 1px 2px rgba(13, 43, 30, 0.05), 0 12px 32px -12px rgba(13, 43, 30, 0.16);
  --shadow-card-hover: 0 2px 4px rgba(13, 43, 30, 0.07), 0 24px 48px -16px rgba(13, 43, 30, 0.24);
  --shadow-pop: 0 30px 80px -20px rgba(8, 16, 14, 0.62);

  /* motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.45, 0.5, 1);
  --speed: 0.45s;

  /* layout */
  --gutter: clamp(20px, 5vw, 72px);
  --content: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection {
  color: var(--field-950);
  background: var(--action-bright);
}

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

a {
  color: inherit;
}

h1, h2, h3, h4, p {
  margin-top: 0;
}

h1, h2, h3 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

:focus-visible {
  outline: 2px solid var(--action);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  color: var(--field-950);
  background: var(--action-bright);
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s var(--ease-out);
}

.skip-link:focus-visible {
  top: 16px;
}

/* ------------------------------------------------------------
   Scroll reveal
   ------------------------------------------------------------ */

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.7s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}

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

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

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

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

/* ------------------------------------------------------------
   Navigation
   ------------------------------------------------------------ */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  color: #fff;
  background: rgba(16, 24, 22, 0.86);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition:
    background var(--speed) var(--ease-out),
    border-color var(--speed) var(--ease-out),
    box-shadow var(--speed) var(--ease-out);
}

.nav.is-scrolled {
  background: rgba(8, 16, 14, 0.9);
  border-bottom-color: var(--line-dark);
  box-shadow: 0 12px 40px -18px rgba(8, 16, 14, 0.9);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: var(--content);
  margin: 0 auto;
  padding: 14px var(--gutter);
  transition: padding var(--speed) var(--ease-out);
}

.nav.is-scrolled .nav-inner {
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: inherit;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  object-fit: cover;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: transform var(--speed) var(--ease-spring);
}

.brand:hover img {
  transform: rotate(-6deg) scale(1.06);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 30px);
  color: rgba(255, 255, 255, 0.78);
  font-size: 14.5px;
  font-weight: 600;
}

.nav-links a {
  position: relative;
  padding: 6px 2px;
  text-decoration: none;
  transition: color 0.25s var(--ease-out);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--action);
  transition: right 0.3s var(--ease-out);
}

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

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  right: 0;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-dark);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.3s var(--ease-out), top 0.3s var(--ease-out), opacity 0.2s;
}

.nav-toggle span {
  top: 50%;
  transform: translate(-50%, -50%);
}

.nav-toggle span::before {
  top: -6px;
  transform: translateX(-50%);
}

.nav-toggle span::after {
  top: 6px;
  transform: translateX(-50%);
}

.nav.is-open .nav-toggle span {
  background: transparent;
}

.nav.is-open .nav-toggle span::before {
  top: 0;
  transform: translateX(-50%) rotate(45deg);
}

.nav.is-open .nav-toggle span::after {
  top: 0;
  transform: translateX(-50%) rotate(-45deg);
}

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  cursor: pointer;
  transition:
    transform var(--speed) var(--ease-spring),
    box-shadow var(--speed) var(--ease-out),
    background-color var(--speed) var(--ease-out),
    border-color var(--speed) var(--ease-out);
}

.button:active {
  transform: translateY(1px) scale(0.98);
  transition-duration: 0.1s;
}

.button svg {
  flex: none;
  transition: transform 0.35s var(--ease-spring);
}

.button:hover .icon-arrow {
  transform: translateX(4px);
}

.button.primary {
  color: #221502;
  background: linear-gradient(180deg, var(--action-bright), var(--action));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -2px 0 rgba(122, 78, 6, 0.25),
    0 12px 28px -10px rgba(169, 241, 63, 0.65);
}

.button.primary::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -80%;
  width: 50%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-18deg);
  transition: left 0.6s var(--ease-out);
}

.button.primary:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -2px 0 rgba(122, 78, 6, 0.25),
    0 18px 38px -10px rgba(169, 241, 63, 0.8);
}

.button.primary:hover::before {
  left: 130%;
}

.button.secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(6px);
}

.button.secondary:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.45);
}

.button.outline {
  color: var(--ink);
  background: var(--card);
  border-color: var(--line);
  box-shadow: var(--shadow-card);
}

.button.outline:hover {
  transform: translateY(-2px);
  border-color: var(--action);
  box-shadow: var(--shadow-card-hover);
}

.button.small {
  min-height: 42px;
  padding: 8px 18px;
  border-radius: 11px;
  font-size: 14.5px;
}

/* ------------------------------------------------------------
   Hero
   ------------------------------------------------------------ */

.hero {
  position: relative;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(169, 241, 63, 0.10) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(135deg, var(--graphite-900) 0%, var(--field-950) 54%, var(--graphite-950) 100%);
  background-size: 88px 88px, 88px 88px, auto;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -30% -10%;
  background:
    repeating-linear-gradient(
      118deg,
      transparent 0 78px,
      rgba(169, 241, 63, 0.12) 78px 80px,
      transparent 80px 156px
    );
  animation: field-scan 16s linear infinite;
  opacity: 0.72;
  pointer-events: none;
}

@keyframes field-scan {
  to { transform: translate3d(-120px, 80px, 0); }
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(380px, 0.98fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
  max-width: var(--content);
  margin: 0 auto;
  padding: clamp(48px, 6vw, 84px) var(--gutter) clamp(56px, 7vw, 96px);
}

.hero-copy {
  min-width: 0;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 7px 14px;
  border: 1px solid rgba(169, 241, 63, 0.35);
  border-radius: 999px;
  color: var(--action-bright);
  background: rgba(169, 241, 63, 0.08);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before,
.section-kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--action);
  box-shadow: 0 0 0 0 rgba(169, 241, 63, 0.5);
  animation: pulse-dot 2.4s infinite;
}

@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(169, 241, 63, 0.45); }
  70% { box-shadow: 0 0 0 7px rgba(169, 241, 63, 0); }
  100% { box-shadow: 0 0 0 0 rgba(169, 241, 63, 0); }
}

h1 {
  margin-bottom: 22px;
  color: #fff;
  /* Capped so each hero sentence holds one line in its column — at 78px
     the headline wrapped to six lines and dwarfed the demo card. */
  font-size: clamp(42px, 4.4vw, 62px);
  font-weight: 700;
  line-height: 1.04;
}

h1 .grad {
  background: linear-gradient(92deg, var(--action-bright), var(--action-bright) 55%, var(--action));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lede {
  max-width: 600px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.74);
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.65;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 22px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  font-weight: 600;
}

.hero-meta li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-meta svg {
  color: var(--green);
}

/* --- interactive demo card --- */

.hero-demo {
  position: relative;
  min-width: 0;
  perspective: 1200px;
}

.demo-card {
  position: relative;
  z-index: 2;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-l);
  background:
    linear-gradient(90deg, rgba(169, 241, 63, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(165deg, rgba(24, 34, 31, 0.95), rgba(8, 16, 14, 0.96));
  background-size: 42px 42px, 42px 42px, auto;
  box-shadow: var(--shadow-pop);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transform-style: preserve-3d;
  will-change: transform;
}

.demo-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  color: var(--action-bright);
  background: rgba(169, 241, 63, 0.12);
  border: 1px solid rgba(169, 241, 63, 0.35);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.live-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--action);
  animation: pulse-live 1.6s infinite;
}

@keyframes pulse-live {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.78); }
}

.scoreboard {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.score-tile {
  position: relative;
  display: grid;
  gap: 4px;
  justify-items: center;
  padding: 18px 12px 14px;
  border: 0;
  border-radius: var(--radius-m);
  color: #fff;
  cursor: pointer;
  font-family: var(--font-display);
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s var(--ease-out);
}

.score-tile.blue {
  background: linear-gradient(170deg, var(--rally-blue), #1767bd);
}

.score-tile.red {
  background: linear-gradient(170deg, var(--rally-orange), #d83215);
}

.score-tile:hover {
  transform: translateY(-2px);
}

.score-tile:active {
  transform: scale(0.98);
}

.score-tile .team {
  font-size: 13.5px;
  font-weight: 700;
  opacity: 0.9;
}

.score-tile .pts {
  font-size: clamp(48px, 5vw, 64px);
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.score-tile .pts.bump {
  animation: score-bump 0.45s var(--ease-spring);
}

@keyframes score-bump {
  0% { transform: scale(1); }
  35% { transform: scale(1.28); }
  100% { transform: scale(1); }
}

.score-tile[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid var(--action-bright);
  border-radius: inherit;
  box-shadow: 0 0 0 4px rgba(169, 241, 63, 0.22);
  pointer-events: none;
}

.demo-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 22px;
  margin: 12px 2px 10px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  font-weight: 600;
}

.demo-status strong {
  color: var(--action-bright);
  font-weight: 700;
}

.score-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

.chip-btn {
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.25s var(--ease-spring), background 0.25s var(--ease-out), border-color 0.25s;
}

.chip-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

.chip-btn:active {
  transform: scale(0.94);
}

.chip-btn.undo {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.demo-matches {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.demo-match {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(8, 16, 14, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 13px;
  font-weight: 600;
}

.demo-match b {
  color: #fff;
  font-weight: 700;
}

.demo-match .tag {
  flex: none;
  padding: 3px 10px;
  border-radius: 999px;
  color: var(--action-bright);
  background: rgba(169, 241, 63, 0.12);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.demo-hint {
  margin: 14px 2px 0;
  color: rgba(255, 255, 255, 0.45);
  font-size: 12.5px;
  font-weight: 600;
  text-align: center;
}

/* win state + confetti */

.win-banner {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  border-radius: var(--radius-l);
  background: rgba(8, 16, 14, 0.82);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out);
}

.win-banner.show {
  opacity: 1;
}

.win-banner div {
  text-align: center;
  font-family: var(--font-display);
}

.win-banner .trophy {
  display: block;
  margin: 0 auto 10px;
  color: var(--action-bright);
}

.win-banner strong {
  display: block;
  color: #fff;
  font-size: 26px;
  font-weight: 700;
}

.win-banner span {
  color: rgba(255, 255, 255, 0.66);
  font-size: 14px;
  font-weight: 600;
}

.confetti {
  position: absolute;
  top: 30%;
  left: 50%;
  z-index: 6;
  width: 8px;
  height: 14px;
  border-radius: 2px;
  pointer-events: none;
  animation: confetti-fall 1.4s var(--ease-out) forwards;
}

@keyframes confetti-fall {
  0% {
    opacity: 1;
    transform: translate(0, 0) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translate(var(--cx, 0px), var(--cy, 220px)) rotate(var(--cr, 540deg));
  }
}

/* ------------------------------------------------------------
   Sports marquee
   ------------------------------------------------------------ */

.sports-marquee {
  position: relative;
  overflow: hidden;
  padding: 18px 0;
  color: rgba(255, 255, 255, 0.82);
  background: var(--graphite-950);
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.marquee-track {
  display: flex;
  gap: 40px;
  width: max-content;
  animation: marquee 36s linear infinite;
}

.sports-marquee::before,
.sports-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 90px;
  pointer-events: none;
}

.sports-marquee::before {
  left: 0;
  background: linear-gradient(90deg, var(--graphite-950), transparent);
}

.sports-marquee::after {
  right: 0;
  background: linear-gradient(270deg, var(--graphite-950), transparent);
}

.sports-marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-track > span {
  display: inline-flex;
  align-items: center;
  gap: 40px;
  flex: none;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.marquee-track i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--action);
}

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

/* ------------------------------------------------------------
   Proof strip
   ------------------------------------------------------------ */

.proof-strip {
  color: #fff;
  background: var(--graphite-900);
}

.proof-inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  max-width: var(--content);
  margin: 0 auto;
  background: var(--line-dark);
  border-left: 1px solid var(--line-dark);
  border-right: 1px solid var(--line-dark);
}

.proof-strip article {
  padding: clamp(26px, 4vw, 44px) clamp(20px, 3vw, 36px);
  background: var(--graphite-900);
  transition: background 0.3s var(--ease-out);
}

.proof-strip article:hover {
  background: var(--graphite-800);
}

.proof-strip strong {
  display: block;
  margin-bottom: 6px;
  color: var(--action-bright);
  font-family: var(--font-display);
  font-size: clamp(38px, 4.6vw, 58px);
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.proof-strip strong span {
  font: inherit;
  color: inherit;
}

.proof-strip article > span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 14.5px;
  font-weight: 600;
}

/* ------------------------------------------------------------
   Sections
   ------------------------------------------------------------ */

.section {
  padding: clamp(56px, 7vw, 96px) var(--gutter);
}

.section-inner {
  max-width: var(--content);
  margin: 0 auto;
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

h2 {
  margin-bottom: 16px;
  color: var(--ink);
  font-size: clamp(32px, 4.4vw, 54px);
  font-weight: 700;
  line-height: 1.05;
}

.section-head p {
  color: var(--muted);
  font-size: 18px;
}

/* --- workflow cards --- */

.workflow-stack {
  display: grid;
  gap: 22px;
}

.workflow-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  gap: clamp(26px, 5vw, 64px);
  align-items: center;
  padding: clamp(26px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--card);
  box-shadow: var(--shadow-card);
  transition: transform var(--speed) var(--ease-out), box-shadow var(--speed) var(--ease-out), border-color var(--speed);
}

.workflow-card:hover {
  transform: translateY(-4px);
  border-color: rgba(169, 241, 63, 0.6);
  box-shadow: var(--shadow-card-hover);
}

.workflow-card.reverse {
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
}

.workflow-card.reverse .workflow-copy {
  order: 2;
}

.workflow-shot {
  overflow: hidden;
  margin: 0 auto;
  border-radius: 24px;
}

.workflow-shot img {
  max-height: 480px;
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(13, 43, 30, 0.16);
  transition: transform 0.7s var(--ease-out);
}

.workflow-card:hover .workflow-shot img {
  transform: scale(1.03) translateY(-4px);
}

.workflow-copy .step {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 22px;
  border: 1.5px solid var(--action);
  border-radius: 50%;
  color: var(--field-700);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
}

.workflow-copy h3 {
  max-width: 560px;
  margin-bottom: 12px;
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.1;
}

.workflow-copy p {
  max-width: 600px;
  margin: 0;
  color: var(--muted);
  font-size: 17.5px;
}

/* --- dark feature grid --- */

.dark-section {
  color: #fff;
  background:
    linear-gradient(120deg, rgba(169, 241, 63, 0.08) 0 1px, transparent 1px 86px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 70px),
    var(--graphite-900);
  background-size: 86px 86px, 70px 70px, auto;
}

.dark-section h2,
.dark-section h3 {
  color: #fff;
}

.dark-section .section-head p {
  color: rgba(255, 255, 255, 0.66);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  position: relative;
  padding: 28px 26px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-m);
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  overflow: hidden;
  transition: transform var(--speed) var(--ease-out), border-color var(--speed), background 0.4s;
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(169, 241, 63, 0.12) 50%, transparent 100%);
  opacity: 0;
  transform: translateX(-35%);
  transition: opacity 0.5s var(--ease-out);
  pointer-events: none;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(169, 241, 63, 0.45);
}

.feature-card:hover::before {
  opacity: 1;
  animation: panel-sheen 1.2s var(--ease-out);
}

@keyframes panel-sheen {
  from { transform: translateX(-45%); }
  to { transform: translateX(45%); }
}

.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 40px;
  border: 1px solid rgba(169, 241, 63, 0.35);
  border-radius: 13px;
  color: var(--action-bright);
  background: rgba(169, 241, 63, 0.08);
  transition: transform 0.35s var(--ease-spring);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(-4deg);
}

.feature-card h3 {
  margin-bottom: 8px;
  font-size: 21px;
}

.feature-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 15.5px;
}

/* ------------------------------------------------------------
   Screenshot rail
   ------------------------------------------------------------ */

.screenshot-section {
  background: var(--soft);
}

.rail-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.rail-controls {
  display: flex;
  gap: 10px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.rail-btn {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: var(--card);
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s var(--ease-spring), border-color 0.3s, box-shadow 0.3s;
}

.rail-btn:hover {
  transform: translateY(-2px);
  border-color: var(--action);
  box-shadow: var(--shadow-card-hover);
}

.rail-btn:active {
  transform: scale(0.92);
}

.screenshot-rail {
  display: flex;
  gap: 18px;
  margin: 0 calc(var(--gutter) * -1);
  padding: 8px var(--gutter) 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: var(--gutter);
  scrollbar-width: none;
}

.screenshot-rail::-webkit-scrollbar {
  display: none;
}

.shot {
  flex: none;
  width: clamp(200px, 22vw, 248px);
  margin: 0;
  scroll-snap-align: start;
}

.shot img {
  width: 100%;
  border-radius: 22px;
  border: 1px solid var(--line);
  box-shadow: 0 16px 36px rgba(13, 43, 30, 0.14);
  transition: transform var(--speed) var(--ease-out), box-shadow var(--speed) var(--ease-out);
}

.shot:hover img {
  transform: translateY(-6px);
  box-shadow: 0 26px 48px rgba(13, 43, 30, 0.22);
}

.shot figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  text-align: center;
}

/* legacy rail (secondary pages render bare imgs inside .screenshot-rail) */

.screenshot-rail > img {
  flex: none;
  width: clamp(200px, 22vw, 248px);
  border-radius: 22px;
  border: 1px solid var(--line);
  box-shadow: 0 16px 36px rgba(13, 43, 30, 0.14);
  scroll-snap-align: start;
}

/* ------------------------------------------------------------
   Pricing
   ------------------------------------------------------------ */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--card);
  box-shadow: var(--shadow-card);
  transition: transform var(--speed) var(--ease-out), box-shadow var(--speed) var(--ease-out), border-color var(--speed);
}

.plan:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
}

.plan.featured {
  color: #fff;
  background: linear-gradient(175deg, var(--graphite-800), var(--graphite-950));
  border-color: rgba(169, 241, 63, 0.55);
  box-shadow: 0 24px 60px -18px rgba(5, 13, 22, 0.55);
}

.plan.featured:hover {
  border-color: var(--action);
}

.plan-badge {
  position: absolute;
  top: -13px;
  left: 26px;
  padding: 5px 13px;
  border-radius: 999px;
  color: #221502;
  background: linear-gradient(180deg, var(--action-bright), var(--action));
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 8px 18px -6px rgba(169, 241, 63, 0.7);
}

.plan h3 {
  margin-bottom: 4px;
  font-size: 20px;
}

.plan .plan-for {
  min-height: 44px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 14.5px;
}

.plan.featured .plan-for {
  color: rgba(255, 255, 255, 0.62);
}

.plan .price {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-bottom: 20px;
  font-family: var(--font-display);
}

.plan .price strong {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.plan.featured .price strong {
  color: var(--action-bright);
}

.plan .price span {
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
}

.plan.featured .price span {
  color: rgba(255, 255, 255, 0.58);
}

.plan ul {
  display: grid;
  gap: 11px;
  flex: 1;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  font-size: 15px;
}

.plan li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--ink);
}

.plan.featured li {
  color: rgba(255, 255, 255, 0.85);
}

.plan li svg {
  flex: none;
  margin-top: 3px;
  color: var(--green);
}

.pricing-note {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

/* ------------------------------------------------------------
   CTA band + footer
   ------------------------------------------------------------ */

.cta-band {
  padding: 0 var(--gutter) clamp(64px, 9vw, 110px);
  background: var(--paper);
}

.cta-inner {
  position: relative;
  max-width: var(--content);
  margin: 0 auto;
  padding: clamp(44px, 7vw, 84px) clamp(28px, 6vw, 80px);
  border-radius: calc(var(--radius-l) + 6px);
  color: #fff;
  background:
    linear-gradient(110deg, transparent 0 52%, rgba(169, 241, 63, 0.16) 52% 54%, transparent 54%),
    linear-gradient(152deg, rgba(36, 151, 255, 0.16) 0 1px, transparent 1px 82px),
    linear-gradient(160deg, var(--graphite-800), var(--graphite-950));
  background-size: auto, 82px 82px, auto;
  overflow: hidden;
  text-align: center;
}

.cta-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(600px 360px at 50% 0%, black, transparent 80%);
  -webkit-mask-image: radial-gradient(600px 360px at 50% 0%, black, transparent 80%);
  pointer-events: none;
}

.cta-inner > * {
  position: relative;
}

.cta-inner h2 {
  color: #fff;
  font-size: clamp(32px, 4.6vw, 56px);
}

.cta-inner p {
  max-width: 620px;
  margin: 0 auto 30px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 18px;
}

.cta-inner .actions {
  justify-content: center;
  margin-bottom: 0;
}

.footer {
  color: rgba(255, 255, 255, 0.62);
  background: var(--graphite-950);
  border-top: 1px solid var(--line-dark);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 5vw, 64px);
  max-width: var(--content);
  margin: 0 auto;
  padding: clamp(44px, 6vw, 64px) var(--gutter) 28px;
}

.footer .brand {
  color: #fff;
}

.footer-tagline {
  max-width: 320px;
  margin: 16px 0 0;
  font-size: 14.5px;
}

.footer h4 {
  margin: 4px 0 14px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 600;
}

.footer-links a {
  width: fit-content;
  text-decoration: none;
  transition: color 0.25s;
}

.footer-links a:hover {
  color: var(--action-bright);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  max-width: var(--content);
  margin: 0 auto;
  padding: 18px var(--gutter) 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 13px;
}

/* simple footers (legal pages may keep a single-row footer) */

.footer > small {
  display: block;
  max-width: var(--content);
  margin: 0 auto;
  padding: 24px var(--gutter);
}

/* ------------------------------------------------------------
   Secondary pages: hero, content, cards
   ------------------------------------------------------------ */

.page-hero {
  position: relative;
  padding: clamp(56px, 8vw, 96px) var(--gutter);
  color: #fff;
  background:
    linear-gradient(112deg, rgba(169, 241, 63, 0.10) 0 1px, transparent 1px 84px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 72px),
    linear-gradient(170deg, var(--graphite-900), var(--graphite-950));
  background-size: 84px 84px, 72px 72px, auto;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(700px 420px at 70% 0%, black, transparent 80%);
  -webkit-mask-image: radial-gradient(700px 420px at 70% 0%, black, transparent 80%);
  pointer-events: none;
}

.page-hero-inner {
  position: relative;
  max-width: var(--content);
  margin: 0 auto;
}

.page-hero h1 {
  max-width: 820px;
  margin-bottom: 16px;
  font-size: clamp(36px, 5.4vw, 62px);
}

.page-hero p {
  max-width: 720px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 18px;
}

.content-page {
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(40px, 7vw, 72px) 20px 96px;
}

.content-page.wide {
  max-width: var(--content);
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.updated {
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
}

.notice {
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--action);
  border-radius: var(--radius-s);
  background: var(--card);
  box-shadow: var(--shadow-card);
}

.content-page h2 {
  margin-top: 44px;
  font-size: clamp(24px, 3.4vw, 32px);
}

.content-page li {
  margin-bottom: 8px;
}

.content-page code {
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--soft);
  font-size: 0.92em;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 28px 0 12px;
}

.detail-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--card);
  box-shadow: var(--shadow-card);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.35s;
}

.detail-card:hover {
  transform: translateY(-4px);
  border-color: rgba(169, 241, 63, 0.6);
  box-shadow: var(--shadow-card-hover);
}

.detail-card h3 {
  margin-bottom: 8px;
  font-size: 17px;
}

.detail-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.detail-card a {
  color: var(--blue);
  font-weight: 600;
}

.store-copy {
  display: grid;
  gap: 16px;
}

.store-copy article {
  position: relative;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--card);
  box-shadow: var(--shadow-card);
}

.store-copy h3 {
  margin-bottom: 12px;
  padding-right: 90px;
  font-size: 17px;
}

.store-copy code {
  display: block;
  padding: 16px 18px;
  border-radius: 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  color: var(--ink);
  background: var(--soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13.5px;
  line-height: 1.6;
}

.copy-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 5px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  background: var(--card);
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s, transform 0.25s var(--ease-spring), color 0.25s;
}

.copy-btn:hover {
  border-color: var(--action);
  transform: translateY(-1px);
}

.copy-btn:active {
  transform: scale(0.95);
}

.copy-btn.copied {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
}

.launch-links {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.launch-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  color: var(--ink);
  background: var(--card);
  box-shadow: var(--shadow-card);
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.3s var(--ease-out), border-color 0.3s, box-shadow 0.3s;
}

.launch-links a::after {
  content: "→";
  color: var(--field-700);
  font-family: var(--font-display);
  transition: transform 0.3s var(--ease-spring);
}

.launch-links a:hover {
  transform: translateY(-2px);
  border-color: rgba(169, 241, 63, 0.7);
  box-shadow: var(--shadow-card-hover);
}

.launch-links a:hover::after {
  transform: translateX(4px);
}

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */

@media (max-width: 1020px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding-bottom: clamp(96px, 12vw, 130px);
  }

  .hero-copy {
    max-width: 640px;
  }

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

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
  }

  .plan .plan-for {
    min-height: 0;
  }

  .workflow-card,
  .workflow-card.reverse {
    grid-template-columns: 1fr;
  }

  .workflow-card.reverse .workflow-copy {
    order: 0;
  }

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

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

@media (max-width: 760px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    right: var(--gutter);
    left: var(--gutter);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px;
    border: 1px solid var(--line-dark);
    border-radius: var(--radius-m);
    background: rgba(5, 13, 22, 0.97);
    box-shadow: var(--shadow-pop);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
  }

  .nav.is-open .nav-links {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .nav-links a {
    padding: 12px 14px;
    border-radius: 10px;
  }

  .nav-links a::after {
    display: none;
  }

  .nav-links a:hover {
    background: rgba(255, 255, 255, 0.07);
  }

  .nav-cta .button {
    display: none;
  }

  .hero-inner {
    padding-top: 44px;
  }

  h1 {
    font-size: clamp(38px, 11vw, 48px);
  }

  .actions {
    align-items: stretch;
    flex-direction: column;
  }

  .actions .button {
    width: 100%;
  }

  .scoreboard {
    gap: 10px;
  }

  .score-tile .pts {
    font-size: 44px;
  }

  .proof-inner,
  .feature-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .proof-strip article {
    display: flex;
    align-items: baseline;
    gap: 14px;
  }

  .proof-strip strong {
    min-width: 74px;
    margin-bottom: 0;
  }

  .rail-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .rail-controls {
    display: none;
  }

  .shot,
  .screenshot-rail > img {
    width: min(66vw, 240px);
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .store-copy h3 {
    padding-right: 0;
  }

  .copy-btn {
    position: static;
    margin-bottom: 12px;
  }
}

/* ============================================================
   Playfulness pass: brand-in-demo, step chips, floating bits,
   icon bounces. Every animation is disabled under reduced motion.
   ============================================================ */

/* --- Backlo brand inside the phone demo --- */

.demo-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.demo-brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.demo-brand div {
  display: grid;
  line-height: 1.2;
  min-width: 0;
}

.demo-brand strong {
  color: var(--action);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.demo-brand span {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.62);
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* --- floating sport doodles around the hero demo --- */

.float-bits {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.float-bits span {
  position: absolute;
  left: var(--fx, 50%);
  top: var(--fy, 50%);
  padding: 7px 11px;
  border: 1px solid rgba(169, 241, 63, 0.28);
  border-radius: 999px;
  color: var(--action-bright);
  background: rgba(8, 16, 14, 0.62);
  box-shadow: 0 10px 22px rgba(8, 16, 14, 0.32);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.96;
  animation: float-bob 5.2s var(--fd, 0s) ease-in-out infinite;
}

@keyframes float-bob {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-14px) rotate(7deg); }
}

@media (max-width: 900px) {
  .float-bits { display: none; }
}

/* --- step chips: little proof bits under each workflow step --- */

.step-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.step-chips li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border: 1px solid rgba(169, 241, 63, 0.45);
  border-radius: 999px;
  color: var(--field-700);
  background: rgba(169, 241, 63, 0.1);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(8px) scale(0.92);
  transition:
    opacity 0.45s var(--ease-out),
    transform 0.55s var(--ease-spring),
    background 0.25s var(--ease-out);
}

.step-chips li svg { flex: none; }

[data-reveal].is-visible .step-chips li { opacity: 1; transform: none; }
[data-reveal].is-visible .step-chips li:nth-child(1) { transition-delay: 0.25s; }
[data-reveal].is-visible .step-chips li:nth-child(2) { transition-delay: 0.37s; }
[data-reveal].is-visible .step-chips li:nth-child(3) { transition-delay: 0.49s; }

.workflow-card:hover .step-chips li {
  background: rgba(169, 241, 63, 0.18);
}

/* --- step number: fills and tips its cap on hover --- */

.workflow-copy .step {
  transition:
    transform 0.45s var(--ease-spring),
    background 0.3s var(--ease-out),
    color 0.3s var(--ease-out);
}

.workflow-card:hover .workflow-copy .step {
  background: var(--action);
  color: #14233a;
  transform: rotate(-8deg) scale(1.08);
}

/* --- workflow screenshots: settle from a slight tilt --- */

.workflow-shot {
  overflow: visible;
}

.workflow-shot img {
  transform: rotate(1.6deg);
  transition: transform 0.7s var(--ease-spring), box-shadow 0.5s var(--ease-out);
}

.workflow-card.reverse .workflow-shot img {
  transform: rotate(-1.6deg);
}

.workflow-card:hover .workflow-shot img {
  transform: rotate(0deg) scale(1.04) translateY(-6px);
  box-shadow: 0 26px 54px rgba(13, 43, 30, 0.24);
}

/* --- feature icons: wiggle awake on card hover --- */

.feature-card .feature-icon {
  transition: transform 0.4s var(--ease-spring), background 0.3s var(--ease-out);
}

.feature-card:hover .feature-icon {
  animation: icon-wiggle 0.6s var(--ease-spring);
  background: rgba(169, 241, 63, 0.22);
}

@keyframes icon-wiggle {
  0% { transform: rotate(0deg) scale(1); }
  30% { transform: rotate(-10deg) scale(1.12); }
  60% { transform: rotate(7deg) scale(1.06); }
  100% { transform: rotate(0deg) scale(1.05); }
}

/* --- screenshot rail: cards perk up under the pointer --- */

.shot {
  transition: transform 0.45s var(--ease-spring);
}

.shot:hover {
  transform: translateY(-8px) rotate(-1deg);
}

.shot:hover figcaption {
  color: var(--field-700);
}

/* --- pricing plans: featured plan breathes --- */

.plan {
  transition: transform 0.45s var(--ease-spring), box-shadow 0.4s var(--ease-out), border-color 0.3s;
}

.plan:hover {
  transform: translateY(-6px);
}

.plan.featured .plan-badge {
  animation: badge-bob 3.2s ease-in-out infinite;
}

@keyframes badge-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* --- reduced motion: everything above goes still --- */

@media (prefers-reduced-motion: reduce) {
  .float-bits span,
  .plan.featured .plan-badge,
  .feature-card:hover .feature-icon,
  .feature-card:hover::before {
    animation: none;
  }

  .step-chips li,
  .workflow-shot img,
  .workflow-copy .step,
  .shot,
  .plan {
    transition: none;
    transform: none;
    opacity: 1;
  }

  .workflow-card:hover .workflow-shot img,
  .workflow-card:hover .workflow-copy .step,
  .shot:hover,
  .plan:hover {
    transform: none;
  }
}
