/* Pilot official site — dark, local-first, mint/cyan */
:root {
  --bg: #060a0f;
  --bg-soft: #081018;
  --panel: rgba(12, 22, 31, 0.74);
  --panel-solid: #0b141c;
  --line: rgba(154, 202, 218, 0.13);
  --line-strong: rgba(123, 240, 208, 0.32);
  --text: #e9f4f4;
  --text-soft: #d3e4e7;
  --muted: #9cb2bb;
  --muted-2: #708993;
  --mint: #7bf0d0;
  --cyan: #4fb6f0;
  --grad: linear-gradient(112deg, #7bf0d0 0%, #5fe2dc 46%, #4fb6f0 100%);
  --grad-text: linear-gradient(100deg, #b6f9e9 0%, #7bf0d0 36%, #6fd8f5 70%, #86caff 100%);
  --radius: 22px;
  --shadow: 0 40px 100px rgba(0, 0, 0, 0.48);
  --wrap: 1180px;
  --mono: "JetBrains Mono", "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --font: "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei", "Noto Sans SC",
    system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 600px at 10% -5%, rgba(123, 240, 208, 0.11), transparent 60%),
    radial-gradient(1000px 700px at 92% 8%, rgba(79, 182, 240, 0.12), transparent 62%),
    radial-gradient(900px 700px at 50% 105%, rgba(74, 140, 200, 0.09), transparent 60%),
    var(--bg);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.28;
  background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 72%);
}

::selection {
  color: #04110d;
  background: var(--mint);
}

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

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

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

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

code,
pre {
  font-family: var(--mono);
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip {
  position: absolute;
  left: -999px;
  top: 10px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: 10px;
  color: #04110d;
  background: var(--mint);
  font-weight: 700;
}

.skip:focus {
  left: 18px;
}

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------------- buttons & brand ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease,
    background-color 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  color: #04110d;
  background: var(--grad);
  box-shadow: 0 10px 30px rgba(93, 224, 213, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 16px 40px rgba(93, 224, 213, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-ghost {
  color: var(--text-soft);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.btn-ghost:hover {
  border-color: rgba(123, 240, 208, 0.28);
  background: rgba(123, 240, 208, 0.06);
}

.btn-lg {
  min-height: 52px;
  padding: 0 26px;
  border-radius: 14px;
  font-size: 15px;
}

.btn-small {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 13px;
}

.btn-small .icon {
  width: 16px;
  height: 16px;
}

.btn-sub {
  padding-left: 10px;
  margin-left: 2px;
  border-left: 1px solid rgba(4, 17, 13, 0.22);
  font-size: 12px;
  font-weight: 600;
  opacity: 0.72;
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  filter: drop-shadow(0 6px 16px rgba(95, 226, 220, 0.18));
}

.brand-name {
  font-size: 22px;
  font-weight: 760;
  letter-spacing: -0.02em;
  line-height: 1;
}

.brand-tag {
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted-2);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.4;
}

/* ---------------- header ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(6, 11, 16, 0.78);
  border-bottom-color: var(--line);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  height: 76px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav a {
  position: relative;
  padding: 9px 13px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 540;
  transition: color 0.18s ease, background-color 0.18s ease;
}

.nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 4px;
  height: 1px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.nav a:hover::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
}

.nav-toggle .icon-close,
.nav-toggle[aria-expanded="true"] .icon-menu {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

/* ---------------- hero ---------------- */

.hero {
  position: relative;
  padding: 76px 0 32px;
}

.hero-glow {
  position: absolute;
  left: 50%;
  top: -280px;
  width: 1200px;
  height: 760px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(123, 240, 208, 0.14), transparent 72%);
  filter: blur(20px);
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(123, 240, 208, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(123, 240, 208, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 60% 54% at 50% 18%, #000 0%, transparent 76%);
  -webkit-mask-image: radial-gradient(ellipse 60% 54% at 50% 18%, #000 0%, transparent 76%);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  align-items: end;
  gap: 64px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 13px 7px 11px;
  border: 1px solid rgba(123, 240, 208, 0.22);
  border-radius: 999px;
  color: #b9e9df;
  background: rgba(123, 240, 208, 0.055);
  font-size: 12px;
  font-weight: 620;
  letter-spacing: 0.03em;
}

.pulse {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(123, 240, 208, 0.12);
}

.pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid rgba(123, 240, 208, 0.4);
  border-radius: inherit;
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.7);
    opacity: 0.9;
  }
  80%,
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

.hero h1 {
  margin-top: 24px;
  font-size: clamp(42px, 5.6vw, 74px);
  font-weight: 780;
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.grad {
  color: transparent;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
}

.lead {
  max-width: 690px;
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(15.5px, 1.5vw, 17.5px);
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-top: 20px;
  color: var(--muted-2);
  font-size: 12.5px;
}

.meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--muted-2);
  opacity: 0.7;
}

.hero-trust {
  display: grid;
  gap: 1px;
  padding: 1px;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

.hero-trust li {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px 17px;
  background: rgba(9, 17, 24, 0.94);
  font-size: 12.5px;
  line-height: 1.55;
}

.hero-trust .icon {
  width: 19px;
  height: 19px;
  color: var(--mint);
  opacity: 0.9;
}

.hero-trust strong {
  display: block;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 650;
}

.hero-trust span {
  color: var(--muted-2);
}

/* ---------------- app window ---------------- */

.hero-visual {
  position: relative;
  margin-top: 76px;
}

.window-glow {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -80px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(79, 182, 240, 0.23), transparent 72%);
  filter: blur(32px);
  pointer-events: none;
}

.app-window {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border: 1px solid rgba(167, 212, 222, 0.18);
  border-radius: 20px;
  background: #0a1218;
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.025) inset,
    0 1px 0 rgba(255, 255, 255, 0.08) inset;
}

.app-titlebar {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 44px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  background: rgba(255, 255, 255, 0.018);
}

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

.traffic i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #2a3944;
}

