:root {
  --bg: #fbfbfd;
  --bg-alt: #f5f5f7;
  --surface: #ffffff;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #86868b;
  --line: rgba(0, 0, 0, 0.08);
  --chip: rgba(0, 0, 0, 0.05);
  --link: #0066cc;
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --nav: rgba(251, 251, 253, 0.8);
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 18px 48px rgba(0, 0, 0, 0.1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 28px;
  --max: 1024px;
  --nav-h: 44px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --glare: rgba(255, 255, 255, 0.7);
  --aurora-1: rgba(0, 113, 227, 0.2);
  --aurora-2: rgba(138, 92, 246, 0.18);
  --aurora-3: rgba(255, 55, 95, 0.13);
  --grid-dot: rgba(0, 0, 0, 0.18);
  --icon-shadow: rgba(0, 0, 0, 0.22);

  /* RUFREE, from the rufree.app Glacier palette */
  --rf-bg: #eef3fb;
  --rf-bg-2: #e4ecf8;
  --rf-ink: #0d1b3d;
  --rf-ink-2: #44526f;
  --rf-ink-3: #7d8ba8;
  --rf-blue: #2f66f6;
  --rf-blue-deep: #1d47c9;
  --rf-mint: #2db590;
  --rf-mint-text: #1d8a6b;
  --rf-spark: #ffb52e;
  --rf-spark-text: #a86d00;
  --rf-glass: rgba(255, 255, 255, 0.5);
  --rf-glass-strong: rgba(255, 255, 255, 0.8);
  --rf-rim: rgba(255, 255, 255, 0.95);
  --rf-hair: rgba(13, 27, 61, 0.09);
  --rf-hair-strong: rgba(13, 27, 61, 0.14);
  --rf-grid: rgba(13, 27, 61, 0.08);
  --rf-chip: rgba(13, 27, 61, 0.06);
  --rf-plane: rgba(255, 255, 255, 0.88);
  --rf-plane-solid: #ffffff;
  --rf-sheet: 255, 255, 255;
  --rf-shadow: 0 1px 1px rgba(13, 27, 61, 0.04), 0 18px 50px -20px rgba(26, 56, 140, 0.28);
  --rf-shadow-lift: 0 2px 4px rgba(13, 27, 61, 0.05), 0 30px 80px -28px rgba(26, 56, 140, 0.42);
  --rf-blob-op: 0.22;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-alt: #101010;
    --surface: #1c1c1e;
    --text: #f5f5f7;
    --text-2: #a1a1a6;
    --text-3: #86868b;
    --line: rgba(255, 255, 255, 0.12);
    --chip: rgba(255, 255, 255, 0.08);
    --link: #2997ff;
    --nav: rgba(22, 22, 23, 0.8);
    --shadow: none;
    --shadow-hover: 0 18px 48px rgba(0, 0, 0, 0.6);
    --glare: rgba(255, 255, 255, 0.3);
    --aurora-1: rgba(0, 113, 227, 0.3);
    --aurora-2: rgba(138, 92, 246, 0.24);
    --aurora-3: rgba(255, 55, 95, 0.16);
    --grid-dot: rgba(255, 255, 255, 0.2);
    --icon-shadow: rgba(0, 0, 0, 0.6);

    --rf-bg: #060b19;
    --rf-bg-2: #0a1226;
    --rf-ink: #e9efff;
    --rf-ink-2: #a5b2d1;
    --rf-ink-3: #7684a6;
    --rf-blue: #6b96ff;
    --rf-blue-deep: #3a6bf0;
    --rf-mint: #45d3aa;
    --rf-mint-text: #45d3aa;
    --rf-spark: #ffc453;
    --rf-spark-text: #ffc453;
    --rf-glass: rgba(20, 32, 64, 0.5);
    --rf-glass-strong: rgba(18, 30, 62, 0.84);
    --rf-rim: rgba(170, 196, 255, 0.16);
    --rf-hair: rgba(200, 215, 255, 0.1);
    --rf-hair-strong: rgba(200, 215, 255, 0.16);
    --rf-grid: rgba(200, 215, 255, 0.08);
    --rf-chip: rgba(200, 215, 255, 0.08);
    --rf-plane: rgba(15, 24, 50, 0.92);
    --rf-plane-solid: #16223f;
    --rf-sheet: 30, 46, 92;
    --rf-shadow: 0 1px 1px rgba(0, 0, 0, 0.3), 0 18px 50px -20px rgba(0, 0, 0, 0.7);
    --rf-shadow-lift: 0 2px 4px rgba(0, 0, 0, 0.3), 0 30px 80px -28px rgba(0, 0, 0, 0.85);
    --rf-blob-op: 0.16;
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

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

picture {
  display: contents;
}

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

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
}

.skip-link:focus {
  top: 8px;
}

/* Global nav */

.globalnav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: var(--nav);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

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

.nav-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #0071e3, #8a5cf6, #ff375f);
  transform: scaleX(var(--progress, 0));
  transform-origin: 0 50%;
  pointer-events: none;
}

.globalnav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: var(--max);
  height: 100%;
  margin: 0 auto;
  padding: 0 22px;
}

.wordmark {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.globalnav-links {
  display: flex;
  min-width: 0;
  gap: 22px;
  font-size: 12px;
  white-space: nowrap;
}

.globalnav-links li {
  flex: none;
}

.globalnav-links a,
.globalnav-github {
  color: var(--text);
  opacity: 0.8;
  transition: opacity 0.2s;
}

.globalnav-links a:hover,
.globalnav-links a[aria-current="true"],
.globalnav-github:hover {
  opacity: 1;
}

.globalnav-links a[aria-current="true"] {
  font-weight: 600;
}

.globalnav-github svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.globalnav-github {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 32px;
  flex: none;
}

.globalnav-actions {
  display: flex;
  flex: none;
  align-items: center;
  gap: 12px;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  flex: none;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 980px;
  background: var(--chip);
}

.language-switch[hidden] {
  display: none;
}

.language-switch button {
  min-height: 26px;
  padding: 4px 10px;
  border: 0;
  border-radius: 980px;
  background: transparent;
  color: var(--text-2);
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s, background 0.2s, box-shadow 0.2s;
}

.language-switch button:hover {
  background: var(--chip);
  color: var(--text);
}

.language-switch button[aria-pressed="true"] {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.language-switch button:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 1px;
}

.globalnav-promo {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px 4px 11px;
  border-radius: 980px;
  background: rgba(0, 113, 227, 0.1);
  color: var(--link);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.2s;
}

.globalnav-promo:hover {
  background: rgba(0, 113, 227, 0.16);
}

.globalnav-promo svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s var(--ease);
}

