:root {
  --ink: #17111f;
  --muted: #716b78;
  --paper: #fbf9f5;
  --card: #ffffff;
  --purple: #6f3bf5;
  --purple-dark: #4a1faf;
  --orange: #ff784b;
  --pink: #ff5f8f;
  --lime: #c8f05c;
  --line: rgba(23, 17, 31, 0.12);
  --shadow: 0 28px 80px rgba(40, 25, 55, 0.13);
  --radius-lg: 32px;
  --radius-md: 22px;
  --header-height: 76px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Display",
    "Noto Sans SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% 3%, rgba(255, 120, 75, 0.1), transparent 27rem),
    radial-gradient(circle at 92% 18%, rgba(111, 59, 245, 0.09), transparent 30rem),
    var(--paper);
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  left: 16px;
  top: -80px;
  padding: 12px 18px;
  border-radius: 12px;
  color: #fff;
  background: var(--ink);
  transition: top 0.2s ease;
}

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

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  height: var(--header-height);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 0 clamp(22px, 5vw, 72px);
  border-bottom: 1px solid transparent;
  background: rgba(251, 249, 245, 0.78);
  backdrop-filter: blur(18px);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.scrolled {
  border-color: var(--line);
  box-shadow: 0 8px 28px rgba(33, 22, 42, 0.04);
}

.brand {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 11px;
  font-size: 18px;
  font-weight: 760;
  letter-spacing: -0.04em;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: var(--ink);
  font-size: 17px;
  font-weight: 800;
  box-shadow: inset 0 -2px 0 rgba(255, 255, 255, 0.14);
}

.nav-links {
  display: flex;
  gap: 32px;
  color: #4f4855;
  font-size: 14px;
  font-weight: 600;
}

.nav-links a,
footer a {
  transition: color 0.2s ease;
}

.nav-links a:hover,
footer a:hover {
  color: var(--purple);
}

.header-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}

.language-toggle,
.docs-link,
.github-link {
  min-height: 40px;
  border-radius: 13px;
  font-size: 13px;
  font-weight: 700;
}

.language-toggle {
  border: 0;
  padding: 0 8px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.language-current {
  color: var(--ink);
}

.github-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
}

.docs-link {
  display: inline-flex;
  align-items: center;
  padding: 0 6px;
  color: var(--muted);
}

.docs-link:hover {
  color: var(--purple);
}

.github-dot {
  width: 10px;
  height: 10px;
  border: 2px solid currentColor;
  border-radius: 50%;
  box-shadow: 4px 5px 0 -3px currentColor;
}

main {
  overflow: clip;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(340px, 0.82fr) minmax(520px, 1.18fr);
  align-items: center;
  gap: clamp(28px, 5vw, 78px);
  min-height: calc(100vh - var(--header-height));
  max-width: 1480px;
  margin: 0 auto;
  padding: 72px clamp(24px, 6vw, 96px) 96px;
}

.hero-copy {
  position: relative;
  z-index: 3;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  color: var(--purple-dark);
  font-size: 12px;
  font-weight: 790;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow > span:first-child {
  width: 20px;
  height: 2px;
  border-radius: 4px;
  background: currentColor;
}

.hero h1 {
  max-width: 650px;
  margin: 0;
  font-size: clamp(54px, 6.1vw, 92px);
  font-weight: 820;
  letter-spacing: -0.075em;
  line-height: 0.98;
}

.hero h1 em {
  position: relative;
  color: var(--purple);
  font-style: normal;
  white-space: nowrap;
}

.hero h1 em::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -7px;
  bottom: 3px;
  left: 3px;
  height: 12px;
  border-radius: 50%;
  background: rgba(200, 240, 92, 0.7);
  transform: rotate(-1.5deg);
}

.hero-lede {
  max-width: 550px;
  margin: 30px 0 34px;
  color: #5f5865;
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 13px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0 22px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 750;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.button-primary {
  color: #fff;
  background: var(--ink);
  box-shadow: 0 12px 30px rgba(23, 17, 31, 0.18);
}

.button-primary:hover {
  box-shadow: 0 18px 34px rgba(23, 17, 31, 0.24);
}

.button-quiet {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.66);
}