.traffic i:first-child {
  background: #ff6b6b;
  opacity: 0.7;
}

.traffic i:nth-child(2) {
  background: #f7c948;
  opacity: 0.7;
}

.traffic i:nth-child(3) {
  background: #7bf0d0;
  opacity: 0.65;
}

.app-title {
  color: #c7d8dc;
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.app-title em {
  margin-left: 6px;
  color: #5f747d;
  font-size: 9.5px;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.app-path {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  color: #5e727b;
  font-family: var(--mono);
  font-size: 9.5px;
}

.app-path .icon {
  width: 13px;
  height: 13px;
}

.app-body {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  min-height: 548px;
}

.app-sidebar {
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 16px 12px 13px;
  border-right: 1px solid rgba(255, 255, 255, 0.055);
  background: rgba(5, 10, 14, 0.52);
}

.mini-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 3px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mini-brand img {
  width: 30px;
  height: 30px;
  border-radius: 9px;
}

.mini-brand span {
  display: grid;
  line-height: 1.3;
}

.mini-brand strong {
  font-size: 11.5px;
  font-weight: 700;
}

.mini-brand em {
  color: #5e727b;
  font-size: 8.5px;
  font-style: normal;
}

.mini-new {
  display: grid;
  place-items: center;
  height: 33px;
  border-radius: 8px;
  color: #062019;
  background: linear-gradient(105deg, #8cf3db, #5fdcf0);
  font-size: 10.5px;
  font-weight: 700;
}

.mini-search {
  height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 7px;
  color: #556a73;
  font-size: 9px;
  line-height: 28px;
}

.mini-label {
  display: flex;
  justify-content: space-between;
  padding: 1px 3px;
  color: #6d838c;
  font-size: 8.5px;
  font-weight: 600;
}

.mini-label span {
  color: #4e626a;
  font-weight: 500;
}

.mini-group {
  min-height: 0;
}

.mini-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 3px 5px;
  color: #8da2aa;
  font-size: 9px;
  font-weight: 650;
}

.mini-count {
  padding: 0 4px;
  border-radius: 4px;
  color: #60747c;
  background: rgba(255, 255, 255, 0.05);
  font-size: 8px;
}

.mini-session {
  display: grid;
  gap: 1px;
  padding: 7px 9px;
  border: 1px solid transparent;
  border-radius: 7px;
  line-height: 1.4;
}

.mini-session.is-active {
  border-color: rgba(123, 240, 208, 0.18);
  background: rgba(123, 240, 208, 0.075);
}

.mini-session strong {
  color: #c3d4d8;
  font-size: 9.5px;
  font-weight: 580;
}

.mini-session em {
  color: #596d75;
  font-size: 8px;
  font-style: normal;
}

.mini-footer {
  display: grid;
  gap: 6px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.mini-status {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #62767e;
  font-size: 8.5px;
}

.dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--muted-2);
}

.dot.ok {
  background: var(--mint);
  box-shadow: 0 0 6px rgba(123, 240, 208, 0.55);
}

.dot.warn {
  background: #f3bd5a;
  box-shadow: 0 0 6px rgba(243, 189, 90, 0.5);
}

.mini-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  margin-top: 3px;
}

.mini-nav b {
  padding: 5px 0;
  border-radius: 5px;
  color: #687d85;
  background: rgba(255, 255, 255, 0.025);
  font-size: 8px;
  font-weight: 550;
  text-align: center;
}

.app-main {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.app-topbar {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 46px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #c6d6da;
  font-size: 10px;
  white-space: nowrap;
}

.topbar-workspace {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #62767e;
  font-size: 9px;
}

.topbar-workspace::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: #3c5059;
}

.app-topbar strong {
  font-size: 10.5px;
  font-weight: 620;
}

.topbar-spacer {
  flex: 1;
}

.mini-select,
.mini-running,
.mini-model {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 6px;
  color: #7e959d;
  background: rgba(255, 255, 255, 0.025);
  font-size: 8.5px;
}

.mini-running {
  border-color: rgba(243, 189, 90, 0.18);
  color: #d6b269;
  background: rgba(243, 189, 90, 0.06);
}

.mini-running i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #f3bd5a;
  animation: blink 1.4s ease-in-out infinite;
}

.mini-model i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--mint);
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

.app-chat {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 22px 12px;
  overflow: hidden;
}

.bubble {
  max-width: 88%;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 10.5px;
  line-height: 1.65;
}

.bubble p {
  margin: 0;
}

.bubble p + p {
  margin-top: 8px;
}

.bubble.user {
  align-self: flex-end;
  border: 1px solid rgba(123, 240, 208, 0.14);
  color: #cdeee6;
  background: rgba(123, 240, 208, 0.07);
  border-bottom-right-radius: 4px;
}

.bubble.assistant {
  align-self: flex-start;
  width: 96%;
  border: 1px solid rgba(255, 255, 255, 0.055);
  color: #a9bdc4;
  background: rgba(255, 255, 255, 0.022);
  border-bottom-left-radius: 4px;
}