.globalnav-promo:hover svg {
  transform: translateX(2px);
}

@media (prefers-color-scheme: dark) {
  .language-switch button[aria-pressed="true"] {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  }

  .globalnav-promo {
    background: rgba(41, 151, 255, 0.16);
  }

  .globalnav-promo:hover {
    background: rgba(41, 151, 255, 0.24);
  }
}

/* Shared controls */

.button {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 980px;
  background: var(--blue);
  color: #fff;
  font-size: 17px;
  line-height: 1.2;
  transition: background 0.2s;
}

.button:hover {
  background: var(--blue-hover);
}

[data-magnetic] {
  transform: translate3d(var(--mag-x, 0px), var(--mag-y, 0px), 0);
  transition: transform 0.6s var(--spring), background 0.2s;
}

[data-magnetic].is-magnet {
  transition: transform 0.15s ease-out, background 0.2s;
}

.more {
  color: var(--link);
  font-size: 17px;
}

.more::after {
  content: "\203A";
  display: inline-block;
  margin-left: 0.25em;
  transition: transform 0.2s var(--ease);
}

.more:hover {
  text-decoration: underline;
}

.more:hover::after {
  transform: translateX(2px);
}

.more-dark {
  color: #2997ff;
}

.square {
  border-radius: 22.5%;
  box-shadow: inset 0 0 0 1px var(--line), 0 0 0 1px var(--line);
}

/* Tilt with a moving highlight. Angles come from script.js; without it the card sits flat. */

[data-tilt] {
  position: relative;
  transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translate3d(0, var(--lift, 0px), 0);
  transition: transform 0.7s var(--ease-out), box-shadow 0.45s var(--ease), opacity 0.8s ease;
}

[data-tilt].is-tilting {
  transition: transform 0.15s ease-out, box-shadow 0.45s var(--ease), opacity 0.8s ease;
}

[data-tilt]::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(480px circle at var(--gx, 50%) var(--gy, 0%), var(--glare), transparent 46%);
  opacity: 0;
  mix-blend-mode: soft-light;
  pointer-events: none;
  transition: opacity 0.5s;
}

[data-tilt].is-tilting::after {
  opacity: 1;
}

/* Hero */

.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: max(640px, calc(100vh - var(--nav-h)));
  min-height: max(640px, calc(100svh - var(--nav-h)));
  padding: 120px 22px;
  overflow-x: clip;
  isolation: isolate;
  text-align: center;
}

.hero-aurora {
  position: absolute;
  inset: 0;
  z-index: -3;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
  mask-image: linear-gradient(to bottom, #000 55%, transparent);
  pointer-events: none;
}

.orb {
  position: absolute;
  width: 64vmax;
  height: 64vmax;
  border-radius: 50%;
  transform: translate3d(var(--ox, 0px), var(--oy, 0px), 0);
}

.orb::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(closest-side, var(--orb), transparent 72%);
  animation: drift 22s ease-in-out infinite alternate;
}

.orb-1 {
  --orb: var(--aurora-1);
  left: -28vmax;
  top: -24vmax;
}

.orb-2 {
  --orb: var(--aurora-2);
  right: -30vmax;
  top: -8vmax;
}

.orb-2::before {
  animation-duration: 27s;
  animation-delay: -9s;
}

.orb-3 {
  --orb: var(--aurora-3);
  left: 14%;
  bottom: -44vmax;
}

.orb-3::before {
  animation-duration: 31s;
  animation-delay: -15s;
}