.play-dot {
  width: 19px;
  height: 19px;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.play-dot::after {
  content: "";
  display: block;
  width: 0;
  height: 0;
  margin: 5px 0 0 7px;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 6px solid currentColor;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin: 30px 0 0;
  padding: 0;
  color: #7d7682;
  font-size: 12px;
  font-weight: 650;
  list-style: none;
}

.hero-facts li {
  display: flex;
  align-items: center;
  gap: 7px;
}

.hero-facts li span:first-child {
  color: var(--orange);
  font-size: 7px;
}

.hero-visual {
  position: relative;
  min-height: 610px;
  display: grid;
  align-items: center;
}

.hero-visual::before {
  content: "";
  position: absolute;
  width: 76%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(111, 59, 245, 0.14), rgba(255, 120, 75, 0.12));
  filter: blur(1px);
  transform: translate(26%, -3%);
}

.orbit {
  position: absolute;
  border: 1px solid rgba(111, 59, 245, 0.18);
  border-radius: 50%;
}

.orbit-one {
  width: 460px;
  height: 460px;
  right: 10px;
  top: 48px;
  transform: rotate(15deg) scaleY(0.7);
}

.orbit-two {
  width: 360px;
  height: 360px;
  left: -20px;
  bottom: 35px;
  transform: rotate(-20deg) scaleY(0.56);
}

.desktop {
  position: relative;
  overflow: hidden;
  color: #231a2a;
  background: #e9e6eb;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
}

.desktop-hero {
  z-index: 2;
  width: min(730px, 100%);
  aspect-ratio: 1.34;
  justify-self: center;
  border-radius: 25px;
  transform: perspective(1400px) rotateY(-3deg) rotateX(1deg);
}

.ubuntu-bar {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  color: rgba(255, 255, 255, 0.92);
  background: #211927;
  font-size: 8px;
  font-weight: 650;
}

.system-icons {
  justify-self: end;
  font-size: 8px;
}

.desktop-body {
  position: relative;
  height: calc(100% - 28px);
  background:
    radial-gradient(circle at 66% 35%, rgba(255, 127, 82, 0.76), transparent 28%),
    radial-gradient(circle at 32% 78%, rgba(118, 50, 173, 0.84), transparent 38%),
    linear-gradient(135deg, #4c174f, #c8445e 56%, #f48657);
}

.dock {
  position: absolute;
  z-index: 5;
  top: 50%;
  left: 7px;
  display: flex;
  width: 37px;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 7px 4px;
  border: 1px solid rgba(255, 255, 255, 0.19);
  border-radius: 11px;
  background: rgba(38, 24, 44, 0.58);
  backdrop-filter: blur(10px);
  transform: translateY(-50%);
}

.dock-app {
  position: relative;
  width: 25px;
  height: 25px;
  border-radius: 7px;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.32), 0 3px 6px rgba(0, 0, 0, 0.2);
}

.dock-app::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 3px;
}