.bubble.assistant.short {
  width: auto;
  max-width: 78%;
  color: #91a7ae;
}

.mini-plan {
  margin-top: 10px;
  padding: 10px 11px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.16);
}

.mini-plan-head {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-bottom: 7px;
  color: #b9ccd1;
  font-size: 9.5px;
  font-weight: 600;
}

.mini-plan-head em {
  margin-left: auto;
  color: #5d727a;
  font-size: 8px;
  font-style: normal;
}

.mini-plan-badge {
  padding: 2px 6px;
  border-radius: 4px;
  color: #7bf0d0;
  background: rgba(123, 240, 208, 0.1);
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.mini-step {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 0;
  color: #758a92;
  font-size: 9px;
}

.mini-step i {
  position: relative;
  width: 11px;
  height: 11px;
  border: 1px solid #3a4d55;
  border-radius: 50%;
}

.mini-step.done {
  color: #91a6ad;
}

.mini-step.done i {
  border-color: rgba(123, 240, 208, 0.35);
  background: rgba(123, 240, 208, 0.1);
}

.mini-step.done i::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 2.5px;
  width: 3px;
  height: 5px;
  border: solid #7bf0d0;
  border-width: 0 1.2px 1.2px 0;
  transform: rotate(42deg);
}

.mini-step.active {
  color: #d8c48c;
}

.mini-step.active i {
  border-color: rgba(243, 189, 90, 0.4);
  border-top-color: #f3bd5a;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.mini-tool {
  display: grid;
  gap: 4px;
  margin-top: 9px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 7px;
  background: #071016;
  font-family: var(--mono);
  font-size: 8.5px;
}

.tool-line {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #8fa4ab;
}

.tool-line b {
  color: #7bf0d0;
}

.tool-line em {
  margin-left: auto;
  color: #c8ab6a;
  font-style: normal;
}

.tool-out {
  color: #5f9c84;
}

.mini-diff {
  display: grid;
  gap: 2px;
  margin-top: 9px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 7px;
  background: #071016;
  font-family: var(--mono);
  font-size: 8.5px;
  overflow: hidden;
}

.diff-file {
  display: flex;
  justify-content: space-between;
  padding-bottom: 4px;
  color: #8ba0a7;
}

.diff-file em {
  color: #5f9c84;
  font-style: normal;
}

.diff-line {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.diff-line.del {
  color: #b06a6a;
}

.diff-line.add {
  color: #5f9c84;
}

.app-composer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: auto 18px 16px;
  padding: 11px 11px 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 11px;
  color: #4f646c;
  background: rgba(255, 255, 255, 0.022);
  font-size: 9.5px;
}

.composer-send {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  margin-left: auto;
  border-radius: 7px;
  color: #062019;
  background: linear-gradient(105deg, #8cf3db, #5fdcf0);
}

.composer-send .icon {
  width: 12px;
  height: 12px;
}

.floating-card {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 15px;
  border: 1px solid rgba(167, 212, 222, 0.17);
  border-radius: 13px;
  background: rgba(11, 21, 29, 0.86);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  font-size: 10px;
  line-height: 1.4;
  animation: float 6s ease-in-out infinite;
}

.floating-card .icon {
  width: 20px;
  height: 20px;
  color: var(--mint);
}

.floating-card strong {
  display: block;
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 650;
}

.floating-card span span,
.floating-card > span {
  color: var(--muted-2);
}

.float-plan {
  left: -34px;
  top: 120px;
}

.float-local {
  right: -30px;
  bottom: 92px;
  animation-delay: -2.8s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* ---------------- metrics ---------------- */

.metrics {
  padding: 26px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.012);
}

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

.metric {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 11px;
  min-height: 56px;
  border-left: 1px solid var(--line);
}

.metric:first-child {
  border-left: 0;
}

.metric strong {
  color: transparent;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  font-size: 30px;
  font-weight: 760;
  letter-spacing: -0.03em;
  line-height: 1;
}

.metric span {
  color: var(--muted-2);
  font-size: 12px;
}

/* ---------------- section base ---------------- */

.section {
  position: relative;
  padding: 112px 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 50px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--mint);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 18px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--mint));
}