@keyframes drift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(5vmax, 3vmax, 0) scale(1.08);
  }

  100% {
    transform: translate3d(-3vmax, 6vmax, 0) scale(0.94);
  }
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: radial-gradient(circle, var(--grid-dot) 1px, transparent 1.6px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(340px circle at var(--gx, 50%) var(--gy, 42%), #000, rgba(0, 0, 0, 0.3) 45%, transparent 75%);
  mask-image: radial-gradient(340px circle at var(--gx, 50%) var(--gy, 42%), #000, rgba(0, 0, 0, 0.3) 45%, transparent 75%);
  pointer-events: none;
}

.hero-orbit {
  position: absolute;
  inset: 0;
  z-index: -1;
  perspective: 1100px;
  pointer-events: none;
}

.orbit-scene,
.orbit {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}

.orbit-scene {
  transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
}

.orbit li {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s);
  height: var(--s);
  margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
  opacity: var(--o, 1);
  transform: translate3d(0, 0, calc(var(--z) * 1px + var(--dz, 0px)));
  pointer-events: auto;
}

.orbit a {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 22.5%;
  animation: bob 8s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

.orbit img {
  width: 100%;
  height: 100%;
  filter: blur(var(--blur, 0px)) drop-shadow(0 18px 22px var(--icon-shadow));
  transition: transform 0.6s var(--spring), filter 0.4s;
}

.orbit img.square {
  box-shadow: none;
}

.orbit a:hover img,
.orbit a:focus-visible img {
  filter: blur(0) drop-shadow(0 26px 30px var(--icon-shadow));
  transform: scale(1.14) translateY(-4px);
}

.orbit a:focus-visible {
  outline-offset: 6px;
}

@keyframes bob {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }

  50% {
    transform: translate3d(0, -14px, 0) rotate(-3deg);
  }
}

.hero-copy {
  position: relative;
  max-width: 980px;
  opacity: var(--copy-o, 1);
  transform: translate3d(0, var(--copy-y, 0px), 0) scale(var(--copy-s, 1));
}

.hero-eyebrow {
  color: var(--text-2);
  font-size: 19px;
  font-weight: 600;
}

.hero h1 {
  margin-top: 14px;
  font-size: clamp(36px, 8.4vw, 96px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.grad {
  background: linear-gradient(95deg, #0071e3 0%, #8a5cf6 22%, #ff375f 48%, #8a5cf6 74%, #0071e3 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 9s linear infinite;
}

@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}

.hero-sub {
  max-width: 760px;
  margin: 22px auto 0;
  color: var(--text-2);
  font-size: clamp(19px, 2.4vw, 26px);
  font-weight: 500;
  line-height: 1.38;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.platform-head h2,
.contact h2,
.rufree-sub-head h3,
.layers-captions {
  text-wrap: balance;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 32px;
  margin-top: 40px;
}

.scroll-cue {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: max-content;
  margin: 0 auto;
  color: var(--text-3);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.scroll-cue i {
  position: relative;
  width: 1px;
  height: 44px;
  overflow: hidden;
  background: var(--line);
}

.scroll-cue i::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 40%;
  background: var(--text-2);
  animation: cue 2.4s var(--ease-out) infinite;
}

@keyframes cue {
  from {
    transform: translateY(-100%);
  }

  to {
    transform: translateY(260%);
  }
}

/* Split text: the hero title rises in, the manifesto lights up with scrolling */

/* The screen-reader copy of split text stays out of copy and paste. */
.split-label {
  -webkit-user-select: none;
  user-select: none;
}

.split-intro .tok {
  display: inline-block;
}

.motion-ready .split-intro .tok {
  animation: tok-in 1.1s var(--ease-out) both;
  animation-delay: calc(0.18s + var(--i, 0) * 0.055s);
}

.motion-ready .split-intro .grad.tok {
  animation: tok-in 1.1s var(--ease-out) both, shimmer 9s linear infinite;
  animation-delay: calc(0.18s + var(--i, 0) * 0.055s), 0s;
}

@keyframes tok-in {
  from {
    opacity: 0;
    filter: blur(12px);
    transform: perspective(600px) translate3d(0, 0.45em, 0) rotateX(-75deg);
  }

  to {
    opacity: 1;
    filter: blur(0);
    transform: perspective(600px) translate3d(0, 0, 0) rotateX(0deg);
  }
}

.motion-ready .intro {
  animation: intro-up 1s var(--ease-out) both;
  animation-delay: var(--d, 0s);
}

@keyframes intro-up {
  from {
    opacity: 0;
    filter: blur(6px);
    transform: translateY(18px);
  }
}

/* Manifesto */

.manifesto {
  padding: 150px 22px 140px;
}

.manifesto-text {
  max-width: 980px;
  margin: 0 auto;
  font-size: clamp(30px, 5.2vw, 64px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.03em;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.motion-ready .manifesto-text .tok {
  opacity: 0.16;
}

.stats {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 88px;
  margin-top: 104px;
}

.stats div {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
}

.stats dd {
  font-size: 64px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.stats dt {
  margin-top: 4px;
  color: var(--text-2);
  font-size: 14px;
}

/* Flagship: Presscore */

.flagship {
  --k: clamp(24px, calc((100vw - 110px) / 10), 60px);
  --kg: clamp(5px, 1vw, 8px);
  position: relative;
  padding: 140px 22px 120px;
  background:
    radial-gradient(60% 30% at 50% 0%, rgba(255, 69, 58, 0.12), transparent 70%),
    #000;
  color: #f5f5f7;
  text-align: center;
}

.flagship-icon {
  width: 96px;
  height: 96px;
  margin: 0 auto 28px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 20px 60px rgba(255, 69, 58, 0.25);
}

.flagship-eyebrow {
  color: #ff7a2f;
  font-size: 19px;
  font-weight: 600;
}

.flagship h2 {
  margin-top: 6px;
  font-size: clamp(56px, 9vw, 104px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.flagship-tagline {
  margin-top: 10px;
  font-size: clamp(24px, 3.2vw, 36px);
  font-weight: 600;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #ffb340, #ff453a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.flagship-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 32px;
  margin-top: 32px;
}

.kb-pin {
  position: relative;
  margin-top: 72px;
}

.motion-ready .kb-pin {
  height: 230vh;
  margin-top: 24px;
}

.kb-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  perspective: 1400px;
}

.motion-ready .kb-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  padding-top: var(--nav-h);
}

.kb-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(48% 42% at 50% 46%, rgba(255, 69, 58, 0.26), transparent 70%);
  opacity: var(--glow, 1);
  pointer-events: none;
}

.keyboard {
  position: relative;
  display: grid;
  justify-content: center;
  gap: var(--kg);
  transform: translate3d(0, var(--kb-y, 0px), 0) rotateX(var(--kb-tilt, 0deg)) rotateY(var(--kb-ry, 0deg)) scale(var(--kb-scale, 1));
  transform-origin: 50% 85%;
}

.kb-row {
  display: flex;
  justify-content: center;
  gap: var(--kg);
}

.kb-row b {
  --heat: #2c2c2e;
  position: relative;
  z-index: 0;
  display: grid;
  place-items: center;
  width: var(--k);
  height: var(--k);
  border-radius: calc(var(--k) * 0.2);
  background: #1c1c1e;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.82);
  font-size: calc(var(--k) * 0.28);
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.2s var(--ease-out), color 0.2s;
}

.kb-row b::before,
.kb-row b::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
}

.kb-row b::before {
  background: var(--heat);
  opacity: var(--on, 1);
}

.motion-ready .kb-row b::before {
  opacity: var(--on, 0);
}

.kb-row b::after {
  background: #ff3b30;
  opacity: calc(var(--live, 0) * 0.9);
  box-shadow: 0 0 calc(var(--live, 0) * 34px) rgba(255, 59, 48, 0.7);
}

.kb-row b[data-h="1"] { --heat: #3a3a3c; }
.kb-row b[data-h="2"] { --heat: #6b3a24; }
.kb-row b[data-h="3"] { --heat: #b44a1c; }
.kb-row b[data-h="4"] { --heat: #ec5b1c; }
.kb-row b[data-h="5"] { --heat: #ff3b30; }

.kb-row b[data-h="5"] {
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.25), 0 0 28px rgba(255, 59, 48, calc(var(--on, 1) * 0.45));
}

.motion-ready .kb-row b[data-h="5"] {
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.25), 0 0 28px rgba(255, 59, 48, calc(var(--on, 0) * 0.45));
}

.kb-row b:hover {
  color: #fff;
}

.kb-row b.is-pressed {
  color: #fff;
  transform: translateY(2px) scale(0.93);
  transition-duration: 0.06s;
}

.kb-row b.is-pressed::after {
  opacity: 1;
  background: #ff6a3d;
  box-shadow: 0 0 26px rgba(255, 106, 61, 0.85);
}

.kb-row .kb-space {
  width: calc(var(--k) * 5 + var(--kg) * 4);
}

.kb-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
  color: #86868b;
  font-size: 12px;
}

.kb-legend i {
  width: 120px;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, #3a3a3c, #b44a1c, #ff3b30);
}

.kb-live {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 0 16px;
}

.kb-live[hidden] {
  display: none;
}

.kb-hint {
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 600;
  letter-spacing: -0.015em;
}

.kb-counter {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: #a1a1a6;
  font-size: 14px;
}

.kb-count {
  min-width: 1ch;
  font-size: 44px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(90deg, #ffb340, #ff453a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.kb-note {
  color: #86868b;
  font-size: 12px;
}

.flagship-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 980px;
  margin: 72px auto 0;
  text-align: left;
}

.flagship-points h3 {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.flagship-points p {
  margin-top: 10px;
  color: #a1a1a6;
  font-size: 15px;
  line-height: 1.6;
}

.flagship-tech {
  margin-top: 64px;
  color: #86868b;
  font-size: 13px;
}

/* RUFREE */

.rufree {
  position: relative;
  isolation: isolate;
  padding: 150px 0 140px;
  background: linear-gradient(180deg, var(--rf-bg) 0%, var(--rf-bg-2) 45%, var(--rf-bg) 88%, var(--bg) 100%);
  color: var(--rf-ink);
}

.rufree-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  width: 62vmax;
  height: 62vmax;
  border-radius: 50%;
  opacity: var(--rf-blob-op);
}

.blob::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(closest-side, var(--c), transparent 70%);
  animation: drift 26s ease-in-out infinite alternate;
}

.blob-1 { --c: #2f66f6; left: -26vmax; top: 1%; }
.blob-2 { --c: #2db590; right: -30vmax; top: 20%; }
.blob-3 { --c: #ffb52e; left: -24vmax; top: 50%; }
.blob-4 { --c: #2f66f6; right: -26vmax; top: 76%; }
.blob-2::before { animation-delay: -7s; animation-duration: 31s; }
.blob-3::before { animation-delay: -13s; }
.blob-4::before { animation-delay: -4s; animation-duration: 34s; }

.rufree-head {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 22px;
  text-align: center;
}

.rufree-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 18px 5px 5px;
  border: 1px solid var(--rf-rim);
  border-radius: 980px;
  background: var(--rf-glass);
  box-shadow: var(--rf-shadow);
  color: var(--rf-ink-2);
  font-size: 15px;
  font-weight: 600;
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
}

.rufree-kicker img {
  width: 34px;
  height: 34px;
}

.rufree-kicker span:first-of-type {
  color: var(--rf-ink);
  letter-spacing: 0.04em;
}

.rufree-kicker-sep {
  color: var(--rf-ink-3);
}

.rufree-head h2 {
  margin-top: 28px;
  font-size: clamp(38px, 7.6vw, 92px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.rufree-title-line {
  display: block;
}

.typer-line {
  min-height: 1.08em;
  padding-bottom: 0.06em;
  background: linear-gradient(95deg, var(--rf-blue), #7b5cff 50%, var(--rf-mint));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.typer-caret {
  display: inline-block;
  width: 0.07em;
  height: 0.88em;
  margin-left: 0.06em;
  border-radius: 2px;
  background: var(--rf-blue);
  vertical-align: -0.06em;
  animation: blink 1.1s steps(1) infinite;
}

.typer-line.is-typing .typer-caret {
  animation: none;
}

.typer-source[hidden] {
  display: none;
}

.rufree-lede {
  max-width: 720px;
  margin: 26px auto 0;
  color: var(--rf-ink-2);
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 500;
  line-height: 1.45;
}

.rufree-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 32px;
  margin-top: 34px;
}

.button-rufree {
  background: #2f66f6;
  box-shadow: 0 12px 30px -12px rgba(47, 102, 246, 0.8);
}

.button-rufree:hover {
  background: #1d47c9;
}

.more-rufree {
  color: var(--rf-blue);
}

/* RUFREE: three schedules as stacked glass layers */

.layers-pin {
  position: relative;
  margin-top: 64px;
}

.motion-ready .layers-pin {
  height: 300vh;
  margin-top: 24px;
}

.layers-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding: 24px 22px;
  overflow: hidden;
}

.motion-ready .layers-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  justify-content: center;
  padding-top: calc(var(--nav-h) + 12px);
}

.layers-captions {
  display: grid;
  gap: 6px;
  width: min(820px, 100%);
  font-size: clamp(22px, 3.2vw, 38px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  text-align: center;
}

.motion-ready .layers-captions li {
  grid-area: 1 / 1;
  opacity: 0;
  filter: blur(6px);
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease-out), transform 0.7s var(--ease-out), filter 0.6s var(--ease-out);
}

.motion-ready .layers-captions li.is-active {
  opacity: 1;
  filter: none;
  transform: none;
}

.layers-scene {
  position: relative;
  width: min(900px, 100%);
  aspect-ratio: 16 / 10;
  perspective: 2200px;
  perspective-origin: 50% 35%;
}

.layers-stack {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) rotateZ(var(--rz, 0deg)) scale(var(--sc, 1));
}

.plane {
  --tc: 54px;
  --th: 34px;
  position: absolute;
  inset: 0;
  border-radius: 24px;
  opacity: var(--po, 1);
  transform: translate3d(0, 0, var(--z, 0px));
}

.plane[data-layer="0"] {
  border: 1px solid var(--rf-rim);
  background: var(--rf-plane);
  box-shadow: var(--rf-shadow-lift);
}

.plane[data-layer="0"]::before {
  content: "";
  position: absolute;
  top: var(--th);
  left: var(--tc);
  right: 10px;
  bottom: 10px;
  border-right: 1px solid var(--rf-grid);
  border-bottom: 1px solid var(--rf-grid);
  background-image:
    linear-gradient(to bottom, var(--rf-grid) 1px, transparent 1px),
    linear-gradient(to right, var(--rf-grid) 1px, transparent 1px);
  background-size: 100% 12.5%, 20% 100%;
}

.plane[data-layer="1"],
.plane[data-layer="2"] {
  background: rgba(var(--rf-sheet), calc(var(--tint, 0) * 0.5));
  box-shadow: 0 30px 60px -36px rgba(26, 56, 140, calc(var(--tint, 0) * 0.5));
}

.plane[data-layer="1"]::before,
.plane[data-layer="2"]::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1.5px solid var(--c);
  border-radius: inherit;
  opacity: calc(var(--tint, 0) * 0.7);
}

.plane-tag {
  position: absolute;
  left: 18px;
  top: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 4px;
  border: 1px solid var(--rf-rim);
  border-radius: 980px;
  background: var(--rf-glass-strong);
  box-shadow: var(--rf-shadow);
  color: var(--rf-ink);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  opacity: var(--tag-o, 0);
  transform: translateY(-50%);
}

.plane-tag i {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--c);
  color: #fff;
  font-size: 11px;
  font-style: normal;
}

.plane-days {
  position: absolute;
  top: 0;
  left: var(--tc);
  right: 10px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  height: var(--th);
  color: var(--rf-ink-2);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

.plane-hours {
  position: absolute;
  inset: 0;
}

.plane-hours span {
  position: absolute;
  left: 0;
  top: calc(var(--th) + (100% - var(--th) - 10px) * (var(--h) - 9) / 8);
  width: var(--tc);
  padding-right: 8px;
  color: var(--rf-ink-3);
  font: 500 10px/1 var(--mono);
  text-align: right;
  transform: translateY(-50%);
}

.ev,
.free {
  position: absolute;
  left: calc(var(--tc) + (100% - var(--tc) - 10px) * var(--d) / 5 + 3px);
  top: calc(var(--th) + (100% - var(--th) - 10px) * (var(--s) - 9) / 8 + 2px);
  width: calc((100% - var(--tc) - 10px) / 5 - 6px);
  height: calc((100% - var(--th) - 10px) * (var(--e) - var(--s)) / 8 - 4px);
  display: flex;
  flex-direction: column;
  gap: 1px;
  overflow: hidden;
  font-style: normal;
}

.ev {
  padding: 5px 7px;
  border-left: 3px solid var(--c);
  border-radius: 8px;
  color: var(--rf-ink);
}

.ev::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--c);
  opacity: 0.2;
}

.ev b,
.ev small {
  position: relative;
  white-space: nowrap;
}

.ev b {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.15;
}

.ev small {
  color: var(--rf-ink-2);
  font: 500 10px/1.1 var(--mono);
}

.ev[data-shared] b,
.ev[data-shared] small {
  opacity: var(--tint, 1);
}

.free {
  justify-content: center;
  padding: 4px 8px;
  border-radius: 10px;
  background: linear-gradient(135deg, #3bcca3, #2db590 55%, #219f7d);
  box-shadow: 0 0 0 3px rgba(45, 181, 144, 0.22), 0 14px 30px -12px rgba(45, 181, 144, 0.85);
  color: #fff;
  transform: scale(var(--fs, 1));
}

.free b {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
}

.free small {
  font: 500 10px/1.1 var(--mono);
  white-space: nowrap;
  opacity: 0.92;
}

.layers-stage.is-free .free {
  animation: free-glow 2.6s ease-in-out infinite;
}

@keyframes free-glow {
  50% {
    box-shadow: 0 0 0 7px rgba(45, 181, 144, 0.12), 0 18px 40px -10px rgba(45, 181, 144, 0.95);
  }
}

.layers-captions,
.layers-foot {
  position: relative;
  z-index: 1;
}

.layers-foot {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.layers-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  color: var(--rf-ink-2);
  font-size: 13px;
  font-weight: 600;
}

.layers-legend li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.layers-legend li::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--c);
}

.layers-legend .legend-free::before {
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(45, 181, 144, 0.25);
}

.layers-note {
  color: var(--rf-ink-3);
  font-size: 12px;
}

/* RUFREE: steps, features, privacy, role */

.rufree-block {
  max-width: 1100px;
  margin: 150px auto 0;
  padding: 0 22px;
}

.rufree-sub-head {
  max-width: 760px;
  margin: 0 auto 52px;
  text-align: center;
}

.rufree-sub-head h3 {
  font-size: clamp(30px, 4.6vw, 54px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.rufree-sub-head p {
  margin-top: 14px;
  color: var(--rf-ink-2);
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.5;
}

.steps-wrap {
  position: relative;
}

.steps-track {
  position: absolute;
  top: 27px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--rf-hair-strong);
}

.steps-track i {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--rf-blue), var(--rf-mint), var(--rf-spark));
  transform: scaleX(var(--p, 1));
  transform-origin: 0 50%;
}

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 6px;
  text-align: center;
}

.step:nth-child(1) { --sc: #2f66f6; }
.step:nth-child(2) { --sc: #4f6cf6; }
.step:nth-child(3) { --sc: #2db590; }
.step:nth-child(4) { --sc: #f2a516; }

.step-num {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid var(--rf-rim);
  border-radius: 50%;
  background: var(--rf-glass-strong);
  box-shadow: var(--rf-shadow);
  color: var(--rf-ink-3);
  font-size: 20px;
  font-weight: 700;
  transition: background 0.5s, color 0.5s, box-shadow 0.5s, transform 0.7s var(--spring);
}

.step.is-on .step-num,
html:not(.motion-ready) .step-num {
  border-color: transparent;
  background: var(--sc);
  box-shadow: 0 12px 30px -10px var(--sc);
  color: #fff;
  transform: scale(1.06);
}

.step h4 {
  margin-top: 22px;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.step p {
  margin-top: 8px;
  color: var(--rf-ink-2);
  font-size: 15px;
  line-height: 1.6;
}

.step code {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--rf-chip);
  font-family: var(--mono);
  font-size: 0.92em;
}

.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(196px, auto);
  gap: 18px;
}

.tile {
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--rf-rim);
  border-radius: 26px;
  background: var(--rf-glass-strong);
  box-shadow: var(--rf-shadow);
  color: var(--rf-ink);
}

.tile time {
  color: var(--rf-blue);
  font: 600 12px/1 var(--mono);
  letter-spacing: 0.02em;
}

.tile h4 {
  margin-top: 14px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.tile p {
  margin-top: 8px;
  color: var(--rf-ink-2);
  font-size: 15px;
  line-height: 1.55;
}

.tile-assistant {
  grid-column: span 2;
  grid-row: span 2;
  padding: 34px;
  border-color: rgba(255, 255, 255, 0.18);
  background:
    radial-gradient(80% 60% at 100% 0%, rgba(123, 92, 255, 0.55), transparent 70%),
    linear-gradient(150deg, #2f66f6, #1d47c9 60%, #183aa6);
  box-shadow: 0 30px 80px -30px rgba(29, 71, 201, 0.7);
  color: #fff;
}

.tile-assistant time {
  color: rgba(255, 255, 255, 0.72);
}

.tile-assistant h4 {
  font-size: clamp(32px, 3.8vw, 46px);
  letter-spacing: -0.03em;
}

.tile-assistant p {
  max-width: 440px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 16px;
}

.tile-mint {
  background: linear-gradient(160deg, rgba(45, 181, 144, 0.18), var(--rf-glass-strong) 72%);
}

.tile-mint time {
  color: var(--rf-mint-text);
}

.tile-spark {
  background: linear-gradient(160deg, rgba(255, 181, 46, 0.22), var(--rf-glass-strong) 72%);
}

.tile-spark time {
  color: var(--rf-spark-text);
}

.tile-ink {
  border-color: rgba(255, 255, 255, 0.08);
  background: #0d1b3d;
  color: #e9efff;
}

.tile-ink time {
  color: #8fb0ff;
}

.tile-ink p {
  color: #a5b2d1;
}

@media (prefers-color-scheme: dark) {
  .tile-ink {
    background: #1a2a57;
  }
}

.mini-draft {
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding-top: 26px;
}

.mini-draft div {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 14px;
  font-weight: 600;
}

.mini-draft .src {
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.16);
  font: 500 11px/1.3 var(--mono);
}

.mini-draft em {
  margin-left: auto;
  padding: 3px 10px;
  border-radius: 980px;
  background: #ffb52e;
  color: #2a1c00;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  white-space: nowrap;
}

.motion-ready .tile-assistant .mini-draft div {
  opacity: 0;
  transform: translateX(-18px);
  transition: opacity 0.7s var(--ease-out), transform 0.8s var(--ease-out);
}

.motion-ready .tile-assistant.is-visible .mini-draft div {
  opacity: 1;
  transform: none;
}

.motion-ready .tile-assistant.is-visible .mini-draft div:nth-child(1) { transition-delay: 0.35s; }
.motion-ready .tile-assistant.is-visible .mini-draft div:nth-child(2) { transition-delay: 0.5s; }
.motion-ready .tile-assistant.is-visible .mini-draft div:nth-child(3) { transition-delay: 0.65s; }

.mini-overlap {
  display: flex;
  align-items: center;
  margin-top: auto;
  padding-top: 18px;
}

.mini-overlap span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-right: -8px;
  border: 2.5px solid var(--rf-plane-solid);
  border-radius: 50%;
  background: var(--c);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.mini-overlap b {
  margin-left: 18px;
  color: var(--rf-mint-text);
  font-size: 13px;
}

.privacy {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 56px;
}

.privacy .rufree-sub-head {
  margin: 0 0 34px;
  text-align: left;
}

.privacy-list {
  display: grid;
  gap: 24px;
}

.privacy-list li {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: start;
  gap: 16px;
}

.privacy-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(47, 102, 246, 0.12);
  color: var(--rf-blue);
}

.privacy-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.privacy-icon-mint {
  background: rgba(45, 181, 144, 0.14);
  color: var(--rf-mint-text);
}

.privacy-icon-spark {
  background: rgba(255, 181, 46, 0.18);
  color: var(--rf-spark-text);
}

.privacy-list h4 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.privacy-list p {
  margin-top: 4px;
  color: var(--rf-ink-2);
  font-size: 15px;
  line-height: 1.55;
}

.privacy-demo {
  padding: 28px;
  border: 1px solid var(--rf-rim);
  border-radius: 30px;
  background: var(--rf-glass-strong);
  box-shadow: var(--rf-shadow-lift);
}

.privacy-demo-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--rf-ink-2);
  font-size: 15px;
  font-weight: 600;
}

.seg {
  position: relative;
  display: inline-grid;
  grid-auto-columns: 1fr;
  grid-auto-flow: column;
  padding: 4px;
  border-radius: 980px;
  background: var(--rf-chip);
}

.seg[hidden] {
  display: none;
}

.seg::before {
  content: "";
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  border-radius: 980px;
  background: var(--rf-plane-solid);
  box-shadow: 0 2px 8px rgba(13, 27, 61, 0.16);
  transition: transform 0.55s var(--spring);
}

.seg[data-state="busy"]::before {
  transform: translateX(100%);
}

.seg button {
  position: relative;
  padding: 7px 16px;
  border: 0;
  border-radius: 980px;
  background: none;
  color: var(--rf-ink-2);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.3s;
}

.seg button[aria-pressed="true"] {
  color: var(--rf-ink);
}

.flip {
  margin-top: 24px;
  perspective: 1100px;
}

.flip-card {
  position: relative;
  height: 136px;
  transform-style: preserve-3d;
  transition: transform 0.9s var(--spring);
}

.flip[data-state="busy"] .flip-card {
  transform: rotateX(-180deg);
}

.flip-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 20px 24px;
  overflow: hidden;
  border-left: 4px solid var(--rf-blue);
  border-radius: 20px;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.flip-front {
  background: linear-gradient(135deg, rgba(47, 102, 246, 0.18), rgba(47, 102, 246, 0.06));
}

.flip-back {
  border-left-color: var(--rf-ink-3);
  background:
    repeating-linear-gradient(-45deg, var(--rf-chip) 0 8px, transparent 8px 16px),
    var(--rf-chip);
  transform: rotateX(180deg);
}

.flip-time {
  color: var(--rf-ink-3);
  font: 600 12px/1.3 var(--mono);
}

.flip-face strong {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.flip-face span:last-child {
  color: var(--rf-ink-2);
  font-size: 15px;
}

.role-panel {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 48px;
  padding: 52px;
  border: 1px solid var(--rf-rim);
  border-radius: 36px;
  background:
    radial-gradient(60% 80% at 0% 0%, rgba(47, 102, 246, 0.16), transparent 70%),
    radial-gradient(50% 70% at 100% 100%, rgba(45, 181, 144, 0.14), transparent 70%),
    var(--rf-glass-strong);
  box-shadow: var(--rf-shadow-lift);
}

.role-icon img {
  width: 148px;
  height: 148px;
  box-shadow: 0 30px 60px -20px rgba(47, 102, 246, 0.55), 0 0 0 1px var(--rf-hair);
  animation: float 7s ease-in-out infinite;
}

@keyframes float {
  50% {
    transform: translateY(-10px) rotate(-2deg);
  }
}

.role-kicker {
  color: var(--rf-blue);
  font-size: 15px;
  font-weight: 600;
}

.role-copy h3 {
  margin-top: 6px;
  font-size: clamp(28px, 3.8vw, 44px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.role-dot {
  margin: 0 0.3em;
  color: var(--rf-ink-3);
}

.role-copy p:not([class]) {
  margin-top: 12px;
  color: var(--rf-ink-2);
  line-height: 1.6;
}

.role-team {
  margin-top: 18px;
  font-size: 14px;
  font-weight: 600;
}

.role-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin-top: 22px;
}

.role-note {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--rf-hair);
  color: var(--rf-ink-3);
  font-size: 13px;
}

/* Platform sections */

.platform,
.stack,
.about {
  --card: var(--bg-alt);
  padding: 140px 22px;
}

.platform-alt {
  --card: var(--surface);
  background: var(--bg-alt);
}

.platform-head {
  max-width: 980px;
  margin: 0 auto 56px;
  text-align: center;
}

.platform-kicker {
  color: var(--text-2);
  font-size: 21px;
  font-weight: 600;
}

.platform-head h2 {
  margin-top: 8px;
  font-size: clamp(30px, 5.4vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.grid {
  display: grid;
  gap: 20px;
  max-width: var(--max);
  margin: 0 auto;
}

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

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  display: flex;
  flex-direction: column;
  padding: 40px;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.card:hover {
  --lift: -4px;
  box-shadow: var(--shadow-hover);
}

.card-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 24px;
  transition: transform 0.6s var(--spring);
}

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

.card h3 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.card-tagline {
  margin-top: 6px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.card p:not([class]),
.card .edu-interests {
  margin-top: 12px;
  color: var(--text-2);
  line-height: 1.6;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.tags li {
  padding: 4px 11px;
  border-radius: 980px;
  background: var(--chip);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 500;
}

.card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin-top: auto;
  padding-top: 28px;
}

.card-wide {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  max-width: var(--max);
  margin: 0 auto;
}

.card-wide-copy {
  display: flex;
  flex-direction: column;
}

.ime-demo {
  display: grid;
  place-content: center;
  min-height: 300px;
  padding: 32px;
  border-radius: 20px;
  background:
    radial-gradient(80% 90% at 30% 20%, #4cc2ff 0%, transparent 60%),
    radial-gradient(90% 90% at 80% 90%, #0038a8 0%, transparent 65%),
    #0067c0;
}

.ime-window {
  display: grid;
  gap: 10px;
}

.ime-output {
  min-height: 1.35em;
  color: #fff;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.22);
}

html:not(.motion-ready) .ime-output:empty {
  display: none;
}

.ime-compose {
  justify-self: start;
  min-height: 1.6em;
  padding: 2px 4px;
  border-bottom: 2px dotted rgba(255, 255, 255, 0.85);
  color: #fff;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.caret {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 2px;
  background: #fff;
  vertical-align: -0.15em;
  animation: blink 1.1s steps(1) infinite;
}

.ime-candidates {
  display: flex;
  gap: 4px;
  padding: 6px;
  border-radius: 10px;
  background: rgba(249, 249, 249, 0.96);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  color: #1d1d1f;
  font-size: 18px;
  transition: opacity 0.25s ease, transform 0.35s var(--ease-out);
}

.ime-demo.is-idle .ime-candidates {
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
}

.ime-candidates li {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  white-space: nowrap;
  transition: background 0.2s, transform 0.2s var(--ease-out);
}

.ime-candidates li:first-child {
  background: rgba(0, 103, 192, 0.12);
  color: #003e92;
}

.ime-candidates li.is-picked {
  background: rgba(0, 103, 192, 0.26);
  transform: scale(0.95);
}

.ime-candidates span {
  color: #86868b;
  font-size: 12px;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* Stack */

.marquee {
  display: grid;
  gap: 14px;
  margin: 0 -22px 64px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee-row {
  display: flex;
  width: max-content;
}

.marquee-track {
  display: flex;
  flex: none;
  gap: 14px;
  padding-right: 14px;
  animation: marquee 52s linear infinite;
}

.marquee-reverse .marquee-track {
  animation-direction: reverse;
  animation-duration: 60s;
}

.marquee-track span {
  flex: none;
  padding: 14px 26px;
  border: 1px solid var(--line);
  border-radius: 980px;
  background: var(--bg-alt);
  font-size: clamp(17px, 2vw, 24px);
  font-weight: 600;
  letter-spacing: -0.015em;
  white-space: nowrap;
  transform: skewX(var(--skew, 0deg));
}

.marquee-track span:nth-child(4n + 1) {
  border-color: transparent;
  background: linear-gradient(95deg, #0071e3, #8a5cf6);
  color: #fff;
}

.marquee-reverse .marquee-track span:nth-child(4n + 1) {
  background: linear-gradient(95deg, #ff375f, #ff9f0a);
}

@keyframes marquee {
  to {
    transform: translate3d(-100%, 0, 0);
  }
}

.stack-tile {
  padding: 32px;
  border-radius: 24px;
  background: var(--card);
}

.stack-tile h3 {
  color: var(--text-2);
  font-size: 14px;
  font-weight: 600;
}

.stack-tile ul {
  margin-top: 14px;
}

.stack-tile li {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.75;
  letter-spacing: -0.015em;
}

/* About */

.about-grid {
  grid-template-columns: 1.15fr 1fr;
}

.edu {
  justify-content: flex-end;
}

.edu-mark {
  align-self: flex-start;
  margin-bottom: auto;
  padding-bottom: 32px;
  font-family: var(--mono);
  font-size: 64px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(95deg, #0071e3 10%, #8a5cf6 55%, #ff375f 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.edu-label {
  margin-bottom: 14px;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 600;
}

.edu .card-tagline {
  color: var(--text-2);
  font-weight: 500;
}

.card .edu-interests {
  color: var(--text);
}

@media (max-width: 834px) {
  .edu-mark {
    font-size: 48px;
    padding-bottom: 24px;
  }
}

.principles {
  display: grid;
  gap: 20px;
}

.principle {
  padding: 28px 32px;
  border-radius: 24px;
  background: var(--card);
}

.principle h3 {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.principle p {
  margin-top: 8px;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.6;
}

/* Contact & footer */

.contact {
  position: relative;
  padding: 170px 22px;
  text-align: center;
}

.contact h2 {
  max-width: 980px;
  margin: 0 auto;
  font-size: clamp(34px, 6vw, 76px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.035em;
  background: radial-gradient(320px circle at var(--spot-x, 50%) var(--spot-y, 50%), #ff375f 0, #8a5cf6 100px, #0071e3 180px, var(--text) 320px);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footer {
  background: var(--bg-alt);
  color: var(--text-2);
  font-size: 12px;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 22px 24px;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

.footer-nav h3 {
  margin-bottom: 8px;
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
}

.footer-nav li {
  line-height: 2.1;
}

.footer-nav a:hover {
  color: var(--text);
  text-decoration: underline;
}

.footer-legal {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

/* Reveal */

.motion-ready .reveal {
  opacity: 0;
  filter: blur(8px);
  transform: translate3d(0, 40px, 0) scale(0.98);
  transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out), filter 1s var(--ease-out), box-shadow 0.45s var(--ease);
}

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

/* Responsive */

@media (max-width: 1068px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .globalnav-links {
    gap: 16px;
  }

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

@media (max-width: 834px) {
  .flagship-points {
    grid-template-columns: 1fr;
    max-width: 520px;
    gap: 28px;
  }

  .card-wide,
  .about-grid,
  .privacy {
    grid-template-columns: 1fr;
  }

  .privacy {
    gap: 40px;
  }

  .role-panel {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 40px 32px;
  }

  .role-icon img {
    width: 112px;
    height: 112px;
  }

  .footer-nav {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 734px) {
  body {
    font-size: 16px;
  }

  .hero {
    padding: 104px 16px 112px;
  }

  .hero-eyebrow {
    font-size: 15px;
  }

  .hero-sub br {
    display: none;
  }

  .orbit li {
    left: var(--mx);
    top: var(--my);
    width: var(--ms);
    height: var(--ms);
    margin: calc(var(--ms) / -2) 0 0 calc(var(--ms) / -2);
    transform: translate3d(0, 0, calc(var(--z) * 0.4px + var(--dz, 0px)));
  }

  .scroll-cue {
    display: none;
  }

  .manifesto {
    padding: 104px 16px 96px;
  }

  .stats {
    gap: 40px;
    margin-top: 72px;
  }

  .stats dd {
    font-size: 44px;
  }

  .flagship {
    padding: 96px 16px 80px;
  }

  .kb-stage {
    gap: 32px;
  }

  .flagship-points {
    margin-top: 56px;
  }

  .rufree {
    padding: 104px 0 96px;
  }

  .rufree-head,
  .rufree-block {
    padding: 0 16px;
  }

  .rufree-block {
    margin-top: 104px;
  }

  .layers-stage {
    gap: 22px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .layers-scene {
    aspect-ratio: 4 / 3;
  }

  .plane {
    --tc: 32px;
    --th: 26px;
    border-radius: 16px;
  }

  .plane[data-layer="0"]::before {
    right: 6px;
    bottom: 6px;
  }

  .plane-days {
    font-size: 10px;
  }

  .plane-hours span {
    padding-right: 4px;
    font-size: 8px;
  }

  .plane-tag {
    left: 10px;
    padding: 2px 9px 2px 2px;
    font-size: 11px;
  }

  .plane-tag i {
    width: 18px;
    height: 18px;
    font-size: 10px;
  }

  .ev {
    padding: 3px 4px;
    border-left-width: 2px;
    border-radius: 5px;
  }

  .ev b {
    font-size: 8.5px;
  }

  .ev small,
  .free small {
    display: none;
  }

  .free {
    padding: 2px 4px;
    border-radius: 6px;
  }

  .free b {
    font-size: 9px;
  }

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

  .step {
    display: grid;
    grid-template-columns: 56px 1fr;
    column-gap: 18px;
    align-items: start;
    padding: 0;
    text-align: left;
  }

  .step-num {
    grid-row: span 2;
  }

  .step h4 {
    margin-top: 4px;
  }

  .steps-track {
    top: 28px;
    bottom: 28px;
    left: 27px;
    right: auto;
    width: 2px;
    height: auto;
  }

  .steps-track i {
    transform: scaleY(var(--p, 1));
    transform-origin: 50% 0;
  }

  .bento {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 14px;
  }

  .tile-assistant {
    grid-column: auto;
    grid-row: auto;
    padding: 28px;
  }

  .privacy-demo {
    padding: 22px;
  }

  .role-panel {
    padding: 32px 24px;
    border-radius: 28px;
  }

  .platform,
  .stack,
  .about,
  .contact {
    padding: 96px 16px;
  }

  .marquee {
    margin: 0 -16px 48px;
  }

  .platform-head {
    margin-bottom: 36px;
  }

  .platform-kicker {
    font-size: 17px;
  }

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

  .grid {
    gap: 16px;
  }

  .card {
    padding: 28px;
    border-radius: 24px;
  }

  .card h3 {
    font-size: 24px;
  }

  .card-tagline {
    font-size: 17px;
  }

  .ime-demo {
    min-height: 240px;
    padding: 24px 16px;
  }

  .ime-candidates {
    font-size: 16px;
  }

  .ime-candidates li {
    padding: 5px 8px;
  }

  .stack-tile {
    padding: 24px;
  }

  .stack-tile ul {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 18px;
  }

  .stack-tile li {
    font-size: 16px;
  }

  .principle {
    padding: 24px;
  }

  .footer-nav {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 834px) {
  :root {
    --nav-h: 84px;
  }

  .globalnav-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-rows: 44px 40px;
    gap: 0 12px;
    padding: 0 12px;
  }

  .wordmark {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }

  .globalnav-actions {
    display: contents;
  }

  .language-switch {
    grid-column: 2;
    grid-row: 1;
  }

  .globalnav-github {
    grid-column: 3;
    grid-row: 1;
  }

  .globalnav-links {
    grid-column: 1;
    grid-row: 2;
    align-items: center;
    gap: 18px;
    width: 100%;
    height: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .globalnav-links::-webkit-scrollbar {
    display: none;
  }

  .globalnav-links a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
  }

  .globalnav-links a:focus-visible {
    outline-offset: -2px;
  }

  .globalnav-promo {
    grid-column: 2 / 4;
    grid-row: 2;
    justify-self: end;
  }
}

@media (forced-colors: active) {
  .language-switch button[aria-pressed="true"],
  .seg button[aria-pressed="true"] {
    outline: 1px solid ButtonText;
    outline-offset: -2px;
  }

  .language-switch button:focus-visible {
    outline: 2px solid Highlight;
    outline-offset: 1px;
  }

  .grad,
  .typer-line,
  .contact h2,
  .flagship-tagline,
  .kb-count,
  .edu-mark {
    background: none;
    color: CanvasText;
  }
}

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

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