.app-files { background: linear-gradient(145deg, #8b5cf6, #5c2ab8); }
.app-browser { background: linear-gradient(145deg, #ff8c5a, #e83d64); border-radius: 50%; }
.app-notes { background: linear-gradient(145deg, #f5d75a, #e79d29); }
.app-terminal { background: linear-gradient(145deg, #3e3746, #151119); }
.dock-divider { width: 26px; height: 1px; background: rgba(255, 255, 255, 0.22); }
.dock-grid { color: #fff; font-size: 10px; line-height: 5px; text-align: center; letter-spacing: 2px; }

.notes-window,
.chat-window {
  position: absolute;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 10px;
  background: #fbfaf8;
  box-shadow: 0 18px 45px rgba(28, 15, 31, 0.32);
}

.notes-window {
  inset: 10% 8% 11% 14%;
}

.window-titlebar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 34px;
  padding: 0 12px;
  border-bottom: 1px solid #ded9df;
  background: #f4f1f4;
  color: #504851;
  font-size: 9px;
  font-weight: 700;
}

.window-buttons {
  display: flex;
  gap: 5px;
}

.window-buttons i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cdc7ce;
}

.window-buttons i:first-child { background: #f36d63; }

.note-page {
  padding: 12% 14%;
}

.note-date {
  margin: 0 0 9px;
  color: #9d969f;
  font-size: 8px;
}

.note-page h3 {
  margin: 0 0 26px;
  color: #28212c;
  font-size: clamp(17px, 2.2vw, 27px);
  letter-spacing: -0.04em;
}

.type-line {
  min-height: 28px;
  color: #3b333e;
  font-size: clamp(11px, 1.2vw, 16px);
  line-height: 1.8;
}

.preedit-text {
  padding-bottom: 2px;
  border-bottom: 1.5px solid var(--purple);
  color: #918995;
}

.caret,
.compose-caret {
  display: inline-block;
  width: 1.5px;
  height: 1.2em;
  margin-left: 2px;
  vertical-align: -0.22em;
  background: var(--purple);
  animation: blink 1s steps(1) infinite;
}

.paper-line {
  width: 90%;
  height: 6px;
  margin-top: 25px;
  border-radius: 6px;
  background: #ebe7eb;
}

.paper-line.short { width: 62%; margin-top: 10px; }

.input-source-pill {
  position: absolute;
  z-index: 7;
  top: 13px;
  right: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 7px 4px 4px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  color: #fff;
  background: rgba(34, 24, 38, 0.56);
  font-size: 7px;
  backdrop-filter: blur(8px);
}

.input-source-pill span {
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 8px;
}

.input-source-pill b { font-weight: 650; }

.voice-friend {
  position: relative;
  width: 112px;
  height: 112px;
}

.hero-friend {
  position: absolute;
  z-index: 8;
  right: -5px;
  bottom: 30px;
  width: 124px;
  height: 124px;
  animation: friendFloat 3.8s ease-in-out infinite;
}

.friend-body {
  position: absolute;
  z-index: 3;
  inset: 15%;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 46% 54% 51% 49% / 50% 44% 56% 50%;
  background: linear-gradient(145deg, #ff8a5f 5%, #ff5e87 55%, #8a45f6 115%);
  box-shadow: inset 8px 10px 22px rgba(255, 255, 255, 0.2), 0 14px 28px rgba(75, 30, 90, 0.24);
  animation: friendSquish 2.1s ease-in-out infinite;
}

.friend-ear {
  position: absolute;
  z-index: 2;
  top: 13%;
  width: 29%;
  height: 34%;
  border: 2px solid rgba(255, 255, 255, 0.62);
  border-radius: 70% 30% 60% 40%;
  background: #ff765f;
}

.ear-left { left: 14%; transform: rotate(-28deg); }
.ear-right { right: 14%; transform: scaleX(-1) rotate(-28deg); }

.eye {
  position: absolute;
  top: 41%;
  width: 8%;
  height: 11%;
  border-radius: 50%;
  background: #25172a;
  animation: friendBlink 4s infinite;
}

.eye-left { left: 31%; }
.eye-right { right: 31%; }

.cheek {
  position: absolute;
  top: 55%;
  width: 15%;
  height: 8%;
  border-radius: 50%;
  background: rgba(255, 215, 200, 0.55);
}

.cheek-left { left: 18%; transform: rotate(-7deg); }
.cheek-right { right: 18%; transform: rotate(7deg); }

.mouth {
  position: absolute;
  left: 50%;
  top: 56%;
  width: 13%;
  height: 11%;
  border-right: 2px solid #431f42;
  border-bottom: 2px solid #431f42;
  border-radius: 0 0 10px 0;
  transform: translateX(-50%) rotate(45deg);
}

.voice-ring {
  position: absolute;
  z-index: 1;
  inset: 4%;
  border: 2px solid rgba(111, 59, 245, 0.28);
  border-radius: 50%;
  animation: voiceRing 2s ease-out infinite;
}

.ring-b { animation-delay: 0.85s; }

.sound-specks i {
  position: absolute;
  z-index: 5;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 3px 8px rgba(63, 41, 15, 0.18);
  animation: speckDance 1.8s ease-in-out infinite;
}

.sound-specks i:nth-child(1) { right: 1%; top: 10%; }
.sound-specks i:nth-child(2) { right: -6%; top: 36%; animation-delay: 0.3s; background: #ffc957; }
.sound-specks i:nth-child(3) { left: 3%; bottom: 7%; animation-delay: 0.7s; width: 5px; height: 5px; }

.listening-card {
  position: absolute;
  z-index: 9;
  left: 2%;
  bottom: 12px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 13px;
  min-width: 238px;
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 18px 45px rgba(52, 33, 67, 0.2);
  backdrop-filter: blur(14px);
}

.listening-card small,
.listening-card strong { display: block; }
.listening-card small { margin-bottom: 2px; color: #918995; font-size: 8px; }
.listening-card strong { font-size: 12px; }
.listening-card kbd {
  padding: 7px 9px;
  border: 1px solid #d4cfd7;
  border-bottom-width: 3px;
  border-radius: 8px;
  color: #544b58;
  background: #fbfafc;
  font: 700 9px inherit;
}

.tiny-wave {
  display: flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border-radius: 10px;
  color: #fff;
  background: var(--purple);
}

.tiny-wave i {
  width: 2px;
  height: 5px;
  border-radius: 5px;
  background: currentColor;
  animation: waveBar 0.8s ease-in-out infinite alternate;
}
.tiny-wave i:nth-child(2) { animation-delay: -0.6s; }
.tiny-wave i:nth-child(3) { animation-delay: -0.2s; }
.tiny-wave i:nth-child(4) { animation-delay: -0.5s; }
.tiny-wave i:nth-child(5) { animation-delay: -0.1s; }

.story {
  position: relative;
  padding: 120px clamp(24px, 6vw, 96px) 80px;
  background: #fff;
}

.story::before {
  content: "";
  position: absolute;
  top: -90px;
  right: 7%;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(111, 59, 245, 0.12);
  border-radius: 48% 52% 45% 55%;
  transform: rotate(25deg);
}

.section-intro,
.section-heading {
  max-width: 720px;
  margin: 0 auto 80px;
  text-align: center;
}

.section-intro .eyebrow,
.section-heading .eyebrow,
.eyebrow.centered {
  justify-content: center;
}

.section-intro h2,
.section-heading h2,
.support h2,
.final-cta h2 {
  margin: 0;
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.section-intro > p:last-child,
.section-heading > p:last-child {
  max-width: 580px;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.story-layout {
  display: grid;
  grid-template-columns: minmax(500px, 1.12fr) minmax(340px, 0.88fr);
  gap: clamp(70px, 9vw, 150px);
  max-width: 1280px;
  margin: 0 auto;
}

.story-stage {
  position: sticky;
  top: calc(var(--header-height) + 36px);
  align-self: start;
}

.story-desktop {
  width: 100%;
  aspect-ratio: 1.38;
  border-radius: 26px;
  box-shadow: 0 35px 90px rgba(38, 22, 48, 0.2);
}

.chat-window {
  inset: 8% 8% 10% 13%;
}

.online-dot {
  justify-self: end;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #58bd66;
}

.chat-body {
  padding: 8% 8% 4%;
}

.message {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 13px;
}

.message p {
  max-width: 64%;
  margin: 0;
  padding: 8px 11px;
  border-radius: 7px 12px 12px;
  color: #49414c;
  background: #eeebef;
  font-size: clamp(8px, 0.75vw, 11px);
}

.message.self { justify-content: flex-end; }
.message.self p { color: #fff; background: var(--purple); border-radius: 12px 7px 12px 12px; }

.avatar {
  display: grid;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: 7px;
  font-weight: 800;
}
.avatar-one { background: #ee6a55; }
.avatar-two { background: #6233c7; }

.compose-box {
  position: absolute;
  right: 7%;
  bottom: 8%;
  left: 7%;
  min-height: 48px;
  padding: 14px 48px 10px 14px;
  border: 1px solid #d9d4dc;
  border-radius: 12px;
  background: #fff;
  color: #3b333e;
  font-size: clamp(9px, 0.85vw, 12px);
  line-height: 1.55;
}

.compose-preedit {
  padding-bottom: 2px;
  border-bottom: 1px solid var(--purple);
  color: var(--purple-dark);
}

.preedit-ellipsis {
  color: #918995;
  letter-spacing: 0.14em;
}

.listening-dots {
  color: #918995;
}

.send-button {
  position: absolute;
  right: 9px;
  bottom: 8px;
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  background: #d4ced8;
  font-size: 12px;
  transition: background 0.25s ease, transform 0.25s ease;
}

.stage-mascot {
  position: absolute;
  z-index: 8;
  right: 2%;
  bottom: 4%;
  width: 92px;
  height: 92px;
  opacity: 0;
  transform: scale(0.5) translateY(30px);
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.3);
}

.stage-status {
  position: absolute;
  z-index: 8;
  top: 13px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 8px;
  color: #fff;
  background: rgba(30, 20, 34, 0.56);
  font-size: 7px;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.stage-status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #9ea0a1;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.story-desktop[data-stage="1"] .stage-mascot,
.story-desktop[data-stage="2"] .stage-mascot {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.story-desktop[data-stage="1"] .stage-status-dot,
.story-desktop[data-stage="2"] .stage-status-dot {
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(200, 240, 92, 0.18);
}

.story-desktop[data-stage="2"] .friend-body { animation-duration: 0.8s; }
.story-desktop[data-stage="2"] .voice-ring { animation-duration: 1.1s; }
.story-desktop[data-stage="3"] .send-button { background: var(--purple); transform: translateY(-1px); }

.hold-control {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
}

.hold-control p {
  margin: 0;
  color: #938b97;
  font-size: 12px;
}

.fn-key {
  display: flex;
  min-width: 82px;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 13px;
  border: 1px solid #d5d0d8;
  border-bottom-width: 4px;
  border-radius: 14px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 8px 20px rgba(34, 21, 42, 0.08);
  cursor: pointer;
  user-select: none;
  touch-action: none;
  transition: transform 0.1s ease, border-bottom-width 0.1s ease, background 0.2s ease;
}

.fn-key span { font-size: 17px; font-weight: 800; }
.fn-key small { color: #948c98; font-size: 9px; }
.fn-key.pressed,
.fn-key:active {
  border-bottom-width: 1px;
  background: #f0eafe;
  transform: translateY(3px);
}

.stage-dots {
  position: absolute;
  top: 50%;
  left: -28px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  transform: translateY(-50%);
}

.stage-dots button {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #d8d3da;
  cursor: pointer;
  transition: height 0.25s ease, background 0.25s ease, border-radius 0.25s ease;
}

.stage-dots button.active {
  height: 22px;
  border-radius: 5px;
  background: var(--purple);
}

.story-steps {
  padding-bottom: 18vh;
}

.story-step {
  min-height: 68vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0.27;
  transform: translateY(20px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.story-step.active {
  opacity: 1;
  transform: translateY(0);
}

.story-step > span,
.card-number {
  display: block;
  margin-bottom: 18px;
  color: var(--orange);
  font: 760 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.08em;
}

.story-step h3 {
  max-width: 500px;
  margin: 0 0 18px;
  font-size: clamp(30px, 3.2vw, 47px);
  letter-spacing: -0.055em;
  line-height: 1.08;
}

.story-step p {
  max-width: 480px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.features {
  padding: 130px clamp(24px, 6vw, 96px);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1240px;
  margin: 0 auto;
}

.feature-card {
  position: relative;
  min-height: 480px;
  overflow: hidden;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 18px 50px rgba(38, 22, 48, 0.06);
}

.feature-card h3 {
  margin: 0 0 13px;
  font-size: 24px;
  letter-spacing: -0.04em;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.feature-art {
  position: relative;
  height: 245px;
  margin: -4px -4px 32px;
  overflow: hidden;
  border-radius: 24px;
}

.native-art { background: #eee8fe; }
.native-word {
  position: absolute;
  left: 50%;
  top: 50%;
  padding: 7px 10px 5px;
  border-bottom: 2px solid var(--purple);
  color: var(--purple-dark);
  background: #fff;
  border-radius: 8px 8px 2px 2px;
  font-size: 28px;
  font-weight: 750;
  transform: translate(-50%, -50%);
  box-shadow: 0 12px 30px rgba(72, 39, 140, 0.15);
}
.native-caret {
  position: absolute;
  z-index: 2;
  left: calc(50% + 50px);
  top: calc(50% - 18px);
  width: 2px;
  height: 38px;
  background: var(--purple);
  animation: blink 1s steps(1) infinite;
}
.native-art i {
  position: absolute;
  border: 1px solid rgba(111, 59, 245, 0.21);
  border-radius: 50%;
}
.native-art i:nth-of-type(1) { width: 180px; height: 180px; left: -50px; top: -60px; }
.native-art i:nth-of-type(2) { width: 100px; height: 100px; right: -20px; bottom: -25px; }
.native-art i:nth-of-type(3) { width: 12px; height: 12px; right: 26px; top: 25px; background: var(--lime); border: 0; }

.rust-art {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  color: #fff;
  background: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.rust-art span { color: #a687f7; font-size: 36px; }
.rust-art b { font-size: 34px; letter-spacing: -0.07em; }
.rust-art i {
  position: absolute;
  width: 130px;
  height: 130px;
  border: 1px solid rgba(255, 120, 75, 0.35);
  border-radius: 45% 55% 50%;
  transform: rotate(30deg);
}

.private-art { background: #fff0ea; }
.shield {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 92px;
  height: 104px;
  place-items: center;
  border-radius: 45px 45px 55px 55px;
  color: #fff;
  background: linear-gradient(145deg, var(--orange), var(--pink));
  font-size: 30px;
  font-weight: 800;
  clip-path: polygon(50% 0, 96% 16%, 89% 75%, 50% 100%, 11% 75%, 4% 16%);
  transform: translate(-50%, -50%);
  box-shadow: 0 18px 34px rgba(220, 76, 80, 0.2);
}
.no-clipboard {
  position: absolute;
  right: 28px;
  bottom: 30px;
  padding: 7px 8px;
  border-radius: 8px;
  color: #a16e69;
  background: #fff;
  font: 800 10px ui-monospace, monospace;
  text-decoration: line-through;
  transform: rotate(8deg);
}
.private-art i {
  position: absolute;
  width: 10px;
  height: 10px;
  left: 29px;
  top: 31px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 27px 160px 0 #ffc75d, 275px 14px 0 #a383f5;
}

.providers {
  padding: 10px clamp(24px, 6vw, 96px) 150px;
}

.provider-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(340px, 0.86fr) minmax(500px, 1.14fr);
  gap: clamp(54px, 8vw, 120px);
  max-width: 1240px;
  min-height: 650px;
  align-items: center;
  margin: 0 auto;
  overflow: hidden;
  padding: clamp(44px, 6vw, 82px);
  border: 1px solid rgba(111, 59, 245, 0.14);
  border-radius: 42px;
  background:
    radial-gradient(circle at 92% 12%, rgba(255, 120, 75, 0.17), transparent 26rem),
    radial-gradient(circle at 58% 92%, rgba(200, 240, 92, 0.2), transparent 25rem),
    #f0ebfc;
  box-shadow: 0 30px 85px rgba(56, 31, 91, 0.12);
}

.provider-panel::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -310px;
  top: -300px;
  border: 1px solid rgba(111, 59, 245, 0.15);
  border-radius: 50%;
  box-shadow: 0 0 0 56px rgba(111, 59, 245, 0.035), 0 0 0 112px rgba(111, 59, 245, 0.025);
}

.provider-copy,
.provider-cloud {
  position: relative;
  z-index: 2;
}

.provider-lockup {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 54px;
}

.provider-logo-mark {
  position: relative;
  display: grid;
  width: 84px;
  height: 84px;
  flex: 0 0 auto;
  place-items: center;
  overflow: visible;
  border-radius: 26px;
  color: #fff;
  background: var(--ink);
  box-shadow: 0 17px 35px rgba(23, 17, 31, 0.22), inset 0 -3px 0 rgba(255, 255, 255, 0.12);
  font-size: 39px;
  font-weight: 850;
  letter-spacing: -0.08em;
}

.provider-logo-mark::before,
.provider-logo-mark::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: var(--lime);
}

.provider-logo-mark::before {
  width: 7px;
  height: 7px;
  right: -12px;
  top: 17px;
  box-shadow: 9px 10px 0 var(--orange), 13px 25px 0 var(--purple);
}

.provider-logo-mark::after {
  width: 20px;
  height: 4px;
  right: 10px;
  bottom: 12px;
  background: linear-gradient(90deg, var(--lime) 0 24%, transparent 24% 36%, #fff 36% 62%, transparent 62% 74%, var(--orange) 74%);
}

.provider-wordmark {
  display: flex;
  flex-direction: column;
  font-size: 25px;
  font-weight: 820;
  letter-spacing: -0.055em;
}

.provider-wordmark small {
  margin-top: 5px;
  color: #84798b;
  font-size: 10px;
  font-weight: 720;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.provider-copy h2 {
  margin: 0;
  font-size: clamp(40px, 4.6vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.065em;
}

.provider-copy > p:not(.eyebrow) {
  max-width: 500px;
  margin: 25px 0 30px;
  color: #675e6d;
  font-size: 15px;
  line-height: 1.8;
}

.provider-doc-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 24px;
  padding: 0 18px;
  border: 1px solid rgba(111, 59, 245, 0.2);
  border-radius: 15px;
  color: var(--purple-dark);
  background: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  font-weight: 760;
  transition: transform 0.2s ease, background 0.2s ease;
}

.provider-doc-link:hover {
  background: #fff;
  transform: translateY(-2px);
}

.provider-cloud {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  align-content: center;
  transform: rotate(1.8deg);
}

.provider-chip {
  display: flex;
  min-height: 76px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 13px 17px;
  border: 1px solid rgba(56, 35, 70, 0.11);
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 11px 24px rgba(54, 30, 72, 0.055);
  transform: rotate(-1.2deg);
}
.provider-chip:is(a) {
  color: inherit;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.provider-chip:is(a):hover {
  border-color: rgba(201, 255, 68, 0.72);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
  transform: translateY(-3px) rotate(-1deg);
}

.provider-chip:nth-child(2n) { transform: translateY(8px) rotate(1deg); }
.provider-chip:nth-child(3n) { transform: translateY(-5px) rotate(-2deg); }
.provider-chip b { font-size: 14px; letter-spacing: -0.025em; }
.provider-chip small { color: #8a7f91; font-size: 9px; font-weight: 650; }

.provider-default {
  color: #fff;
  border-color: transparent;
  background: var(--ink);
  box-shadow: 0 14px 28px rgba(23, 17, 31, 0.2);
}

.provider-default small { color: var(--lime); }
.provider-compatible {
  grid-column: 1 / -1;
  align-items: center;
  min-height: 62px;
  flex-direction: row;
  justify-content: space-between;
  padding-inline: 22px;
  border-style: dashed;
  background: rgba(255, 255, 255, 0.42);
}

.support {
  padding: 20px clamp(24px, 6vw, 96px) 130px;
}

.support-card {
  position: relative;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  max-width: 1240px;
  min-height: 590px;
  align-items: center;
  margin: 0 auto;
  overflow: hidden;
  padding: clamp(42px, 6vw, 82px);
  border-radius: 42px;
  color: #fff;
  background:
    radial-gradient(circle at 81% 16%, rgba(255, 125, 87, 0.72), transparent 25%),
    radial-gradient(circle at 60% 95%, rgba(116, 59, 246, 0.65), transparent 40%),
    #1a1222;
  box-shadow: 0 35px 90px rgba(35, 21, 43, 0.2);
}

.support-card::after {
  content: "";
  position: absolute;
  right: -110px;
  bottom: -230px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 55px rgba(255, 255, 255, 0.025), 0 0 0 110px rgba(255, 255, 255, 0.02);
}

.eyebrow.light { color: #d6c7ff; }
.support-copy { position: relative; z-index: 2; }
.support h2 { font-size: clamp(42px, 4.8vw, 66px); }
.support-copy > p:not(.eyebrow) { max-width: 470px; margin: 24px 0 32px; color: #c7becb; line-height: 1.75; }
.button-light { color: var(--ink); background: #fff; box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2); }

.distro-cloud {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  gap: 13px;
  transform: rotate(-3deg);
}

.distro {
  display: flex;
  min-height: 63px;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 18px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  font-size: 14px;
  font-weight: 750;
  backdrop-filter: blur(12px);
  transform: rotate(2deg);
}

.distro:nth-child(2n) { transform: rotate(-1deg) translateY(8px); }
.distro:nth-child(3n) { transform: rotate(3deg) translateY(-5px); }
.distro b { color: #cfc3d3; font-size: 10px; font-weight: 600; }
.distro i { width: 13px; height: 13px; border-radius: 50%; background: var(--orange); box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.3); }
.debian i { background: #db5076; }
.fedora i { background: #5c7ee5; }
.suse i { background: #73d18b; }
.arch i { background: #4fb5dc; clip-path: polygon(50% 0, 100% 100%, 50% 76%, 0 100%); border-radius: 0; }
.nix i { background: #8a72da; }

.final-cta {
  position: relative;
  min-height: 620px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 130px 24px;
  text-align: center;
}

.final-cta::before,
.final-cta::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(111, 59, 245, 0.12);
  border-radius: 50%;
}
.final-cta::before { width: 400px; height: 400px; left: -230px; bottom: 0; }
.final-cta::after { width: 230px; height: 230px; right: -100px; top: 80px; }

.final-friend {
  width: 100px;
  height: 100px;
  margin-bottom: 26px;
  animation: friendFloat 3.8s ease-in-out infinite;
}

.eyebrow.centered > span:last-child { width: 20px; height: 2px; border-radius: 4px; background: currentColor; }
.final-cta h2 { max-width: 900px; font-size: clamp(46px, 6vw, 82px); }
.final-cta > p:not(.eyebrow) { margin: 22px 0 34px; color: var(--muted); font-size: 17px; }
.centered-actions { justify-content: center; }

footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 110px;
  padding: 24px clamp(24px, 6vw, 96px);
  border-top: 1px solid var(--line);
  color: #7c747f;
  font-size: 12px;
}

footer p { margin: 0; text-align: center; }
footer > div { display: flex; justify-content: flex-end; gap: 22px; font-weight: 700; }

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

@keyframes blink { 0%, 48% { opacity: 1; } 49%, 100% { opacity: 0; } }
@keyframes friendFloat { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-9px) rotate(2deg); } }
@keyframes friendSquish { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.035, 0.965); } }
@keyframes friendBlink { 0%, 44%, 49%, 100% { transform: scaleY(1); } 46%, 47% { transform: scaleY(0.08); } }
@keyframes voiceRing { 0% { opacity: 0.7; transform: scale(0.7); } 100% { opacity: 0; transform: scale(1.34); } }
@keyframes speckDance { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(4px, -7px) scale(1.25); } }
@keyframes waveBar { from { height: 4px; } to { height: 15px; } }

@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; padding-top: 60px; }
  .hero-copy { max-width: 760px; }
  .hero-visual { width: min(820px, 100%); justify-self: center; }
  .story-layout { grid-template-columns: minmax(420px, 1.05fr) minmax(300px, 0.95fr); gap: 60px; }
  .feature-card { min-height: 440px; padding: 22px; }
  .feature-art { height: 220px; }
  .provider-panel { grid-template-columns: 1fr; }
  .provider-copy { max-width: 700px; }
  .provider-cloud { transform: none; }
  .support-card { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
  :root { --header-height: 66px; }
  .site-header { grid-template-columns: 1fr auto; padding: 0 18px; }
  .nav-links { display: none; }
  .github-link { display: none; }
  .hero { min-height: auto; padding: 55px 22px 80px; }
  .hero h1 { font-size: clamp(50px, 15vw, 72px); }
  .hero h1 em { white-space: normal; }
  .hero-visual { min-height: 430px; margin-top: 10px; }
  .desktop-hero { border-radius: 18px; transform: none; }
  .hero-friend { right: -14px; bottom: 8px; width: 96px; height: 96px; }
  .listening-card { left: -3px; bottom: -12px; min-width: 200px; padding: 10px; }
  .orbit { display: none; }
  .story { padding: 90px 18px 40px; }
  .section-intro, .section-heading { margin-bottom: 50px; }
  .story-layout { display: block; }
  .story-stage { top: calc(var(--header-height) + 12px); z-index: 10; padding: 8px 0 15px; background: linear-gradient(#fff 85%, rgba(255,255,255,0)); }
  .story-desktop { border-radius: 18px; }
  .stage-dots { left: auto; right: 8px; top: auto; bottom: -7px; flex-direction: row; transform: none; }
  .stage-dots button.active { width: 22px; height: 6px; }
  .hold-control { margin-top: 12px; }
  .fn-key { min-width: 72px; min-height: 45px; }
  .story-steps { padding-bottom: 4vh; }
  .story-step { min-height: 63vh; padding: 36px 8px 0; }
  .story-step h3 { font-size: 33px; }
  .feature-grid { grid-template-columns: 1fr; }
  .features { padding: 100px 20px; }
  .feature-card { min-height: 0; }
  .providers { padding: 0 18px 100px; }
  .provider-panel { min-height: 0; gap: 45px; padding: 34px 23px; border-radius: 28px; }
  .provider-lockup { margin-bottom: 40px; }
  .provider-logo-mark { width: 72px; height: 72px; border-radius: 22px; font-size: 34px; }
  .provider-cloud { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .provider-chip { transform: none !important; }
  .support { padding: 0 18px 90px; }
  .support-card { min-height: 0; padding: 38px 24px; border-radius: 28px; }
  .distro-cloud { transform: none; }
  .distro { transform: none !important; min-height: 52px; padding: 0 13px; }
  .final-cta { min-height: 540px; padding: 100px 22px; }
  footer { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  footer > div { justify-content: center; }
}

@media (max-width: 480px) {
  .hero-actions .button { width: 100%; }
  .hero-facts { gap: 10px 14px; }
  .hero-visual { min-height: 340px; }
  .ubuntu-bar { height: 22px; }
  .desktop-body { height: calc(100% - 22px); }
  .dock { transform: translateY(-50%) scale(0.72); transform-origin: left center; }
  .notes-window { inset: 8% 5% 10% 12%; }
  .listening-card { min-width: 175px; }
  .listening-card .tiny-wave { width: 26px; height: 26px; }
  .hero-friend { width: 82px; height: 82px; }
  .story-step { min-height: 56vh; }
  .hold-control p { display: none; }
  .stage-mascot { width: 70px; height: 70px; }
  .provider-cloud { grid-template-columns: 1fr; }
  .provider-compatible { grid-column: auto; align-items: flex-start; min-height: 76px; flex-direction: column; justify-content: center; }
  .support h2 { font-size: 40px; }
  .distro { width: 100%; justify-content: center; }
}

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