.section-head h2,
.split-copy h2,
.download-card h2 {
  margin-top: 15px;
  font-size: clamp(30px, 3.5vw, 46px);
  font-weight: 740;
  line-height: 1.2;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.section-head > p:last-child,
.split-copy > p,
.download-card > p {
  margin-top: 17px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.85;
}

/* ---------------- bento ---------------- */

.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.card {
  position: relative;
  overflow: hidden;
  padding: 27px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(155deg, rgba(17, 30, 40, 0.72), rgba(8, 15, 22, 0.78));
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card::before {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  top: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(123, 240, 208, 0.7), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(123, 240, 208, 0.23);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}

.card:hover::before {
  opacity: 1;
}

.card-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(123, 240, 208, 0.16);
  border-radius: 9px;
  color: var(--mint);
  background: rgba(123, 240, 208, 0.06);
}

.card-icon .icon {
  width: 18px;
  height: 18px;
}

.card-tag {
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.card h3 {
  margin-top: 19px;
  font-size: 20px;
  font-weight: 670;
  line-height: 1.38;
  letter-spacing: -0.015em;
}

.card > p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.card-loop {
  grid-column: span 7;
}

.card-diff {
  grid-column: span 5;
}

.card-approval,
.card-queue,
.card-context {
  grid-column: span 4;
}

.card-memory {
  grid-column: span 12;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 38px;
  align-items: center;
}

.loop-visual {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 24px;
}

.loop-visual::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 17px;
  height: 1px;
  background: linear-gradient(90deg, rgba(123, 240, 208, 0.05), rgba(123, 240, 208, 0.4), rgba(79, 182, 240, 0.15));
}

.loop-node {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 3px;
  padding-top: 0;
  text-align: center;
}

.loop-node > span {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border: 1px solid rgba(123, 240, 208, 0.25);
  border-radius: 50%;
  color: var(--mint);
  background: #0b171d;
  font-family: var(--mono);
  font-size: 10px;
  box-shadow: 0 0 0 5px rgba(123, 240, 208, 0.025);
}

.loop-node strong {
  margin-top: 6px;
  color: var(--text-soft);
  font-size: 11.5px;
  font-weight: 620;
}

.loop-node em {
  color: var(--muted-2);
  font-size: 9.5px;
  font-style: normal;
  line-height: 1.5;
}

.diff-visual {
  margin-top: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  background: #071016;
}

.diff-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #6f848c;
  font-family: var(--mono);
  font-size: 8.5px;
}

.diff-bar .traffic i {
  width: 6px;
  height: 6px;
}

.diff-bar em {
  color: #8fa4ab;
  font-style: normal;
}

.diff-bar > span:last-child {
  margin-left: auto;
  color: #5f9c84;
}

.diff-visual pre {
  margin: 0;
  padding: 12px;
  overflow: hidden;
  color: #71878e;
  font-size: 9px;
  line-height: 1.8;
}

.diff-visual code {
  display: grid;
}

.ln {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ln:nth-child(2),
.ln:nth-child(3),
.ln:nth-child(4),
.ln:nth-child(5) {
  color: #75ac91;
  background: rgba(123, 240, 208, 0.045);
}

.ln:nth-child(1) {
  color: #b27373;
  background: rgba(220, 100, 100, 0.045);
}

.seg-visual {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  margin-top: 20px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.2);
}

.seg-visual span {
  padding: 7px 4px;
  border-radius: 6px;
  color: #6c8189;
  font-size: 9px;
  text-align: center;
}

.seg-visual .is-active {
  color: #b8f4e4;
  background: rgba(123, 240, 208, 0.1);
  box-shadow: inset 0 0 0 1px rgba(123, 240, 208, 0.18);
}

.approve-visual {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 11px;
  padding: 11px 12px;
  border: 1px solid rgba(243, 189, 90, 0.16);
  border-radius: 9px;
  background: rgba(243, 189, 90, 0.045);
}

