:root {
  --ink: #1c1c1e;
  --blue: #4a8df8;
  --blue-deep: #3b7fe8;
  --purple: #a259e6;
  --orange: #f2762e;
  --green: #5cb85c;
  --gray-card: #f6f6f7;
  --text-muted: #8a8a90;
  --radius-lg: 24px;
  --radius-md: 16px;
  --max: 1120px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: "Quicksand", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: "Baloo 2", "Quicksand", sans-serif;
  font-weight: 800;
  margin: 0;
}

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

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

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

[hidden] {
  display: none !important;
}

/* ── Floating pill nav ─────────────────────────────── */
.pill-nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border-radius: 999px;
  padding: 7px 8px 7px 16px;
  box-shadow: 0 6px 24px -8px rgba(20, 40, 80, 0.25);
}

.pill-nav .logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Baloo 2", sans-serif;
  font-weight: 700;
  font-size: 16.5px;
  margin-right: 8px;
  white-space: nowrap;
}

.pill-nav .logo img {
  width: 22px;
  height: 22px;
  border-radius: 6px;
}

.pill-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.pill-links a {
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: #55555c;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.pill-links a:hover {
  background: #f1f2f4;
  color: var(--ink);
}

.pill-cta {
  display: inline-flex;
  align-items: center;
  background: var(--blue);
  color: #fff;
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.15s ease, transform 0.15s ease;
}

.pill-cta:hover {
  background: var(--blue-deep);
}

.pill-cta:active {
  transform: scale(0.97);
}

.pill-burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  border-radius: 999px;
  color: #55555c;
}

.pill-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: 0 16px 40px -12px rgba(20, 40, 80, 0.3);
  padding: 8px;
  display: flex;
  flex-direction: column;
  min-width: 180px;
}

.pill-menu a {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 600;
}

.pill-menu a:hover {
  background: #f1f2f4;
}

@media (max-width: 900px) {
  .pill-links {
    display: none;
  }
  .pill-burger {
    display: flex;
  }
}

@media (max-width: 520px) {
  /* o CTA sai da barra (o hero já tem o botão grande) e vai para o menu */
  .pill-nav > .pill-cta { display: none; }
  .pill-nav {
    max-width: calc(100vw - 24px);
    padding: 6px 6px 6px 14px;
  }
  .pill-nav .logo {
    font-size: 15.5px;
    margin-right: 6px;
  }
  .pill-menu .pill-cta {
    display: inline-flex;
    justify-content: center;
    margin: 6px 4px 4px;
  }
}

/* ── Hero (sky) ────────────────────────────────────── */
.hero-sky {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #9fd0f7 0%, #5aa3f2 38%, #3f8dec 100%);
  padding: 118px 24px 0;
  text-align: center;
}

.sparkle {
  position: absolute;
  pointer-events: none;
  animation: floaty 5.5s ease-in-out infinite alternate;
}

.sparkle.s1 { top: 22%; left: 14%; animation-delay: 0s; }
.sparkle.s2 { top: 14%; right: 16%; animation-delay: 1.2s; }
.sparkle.s3 { top: 36%; right: 9%;  animation-delay: 2s; }
.sparkle.s4 { top: 42%; left: 7%;  animation-delay: 0.6s; }

@keyframes floaty {
  from { transform: translateY(-8px) rotate(-4deg); }
  to   { transform: translateY(10px) rotate(6deg); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-radius: 999px;
  padding: 6px 14px 6px 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--blue-deep);
  box-shadow: 0 4px 14px -6px rgba(20, 40, 80, 0.35);
}

.hero-badge .chip {
  background: var(--blue);
  color: #fff;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12px;
}

.hero-sky h1 {
  margin: 22px auto 0;
  max-width: 16ch;
  color: #fff;
  font-size: 62px;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 18px rgba(30, 70, 140, 0.18);
}

.hero-sky .sub {
  margin: 18px auto 0;
  max-width: 46ch;
  color: rgba(255, 255, 255, 0.92);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.55;
}

