/* =========================================================
   Raycast homepage — local recreation
   ========================================================= */
:root {
  --bg: #07080a;
  --bg-2: #0c0d0f;
  --text: #ffffff;
  --muted: #9c9c9d;
  --dim: #6a6b6c;
  --line: rgba(255, 255, 255, 0.06);
  --line-2: rgba(255, 255, 255, 0.1);
  --red: #ff6363;
  --glass: linear-gradient(137deg, rgba(17, 18, 20, 0.75) 4.87%, rgba(12, 13, 15, 0.9) 75.88%);
  --glass-solid: linear-gradient(137deg, #111214 4.87%, #0c0d0f 75.88%);
  --inset: inset 0 1px 0 0 rgba(255, 255, 255, 0.1);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --font: "Inter", "Inter Fallback", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --emoji: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", var(--font);
  --maxw: 1204px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.15;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
svg { display: block; }
kbd { font-family: var(--font); }
::selection { background: rgba(255, 99, 99, 0.35); }

.center { display: flex; justify-content: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 500; letter-spacing: 0.2px; white-space: nowrap;
  transition: transform .2s var(--ease), background .2s, box-shadow .2s, opacity .2s;
}
.btn svg { width: 16px; height: 16px; }
.btn-light {
  color: #0b0b0c;
  background: linear-gradient(180deg, #ffffff 0%, #d9d9da 100%);
  box-shadow: 0 0 0 1px rgba(255,255,255,.2), 0 1px 0 0 rgba(255,255,255,.8) inset, 0 6px 16px -4px rgba(0,0,0,.6), 0 0 24px rgba(255,255,255,.08);
}
.btn-light:hover { background: linear-gradient(180deg, #fff 0%, #ececec 100%); }
.btn-light:active { transform: scale(.98); }
.btn-sm { font-size: 14px; height: 36px; padding: 0 12px; border-radius: 8px; }
.btn-md { font-size: 15px; height: 42px; padding: 0 16px; border-radius: 10px; }
.btn-lg { font-size: 16px; height: 50px; padding: 0 22px; border-radius: 12px; }
.btn-lg svg { width: 18px; height: 18px; }
.btn-ghost {
  font-size: 14px; height: 40px; padding: 0 16px; border-radius: 10px; color: #e6e6e6;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 0 0 1px rgba(255,255,255,.08);
}
.btn-ghost:hover { background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.05)); color: #fff; }
.btn-ghost svg { width: 14px; height: 14px; }
.ico-apple { margin-top: -2px; }

/* ---------- Nav ---------- */
.nav-wrap {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding: 16px 16px 0;
  pointer-events: none;
}
.nav {
  pointer-events: auto;
  max-width: var(--maxw); height: 76px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 32px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--glass);
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.15);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  transition: background .3s;
}
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; letter-spacing: .2px; flex: 0 0 auto; }
.logo-mark { width: 28px; height: 28px; filter: drop-shadow(0 0 8px rgba(255, 99, 99, .35)); }
.nav-links { display: flex; align-items: center; gap: 20px; }
.nav-links a, .nav-login {
  display: block; padding: 12px 8px; border-radius: 6px;
  font-size: 14px; font-weight: 500; letter-spacing: .2px; color: var(--muted);
  transition: color .2s;
}
.nav-links a:hover, .nav-login:hover { color: #fff; }
.nav-right { display: flex; align-items: center; gap: 24px; }
.nav-burger { display: none; width: 40px; height: 40px; border-radius: 10px; position: relative; }
.nav-burger span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: #fff; border-radius: 2px; transition: transform .3s var(--ease); }
.nav-burger span:first-child { top: 16px; }
.nav-burger span:last-child { top: 23px; }
.nav-burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.nav-mobile {
  pointer-events: auto; margin: 8px auto 0; max-width: var(--maxw);
  border-radius: 16px; border: 1px solid var(--line); background: rgba(12,13,15,.96);
  padding: 8px; display: grid;
}
.nav-mobile[hidden] { display: none; }
.nav-mobile a { padding: 14px 16px; color: var(--muted); font-weight: 500; border-radius: 10px; }
.nav-mobile a:hover { background: rgba(255,255,255,.04); color: #fff; }

/* intro choreography */
.nav-right { opacity: 0; transform: translateY(-4px); transition: opacity .8s var(--ease) .9s, transform .8s var(--ease) .9s; }
.is-loaded .nav-right { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: max(100vh, 760px);
  min-height: 640px;
  overflow: hidden;
  isolation: isolate;
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; background: var(--bg); }
.hero-canvas.no-webgl {
  background:
    repeating-linear-gradient(135deg, transparent 0 34px, rgba(0,0,0,.85) 34px 58px),
    radial-gradient(60% 45% at 50% 55%, #e0283a 0%, #7a0a14 45%, transparent 75%), var(--bg);
  filter: blur(6px);
}
.hero-fade { position: absolute; inset: auto 0 0 0; height: 32%; z-index: -1; background: linear-gradient(to bottom, rgba(7,8,10,0), var(--bg) 92%); pointer-events: none; }
.hero-inner {
  position: absolute; left: 0; right: 0; top: 50%;
  transform: translateY(-38%);
  text-align: center; padding: 0 16px;
  will-change: transform, opacity;
}
.hero-title {
  font-size: 64px; line-height: 1.1; font-weight: 600; letter-spacing: -0.2px;
  text-shadow: 0 2px 30px rgba(0,0,0,.35);
  opacity: 0; transform: translateY(16px); filter: blur(6px);
  transition: opacity 1s var(--ease) .1s, transform 1s var(--ease) .1s, filter 1s var(--ease) .1s;
}
.hero-sub {
  margin-top: 32px; font-size: 18px; line-height: 1.5; letter-spacing: .2px; color: #fff;
  text-shadow: 0 1px 12px rgba(0,0,0,.4);
  opacity: 0; transform: translateY(12px);
  transition: opacity 1s var(--ease) 1.1s, transform 1s var(--ease) 1.1s;
}
.is-loaded .hero-title { opacity: 1; transform: none; filter: none; }
.is-loaded .hero-sub { opacity: 1; transform: none; }

.hero-cta {
  position: absolute; left: 0; right: 0; bottom: 56px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  opacity: 0; transform: translateY(12px);
  transition: opacity 1s var(--ease) 1.6s, transform 1s var(--ease) 1.6s;
}
.is-loaded .hero-cta { opacity: 1; transform: none; }
.hero-req { font-size: 13px; color: var(--dim); letter-spacing: .2px; }
.hero-alt { display: flex; align-items: center; gap: 12px; }
.link-quiet { font-size: 13px; font-weight: 500; color: var(--muted); position: relative; transition: color .2s; }
.link-quiet:hover { color: #fff; }
.dot-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--dim); }
.copied-tip {
  position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translate(-50%, 4px);
  font-size: 12px; padding: 4px 8px; border-radius: 6px; background: #fff; color: #000;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s var(--ease);
}
.copied .copied-tip { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Section headings ---------- */
.section-head { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.section-head.left { text-align: left; align-items: flex-start; }
.section-head h2, .ext-text h2, .demo-head h2, .time-head h2 { font-size: 20px; font-weight: 500; letter-spacing: .2px; line-height: 1.25; }
.section-head p, .ext-text p, .demo-head p, .time-head p { font-size: 20px; font-weight: 500; letter-spacing: .2px; line-height: 1.25; color: var(--dim); max-width: 560px; }
.section-head .btn { margin-top: 24px; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* =========================================================
   DEMO SECTION (Mac + Raycast window)
   ========================================================= */
.demo { position: relative; padding: 180px 16px 120px; }
.demo-head { text-align: center; margin-bottom: 64px; }
.mac-outer { max-width: var(--maxw); margin: 0 auto; perspective: 1800px; }
.mac {
  --s: 1;
  position: relative; width: 100%;
  border-radius: 28px; padding: 12px;
  background: linear-gradient(180deg, #16171a, #0b0c0e);
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), inset 0 1px 0 rgba(255,255,255,.12), 0 40px 120px -20px rgba(0,0,0,.9), 0 0 120px rgba(255, 40, 60, .06);
  transform-origin: 50% 0%;
  will-change: transform;
  overflow: hidden; /* the 1180px screen is scaled down; keep its layout box from widening the page */
}
.mac::after { /* specular edge */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.06), transparent 18%);
}
.mac-screen {
  position: relative; overflow: hidden;
  width: 1180px; height: 740px;
  border-radius: 18px;
  background: #050506;
  transform: scale(var(--s)); transform-origin: 0 0;
  font-size: 16px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
}
.mac-sizer { width: 100%; }
.wallpaper { position: absolute; inset: 0; width: 100%; height: 100%; }
.wallpaper-shade { position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 40%, transparent 40%, rgba(0,0,0,.55) 100%); pointer-events: none; }

.menubar {
  position: absolute; inset: 0 0 auto 0; height: 36px; z-index: 3;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px; font-size: 14px; font-weight: 500; color: rgba(255,255,255,.88);
  background: rgba(0,0,0,.25); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
}
.mb-left, .mb-right { display: flex; align-items: center; gap: 22px; }
.mb-left span { opacity: .8; }
.mb-apple { width: 16px; height: 16px; margin-top: -2px; }
.mb-right { gap: 16px; }
.mb-pair { display: inline-flex; align-items: center; gap: 6px; }
.mb-i { width: 16px; height: 16px; opacity: .9; }
.mb-wifi { width: 18px; height: 14px; }
.mb-bat { width: 26px; height: 13px; }

.rc-stage { position: absolute; inset: 36px 0 110px 0; display: flex; align-items: center; justify-content: center; z-index: 4; }

/* ---------- Raycast window ---------- */
.rc-window {
  position: relative;
  width: 750px; height: 475px;
  border-radius: 12px;
  display: grid; grid-template-rows: 56px 1fr 40px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(28, 26, 28, .72), rgba(18, 16, 18, .78));
  -webkit-backdrop-filter: blur(36px) saturate(1.5);
  backdrop-filter: blur(36px) saturate(1.5);
  box-shadow: 0 0 0 1px rgba(255,255,255,.12), inset 0 1px 0 rgba(255,255,255,.1), 0 30px 80px -10px rgba(0,0,0,.75), 0 0 0 .5px rgba(0,0,0,.8);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.rc-window.swap-out { opacity: 0; transform: scale(.985); }
.rc-window.hidden-win { opacity: 0; transform: scale(.96); pointer-events: none; }

.rc-top {
  display: flex; align-items: center; gap: 8px; padding: 0 16px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  position: relative;
}
.rc-back { width: 24px; height: 24px; border-radius: 6px; background: rgba(255,255,255,.1); display: grid; place-items: center; flex: 0 0 auto; }
.rc-back svg { width: 14px; height: 14px; }
.rc-input { position: relative; flex: 1; font-size: 16px; height: 20px; display: flex; align-items: center; white-space: pre; }
.rc-typed { color: #fff; }
.rc-ph { color: rgba(255,255,255,.4); }
.rc-caret { display: inline-block; width: 2px; height: 18px; margin-left: 1px; border-radius: 2px; background: rgba(255,255,255,.75); animation: blink 1.05s steps(1) infinite; }
.rc-input.has-text .rc-ph { display: none; }
@keyframes blink { 50% { opacity: 0; } }
.rc-select {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 24px;
  font-size: 13px; font-weight: 500; padding: 5px 8px 5px 10px; border-radius: 6px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); background: rgba(255,255,255,.04);
}
.rc-select svg { width: 12px; height: 12px; opacity: .7; }
.rc-hint { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255,255,255,.55); font-weight: 500; }

.rc-content { position: relative; overflow: hidden; }
.rc-actionbar {
  display: flex; align-items: center; justify-content: space-between; padding: 0 12px;
  border-top: 1px solid rgba(255,255,255,.07);
  background: rgba(255,255,255,.025);
}
.rc-cmd { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: rgba(255,255,255,.6); }
.rc-cmd-ico { width: 16px; height: 16px; border-radius: 4px; display: grid; place-items: center; background: linear-gradient(#ff6363, #d72a2a); color: #fff; }
.rc-cmd-ico svg { width: 11px; height: 11px; }
.rc-actions { display: flex; align-items: center; gap: 12px; }
.rc-action { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; padding: 4px 4px 4px 8px; border-radius: 6px; transition: background .15s; }
.rc-action.muted { color: rgba(255,255,255,.6); }
.rc-action.flash { background: rgba(255,255,255,.12); }
.rc-sep { width: 2px; height: 12px; border-radius: 3px; background: rgba(255,255,255,.1); }
.rc-keys { display: inline-flex; gap: 2px; }
.rc-keys kbd, .kbd {
  min-width: 21px; height: 21px; padding: 0 5px; border-radius: 4px; display: inline-grid; place-items: center;
  font-size: 11.5px; font-weight: 500; color: rgba(255,255,255,.75);
  background: rgba(255,255,255,.1);
}

.rc-section { display: inline-flex; padding: 16px 8px 8px; font-size: 13px; font-weight: 600; color: rgba(255,255,255,.6); }

/* list rows (clipboard, root search, windows) */
.rc-list { padding: 0 8px; }
.rc-row {
  display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 8px; border-radius: 8px;
  font-size: 14px; font-weight: 500; color: rgba(255,255,255,.92); white-space: nowrap;
  transition: background .12s;
}
.rc-row.sel { background: rgba(255,255,255,.1); }
.rc-row .ri { width: 20px; height: 20px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 5px; }
.rc-row .ri svg { width: 16px; height: 16px; }
.rc-row .ri.dot::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.rc-row .rt { overflow: hidden; text-overflow: ellipsis; }
.rc-row .rs { color: rgba(255,255,255,.45); font-weight: 400; margin-left: 2px; }
.rc-row .rtype { margin-left: auto; color: rgba(255,255,255,.45); font-weight: 400; font-size: 13px; }
.app-ico { width: 20px; height: 20px; border-radius: 5px; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; background: var(--c, #333); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.25); }
.app-ico svg { width: 13px !important; height: 13px !important; }

/* clipboard split */
.cb { display: grid; grid-template-columns: 300px 1fr; height: 100%; }
.cb-left { border-right: 1px solid rgba(255,255,255,.07); overflow: hidden; }
.cb-right { display: grid; grid-template-rows: 1fr auto; overflow: hidden; }
.cb-preview { display: grid; place-items: center; padding: 16px; min-height: 0; }
.cb-color { display: flex; flex-direction: column; align-items: center; gap: 12px; font-size: 13px; font-weight: 500; }
.cb-swatch { width: 96px; height: 96px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 10px 40px -8px var(--c); transition: background .25s; }
.cb-img { width: 240px; height: 170px; border-radius: 8px; background:
  radial-gradient(60% 60% at 30% 30%, #ffb46b, transparent 60%),
  radial-gradient(70% 70% at 80% 70%, #ff4f7a, transparent 60%),
  linear-gradient(135deg, #3b1d5e, #0e1a3a); box-shadow: 0 0 0 1px rgba(255,255,255,.1); }
.cb-text { font-size: 14px; line-height: 1.5; color: rgba(255,255,255,.85); max-width: 360px; font-family: var(--mono); font-size: 13px; }
.cb-info { padding: 0 16px 8px; }
.cb-info h5 { margin: 0; padding: 10px 0 6px; font-size: 13px; font-weight: 600; color: rgba(255,255,255,.6); border-top: 1px solid rgba(255,255,255,.07); }
.cb-info dl { margin: 0; display: grid; grid-template-columns: 1fr auto; font-size: 13px; }
.cb-info dt, .cb-info dd { margin: 0; padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,.05); }
.cb-info dt { color: rgba(255,255,255,.6); font-weight: 500; }
.cb-info dd { text-align: right; font-weight: 500; }
.cb-info dl > :nth-last-child(-n+2) { border-bottom: 0; }

/* emoji grid */
.em-list { padding: 0 8px; transition: transform .45s var(--ease); }
.em-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.em {
  width: 84px; height: 84px; border-radius: 8px; display: grid; place-items: center;
  font-family: var(--emoji); font-size: 32px; line-height: 1;
  background: rgba(255,255,255,.05);
  box-shadow: inset 0 0 0 1px transparent;
  transition: box-shadow .12s, background .12s, transform .18s var(--ease), opacity .25s;
}
.em.sym { font-family: var(--font); font-size: 30px; color: #fff; }
.em.sel { box-shadow: inset 0 0 0 1px #fff; background: rgba(255,255,255,.08); }
.em.press { transform: scale(.9); }
.em.enter { animation: emIn .32s var(--ease) both; }
@keyframes emIn { from { opacity: 0; transform: scale(.85); } }

/* toast inside Raycast window */
.rc-toast {
  position: absolute; left: 50%; bottom: 14px; z-index: 5;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 16px 9px 12px; border-radius: 999px;
  font-size: 14px; font-weight: 500; color: #fff;
  background: rgba(62, 58, 62, .82);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 10px 30px rgba(0,0,0,.4);
  transform: translate(-50%, 12px) scale(.96); opacity: 0;
  transition: opacity .3s var(--ease), transform .4s var(--ease);
  pointer-events: none; white-space: nowrap;
}
.rc-toast.show { opacity: 1; transform: translate(-50%, 0) scale(1); }
.rc-toast svg { width: 16px; height: 16px; }

/* AI answer */
.qa-card {
  margin: 12px; padding: 16px 14px; border-radius: 10px;
  background: rgba(255,255,255,.035); box-shadow: inset 0 0 0 1px rgba(255,255,255,.07);
  font-size: 14px; line-height: 1.55; color: rgba(255,255,255,.92); height: calc(100% - 24px); overflow: hidden;
}
.qa-q { font-size: 12px; color: rgba(255,255,255,.45); margin-bottom: 14px; }
.qa-a p { margin: 0 0 12px; }
.qa-a ol { margin: 0; padding-left: 20px; }
.qa-a li { opacity: 0; transform: translateY(4px); transition: opacity .35s, transform .35s var(--ease); }
.qa-a li.in { opacity: 1; transform: none; }
.qa-refs { margin-top: 16px; opacity: 0; transition: opacity .4s; }
.qa-refs.in { opacity: 1; }
.qa-refs small { display: block; font-size: 12px; color: rgba(255,255,255,.45); margin-bottom: 8px; }
.qa-chip { display: inline-flex; align-items: center; gap: 6px; margin-right: 6px; padding: 2px 6px 2px 2px; border-radius: 5px; font-size: 12px; background: rgba(255,255,255,.1); }
.qa-chip b { display: inline-grid; place-items: center; min-width: 16px; height: 16px; border-radius: 3px; background: rgba(255,255,255,.14); font-size: 10px; }

/* Calculator card */
.calc {
  margin: 0 8px; display: grid; grid-template-columns: 1fr 1fr; position: relative;
  border-radius: 8px; height: 132px; overflow: hidden;
  background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.07);
  transition: box-shadow .15s, background .15s;
}
.calc.sel { background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.calc > div { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.calc > div + div { border-left: 1px solid rgba(255,255,255,.07); }
.calc big { font-size: 30px; font-weight: 600; letter-spacing: -.3px; }
.calc small { font-size: 12px; font-weight: 500; color: rgba(255,255,255,.55); padding: 3px 8px; border-radius: 5px; background: rgba(255,255,255,.07); }
.calc-arrow { position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; display: grid; place-items: center; background: #2a2729; box-shadow: 0 0 0 1px rgba(255,255,255,.12); }
.calc-arrow svg { width: 14px; height: 14px; }
.calc.pop { animation: calcPop .45s var(--ease) both; }
@keyframes calcPop { from { opacity: 0; transform: translateY(-6px) scale(.98); } }

/* Window management: layout glyphs */
.wm-ico { width: 20px; height: 14px; border-radius: 3px; box-shadow: inset 0 0 0 1.3px rgba(255,255,255,.7); position: relative; overflow: hidden; }
.wm-ico::after { content: ""; position: absolute; background: rgba(255,255,255,.85); inset: var(--r); }

.fake-app {
  position: absolute; z-index: 2; left: 90px; top: 110px; width: 520px; height: 380px;
  border-radius: 12px; overflow: hidden;
  background: linear-gradient(180deg, #1c1c20, #151518);
  box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 24px 60px rgba(0,0,0,.6);
  transition: left .55s var(--ease), top .55s var(--ease), width .55s var(--ease), height .55s var(--ease), opacity .4s;
}
.fa-bar { height: 36px; display: flex; align-items: center; gap: 7px; padding: 0 14px; border-bottom: 1px solid rgba(255,255,255,.06); font-size: 13px; font-weight: 600; color: rgba(255,255,255,.7); }
.fa-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.fa-bar i:nth-child(2) { background: #febc2e; }
.fa-bar i:nth-child(3) { background: #28c840; margin-right: 12px; }
.fa-body { display: grid; grid-template-columns: 140px 1fr; height: calc(100% - 36px); }
.fa-side { border-right: 1px solid rgba(255,255,255,.06); padding: 14px 12px; display: grid; align-content: start; gap: 10px; }
.fa-side b, .fa-main b { display: block; height: 8px; border-radius: 4px; background: rgba(255,255,255,.1); }
.fa-side b:first-child { background: rgba(255, 99, 99, .5); width: 70%; }
.fa-main { padding: 18px; display: grid; align-content: start; gap: 12px; }
.fa-main b:first-child { height: 14px; background: rgba(255,255,255,.2); }

/* ---------- Dock ---------- */
.dock-area { position: absolute; left: 0; right: 0; bottom: -8px; z-index: 6; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.dock-tip {
  position: relative; padding: 7px 12px; border-radius: 7px; font-size: 15px; font-weight: 500;
  background: rgba(16,16,18,.85); box-shadow: 0 0 0 1px rgba(255,255,255,.1);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: transform .45s var(--ease), opacity .2s;
  white-space: nowrap;
}
.dock {
  display: flex; align-items: flex-end; gap: 10px; padding: 10px 12px 18px;
  border-radius: 24px 24px 0 0;
  background: linear-gradient(180deg, rgba(40,40,44,.55), rgba(24,24,28,.55));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 0 0 1px rgba(255,255,255,.06);
  -webkit-backdrop-filter: blur(24px) saturate(1.4); backdrop-filter: blur(24px) saturate(1.4);
}
.dock-item {
  position: relative; width: 60px; height: 60px; border-radius: 16px;
  display: grid; place-items: center; color: rgba(255,255,255,.72);
  background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.035));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), inset 0 -1px 0 rgba(0,0,0,.3), 0 0 0 1px rgba(255,255,255,.06), 0 6px 14px rgba(0,0,0,.35);
  transition: width .45s var(--ease), height .45s var(--ease), transform .45s var(--ease), color .3s, background .3s;
}
.dock-item svg { width: 22px; height: 22px; transition: width .45s var(--ease), height .45s var(--ease); }
.dock-item:hover { color: #fff; transform: translateY(-3px); }
.dock-item.active {
  width: 80px; height: 80px; border-radius: 20px; color: #fff; transform: translateY(-6px);
  background: radial-gradient(80% 90% at 50% 10%, rgba(255,255,255,.28), rgba(255,255,255,.06) 70%), linear-gradient(180deg, #3a3a3f, #1e1e22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), inset 0 -2px 0 rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.12), 0 14px 30px rgba(0,0,0,.55);
}
.dock-item.active svg { width: 30px; height: 30px; }
.dock-item .prog { position: absolute; left: 50%; bottom: -10px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: rgba(255,255,255,.8); opacity: 0; transition: opacity .3s; }
.dock-item.active .prog { opacity: 1; }

.demo-caption {
  max-width: 560px; margin: 56px auto 0; text-align: center;
  font-size: 16px; line-height: 1.55; letter-spacing: .2px; color: var(--dim); font-weight: 500;
  transition: opacity .35s;
}
.demo-caption strong { color: #fff; font-weight: 500; }
.demo-caption.swap { opacity: 0; }

/* =========================================================
   KEYBOARD SECTION
   ========================================================= */
.time { position: relative; padding: 120px 16px 40px; overflow: hidden; }
.time-head { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.time-head .btn { margin-top: 28px; }
.kb-stage { position: relative; margin: 64px auto 0; max-width: 1100px; perspective: 1400px; height: 560px; }
.kb-glow {
  position: absolute; left: 50%; top: 42%; width: 80%; height: 70%; transform: translate(-50%, -50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(255, 40, 60, .32), rgba(255, 40, 60, 0) 70%);
  filter: blur(40px); pointer-events: none;
}
.keyboard {
  --u: 62px; --g: 8px;
  position: absolute; left: 50%; top: 0;
  width: calc(var(--u) * 15 + var(--g) * 14 + 36px);
  transform: translateX(-50%) rotateX(38deg) scale(.96);
  transform-origin: 50% 0;
  padding: 18px; border-radius: 26px;
  background: linear-gradient(180deg, #17181b, #0c0d0f);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 0 0 1px rgba(255,255,255,.05), 0 60px 80px -20px rgba(0,0,0,.9);
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
  display: grid; gap: var(--g);
}
.kb-row { display: flex; gap: var(--g); }
.key {
  --w: 1;
  flex: 0 0 auto;
  width: calc(var(--u) * var(--w) + var(--g) * (var(--w) - 1));
  height: var(--u);
  border-radius: 10px;
  display: flex; align-items: flex-start; justify-content: flex-start; padding: 9px 10px;
  font-size: 13px; font-weight: 500; color: rgba(255,255,255,.62);
  background: linear-gradient(180deg, #202125, #141518);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), inset 0 -3px 0 rgba(0,0,0,.45), 0 0 0 1px rgba(0,0,0,.6), 0 4px 8px rgba(0,0,0,.35);
  transition: transform .12s, background .25s, color .25s, box-shadow .25s;
  user-select: none; cursor: default; position: relative;
}
.key.fn { height: calc(var(--u) * .62); font-size: 11px; padding: 6px 8px; }
.key.center { justify-content: center; align-items: center; font-size: 16px; }
.key.dual { flex-direction: column; justify-content: space-between; font-size: 12px; }
.key.right { justify-content: flex-end; }
.key.bottom-left { align-items: flex-end; }
.key:hover, .key.lit {
  color: #fff;
  background: linear-gradient(180deg, #3a1419, #1d0b0e);
  box-shadow: inset 0 1px 0 rgba(255,140,140,.35), inset 0 -3px 0 rgba(0,0,0,.45), 0 0 0 1px rgba(255, 99, 99, .35), 0 0 28px rgba(255, 60, 70, .45);
}
.key.down { transform: translateY(2px); }
.key.feature {
  flex-direction: column; justify-content: flex-end; gap: 4px; padding: 12px 14px;
  font-size: 14px; line-height: 1.25; color: #fff; font-weight: 500;
  background: linear-gradient(160deg, #ff6b6b 0%, #d7263d 55%, #8f0f22 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), inset 0 -3px 0 rgba(80,0,10,.6), 0 0 0 1px rgba(255,120,120,.5), 0 0 40px rgba(255, 50, 70, .55), 0 10px 30px rgba(120, 0, 20, .5);
}
.key.feature span { color: rgba(255,255,255,.72); font-weight: 500; }
.key.feature.alt { background: linear-gradient(160deg, #2a2b30, #151619); box-shadow: inset 0 1px 0 rgba(255,255,255,.18), inset 0 -3px 0 rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.12), 0 10px 30px rgba(0,0,0,.4); }
.key.feature.alt b { color: #fff; }
.key.feature b { font-weight: 600; }
.kb-small { height: 300px; margin-top: 40px; }
.kb-small .keyboard { transform: translateX(-50%) rotateX(48deg) scale(.9); }

/* =========================================================
   EXTENSIONS
   ========================================================= */
.ext { padding: 180px 0 160px; position: relative; }
.ext-top { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.ext-text { max-width: 432px; }
.ext-cats {
  position: relative; display: flex; gap: 8px; padding: 8px 12px; border-radius: 31px;
  background: var(--glass-solid); box-shadow: var(--inset);
}
.ext-cat { position: relative; z-index: 1; height: 46px; padding: 0 12px; font-size: 14px; font-weight: 500; letter-spacing: .2px; color: var(--dim); transition: color .3s; }
.ext-cat:hover { color: #bbb; }
.ext-cat.active { color: #fff; }
.ext-cat-bg {
  position: absolute; z-index: 0; top: 8px; height: 46px; left: 0; width: 100px; border-radius: 36px;
  background: radial-gradient(51.07% 92.4% at 51% 7.61%, #5a5a5a 0%, #1a1a1a 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 4px 12px rgba(0,0,0,.4);
  transition: transform .5s var(--ease), width .5s var(--ease);
}

.reel-mask {
  margin-top: 40px;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 64px, #000 calc(100% - 160px), transparent);
  mask-image: linear-gradient(to right, transparent, #000 64px, #000 calc(100% - 160px), transparent);
}
.reel {
  display: flex; gap: 56px; overflow-x: auto; overscroll-behavior-x: contain;
  padding: 40px max(24px, calc((100vw - var(--maxw)) / 2 + 24px)) 72px;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; cursor: grab;
}
.reel::-webkit-scrollbar { display: none; }
.reel.dragging { scroll-behavior: auto; scroll-snap-type: none; cursor: grabbing; }
.reel.dragging * { pointer-events: none; }

.x-card {
  flex: 0 0 360px; height: 536px; scroll-snap-align: start; scroll-margin-left: max(24px, calc((100vw - var(--maxw)) / 2 + 24px));
  border-radius: 20px; display: grid; grid-template-rows: auto 1fr; position: relative; overflow: hidden;
  box-shadow: inset 0 1px 0 0 rgba(255,255,255,.1), 0 0 20px 3px var(--glow, rgba(7,13,79,.05)), 0 0 40px 20px var(--glow, rgba(7,13,79,.05)), inset 0 0 0 1px rgba(255,255,255,.06);
  transition: transform .5s var(--ease), box-shadow .5s;
  background: var(--card-bg);
  opacity: 0; transform: translateY(40px);
}
.x-card.in { opacity: 1; transform: none; transition: opacity .8s var(--ease) var(--d, 0s), transform .8s var(--ease) var(--d, 0s); }
.x-card.in:hover { transform: translateY(-6px); }
.x-head { padding: 24px 24px 0; display: grid; gap: 24px; }
.x-title { display: flex; align-items: center; gap: 12px; height: 52px; }
.x-icon { width: 56px; height: 56px; margin: -2px; border-radius: 12px; flex: 0 0 auto; display: grid; place-items: center; box-shadow: 0 1.2px 2.4px rgba(0,0,0,.28), inset 0 0 0 1px rgba(255,255,255,.12); background: var(--ic-bg, #222); overflow: hidden; }
.x-icon svg { width: 34px; height: 34px; }
.x-name { flex: 1; font-size: 18px; }
.x-go {
  width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; color: #e6e6e6;
  background: linear-gradient(rgba(255,255,255,.03), rgba(255,255,255,.1));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 0 0 1px rgba(255,255,255,.25), inset 0 -1px 0 rgba(0,0,0,.2);
  transition: background .2s, transform .3s var(--ease);
}
.x-go svg { width: 16px; height: 16px; }
.x-card:hover .x-go { background: linear-gradient(rgba(255,255,255,.08), rgba(255,255,255,.18)); transform: translateX(2px); }
.x-desc { font-size: 16px; line-height: 1.6; font-weight: 500; min-height: 51px; }
.x-desc .w { color: rgba(255,255,255,.28); transition: color .5s; }
.x-desc .w.on { color: #fff; }
.x-divider { height: 1px; background: rgba(255,255,255,.05); }
.x-visual { position: relative; height: 360px; overflow: hidden; }

/* Linear visual */
.lin-stars { position: absolute; inset: 0; }
.lin-stars i { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #fff; opacity: .5; animation: twinkle 3s ease-in-out infinite; }
@keyframes twinkle { 50% { opacity: .08; } }
.lin-planet { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.lin-planet .arc { fill: none; stroke: url(#linGrad); stroke-width: 2.2; stroke-dasharray: 800; stroke-dashoffset: 800; filter: drop-shadow(0 0 6px rgba(160,170,255,.8)); }
.x-card.in .lin-planet .arc { animation: drawArc 2.4s var(--ease) .4s forwards; }
@keyframes drawArc { to { stroke-dashoffset: 0; } }
.lin-planet .stripe { fill: none; stroke: rgba(190,195,255,.55); stroke-width: 1.6; stroke-linecap: round; }
.lin-status { position: absolute; left: 26px; right: 30px; bottom: 26px; display: flex; justify-content: space-between; align-items: center; }
.st { width: 56px; height: 56px; display: grid; place-items: center; opacity: .35; transform: scale(.9); transition: opacity .5s, transform .5s var(--ease), filter .5s; }
.st.on { opacity: 1; transform: scale(1); }
.st svg { width: 52px; height: 52px; overflow: visible; }
.st.on.backlog svg, .st.on.todo svg { filter: drop-shadow(0 0 8px rgba(255,255,255,.55)); }
.st.on.progress svg { filter: drop-shadow(0 0 10px rgba(242, 201, 76, .7)); }
.st.on.done svg { filter: drop-shadow(0 0 14px rgba(94, 106, 210, .95)); }

/* Google translate visual */
.tr-rows { position: absolute; inset: 0; display: grid; gap: 16px; align-content: start; padding: 34px 0 0 30px; }
.tr-row { display: flex; gap: 18px; white-space: nowrap; font-size: 23px; font-weight: 500; letter-spacing: -.2px; width: max-content; will-change: transform; }
.tr-row span { color: rgba(255,255,255,.88); }
.tr-row span.dim { color: rgba(170, 190, 255, .38); }
.tr-row { animation: trSlide var(--dur, 22s) linear infinite; animation-direction: var(--dir, normal); }
@keyframes trSlide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.tr-fade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to right, transparent 70%, rgba(20, 40, 90, .0)), linear-gradient(to bottom, transparent 75%, rgba(10, 20, 50, .6)); }

/* Spotify visual */
.sp { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; padding-top: 38px; gap: 34px; }
.sp-art {
  width: 212px; height: 212px; border-radius: 4px; position: relative; overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.08);
  background: #d9d9d6;
}
.sp-art .sp-sheen { position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.25) 50%, transparent 70%); transform: translateX(-120%); }
.sp.playing .sp-art .sp-sheen { animation: sheen 3.5s ease-in-out infinite; }
@keyframes sheen { to { transform: translateX(120%); } }
.sp-meta { text-align: center; margin-top: -8px; }
.sp-meta b { display: block; font-size: 15px; font-weight: 600; }
.sp-meta small { font-size: 13px; color: rgba(255,255,255,.6); }
.sp-bar { width: 216px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.18); overflow: hidden; margin-top: -12px; }
.sp-bar i { display: block; height: 100%; width: 30%; background: #fff; border-radius: inherit; }
.sp-ctrl { display: flex; align-items: center; gap: 30px; }
.sp-ctrl button { color: #fff; display: grid; place-items: center; transition: transform .2s var(--ease), opacity .2s; }
.sp-ctrl button:hover { transform: scale(1.08); }
.sp-ctrl button:active { transform: scale(.94); }
.sp-ctrl .sp-skip svg { width: 28px; height: 28px; }
.sp-ctrl .sp-play { width: 46px; height: 46px; border-radius: 50%; background: #fff; color: #0b3d1c; box-shadow: 0 8px 20px rgba(0,0,0,.35); }
.sp-ctrl .sp-play svg { width: 22px; height: 22px; margin-left: 2px; }
.sp.playing .sp-play svg { margin-left: 0; }
.sp-ctrl .sp-play .i-pause { display: none; }
.sp.playing .sp-play .i-play { display: none; }
.sp.playing .sp-play .i-pause { display: block; }
.sp-eq { position: absolute; right: 30px; top: 52px; display: flex; gap: 3px; align-items: flex-end; height: 16px; opacity: 0; transition: opacity .3s; }
.sp.playing .sp-eq { opacity: 1; }
.sp-eq i { width: 3px; background: #1ed760; border-radius: 2px; height: 30%; animation: eq .9s ease-in-out infinite; }
.sp-eq i:nth-child(2) { animation-delay: -.3s; }
.sp-eq i:nth-child(3) { animation-delay: -.6s; }
@keyframes eq { 50% { height: 100%; } }

/* generic visual */
.gv { position: absolute; inset: 0; display: grid; place-items: center; }
.gv-glow { position: absolute; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, var(--gc, rgba(255,255,255,.25)), transparent 65%); filter: blur(10px); }
.gv-panel {
  position: relative; width: 272px; border-radius: 14px; padding: 10px;
  background: rgba(10, 10, 14, .55); box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 20px 50px rgba(0,0,0,.5);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.gv-search { display: flex; align-items: center; gap: 8px; padding: 6px 6px 12px; border-bottom: 1px solid rgba(255,255,255,.07); margin-bottom: 6px; font-size: 13px; color: rgba(255,255,255,.5); }
.gv-search svg { width: 13px; height: 13px; }
.gv-row { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 8px; border-radius: 7px; font-size: 13px; font-weight: 500; color: rgba(255,255,255,.88); }
.gv-row.sel { background: rgba(255,255,255,.1); }
.gv-row i { width: 16px; height: 16px; border-radius: 4px; background: var(--c, #555); flex: 0 0 auto; }
.gv-row em { margin-left: auto; font-style: normal; font-size: 12px; color: rgba(255,255,255,.45); }
.x-card:hover .gv-row.sel { animation: rowPulse 1s ease; }
@keyframes rowPulse { 40% { background: rgba(255,255,255,.18); } }

.x-more { display: grid; place-items: center; text-align: center; align-content: center; gap: 18px; background: var(--glass-solid); }
.x-more h3 { font-size: 22px; font-weight: 500; }
.x-more .x-icons { display: grid; grid-template-columns: repeat(4, 44px); gap: 10px; margin-bottom: 8px; }
.x-more .x-icons span { width: 44px; height: 44px; border-radius: 11px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); display: grid; place-items: center; font-weight: 700; font-size: 16px; }

.ext-bottom { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; display: flex; justify-content: space-between; align-items: center; }
.browse-link { display: inline-flex; align-items: center; gap: 3px; font-size: 16px; font-weight: 500; letter-spacing: .3px; color: var(--muted); transition: color .2s; }
.browse-link svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.browse-link:hover { color: #fff; }
.browse-link:hover svg { transform: translateX(3px); }
.pager { display: flex; gap: 12px; }
.pager-btn { width: 58px; height: 57px; border-radius: 86px; display: grid; place-items: center; background: var(--glass-solid); box-shadow: var(--inset); color: #fff; transition: color .2s, opacity .2s; }
.pager-btn:disabled { color: var(--dim); cursor: default; }
.pager-btn svg { width: 16px; height: 16px; }

/* =========================================================
   AI
   ========================================================= */
.ai { padding: 120px 16px 140px; position: relative; overflow-x: clip; }
.ai::before { content: ""; position: absolute; left: 50%; top: 260px; width: 900px; height: 500px; transform: translateX(-50%); background: radial-gradient(50% 50% at 50% 50%, rgba(120, 90, 255, .12), transparent 70%); filter: blur(30px); pointer-events: none; }
.ai-head { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: 1.4px; color: #ff6363; padding: 6px 10px; border-radius: 99px; background: rgba(255, 99, 99, .08); box-shadow: inset 0 0 0 1px rgba(255,99,99,.2); }
.eyebrow svg { width: 13px; height: 13px; }
.ai-head h2 { font-size: 48px; font-weight: 600; letter-spacing: -.5px; line-height: 1.1; }
.ai-head p { font-size: 18px; color: var(--muted); }

.ai-app {
  position: relative; max-width: 1000px; height: 520px; margin: 64px auto 0;
  border-radius: 16px; overflow: hidden; display: grid; grid-template-columns: 250px 1fr;
  background: linear-gradient(180deg, rgba(24,24,28,.92), rgba(14,14,17,.95));
  box-shadow: 0 0 0 1px rgba(255,255,255,.1), inset 0 1px 0 rgba(255,255,255,.08), 0 50px 100px -20px rgba(0,0,0,.8);
}
.ai-side { border-right: 1px solid rgba(255,255,255,.06); padding: 14px 10px; background: rgba(255,255,255,.015); }
.ai-search { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px; border-radius: 8px; font-size: 13px; color: rgba(255,255,255,.4); background: rgba(255,255,255,.05); margin-bottom: 14px; }
.ai-search svg { width: 13px; height: 13px; }
.ai-group { font-size: 13px; font-weight: 500; padding: 8px 10px; color: rgba(255,255,255,.8); }
.ai-label { font-size: 11px; font-weight: 600; color: rgba(255,255,255,.4); padding: 16px 10px 6px; }
.ai-chats li { font-size: 13px; padding: 8px 10px; border-radius: 7px; color: rgba(255,255,255,.7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ai-chats li.active { background: rgba(255,255,255,.08); color: #fff; }
.ai-main { display: grid; grid-template-rows: 48px 1fr auto; min-width: 0; }
.ai-titlebar { display: flex; align-items: center; justify-content: space-between; padding: 0 18px; border-bottom: 1px solid rgba(255,255,255,.06); font-size: 13px; font-weight: 600; }
.ai-model { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: rgba(255,255,255,.7); padding: 4px 8px; border-radius: 6px; background: rgba(255,255,255,.05); }
.ai-model i { width: 12px; height: 12px; border-radius: 3px; background: linear-gradient(135deg, #d97757, #b85a3d); }
.ai-model svg { width: 12px; height: 12px; }
.ai-thread { padding: 28px 36px; display: flex; flex-direction: column; gap: 18px; overflow: hidden; }
.ai-msg { font-size: 15px; line-height: 1.6; }
.ai-user { align-self: flex-end; max-width: 78%; padding: 12px 16px; border-radius: 14px 14px 4px 14px; background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 1px 7px 1px 5px; border-radius: 6px; font-size: 14px; font-weight: 500; background: rgba(255,255,255,.08); vertical-align: 1px; }
.chip i { width: 14px; height: 14px; border-radius: 4px; }
.chip-linear i { background: linear-gradient(135deg, #7b83ff, #4b52c9); }
.chip-things i { background: linear-gradient(135deg, #4aa3ff, #1f6fe0); }
.ai-steps { display: grid; gap: 10px; }
.ai-step { display: flex; align-items: center; gap: 10px; font-size: 14px; color: rgba(255,255,255,.55); opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .4s var(--ease), color .3s; }
.ai-step.show { opacity: 1; transform: none; }
.ai-step.done { color: rgba(255,255,255,.85); }
.ai-step em { font-style: normal; font-size: 12px; padding: 1px 6px; border-radius: 5px; background: rgba(255,255,255,.08); color: rgba(255,255,255,.7); }
.st-ico { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.2); border-top-color: #fff; animation: spin .8s linear infinite; flex: 0 0 auto; }
.ai-step.done .st-ico { animation: none; border: 0; background: #59d499 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23062' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='m4 8.5 2.6 2.6L12 5.5'/%3E%3C/svg%3E") center/12px no-repeat; }
@keyframes spin { to { transform: rotate(360deg); } }
.ai-bot { color: rgba(255,255,255,.92); min-height: 50px; }
.ai-bot::after { content: ""; display: inline-block; width: 8px; height: 16px; margin-left: 2px; vertical-align: -3px; background: rgba(255,255,255,.7); opacity: 0; }
.ai-bot.typing::after { opacity: 1; animation: blink 1s steps(1) infinite; }
.ai-composer { margin: 0 24px 20px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px 0 16px; font-size: 14px; color: rgba(255,255,255,.35); background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.ai-composer kbd { font-size: 12px; min-width: 24px; height: 24px; display: grid; place-items: center; border-radius: 6px; background: rgba(255,255,255,.1); color: rgba(255,255,255,.7); }

.ai-cards { max-width: 1000px; margin: 40px auto 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ai-card { border-radius: 20px; padding: 16px 16px 24px; background: var(--glass-solid); box-shadow: var(--inset), inset 0 0 0 1px rgba(255,255,255,.04); }
.ai-card h3 { font-size: 16px; font-weight: 600; margin: 20px 8px 8px; }
.ai-card p { font-size: 14px; line-height: 1.55; color: var(--muted); margin: 0 8px; }
.ai-card-visual { height: 200px; border-radius: 12px; position: relative; overflow: hidden; background: radial-gradient(90% 90% at 50% 0%, rgba(255,255,255,.05), transparent 70%), rgba(255,255,255,.015); box-shadow: inset 0 0 0 1px rgba(255,255,255,.05); }
.chat-visual { display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 20px; }
.bubble { font-size: 13px; padding: 10px 12px; border-radius: 12px; max-width: 80%; }
.b-user { align-self: flex-end; background: #ff6363; color: #fff; border-bottom-right-radius: 4px; }
.b-bot { align-self: flex-start; background: rgba(255,255,255,.08); border-bottom-left-radius: 4px; }
.typing { display: inline-flex; gap: 4px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.7); animation: dots 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dots { 0%, 60%, 100% { transform: none; opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }
.quick-visual { padding: 16px; }
.qa-bar { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 10px; border-radius: 10px; font-size: 13px; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.qa-bar svg { width: 14px; height: 14px; color: #ff6363; }
.qa-bar kbd { margin-left: auto; font-size: 11px; padding: 2px 6px; border-radius: 4px; background: rgba(255,255,255,.1); }
.qa-typed::after { content: ""; display: inline-block; width: 1.5px; height: 14px; margin-left: 1px; vertical-align: -2px; background: #fff; animation: blink 1s steps(1) infinite; }
.qa-list { margin-top: 10px; display: grid; gap: 2px; }
.qa-list li { font-size: 12.5px; padding: 6px 10px; border-radius: 7px; color: rgba(255,255,255,.65); transition: background .2s, color .2s; }
.qa-list li.sel { background: rgba(255,255,255,.08); color: #fff; }
.orbit-visual { display: grid; place-items: center; }
.orbit { position: absolute; left: 50%; top: 50%; border-radius: 50%; border: 1px dashed rgba(255,255,255,.12); animation: spin 18s linear infinite; }
.o1 { width: 120px; height: 120px; margin: -60px 0 0 -60px; }
.o2 { width: 190px; height: 190px; margin: -95px 0 0 -95px; animation-duration: 28s; animation-direction: reverse; }
.app-dot { position: absolute; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--t, #fff); background: var(--c); box-shadow: 0 4px 10px rgba(0,0,0,.4); }
.o1 .app-dot { animation: spin 18s linear infinite reverse; }
.o2 .app-dot { animation: spin 28s linear infinite; }
.o1 .app-dot:nth-child(1) { left: -14px; top: 46px; }
.o1 .app-dot:nth-child(2) { right: -14px; top: 46px; }
.o2 .app-dot:nth-child(1) { left: 81px; top: -14px; }
.o2 .app-dot:nth-child(2) { left: 6px; bottom: 20px; }
.o2 .app-dot:nth-child(3) { right: 6px; bottom: 20px; }
.orbit-core { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(160deg, #ff6b6b, #c81e3a); box-shadow: 0 0 40px rgba(255,80,90,.5); }
.orbit-core svg { width: 24px; height: 24px; }

/* =========================================================
   PEOPLE
   ========================================================= */
.people { padding: 120px 0; overflow: hidden; }
.people-rows { margin-top: 56px; display: grid; gap: 16px; -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent); }
.p-track { display: flex; gap: 16px; width: max-content; animation: trSlide var(--dur, 60s) linear infinite; animation-direction: var(--dir, normal); }
.people-rows:hover .p-track { animation-play-state: paused; }
.person { display: flex; align-items: center; gap: 12px; padding: 12px 20px 12px 12px; border-radius: 16px; background: var(--glass-solid); box-shadow: var(--inset), inset 0 0 0 1px rgba(255,255,255,.04); transition: background .3s; }
.person:hover { background: linear-gradient(137deg, #1a1b1f, #111215); }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; font-weight: 600; background: var(--c); box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); flex: 0 0 auto; }
.person b { display: block; font-size: 14px; font-weight: 600; }
.person small { display: block; font-size: 13px; color: var(--dim); margin-top: 3px; }
.person small span { color: var(--muted); }

/* =========================================================
   DRY
   ========================================================= */
.dry { padding: 80px 0 120px; }
.dry-grid { max-width: var(--maxw); margin: 48px auto 0; padding: 0 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.dry-card { border-radius: 20px; padding: 16px 16px 28px; background: var(--glass-solid); box-shadow: var(--inset), inset 0 0 0 1px rgba(255,255,255,.04); }
.dry-card h3 { font-size: 16px; font-weight: 600; margin: 24px 8px 8px; }
.dry-card p { font-size: 14px; line-height: 1.55; color: var(--muted); margin: 0 8px; }
.dry-visual { height: 240px; border-radius: 12px; position: relative; overflow: hidden; display: grid; place-items: center; background: radial-gradient(80% 80% at 50% 100%, rgba(255, 60, 70, .12), transparent 70%), rgba(255,255,255,.015); box-shadow: inset 0 0 0 1px rgba(255,255,255,.05); }
.msg-window { width: 84%; border-radius: 12px; padding: 14px; background: rgba(20,20,24,.9); box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 20px 40px rgba(0,0,0,.45); display: grid; gap: 10px; }
.msg-line { font-size: 12.5px; line-height: 1.5; padding: 8px 10px; border-radius: 10px; max-width: 90%; }
.msg-line.other { background: rgba(255,255,255,.07); color: rgba(255,255,255,.75); }
.msg-line.me { justify-self: end; background: #2f6fed; color: #fff; min-height: 35px; min-width: 60px; }
.msg-line.me .kw { font-family: var(--mono); background: rgba(255,255,255,.18); border-radius: 4px; padding: 0 3px; }
.caret { display: inline-block; width: 1.5px; height: 13px; background: #fff; vertical-align: -2px; margin-left: 1px; animation: blink 1s steps(1) infinite; }
.msg-send { justify-self: end; font-size: 11px; font-weight: 600; padding: 5px 10px; border-radius: 6px; background: rgba(255,255,255,.1); color: rgba(255,255,255,.7); }
.ql-visual { align-content: center; gap: 18px; }
.ql-bar { display: flex; align-items: center; gap: 8px; width: 260px; height: 42px; padding: 0 12px; border-radius: 10px; font-size: 13px; background: rgba(20,20,24,.9); box-shadow: 0 0 0 1px rgba(255,255,255,.1); }
.ql-bar svg { width: 14px; height: 14px; color: #ff6363; }
.ql-bar em { font-style: normal; padding: 2px 6px; border-radius: 5px; background: rgba(255,255,255,.1); }
.ql-grid { display: flex; gap: 12px; justify-content: center; }
.ql-grid span { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--c); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14), 0 8px 20px rgba(0,0,0,.4); transition: transform .3s var(--ease); }
.ql-grid span svg { width: 22px; height: 22px; }
.dry-card:hover .ql-grid span { transform: translateY(-4px); }
.dry-card:hover .ql-grid span:nth-child(2) { transition-delay: .05s; }
.dry-card:hover .ql-grid span:nth-child(3) { transition-delay: .1s; }
.dry-card:hover .ql-grid span:nth-child(4) { transition-delay: .15s; }
.hk-keys { display: flex; align-items: center; gap: 10px; color: var(--dim); font-size: 18px; }
.hk {
  min-width: 58px; height: 58px; padding: 0 14px; border-radius: 12px; display: grid; place-items: end start; padding-bottom: 8px;
  font-size: 13px; font-weight: 500; color: rgba(255,255,255,.8);
  background: linear-gradient(180deg, #25262a, #16171a);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), inset 0 -3px 0 rgba(0,0,0,.5), 0 0 0 1px rgba(0,0,0,.6), 0 8px 18px rgba(0,0,0,.4);
  transition: transform .12s, background .2s, box-shadow .2s, color .2s;
}
.hk:last-of-type { place-items: center; padding: 0; font-size: 18px; min-width: 58px; }
.hk.down { transform: translateY(2px); color: #fff; background: linear-gradient(180deg, #3a1419, #1d0b0e); box-shadow: inset 0 1px 0 rgba(255,140,140,.35), inset 0 -2px 0 rgba(0,0,0,.45), 0 0 0 1px rgba(255,99,99,.35), 0 0 24px rgba(255,60,70,.4); }

/* =========================================================
   WHAT ELSE
   ========================================================= */
.else { max-width: 980px; margin: 0 auto; padding: 120px 24px; position: relative; }
.else h2 { font-size: 20px; font-weight: 500; letter-spacing: .2px; margin-bottom: 24px; }
.else-text { font-size: 40px; line-height: 1.3; font-weight: 600; letter-spacing: -.4px; color: #3a3b3d; }
.else-text button { font: inherit; letter-spacing: inherit; color: inherit; text-align: left; transition: color .25s; }
.else-text button:hover, .else-text button.on { color: #fff; }
.else-text .else-more { color: var(--dim); }
.else-card {
  position: absolute; z-index: 5; width: 300px; padding: 16px; border-radius: 14px;
  background: rgba(20,20,24,.92); box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 20px 40px rgba(0,0,0,.5);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  opacity: 0; transform: translateY(6px); pointer-events: none;
  transition: opacity .25s, transform .3s var(--ease), left .3s var(--ease), top .3s var(--ease);
}
.else-card.show { opacity: 1; transform: none; }
.else-card strong { font-size: 15px; font-weight: 600; }
.else-card p { margin-top: 6px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.else-card a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }

/* =========================================================
   COMMUNITY
   ========================================================= */
.community { padding: 100px 0 120px; overflow: hidden; }
.comm-grid { max-width: 800px; margin: 48px auto 0; padding: 0 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.comm-card { border-radius: 20px; padding: 28px; display: grid; grid-template-columns: auto 1fr; gap: 16px 14px; align-items: center; background: var(--glass-solid); box-shadow: var(--inset), inset 0 0 0 1px rgba(255,255,255,.04); position: relative; overflow: hidden; }
.comm-card::before { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, var(--gl), transparent 70%); pointer-events: none; }
.comm-card.slack { --gl: rgba(224, 30, 90, .18); }
.comm-card.xcard { --gl: rgba(255, 255, 255, .08); }
.comm-ico { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.comm-ico svg { width: 22px; height: 22px; }
.slack .comm-ico { color: #e01e5a; }
.comm-meta h3 { font-size: 17px; font-weight: 600; }
.comm-meta span { font-size: 13px; color: var(--dim); }
.comm-card p { grid-column: 1 / -1; font-size: 14px; line-height: 1.55; color: var(--muted); }
.comm-card .btn { grid-column: 1 / -1; justify-self: start; }
.videos-mask { margin-top: 64px; -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent); }
.videos { display: flex; gap: 20px; width: max-content; animation: trSlide 80s linear infinite; }
.videos:hover { animation-play-state: paused; }
.video { width: 300px; flex: 0 0 auto; }
.v-thumb { position: relative; height: 169px; border-radius: 12px; overflow: hidden; background: var(--bgv); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); display: grid; place-items: center; }
.v-thumb::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(255,255,255,.04) 0 2px, transparent 2px 14px); }
.v-thumb .v-play { position: relative; z-index: 1; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); transition: transform .3s var(--ease); }
.v-thumb .v-play svg { width: 18px; height: 18px; margin-left: 2px; }
.video:hover .v-play { transform: scale(1.1); }
.v-thumb .v-logo { position: absolute; left: 12px; top: 12px; width: 22px; height: 22px; z-index: 1; }
.video p { margin-top: 12px; font-size: 14px; font-weight: 500; line-height: 1.4; color: rgba(255,255,255,.85); }
.videos-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 36px; padding: 0 24px; font-size: 14px; color: var(--muted); text-align: center; }
.videos-note svg { width: 18px; height: 18px; color: #ff4e45; flex: 0 0 auto; }

/* =========================================================
   DEVELOPERS
   ========================================================= */
.dev { padding: 120px 0; }
.dev-grid { max-width: var(--maxw); margin: 56px auto 48px; padding: 0 24px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.dev-card { border-radius: 20px; padding: 14px 14px 24px; background: var(--glass-solid); box-shadow: var(--inset), inset 0 0 0 1px rgba(255,255,255,.04); }
.dev-card h3 { font-size: 15px; font-weight: 600; margin: 20px 8px 8px; }
.dev-card p { font-size: 13.5px; line-height: 1.55; color: var(--muted); margin: 0 8px; }
.dev-visual { height: 190px; border-radius: 12px; overflow: hidden; position: relative; background: radial-gradient(90% 90% at 50% 0%, rgba(255,255,255,.05), transparent 70%), rgba(255,255,255,.015); box-shadow: inset 0 0 0 1px rgba(255,255,255,.05); }
.platforms { display: flex; align-items: center; justify-content: center; gap: 12px; }
.plat { width: 72px; height: 72px; border-radius: 16px; display: grid; place-items: center; align-content: center; gap: 6px; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); font-size: 11px; color: var(--muted); }
.plat svg { width: 22px; height: 22px; color: #fff; }
.plat-link { width: 40px; height: 2px; background: rgba(255,255,255,.1); position: relative; overflow: hidden; border-radius: 2px; }
.plat-link i { position: absolute; left: -40%; top: 0; width: 40%; height: 100%; background: linear-gradient(90deg, transparent, #ff6363, transparent); animation: flow 1.6s linear infinite; }
@keyframes flow { to { left: 100%; } }
.ui-visual { padding: 18px 16px; display: grid; align-content: center; gap: 4px; }
.ui-row { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 10px; border-radius: 8px; }
.ui-row.sel { background: rgba(255,255,255,.08); }
.ui-row i { width: 14px; height: 14px; border-radius: 4px; background: var(--c); flex: 0 0 auto; }
.ui-row b { height: 7px; width: 55%; border-radius: 4px; background: rgba(255,255,255,.18); }
.ui-row em { margin-left: auto; font-style: normal; font-family: var(--mono); font-size: 10.5px; color: var(--dim); }
.code-visual pre { margin: 0; padding: 14px; font-family: var(--mono); font-size: 10.5px; line-height: 1.6; color: #d4d4d4; white-space: pre; overflow: hidden; -webkit-mask-image: linear-gradient(to right, #000 80%, transparent), linear-gradient(#000, #000); mask-image: linear-gradient(to right, #000 82%, transparent); }
.code-visual .k { color: #ff7b72; } .code-visual .s { color: #a5d6ff; } .code-visual .f { color: #d2a8ff; } .code-visual .c { color: #6a6b6c; } .code-visual .t { color: #7ee787; }
.publish-visual { display: grid; place-items: center; align-content: center; gap: 12px; }
.pub-card { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; width: 88%; background: rgba(20,20,24,.9); box-shadow: 0 0 0 1px rgba(255,255,255,.1); }
.pub-ico { width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(135deg, #ff6363, #c81e3a); flex: 0 0 auto; }
.pub-card > div { min-width: 0; }
.pub-card b { display: block; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pub-card small { font-size: 11px; color: var(--dim); white-space: nowrap; }
.pub-btn { margin-left: auto; font-size: 11px; font-weight: 600; padding: 6px 10px; border-radius: 7px; background: #fff; color: #000; }
.pub-stats { font-size: 12px; color: #59d499; font-family: var(--mono); }

/* =========================================================
   CTA
   ========================================================= */
.cta { position: relative; padding: 140px 16px 0; text-align: center; overflow: hidden; }
.cta-glow { position: absolute; left: 50%; bottom: -140px; width: 1100px; height: 600px; transform: translateX(-50%); background: radial-gradient(50% 50% at 50% 50%, rgba(255, 40, 60, .28), transparent 70%); filter: blur(40px); pointer-events: none; }
.cta-inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.cta-logo { width: 72px; height: 72px; margin-bottom: 20px; filter: drop-shadow(0 0 30px rgba(255, 99, 99, .6)); }
.cta h2 { font-size: 56px; font-weight: 600; letter-spacing: -.6px; }
.cta-inner > p { font-size: 18px; color: var(--muted); margin-bottom: 26px; }
.cta .hero-req { margin-top: 6px; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { position: relative; overflow: hidden; border-top: 1px solid var(--line); padding: 80px 24px 40px; }
.footer-glow { position: absolute; left: 50%; top: -300px; width: 1200px; height: 500px; transform: translateX(-50%); background: radial-gradient(50% 50% at 50% 50%, rgba(255, 40, 60, .08), transparent 70%); pointer-events: none; }
.footer-inner { position: relative; max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 340px 1fr; gap: 60px; }
.footer-brand { display: grid; gap: 40px; align-content: start; }
.newsletter strong { font-size: 15px; font-weight: 600; }
.newsletter p { margin-top: 6px; font-size: 14px; color: var(--muted); }
.nl-row { margin-top: 16px; display: flex; gap: 8px; }
.nl-row input { flex: 1; min-width: 0; height: 36px; padding: 0 12px; border-radius: 8px; border: 0; outline: 0; font: inherit; font-size: 14px; color: #fff; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.nl-row input:focus { box-shadow: inset 0 0 0 1px rgba(255,99,99,.6), 0 0 0 3px rgba(255,99,99,.15); }
.newsletter small { display: block; margin-top: 12px; font-size: 12px; line-height: 1.5; color: var(--dim); }
.footer-cols { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.footer-cols div { display: flex; flex-direction: column; gap: 12px; }
.footer-cols h4 { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.footer-cols h4.mt { margin-top: 16px; }
.footer-cols a { font-size: 14px; color: var(--dim); transition: color .2s; }
.footer-cols a:hover { color: #fff; }
.footer-bottom { position: relative; max-width: var(--maxw); margin: 64px auto 0; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; font-size: 13px; color: var(--dim); }
.footer-kbd { display: flex; gap: 4px; }
.footer-kbd kbd { font-size: 11px; padding: 3px 7px; border-radius: 5px; background: rgba(255,255,255,.07); color: var(--muted); }

.toast-global {
  position: fixed; left: 50%; bottom: 28px; z-index: 100; transform: translate(-50%, 20px); opacity: 0;
  padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 500;
  background: rgba(40,40,44,.9); box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 10px 30px rgba(0,0,0,.5);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: opacity .3s, transform .4s var(--ease); pointer-events: none;
}
.toast-global.show { opacity: 1; transform: translate(-50%, 0); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .nav-links { gap: 6px; }
  .dev-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .nav { padding: 12px 16px 12px 20px; height: 64px; }
  .nav-links, .nav-login { display: none; }
  .nav-burger { display: block; }
  .nav-right { gap: 8px; margin-left: auto; margin-right: 8px; }
  .ai-app { grid-template-columns: 1fr; }
  .ai-side { display: none; }
  .ai-cards, .dry-grid { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
  .comm-grid { grid-template-columns: 1fr; }
  .else-text { font-size: 30px; }
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .hero-title { font-size: 44px; }
  .hero-sub { font-size: 16px; margin-top: 24px; }
  .br-d { display: none; }
  .demo { padding-top: 120px; }
  .demo-head { margin-bottom: 40px; }
  .mac { border-radius: 16px; padding: 6px; }
  .mac-screen { border-radius: 12px; }
  .kb-stage { height: 340px; }
  .keyboard { --u: 44px; --g: 5px; padding: 12px; }
  .key { font-size: 10px; padding: 5px 6px; border-radius: 7px; }
  .key.feature { font-size: 10px; padding: 6px 8px; }
  .ext { padding: 120px 0; }
  .ext-top { gap: 24px; }
  .ext-cats { max-width: 100%; overflow-x: auto; scrollbar-width: none; padding: 6px 8px; gap: 2px; }
  .ext-cats::-webkit-scrollbar { display: none; }
  .ext-cat { flex: 0 0 auto; height: 40px; padding: 0 10px; }
  .ext-cat-bg { top: 6px; height: 40px; }
  .nav-right .btn { padding: 0 10px; }
  .x-card { flex-basis: 300px; height: 500px; }
  .x-visual { height: 330px; transform-origin: 50% 0; }
  .ai-head h2, .cta h2 { font-size: 36px; }
  .ai-app { height: 560px; }
  .ai-thread { padding: 20px; }
  .dev-grid { grid-template-columns: minmax(0, 1fr); }
  .else-text { font-size: 26px; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .nl-row { flex-direction: column; }
  .footer-bottom { flex-direction: column; gap: 12px; }
}

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