.approve-visual > div {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.approve-visual strong {
  color: #e0c07e;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 600;
}

.approve-visual em {
  color: #7f9198;
  font-size: 8.5px;
  font-style: normal;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.approve-actions {
  display: flex;
  gap: 5px;
  margin-left: auto;
  flex: none;
}

.approve-actions b {
  padding: 4px 8px;
  border-radius: 5px;
  color: #071410;
  background: #d9b871;
  font-size: 8px;
  font-weight: 700;
}

.approve-actions .ghost {
  color: #8ba0a7;
  background: rgba(255, 255, 255, 0.05);
}

.queue-visual {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 20px;
}

.queue-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 9px;
  border: 1px solid rgba(243, 189, 90, 0.16);
  border-radius: 7px;
  color: #d3b978;
  background: rgba(243, 189, 90, 0.05);
  font-size: 9px;
}

.queue-chip.soft {
  border-color: rgba(255, 255, 255, 0.07);
  color: #8da2a9;
  background: rgba(255, 255, 255, 0.025);
}

.queue-chip.soft::before {
  content: "↳";
  color: #5f747c;
}

.queue-actions {
  display: flex;
  gap: 6px;
  width: 100%;
  margin-top: 4px;
}

.queue-actions b {
  padding: 6px 10px;
  border-radius: 6px;
  color: #062019;
  background: linear-gradient(105deg, #8cf3db, #5fdcf0);
  font-size: 8.5px;
  font-weight: 700;
}

.queue-actions .ghost {
  color: #92a7ae;
  background: rgba(255, 255, 255, 0.05);
}

.context-visual {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.ctx-row {
  display: grid;
  grid-template-columns: 64px 1fr 38px;
  align-items: center;
  gap: 9px;
  font-size: 8.5px;
}

.ctx-row span {
  color: #899da4;
}

.ctx-row i {
  height: 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.ctx-row i::before {
  content: "";
  display: block;
  width: var(--w);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7bf0d0, #4fb6f0);
  opacity: 0.75;
}

.ctx-row em {
  color: #657a82;
  font-family: var(--mono);
  font-size: 8px;
  font-style: normal;
  text-align: right;
}

.ctx-row.dim {
  opacity: 0.55;
}

.ctx-row.dim i::before {
  background: #5c7580;
}

.memory-copy .ticks {
  margin-top: 22px;
}

.memory-visual {
  display: grid;
  gap: 10px;
}

.mem-card {
  padding: 17px 18px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 13px;
  background: rgba(5, 11, 16, 0.48);
}

.mem-kicker {
  color: var(--mint);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mem-card p {
  margin-top: 8px;
  color: #a9bdc4;
  font-size: 11.5px;
  line-height: 1.7;
}

.mem-card code {
  padding: 1px 5px;
  border-radius: 4px;
  color: #93e8d4;
  background: rgba(123, 240, 208, 0.08);
  font-size: 10px;
}

.mem-meta {
  display: block;
  margin-top: 9px;
  color: #5f747c;
  font-size: 8.5px;
}

.mem-runs {
  display: flex;
  gap: 5px;
  margin-top: 12px;
}

.mem-runs i {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: rgba(123, 240, 208, 0.12);
  box-shadow: inset 0 0 0 1px rgba(123, 240, 208, 0.18);
}

.mem-runs i::after {
  content: "";
  display: block;
  width: 4px;
  height: 7px;
  margin: 4px auto 0;
  border: solid #7bf0d0;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(42deg);
}

.mem-runs i.warn {
  background: rgba(243, 189, 90, 0.1);
  box-shadow: inset 0 0 0 1px rgba(243, 189, 90, 0.2);
}

.mem-runs i.warn::after {
  width: 1.5px;
  height: 6px;
  margin-top: 4px;
  border: 0;
  border-radius: 1px;
  background: #e3bc6c;
  transform: none;
}

.ticks {
  display: grid;
  gap: 10px;
}

.ticks li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.65;
}

.ticks .icon {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  color: var(--mint);
}

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

.workflow {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.012), transparent 55%);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 24px 20px 0;
  border-top: 1px solid var(--line);
}

.steps li::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 10px rgba(123, 240, 208, 0.7);
}

.step-num {
  display: block;
  color: rgba(123, 240, 208, 0.5);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.steps h3 {
  margin-top: 12px;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.steps p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.75;
}

/* ---------------- evolution ---------------- */

.evolution {
  border-top: 1px solid var(--line);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 76px;
  align-items: center;
}

.split-reverse {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.split-copy .ticks {
  margin-top: 24px;
}

.note {
  margin-top: 22px !important;
  padding: 12px 15px;
  border-left: 2px solid rgba(123, 240, 208, 0.4);
  color: var(--muted-2) !important;
  background: rgba(123, 240, 208, 0.035);
  font-size: 12px !important;
  line-height: 1.7 !important;
}

.evolution-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(155deg, rgba(17, 30, 40, 0.78), rgba(8, 15, 22, 0.82));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}

.evo-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.evo-kicker {
  display: block;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.evo-head strong {
  display: block;
  margin-top: 5px;
  color: var(--text-soft);
  font-size: 16px;
  font-weight: 650;
}

.evo-state {
  padding: 4px 9px;
  border: 1px solid rgba(243, 189, 90, 0.22);
  border-radius: 6px;
  color: #dfbb74;
  background: rgba(243, 189, 90, 0.06);
  font-size: 9px;
  font-weight: 650;
}

.evo-score {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 0;
}

.score-ring {
  position: relative;
  display: grid;
  place-content: center;
  flex: none;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: conic-gradient(var(--mint) calc(var(--score) * 1%), rgba(255, 255, 255, 0.06) 0);
  text-align: center;
}

.score-ring::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: #0b141b;
}

.score-ring span,
.score-ring em {
  position: relative;
  z-index: 1;
}

.score-ring span {
  color: var(--text);
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 650;
  line-height: 1;
}

.score-ring em {
  margin-top: 4px;
  color: var(--muted-2);
  font-size: 8px;
  font-style: normal;
}

.score-copy strong {
  color: #b8f4e4;
  font-size: 13px;
  font-weight: 650;
}

.score-copy p {
  margin-top: 5px;
  color: var(--muted-2);
  font-size: 10.5px;
  line-height: 1.65;
}

.evo-flow {
  position: relative;
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--line);
}

.evo-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  background: #0a131a;
}

.evo-step i {
  position: relative;
  flex: none;
  width: 16px;
  height: 16px;
  border: 1px solid #3a4d55;
  border-radius: 50%;
}

.evo-step.done i {
  border-color: rgba(123, 240, 208, 0.35);
  background: rgba(123, 240, 208, 0.1);
}

.evo-step.done i::after {
  content: "";
  position: absolute;
  left: 4.5px;
  top: 3.5px;
  width: 4px;
  height: 7px;
  border: solid #7bf0d0;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(42deg);
}

.evo-step.active i {
  border-color: rgba(243, 189, 90, 0.42);
  box-shadow: 0 0 0 4px rgba(243, 189, 90, 0.05);
}

.evo-step.active i::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: #f3bd5a;
}

.evo-step span {
  display: grid;
  gap: 1px;
}

.evo-step strong {
  color: #c4d4d8;
  font-size: 11px;
  font-weight: 600;
}

.evo-step em {
  color: #657a82;
  font-size: 9px;
  font-style: normal;
}

.evo-diff {
  display: grid;
  gap: 7px;
  margin-top: 15px;
  padding: 13px 14px;
  border: 1px dashed rgba(255, 255, 255, 0.09);
  border-radius: 9px;
  color: #879ba2;
  font-size: 10px;
  line-height: 1.65;
}

.evo-diff b {
  margin-right: 6px;
  color: var(--mint);
  font-weight: 600;
}