.hero-cta-wrap {
  position: relative;
  display: inline-block;
  margin-top: 28px;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #111114;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 15px 28px;
  font-family: "Quicksand", sans-serif;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 10px 30px -10px rgba(10, 20, 40, 0.5);
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn-hero:hover {
  background: #26262b;
  transform: translateY(-1px);
}

.btn-hero:active {
  transform: scale(0.97);
}

.chevron {
  transition: transform 0.15s ease;
}

.hero-cta-wrap[data-open="true"] .chevron {
  transform: rotate(180deg);
}

/* download dropdown */
.download-panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  max-width: calc(100vw - 32px);
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 60px -18px rgba(20, 40, 80, 0.4);
  padding: 10px;
  z-index: 60;
  text-align: left;
}

.download-group {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 10px;
  border-radius: 12px;
  transition: background 0.15s ease;
}

.download-group:hover {
  background: #f1f2f4;
}

.download-group .icon {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #f1f2f4;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}

.download-group .meta {
  flex: 1;
  min-width: 0;
}

.download-group .meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.download-group .platform {
  font-size: 14px;
  font-weight: 700;
}

.badge-soon {
  flex: none;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-muted);
  background: #f1f2f4;
  border-radius: 999px;
  padding: 3px 9px;
}

.download-footer {
  margin-top: 4px;
  padding: 10px 12px;
  border-top: 1px solid #ececef;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
}

.download-footer a {
  color: var(--blue);
  font-weight: 700;
}

.download-footer a:hover {
  text-decoration: underline;
}

/* ── Hero window — réplica fiel do canvas Sofik ─────
   Valores extraídos do app (lib/ui/space_theme.dart, lib/cards/*)
   canvas #E8EAEB · card #F7F8F9 · grade 24px · anel de seleção branco 3px
   ──────────────────────────────────────────────────── */
.hero-window {
  position: relative;
  z-index: 5;
  margin: 48px auto -96px;
  max-width: 940px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 40px 90px -30px rgba(15, 40, 90, 0.5);
  overflow: hidden;
  text-align: left;
}

.hw-bar {
  display: flex;
  align-items: center;
  padding: 11px 14px;
  background: #fafafb;
  border-bottom: 1px solid #ececef;
}

.traffic {
  display: flex;
  gap: 6px;
}