.evo-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.evo-actions span {
  flex: 1;
  padding: 9px 12px;
  border-radius: 8px;
  color: #062019;
  background: linear-gradient(105deg, #8cf3db, #5fdcf0);
  font-size: 10px;
  font-weight: 700;
  text-align: center;
}

.evo-actions .ghost {
  color: #8da2a9;
  background: rgba(255, 255, 255, 0.05);
}

/* ---------------- security ---------------- */

.security {
  border-top: 1px solid var(--line);
}

.security-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(155deg, rgba(15, 27, 36, 0.72), rgba(7, 13, 19, 0.84));
}

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

.sec-item {
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.sec-item:nth-child(3n) {
  border-right: 0;
}

.sec-item:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.sec-item .icon {
  width: 22px;
  height: 22px;
  color: var(--mint);
}

.sec-item h3 {
  margin-top: 15px;
  color: var(--text-soft);
  font-size: 14.5px;
  font-weight: 650;
}

.sec-item p {
  margin-top: 7px;
  color: var(--muted-2);
  font-size: 11.5px;
  line-height: 1.75;
}

.code-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  background: #071016;
}

.code-strip span {
  padding: 12px 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: #71868d;
  font-family: var(--mono);
  font-size: 9.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.code-strip span:nth-child(2n) {
  border-right: 0;
}

.code-strip span:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.code-strip b {
  display: inline-block;
  min-width: 46px;
  color: var(--mint);
  font-weight: 500;
}

/* ---------------- phone ---------------- */

.phone {
  border-top: 1px solid var(--line);
  background: radial-gradient(900px 500px at 28% 50%, rgba(79, 182, 240, 0.08), transparent 65%);
}

.phone-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 620px;
}

.phone-orbit {
  position: absolute;
  width: 480px;
  height: 480px;
  border: 1px solid rgba(123, 240, 208, 0.1);
  border-radius: 50%;
}

.phone-orbit::before,
.phone-orbit::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(123, 240, 208, 0.07);
  border-radius: 50%;
}

.phone-orbit::before {
  inset: 48px;
}

.phone-orbit::after {
  inset: -54px;
  border-color: rgba(79, 182, 240, 0.07);
}

.phone-device {
  position: relative;
  z-index: 2;
  width: 280px;
  padding: 9px;
  border: 1px solid rgba(167, 212, 222, 0.2);
  border-radius: 42px;
  background: linear-gradient(160deg, #1b2a33, #0a1117 60%);
  box-shadow: 0 50px 100px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.phone-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 548px;
  padding: 12px 13px 14px;
  overflow: hidden;
  border-radius: 34px;
  background: #080e13;
}

.phone-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(340px 220px at 50% -10%, rgba(123, 240, 208, 0.12), transparent 70%);
  pointer-events: none;
}

.phone-status {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 7px;
  color: #7e939b;
  font-size: 8.5px;
  font-weight: 600;
}

.phone-notch {
  width: 66px;
  height: 18px;
  margin-top: -3px;
  border-radius: 10px;
  background: #05090c;
}

.phone-app-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 4px 9px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

.phone-brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 700;
}

.phone-brand img {
  border-radius: 6px;
}

.phone-online {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 7px;
  border: 1px solid rgba(123, 240, 208, 0.16);
  border-radius: 999px;
  color: #a6e8d7;
  background: rgba(123, 240, 208, 0.06);
  font-size: 8px;
}

.phone-online i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 6px rgba(123, 240, 208, 0.6);
}

.phone-session {
  display: grid;
  gap: 2px;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.022);
}

.phone-session-kicker {
  color: #60747c;
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.06em;
}

.phone-session strong {
  color: #c9d9dd;
  font-size: 11.5px;
  font-weight: 620;
}

.phone-session em {
  color: #6e838b;
  font-size: 8.5px;
  font-style: normal;
}

.phone-progress {
  height: 3px;
  margin-top: 6px;
  overflow: hidden;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.06);
}

.phone-progress i {
  display: block;
  width: 62%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7bf0d0, #4fb6f0);
}

.phone-msg {
  align-self: flex-start;
  max-width: 84%;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 10px;
  border-bottom-left-radius: 3px;
  color: #9db2b9;
  background: rgba(255, 255, 255, 0.022);
  font-size: 9px;
  line-height: 1.55;
}

.phone-tool {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 8px;
  color: #7d939a;
  background: #071016;
  font-family: var(--mono);
  font-size: 8px;
}

.phone-tool em {
  color: #5f9c84;
  font-style: normal;
}

.phone-approval {
  padding: 11px;
  border: 1px solid rgba(243, 189, 90, 0.2);
  border-radius: 11px;
  background: rgba(243, 189, 90, 0.045);
}

.phone-approval strong {
  color: #e2c17f;
  font-size: 9.5px;
  font-weight: 650;
}

.phone-approval p {
  margin-top: 4px;
  color: #8b9ea4;
  font-size: 8.5px;
  line-height: 1.55;
}

.phone-approval code {
  color: #d3b978;
  font-size: 8px;
}

.phone-approval > div {
  display: flex;
  gap: 5px;
  margin-top: 8px;
}

.phone-approval span {
  padding: 4px 7px;
  border-radius: 5px;
  color: #8b9fa6;
  background: rgba(255, 255, 255, 0.05);
  font-size: 7.5px;
}

.phone-approval .ok {
  color: #071410;
  background: #d9b871;
  font-weight: 700;
}

.phone-approval .ghost {
  color: #8b9fa6;
}

.phone-composer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding: 8px 8px 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  color: #53676f;
  background: rgba(255, 255, 255, 0.02);
  font-size: 8.5px;
}

.phone-composer i {
  width: 20px;
  height: 20px;
  margin-left: auto;
  border-radius: 6px;
  background: linear-gradient(105deg, #8cf3db, #5fdcf0);
}

.phone-float {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  border: 1px solid rgba(167, 212, 222, 0.17);
  border-radius: 10px;
  color: #93a8b0;
  background: rgba(11, 21, 29, 0.9);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 9px;
  animation: float 6.5s ease-in-out infinite;
}

.phone-float .icon {
  width: 14px;
  height: 14px;
  color: var(--mint);
}

.float-sync {
  top: 120px;
  right: 4px;
}

.float-enc {
  bottom: 128px;
  left: 4px;
  animation-delay: -3.1s;
}

/* ---------------- download ---------------- */

.download {
  border-top: 1px solid var(--line);
}

.download-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 56px;
  padding: 50px;
  overflow: hidden;
  border: 1px solid rgba(123, 240, 208, 0.18);
  border-radius: 28px;
  background:
    radial-gradient(700px 320px at 8% 0%, rgba(123, 240, 208, 0.12), transparent 65%),
    radial-gradient(600px 380px at 95% 100%, rgba(79, 182, 240, 0.1), transparent 66%),
    linear-gradient(155deg, rgba(16, 29, 38, 0.92), rgba(7, 13, 19, 0.94));
  box-shadow: 0 40px 110px rgba(0, 0, 0, 0.4);
}

.download-card::before {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(123, 240, 208, 0.7), transparent);
}

.download-logo {
  width: 76px;
  height: 76px;
  border-radius: 20px;
  filter: drop-shadow(0 14px 30px rgba(95, 226, 220, 0.25));
}

.download-card .kicker {
  margin-top: 22px;
}

.download-card h2 {
  max-width: 560px;
}

.download-card > p {
  max-width: 580px;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 28px;
}

.download-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-top: 22px;
  color: var(--muted-2);
  font-size: 11px;
}

.download-meta b {
  color: #a9bdc4;
  font-weight: 550;
}

.download-meta .sha {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.download-meta code {
  max-width: 240px;
  overflow: hidden;
  color: #7d9299;
  font-size: 9.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.download-side {
  display: flex;
  flex-direction: column;
  gap: 0;
  align-self: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(5, 11, 16, 0.4);
}

.spec {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.spec span {
  flex: none;
  color: var(--muted-2);
  font-size: 10px;
}

.spec strong {
  color: #a9bdc4;
  font-size: 10.5px;
  font-weight: 560;
  text-align: right;
}

.platform-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 14px 16px;
  color: #748a92;
  font-size: 9.5px;
  line-height: 1.65;
}

.platform-note .icon {
  width: 15px;
  height: 15px;
  margin-top: 2px;
  color: var(--mint);
}

/* ---------------- FAQ ---------------- */

.faq {
  border-top: 1px solid var(--line);
}

.faq-wrap {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 72px;
  align-items: start;
}

.faq .section-head {
  position: sticky;
  top: 112px;
  margin-bottom: 0;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.018);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.faq-list details[open] {
  border-color: rgba(123, 240, 208, 0.2);
  background: rgba(123, 240, 208, 0.028);
}

.faq-list summary {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px 20px;
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 590;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  flex: none;
  width: 22px;
  height: 22px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--mint);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  text-align: center;
  transition: transform 0.2s ease;
}

.faq-list details[open] summary::after {
  transform: rotate(45deg);
}

.faq-list details p {
  padding: 0 20px 20px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.8;
}

.faq-list code {
  padding: 1px 5px;
  border-radius: 4px;
  color: #93e8d4;
  background: rgba(123, 240, 208, 0.08);
  font-size: 11px;
}

/* ---------------- footer ---------------- */

.site-footer {
  padding: 58px 0 34px;
  border-top: 1px solid var(--line);
  background: rgba(4, 8, 12, 0.55);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px 64px;
  align-items: start;
}

.footer-brand .brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.footer-brand .brand-name {
  font-size: 19px;
}

.footer-brand p {
  margin-top: 14px;
  color: var(--muted-2);
  font-size: 11.5px;
  line-height: 1.8;
}

.footer-brand p a {
  color: #9fc9bf;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 24px;
  padding-top: 8px;
}

.footer-nav a {
  color: var(--muted);
  font-size: 12px;
  transition: color 0.18s ease;
}

.footer-nav a:hover {
  color: var(--mint);
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  grid-column: 1 / -1;
  gap: 8px 22px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: #5b7078;
  font-size: 10.5px;
}

.footer-meta a:hover {
  color: var(--muted);
}

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

.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* ---------------- responsive ---------------- */

@media (max-width: 1120px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 44px;
  }

  .float-plan {
    left: 10px;
  }

  .float-local {
    right: 10px;
  }

  .split,
  .split-reverse {
    gap: 50px;
  }

  .download-card {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 40px;
    padding: 42px;
  }

  .faq-wrap {
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 50px;
  }
}