.traffic span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.t-red { background: #ff5f57; }
.t-yellow { background: #febc2e; }
.t-green { background: #28c840; }

.hw-title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 auto;
  font-size: 12.5px;
  font-weight: 600;
  color: #7d7d84;
  background: #fff;
  border: 1px solid #ececef;
  border-radius: 8px;
  padding: 4px 12px;
}

/* ── Canvas ─────────────────────────────────────────── */
.hw-canvas {
  position: relative;
  height: 476px;
  background-color: #e8eaeb;
  background-image: radial-gradient(circle, rgba(80, 86, 84, 0.28) 0.85px, transparent 0.85px);
  background-size: 24px 24px;
  overflow: hidden;
  font-family: "Inter", -apple-system, sans-serif;
}

/* Palco de dimensões fixas — escalado por JS para caber
   em qualquer largura sem quebrar as posições dos cartões. */
.sim-stage {
  --stage-w: 940;
  --stage-h: 476;
  position: absolute;
  top: 0;
  left: 0;
  width: calc(var(--stage-w) * 1px);
  height: calc(var(--stage-h) * 1px);
  transform-origin: top left;
}

/* ── Chrome flutuante (pílulas nos cantos) ──────────── */
.sk-chrome {
  position: absolute;
  z-index: 20;
}

.sk-pill {
  background: #f5f6f7;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 10px rgba(17, 19, 18, 0.06);
}

.sk-round {
  width: 44px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #16181a;
}

.sk-spaces {
  width: 62px;
  height: 34px;
  gap: 5px;
  justify-content: center;
  color: #16181a;
}

.sk-layers { top: 16px; left: 14px; }
.sk-settings { top: 326px; left: 14px; }
.sk-bottom-right {
  top: 326px;
  right: 14px;
  display: flex;
  gap: 9px;
}

/* presença — avatares 30px, canto superior direito */
.sk-presence {
  top: 16px;
  right: 14px;
  display: flex;
  gap: 4px;
}

.sk-av {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.sk-av.self { border: 2px solid #fff; }
.av-1 { background: #6657d9; }
.av-2 { background: #b25b45; }
.av-3 { background: #2e7d73; }

/* ── Cartões ────────────────────────────────────────── */
.sk-card {
  position: absolute;
  background: #f7f8f9;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* sombra em repouso — note/genérico */
.sk-card {
  box-shadow: 0 1.25px 4.8px rgba(0, 0, 0, 0.059),
              0 13px 18.2px rgba(0, 0, 0, 0.094);
}

/* anel de seleção: branco 3px com gap de 1.5px + lift 1.04 */
.sk-card.selected {
  transform: scale(1.035);
  box-shadow: 0 0 0 1.5px transparent,
              0 0 0 4.5px #ffffff,
              0 20px 42px rgba(0, 0, 0, 0.133),
              0 3px 8px rgba(0, 0, 0, 0.063);
}

/* indicadores de aresta (resize) — 50% do lado, 1.5px */
.sk-card.selected::before,
.sk-card.selected::after {
  content: "";
  position: absolute;
  background: rgba(17, 19, 18, 0.25);
  border-radius: 999px;
}

.sk-card.selected::before {
  left: 25%;
  right: 25%;
  bottom: 2px;
  height: 1.5px;
}

.sk-card.selected::after {
  top: 25%;
  bottom: 25%;
  right: 2px;
  width: 1.5px;
}

/* — Note: raio 24.2, sem borda, folha empilhada atrás — */
.sk-note {
  left: 32px;
  top: 44px;
  width: 138px;
  height: 152px;
  border-radius: 24.2px;
  padding: 14px 16px 16px;
}

.sk-note .sheet {
  position: absolute;
  inset: 0;
  left: -4px;
  top: 4px;
  background: #f7f8f9;
  border-radius: 24px;
  transform: rotate(-1.5deg);
  box-shadow: -4px 4px 6px rgba(0, 0, 0, 0.043);
  z-index: -1;
}

.sk-note .n-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -0.15px;
  color: #34374a;
  margin-bottom: 9px;
}

.sk-note .n-body {
  font-size: 9.5px;
  line-height: 1.45;
  color: #30322f;
  min-height: 60px;
}

/* caret remoto com rótulo (colaboração real do app) */
.sk-caret {
  display: none;
  position: relative;
  width: 1.5px;
  height: 11px;
  vertical-align: -2px;
  margin-left: 1px;
  background: #b25b45;
  box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.9);
}

.sk-caret.on {
  display: inline-block;
  animation: caret-blink 1.05s step-end infinite;
}

.sk-caret .tag {
  position: absolute;
  bottom: calc(100% + 3px);
  left: -1px;
  background: #b25b45;
  color: #fff;
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: 0.2px;
  padding: 1.5px 5px;
  border-radius: 4px 4px 4px 0;
  white-space: nowrap;
}

@keyframes caret-blink {
  50% { opacity: 0.35; }
}

/* — Sticky: raio 12.5, cor chapada, mono 10.5 — */
.sk-sticky {
  left: 192px;
  top: 60px;
  width: 116px;
  height: 96px;
  border-radius: 12.5px;
  background: #faf8e4;
  padding: 14px 13px;
  box-shadow: 0 0.5px 3px rgba(0, 0, 0, 0.039),
              0 5px 14.7px rgba(0, 0, 0, 0.051);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 8px;
  line-height: 1.9;
  letter-spacing: -0.3px;
  color: #16181a;
}

.sk-sticky .done { text-decoration: line-through; opacity: 0.45; }

/* — Terminal: sem header, status bar 30px no rodapé — */
.sk-term {
  left: 32px;
  top: 212px;
  width: 376px;
  height: 158px;
  border-radius: 24.2px;
  border: 0.8px solid rgba(17, 19, 18, 0.1);
  background: #0a0f14;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.sk-term .t-body {
  flex: 1;
  padding: 10px 9px 8px 10px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 9.5px;
  line-height: 1.5;
  color: #e6edf3;
  overflow: hidden;
}

.sk-term .t-line { white-space: pre; min-height: 14px; }
.sk-term .t-prompt { color: #4e9f72; }
.sk-term .t-dim { color: rgba(230, 237, 243, 0.55); }
.sk-term .t-ok { color: #4e9f72; }

.sk-caret-term {
  display: inline-block;
  width: 5px;
  height: 10px;
  background: #e6edf3;
  vertical-align: -1px;
  animation: caret-blink 1.05s step-end infinite;
}

.sk-term .t-status {
  flex: none;
  height: 26px;
  padding: 0 12px;
  background: #121a24;
  border-top: 0.7px solid rgba(230, 237, 243, 0.1);
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 9px;
}

.sk-term .t-status .name {
  font-weight: 600;
  color: rgba(230, 237, 243, 0.88);
}

.sk-term .t-status .dir {
  font-family: "JetBrains Mono", monospace;
  font-size: 8px;
  color: rgba(230, 237, 243, 0.56);
}

.sk-term .t-status .state {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 8px;
  font-weight: 500;
  color: rgba(230, 237, 243, 0.7);
}

.sk-term .t-status .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4e9f72;
  transition: background 0.3s ease;
}

.sk-term .t-status .dot.busy { background: #e0a13a; }

/* — Browser: toolbar 44px + barra de endereço — */
.sk-browser {
  right: 32px;
  top: 44px;
  width: 272px;
  height: 156px;
  border-radius: 24.2px;
  border: 0.8px solid rgba(17, 19, 18, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #f9f9f9;
}

.sk-browser .b-bar {
  flex: none;
  height: 34px;
  background: #f2f2f2;
  border-bottom: 0.7px solid rgba(0, 0, 0, 0.09);
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 0 6px;
}

.sk-browser .b-btn {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(17, 19, 18, 0.25);
}

.sk-browser .b-btn.active { color: #16181a; }

.sk-browser .b-url {
  flex: 1;
  height: 23px;
  background: #fff;
  border: 0.7px solid rgba(0, 0, 0, 0.094);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 8px;
  margin-left: 4px;
  font-family: "JetBrains Mono", monospace;
  font-size: 8.5px;
  color: #16181a;
}

.sk-browser .b-view {
  flex: 1;
  background: #f9f9f9;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  overflow: hidden;
}

.bl {
  border-radius: 6px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.bl.on { opacity: 1; transform: none; }

.bl-hero {
  height: 42%;
  background: linear-gradient(120deg, #d9e3fb, #e6dcf7 55%, #fbe5d4);
}

.bl-row { display: flex; gap: 7px; flex: 1; }
.bl-col { flex: 1; background: rgba(17, 19, 18, 0.055); }
.bl-foot { height: 18%; background: rgba(17, 19, 18, 0.075); }

/* — Code card: raio 12, sidebar + abas + status — */
.sk-code {
  right: 32px;
  top: 212px;
  width: 272px;
  height: 158px;
  border-radius: 12px;
  border: 0.8px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.sk-code .c-tabs {
  flex: none;
  height: 26px;
  background: #f8f8f8;
  border-bottom: 0.7px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: stretch;
}

.sk-code .c-tab {
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-size: 8.5px;
  font-weight: 500;
  color: #6c6c71;
  border-right: 0.7px solid rgba(0, 0, 0, 0.06);
}

.sk-code .c-tab.active {
  background: #f4f4f5;
  color: #0a0a0a;
}

.sk-code .c-body {
  flex: 1;
  padding: 8px 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 8.5px;
  line-height: 1.75;
  color: #0a0a0a;
  overflow: hidden;
}

.sk-code .c-ln {
  display: flex;
  gap: 8px;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.sk-code .c-ln.on { opacity: 1; transform: none; }
.sk-code .c-ln .num { color: rgba(10, 10, 10, 0.28); width: 9px; text-align: right; flex: none; }
.sk-code .c-ln.added { background: rgba(22, 169, 148, 0.1); margin: 0 -10px; padding: 0 10px; }
.sk-code .c-ln.added .num { color: #16a994; }

.sk-code .c-status {
  flex: none;
  height: 22px;
  border-top: 0.7px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  font-size: 8px;
  font-weight: 500;
  color: #84848a;
}

.sk-code .c-status .badge {
  color: #16a994;
  font-family: "JetBrains Mono", monospace;
  font-size: 7.5px;
  font-weight: 600;
}

/* — Toast de presença (pílula escura do app) — */
.sk-toast {
  position: absolute;
  left: 50%;
  transform: translate(-50%, 10px);
  top: 300px;
  z-index: 30;
  background: #17181a;
  border-radius: 999px;
  padding: 7px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: -0.1px;
  color: #fff;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.44);
  opacity: 0;
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.sk-toast.on {
  opacity: 1;
  transform: translate(-50%, 0);
}

.sk-toast .av {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #2e7d73;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 7.5px;
  font-weight: 700;
}

/* elementos que entram no meio da simulação */
.stage {
  opacity: 0;
  transform: translateY(6px) scale(0.98);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.stage.on {
  opacity: 1;
  transform: none;
}



/* Em telas estreitas o palco fica mais compacto (menos cartões,
   arranjo vertical) para o texto continuar legível depois do scale. */
@media (max-width: 760px) {
  .hero-window { margin-bottom: -60px; }
  .sim-stage {
    --stage-w: 560;
    --stage-h: 420;
  }
  .sk-code,
  .sk-sticky,
  .sk-settings,
  .sk-bottom-right { display: none; }
  .sk-note { left: 24px; top: 44px; width: 168px; height: 168px; }
  .sk-note .n-title { font-size: 12px; }
  .sk-note .n-body { font-size: 11px; }
  .sk-browser { right: 24px; top: 44px; width: 268px; height: 168px; }
  .sk-term { left: 24px; top: 232px; width: 380px; height: 150px; }
  .sk-term .t-body { font-size: 11px; }
  .sk-toast { top: 240px; }
}

/* clouds */
.clouds {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  width: 100%;
  height: auto;
  pointer-events: none;
  z-index: 4;
}

.hero-clearance {
  height: 150px;
}

@media (max-width: 860px) {
  .hero-sky h1 { font-size: 40px; }
  .hero-sky .sub { font-size: 16px; }
  .hero-window { margin-bottom: -60px; }
  .hw-canvas { height: 320px; }
  .hero-clearance { height: 90px; }
  .cv-sticky, .presence, .link-layer { display: none; }
  .cv-tasks { width: 34%; }
  .cv-term { width: 42%; font-size: 9px; }
  .cv-browser { width: 44%; }
  .cursor-user .cu-label { display: none; }
}

/* ── Marquee ───────────────────────────────────────── */
.marquee {
  margin-top: 64px;
  border-top: 1px solid #ececef;
  border-bottom: 1px solid #ececef;
  background: #fff;
  overflow: hidden;
  padding: 18px 0;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}

.marquee-track span {
  display: inline-flex;
  align-items: center;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-muted);
  padding: 0 26px;
  white-space: nowrap;
}

.marquee-track span::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  opacity: 0.35;
  margin-left: 52px;
}

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

/* ── Generic section shell ─────────────────────────── */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px 24px 0;
  text-align: center;
}

.section h2 {
  font-size: 42px;
  line-height: 1.12;
  letter-spacing: -0.015em;
  max-width: 22ch;
  margin: 0 auto;
}

.section h2.one-line {
  max-width: none;
  font-weight: 800;
}

.section .sub {
  margin: 16px auto 0;
  max-width: 52ch;
  color: var(--text-muted);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
}

@media (max-width: 860px) {
  .section h2 { font-size: 30px; }
}

/* ── Feature grid ──────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 44px;
  text-align: left;
}

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

.feature-card {
  background: var(--gray-card);
  border-radius: var(--radius-lg);
  padding: 28px 28px 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.feature-card .f-ic {
  width: 26px;
  height: 26px;
  margin-bottom: 14px;
}

.feature-card h3 {
  font-size: 21px;
  font-weight: 700;
}

.feature-card p {
  margin: 8px 0 22px;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.55;
}

.f-illo {
  margin-top: auto;
  height: 170px;
  border-radius: 16px 16px 0 0;
  position: relative;
  overflow: hidden;
}

.illo-canvas {
  background: #fff;
  background-image: radial-gradient(circle, rgba(28, 28, 30, 0.07) 1px, transparent 1px);
  background-size: 16px 16px;
  box-shadow: 0 -1px 0 #ececef inset;
}

.illo-canvas .mini-card {
  position: absolute;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 22px -12px rgba(20, 40, 80, 0.3);
  padding: 10px;
}

.illo-canvas .mc1 { top: 18px; left: 22px; width: 42%; transform: rotate(-2deg); }
.illo-canvas .mc2 { bottom: 16px; right: 20px; width: 38%; transform: rotate(2deg); }

.illo-canvas .ln {
  height: 6px;
  border-radius: 3px;
  background: #e7e9ee;
  margin-bottom: 7px;
}

.illo-canvas .ln.blue { background: #bcd2fb; width: 70%; }
.illo-canvas .ln:last-child { margin-bottom: 0; width: 55%; }

.illo-term {
  background: #17181b;
  padding: 14px 16px;
  font-family: ui-monospace, monospace;
  font-size: 11px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.75);
  text-align: left;
}

.illo-server {
  background: linear-gradient(180deg, #eef4ee 0%, #e3efe3 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.server-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border-radius: 14px;
  padding: 14px 20px;
  box-shadow: 0 14px 30px -14px rgba(40, 90, 40, 0.35);
  font-size: 13px;
  font-weight: 700;
  color: #3c4a3c;
}

.server-pill .led {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #28c840;
  box-shadow: 0 0 0 4px rgba(40, 200, 64, 0.18);
}

.illo-phone {
  background: linear-gradient(180deg, #eef2fa 0%, #e2eafa 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.phone {
  width: 110px;
  height: 150px;
  background: #fff;
  border-radius: 22px 22px 0 0;
  border: 5px solid #26262b;
  border-bottom: none;
  position: relative;
  overflow: hidden;
}

.phone .notch {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 34px;
  height: 7px;
  border-radius: 999px;
  background: #26262b;
}

.phone .p-card {
  position: absolute;
  background: #fff;
  border-radius: 7px;
  box-shadow: 0 6px 14px -6px rgba(20, 40, 80, 0.3);
  padding: 6px;
}

.phone .pc1 { top: 26px; left: 10px; width: 55%; transform: rotate(-2deg); }
.phone .pc2 { top: 70px; right: 8px; width: 48%; transform: rotate(2deg); }

.phone .ln {
  height: 4px;
  border-radius: 2px;
  background: #e7e9ee;
  margin-bottom: 5px;
}

.phone .ln.blue { background: #bcd2fb; }
.phone .ln:last-child { margin-bottom: 0; width: 60%; }

.phone .p-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(28, 28, 30, 0.08) 1px, transparent 1px);
  background-size: 12px 12px;
}

/* ── Color cards ───────────────────────────────────── */
.color-cards {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 44px;
}

.color-card {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-align: left;
  min-height: 240px;
}

.color-card.blue { background: var(--blue); }
.color-card.purple { background: var(--purple); }
.color-card.orange { background: var(--orange); }

.cc-text {
  padding: 40px 16px 40px 40px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cc-text h3 {
  font-size: 27px;
  line-height: 1.15;
  font-weight: 800;
}

.cc-text p {
  margin: 12px 0 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
  max-width: 34ch;
}

.cc-visual {
  position: relative;
  display: flex;
  padding: 28px 0 0 12px;
}

.cc-window {
  flex: 1;
  min-height: 100%;
  background: #fff;
  border-radius: 14px 0 0 0;
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.cc-window .hw-bar {
  padding: 9px 12px;
}

.cc-body {
  padding: 16px;
}

.cc-body .ln {
  height: 8px;
  border-radius: 4px;
  background: #e7e9ee;
  margin-bottom: 10px;
}

.cc-body .ln.accent-blue { background: #bcd2fb; width: 62%; }
.cc-body .ln.w80 { width: 80%; }
.cc-body .ln.w45 { width: 45%; }

.cc-window.dark { background: #17181b; }

.cc-window.dark .hw-bar {
  background: #202126;
  border-bottom-color: #2b2c32;
}

.cc-term-body {
  padding: 14px 16px;
  font-family: ui-monospace, monospace;
  font-size: 12px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.78);
  text-align: left;
}

.cc-phone-stage {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 100%;
  width: 100%;
}

@media (max-width: 860px) {
  .color-card { grid-template-columns: 1fr; }
  .cc-text { padding: 28px 24px 8px; }
  .cc-visual { padding: 20px 0 0 20px; }
  .cc-window { min-height: 160px; }
}

/* ── Store badges ──────────────────────────────────── */
.store-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin: 44px auto 0;
  max-width: 720px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  background: #111114;
  color: #fff;
  border-radius: 13px;
  padding: 10px 20px 10px 16px;
  min-width: 186px;
  box-shadow: 0 8px 20px -12px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.store-badge:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px -14px rgba(0, 0, 0, 0.5);
}

.store-badge:active {
  transform: translateY(-1px) scale(0.98);
}

.sb-ic {
  flex: none;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sb-txt {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.sb-top {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
}

.sb-name {
  font-size: 16.5px;
  font-weight: 700;
  white-space: nowrap;
}

/* ── FAQ ───────────────────────────────────────────── */
.faq-list {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}

.faq-item {
  background: var(--gray-card);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  padding: 20px 22px;
  font-family: "Quicksand", sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-align: left;
}

.faq-q .plus {
  flex: none;
  color: var(--blue);
  transition: transform 0.2s ease;
}

.faq-item.open .plus { transform: rotate(45deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.faq-a p {
  margin: 0;
  padding: 0 22px 20px;
  color: #5f5f66;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.65;
}

.faq-mail {
  color: var(--blue);
  font-weight: 700;
}

.faq-mail:hover { text-decoration: underline; }

/* ── Footer ────────────────────────────────────────── */
.big-footer {
  max-width: var(--max);
  margin: 72px auto 32px;
  padding: 0 24px;
}

.footer-panel {
  background: var(--gray-card);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
}

@media (max-width: 860px) {
  .footer-panel { grid-template-columns: 1fr 1fr; }
}

.footer-brand .logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Baloo 2", sans-serif;
  font-weight: 700;
  font-size: 16px;
}

.footer-brand .logo img {
  width: 22px;
  height: 22px;
  border-radius: 6px;
}

.footer-brand p {
  margin: 12px 0 0;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
}

.footer-col h4 {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  color: #55555c;
}

.footer-col a {
  display: block;
  padding: 5px 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
}

.footer-col a:hover { color: var(--ink); }

/* ── Content pages ─────────────────────────────────── */
.page-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #9fd0f7 0%, #6aacf4 100%);
  padding: 126px 24px 96px;
  text-align: center;
}

.page-hero h1 {
  color: #fff;
  font-size: 46px;
  line-height: 1.1;
  text-shadow: 0 2px 18px rgba(30, 70, 140, 0.18);
}

.page-hero .sub {
  margin: 14px auto 0;
  max-width: 46ch;
  color: rgba(255, 255, 255, 0.92);
  font-size: 16.5px;
  font-weight: 600;
}

@media (max-width: 860px) {
  .page-hero { padding: 110px 24px 74px; }
  .page-hero h1 { font-size: 34px; }
}

.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 24px;
}

.page h2 {
  font-size: 25px;
  margin: 42px 0 12px;
}

.page h2:first-child { margin-top: 0; }

.page p,
.page ul {
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.75;
  color: #55555c;
  margin: 0 0 14px;
}

.page ul {
  padding-left: 20px;
}

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

.page strong { font-weight: 700; color: var(--ink); }

.page code {
  font-family: ui-monospace, monospace;
  font-size: 0.85em;
  font-weight: 500;
  background: var(--gray-card);
  border-radius: 6px;
  padding: 2px 7px;
}

.page a.inline-link {
  color: var(--blue);
  font-weight: 700;
}

.page a.inline-link:hover { text-decoration: underline; }

.note-box {
  background: var(--gray-card);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  font-size: 14.5px;
  font-weight: 600;
  color: #55555c;
  margin-top: 24px;
}

.changelog-entry {
  background: var(--gray-card);
  border-radius: var(--radius-md);
  padding: 24px 26px;
  margin-bottom: 16px;
}

.changelog-entry .version-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.changelog-entry .version {
  font-family: "Baloo 2", sans-serif;
  font-size: 22px;
  font-weight: 800;
}

.changelog-entry .date {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.changelog-entry .kind {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #fff;
  background: var(--blue);
  border-radius: 999px;
  padding: 3px 10px;
}

.changelog-entry p {
  margin: 12px 0 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.7;
  color: #55555c;
}

/* ── Motion design ─────────────────────────────────── */
.anim {
  opacity: 0;
  animation: rise 0.9s var(--ease-out) forwards;
}

.a1 { animation-delay: 0.05s; }
.a2 { animation-delay: 0.16s; }
.a3 { animation-delay: 0.3s; }
.a4 { animation-delay: 0.44s; }
.a5 { animation-delay: 0.6s; }

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(28px);
    filter: blur(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(7px);
  transition:
    opacity 0.85s var(--ease-out),
    transform 0.85s var(--ease-out),
    filter 0.85s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}

[data-reveal].in {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.feature-card[data-reveal],
.color-card[data-reveal],
.faq-item[data-reveal] {
  transition:
    opacity 0.85s var(--ease-out),
    transform 0.85s var(--ease-out),
    filter 0.85s var(--ease-out),
    box-shadow 0.3s ease;
  transition-delay: var(--reveal-delay, 0s), var(--reveal-delay, 0s), var(--reveal-delay, 0s), 0s;
}

.clouds {
  animation: drift 26s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: translateX(-14px); }
  to   { transform: translateX(14px); }
}

.hero-window {
  animation: rise 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards,
             hover-float 7s ease-in-out 1.4s infinite alternate;
}

@keyframes hover-float {
  from { transform: translateY(0); }
  to   { transform: translateY(-8px); }
}

.feature-card,
.color-card,
.faq-item {
  transition: transform 0.25s ease, box-shadow 0.25s ease,
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 44px -24px rgba(20, 40, 80, 0.28);
}

.color-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 50px -26px rgba(20, 40, 80, 0.4);
}

@media (prefers-reduced-motion: reduce) {
  .anim,
  .hero-window {
    animation: none;
    opacity: 1;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .clouds,
  .sparkle,
  .cursor-user,
  .link-layer path,
  .marquee-track,
  .cursor {
    animation: none;
  }
  .stage {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .feature-card:hover,
  .color-card:hover,
  .store-badge:hover {
    transform: none;
  }
}