@media (max-width: 980px) {
  .brand-tag {
    display: none;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .hero-trust {
    grid-template-columns: repeat(2, 1fr);
    max-width: 640px;
  }

  .hero-trust li:nth-child(2) {
    border-left: 1px solid rgba(255, 255, 255, 0.04);
  }

  .hero-visual {
    margin-top: 56px;
  }

  .app-body {
    grid-template-columns: 210px minmax(0, 1fr);
    min-height: 500px;
  }

  .app-chat {
    padding: 16px 18px 10px;
  }

  .bubble {
    max-width: 96%;
  }

  .bubble.assistant {
    width: 100%;
  }

  .floating-card {
    display: none;
  }

  .card-loop,
  .card-diff {
    grid-column: span 12;
  }

  .card-approval,
  .card-queue,
  .card-context {
    grid-column: span 6;
  }

  .card-memory {
    grid-column: span 12;
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 34px 24px;
  }

  .split,
  .split-reverse {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .split-reverse .phone-stage {
    order: 2;
  }

  .evolution-card {
    max-width: 640px;
  }

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

  .sec-item:nth-child(3n) {
    border-right: 1px solid var(--line);
  }

  .sec-item:nth-child(2n) {
    border-right: 0;
  }

  .sec-item:nth-last-child(-n + 3) {
    border-bottom: 1px solid var(--line);
  }

  .sec-item:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .phone-stage {
    min-height: 590px;
  }

  .download-card {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .download-side {
    width: 100%;
  }

  .faq-wrap {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .faq .section-head {
    position: static;
  }
}

@media (max-width: 760px) {
  .wrap {
    padding: 0 20px;
  }

  .header-inner {
    height: 66px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .brand-name {
    font-size: 20px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: grid;
    gap: 2px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(8, 15, 21, 0.97);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav a {
    padding: 12px 14px;
    font-size: 14px;
  }

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

  .header-actions .btn-small {
    display: none;
  }

  .hero {
    padding-top: 52px;
  }

  .hero h1 {
    margin-top: 20px;
    font-size: clamp(34px, 9.25vw, 46px);
  }

  .lead {
    margin-top: 20px;
    font-size: 14.5px;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }

  .hero-trust {
    grid-template-columns: 1fr;
  }

  .hero-trust li:nth-child(2) {
    border-left: 0;
  }

  .app-window {
    border-radius: 15px;
  }

  .app-titlebar {
    height: 38px;
    padding: 0 12px;
  }

  .app-title em {
    display: none;
  }

  .app-path {
    display: none;
  }

  .app-body {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .app-sidebar {
    display: none;
  }

  .app-topbar {
    height: 42px;
    padding: 0 12px;
    gap: 7px;
  }

  .topbar-workspace,
  .mini-select,
  .topbar-spacer {
    display: none;
  }

  .app-topbar strong {
    margin-right: auto;
  }

  .app-chat {
    padding: 13px 12px 8px;
    gap: 10px;
  }

  .bubble {
    padding: 9px 10px;
    font-size: 9px;
  }

  .bubble.assistant {
    width: 100%;
  }

  .mini-plan {
    padding: 8px;
  }

  .mini-tool,
  .mini-diff {
    display: none;
  }

  .app-composer {
    margin: auto 12px 12px;
    padding: 9px 9px 9px 11px;
    font-size: 8.5px;
  }

  .metrics {
    padding: 10px 0;
  }

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

  .metric {
    justify-content: flex-start;
    min-height: 64px;
    padding-left: 20px;
    border-bottom: 1px solid var(--line);
  }

  .metric:nth-child(1),
  .metric:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }

  .metric:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .metric:nth-child(odd) {
    border-left: 0;
  }

  .metric strong {
    font-size: 26px;
  }

  .section {
    padding: 76px 0;
  }

  .section-head {
    margin-bottom: 34px;
  }

  .section-head h2,
  .split-copy h2,
  .download-card h2 {
    font-size: clamp(27px, 7.4vw, 36px);
  }

  .bento {
    gap: 14px;
  }

  .card {
    grid-column: span 12 !important;
    padding: 22px;
  }

  .loop-visual {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 10px;
  }

  .loop-visual::before {
    display: none;
  }

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

  .steps li {
    padding-top: 20px;
  }

  .evolution-card {
    padding: 20px;
  }

  .evo-score {
    gap: 14px;
  }

  .score-ring {
    width: 76px;
    height: 76px;
  }

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

  .sec-item {
    border-right: 0 !important;
    border-bottom: 1px solid var(--line) !important;
  }

  .sec-item:last-child {
    border-bottom: 0 !important;
  }

  .code-strip {
    grid-template-columns: 1fr;
  }

  .code-strip span {
    border-right: 0;
  }

  .code-strip span:nth-last-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  }

  .code-strip span:last-child {
    border-bottom: 0;
  }

  .phone-stage {
    min-height: 560px;
  }

  .phone-orbit {
    width: 380px;
    height: 380px;
  }

  .phone-device {
    width: 258px;
  }

  .phone-screen {
    min-height: 512px;
  }

  .phone-float {
    font-size: 8px;
    padding: 7px 9px;
  }

  .float-sync {
    right: -2px;
  }

  .float-enc {
    left: -2px;
  }

  .download-card {
    padding: 26px 22px;
    border-radius: 22px;
  }

  .download-logo {
    width: 62px;
    height: 62px;
    border-radius: 16px;
  }

  .download-actions .btn {
    width: 100%;
  }

  .download-meta {
    display: grid;
    gap: 7px;
  }

  .download-meta code {
    max-width: 100%;
  }

  .faq-list summary {
    padding: 15px 16px;
    font-size: 13px;
  }

  .faq-list details p {
    padding: 0 16px 17px;
  }

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

  .footer-nav {
    justify-content: flex-start;
    padding-top: 0;
  }

  .footer-meta {
    padding-top: 20px;
  }
}

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

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

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