/* screenX website — layout inspired by studio.tayang.app */
:root {
  --bg: #fdfdfd;
  --ink: #141414;
  --muted: #5e5e66;
  --line: #ececef;
  --card: #ffffff;
  --soft: #f6f6f8;
  --accent: #2f6bff;           /* screenX blue (from the app icon) */
  --accent-2: #22b8ff;
  --accent-ink: #ffffff;
  --dark: #0d0d10;
  --dark-2: #17171c;
  --dark-line: #2a2a31;
  --radius: 14px;
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.02em; }
h2 { font-size: clamp(32px, 5vw, 56px); font-weight: 800; line-height: 1.05; letter-spacing: -0.04em; max-width: 760px; }
h2.center { text-align: center; margin: 0 auto; }
h3 { font-size: 19px; font-weight: 700; }
p { margin: 0; }
.sub { color: var(--muted); font-size: clamp(17px, 1.6vw, 20px); max-width: 560px; margin-top: 16px; }
.container { width: min(1120px, 100% - 32px); margin: 0 auto; }
.section { padding: 160px 0 0; }
.head { text-align: center; }
.head h2, .head .sub { margin-left: auto; margin-right: auto; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.ask { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 600; }
.ask:hover { color: #2259e6; }

.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic.sm { width: 14px; height: 14px; }
.ic.xs { width: 13px; height: 13px; }

kbd, .kd {
  display: inline-block; font-family: var(--font); font-size: 0.8em; font-weight: 600;
  padding: 1px 7px; border: 1px solid var(--line); border-bottom-width: 2px;
  border-radius: 6px; background: #fff; color: var(--ink); line-height: 1.5;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 600; font-size: 15px; border-radius: 8px; padding: 11px 18px;
  border: 1px solid transparent; transition: box-shadow .2s, background .2s, border-color .2s; cursor: pointer; will-change: transform;
  font-family: inherit;
}
.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn-lg { padding: 14px 24px; font-size: 16px; }
.btn:hover { box-shadow: 0 10px 24px -12px rgba(20,30,60,.35); }
.btn-primary:hover { box-shadow: 0 12px 26px -10px rgba(47,107,255,.65), inset 0 1px 0 rgba(255,255,255,.2); }
.btn-block { width: 100%; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 18px -6px rgba(47,107,255,.6), inset 0 1px 0 rgba(255,255,255,.2); }
.btn-primary:hover { background: #2259e6; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-ghost { background: #fff; border-color: #dcdce1; color: var(--ink); }
.btn-ghost:hover { border-color: #bfbfc7; }

/* ---------- nav ---------- */
.nav-wrap { position: fixed; top: 12px; left: 0; right: 0; z-index: 50; padding: 0 16px; }
.nav {
  max-width: 940px; margin: 0 auto; display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.82); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border: 1px solid var(--line); border-radius: 14px; padding: 7px 7px 7px 14px;
  box-shadow: 0 8px 30px -14px rgba(0,0,0,.18);
}
.brand { display: inline-flex; align-items: center; gap: 8px; }
.brand img { height: 17px; width: auto; }
.nav-links { display: flex; gap: 2px; margin-left: 18px; flex: 1; }
.nav-links a { font-size: 14px; color: #3c3c44; padding: 7px 12px; border-radius: 8px; display: inline-flex; align-items: center; gap: 6px; }
.nav-links a:hover { background: var(--soft); color: var(--ink); }
.nav-links .ic { width: 16px; height: 16px; }
.nav-cta { display: flex; gap: 6px; align-items: center; margin-left: auto; }
.gh-btn { border-color: var(--line); }
.gh-btn .ic { width: 16px; height: 16px; }
.menu-btn { display: none; width: 38px; height: 36px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.menu-btn span { display: block; width: 16px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.mobile-menu { max-width: 940px; margin: 8px auto 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 8px; display: grid; box-shadow: 0 12px 30px -14px rgba(0,0,0,.2); }
.mobile-menu a { padding: 12px; border-radius: 8px; font-weight: 500; }
.mobile-menu a:hover { background: var(--soft); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 190px 16px 100px; text-align: center; overflow: hidden; }
#ascii { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 48% 42% at 50% 46%, transparent 35%, #000 85%);
          mask-image: radial-gradient(ellipse 48% 42% at 50% 46%, transparent 35%, #000 85%); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 160px; background: linear-gradient(transparent, var(--bg)); z-index: 0; pointer-events: none; }
.hero-inner, .works-with { position: relative; z-index: 2; }
.pill-badge {
  display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; color: #3c3c44;
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px 4px 4px;
  box-shadow: 0 2px 10px -6px rgba(0,0,0,.2);
}
.pill-badge .tag { background: var(--ink); color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; padding: 3px 8px; border-radius: 999px; }
.pill-badge .chev { color: #9a9aa3; }
.hero h1 {
  font-size: clamp(44px, 8.4vw, 86px); font-weight: 800; line-height: 1.02; letter-spacing: -0.045em;
  margin: 30px auto 26px; max-width: 900px;
}
.hero h1 .accent { color: var(--accent); }
.lead { font-size: clamp(17px, 1.8vw, 21px); color: var(--muted); max-width: 520px; margin: 0 auto; }
.lead kbd { font-size: 0.82em; }
.hero-ctas { display: flex; gap: 12px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.hint { margin-top: 22px; font-size: 14px; color: #7a7a83; }
.hint kbd { font-size: 12px; }

.floaters { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.tile {
  translate: var(--px, 0) var(--py, 0);
  position: absolute; width: 62px; height: 62px; border-radius: 16px; background: #fff;
  border: 1px solid var(--line); display: grid; place-items: center;
  box-shadow: 0 14px 30px -14px rgba(0,0,0,.25); animation: bob 7s ease-in-out infinite;
}
.tile .ic { width: 28px; height: 28px; stroke-width: 1.8; }
.t1 { left: 7%;  top: 18%; animation-delay: -1s; }
.t2 { left: 30%; top: 12%; width: 54px; height: 54px; animation-delay: -3s; }
.t3 { right: 29%; top: 13%; animation-delay: -2s; }
.t4 { right: 8%; top: 22%; animation-delay: -4s; }
.t5 { left: 5%;  top: 56%; width: 54px; height: 54px; animation-delay: -5s; }
.t6 { right: 6%; top: 58%; animation-delay: -2.5s; }
.t7 { left: 18%; top: 76%; width: 50px; height: 50px; animation-delay: -6s; opacity: .75; }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-12px) rotate(2deg); } }

.works-with { margin-top: 110px; }
.works-with ul { list-style: none; padding: 0; margin: 0 auto; max-width: 820px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 30px; }
.works-with li { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; color: #6b6b74; }
.works-with li .ic { color: #8a8a93; }

/* ---------- showcase ---------- */
.showcase { padding-top: 80px; }
.tabs { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); margin: 48px auto 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.tab {
  position: relative; font-family: inherit; font-size: 16px; font-weight: 500; color: #6b6b74; background: none; border: 0;
  border-left: 1px solid var(--line); padding: 20px 12px; cursor: pointer; display: flex; gap: 10px; align-items: baseline; justify-content: center;
  transition: color .2s, background-color .3s;
}
.tab:first-child { border-left: 0; }
.tab span { font-family: var(--mono); font-size: 13px; color: #9a9aa3; transition: color .2s; }
.tab:hover { color: var(--ink); background: #fafafc; }
.tab.active { background: #f1f5ff; color: var(--ink); }
.tab.active span { color: var(--accent); }
.tab-ind { position: absolute; left: 0; bottom: -1px; height: 3px; width: 20%; background: var(--accent); border-radius: 3px 3px 0 0; pointer-events: none; }
.tab-caption { text-align: center; color: var(--muted); max-width: 520px; margin: 24px auto 40px; min-height: 26px; }

.stage-frame {
  padding: 22px; border-radius: 24px; border: 1px solid #e3e9ff;
  background: radial-gradient(120% 120% at 0% 0%, #eef3ff, #f7fbff 50%, #eaf6ff);
}
.stage {
  --x: 52%; --y: 30%; --w: 40%; --h: 30%;
  position: relative; aspect-ratio: 16 / 9.4; border-radius: 14px; overflow: hidden;
  background: #fff; box-shadow: 0 30px 60px -30px rgba(20,40,90,.45); border: 1px solid #d9dee9;
  font-size: 13px; container-type: inline-size;
}

/* fake browser showing a Wikipedia article */
.desk { position: absolute; inset: 0; display: flex; flex-direction: column; background: #fff; }
.desk-bar { height: 38px; flex: none; display: flex; align-items: center; gap: 7px; padding: 0 14px; background: #f1f2f5; border-bottom: 1px solid #e3e5ea; color: #555; font-size: 12px; }
.desk-bar i { width: 11px; height: 11px; border-radius: 50%; background: #d4d6dc; }
.desk-bar i:nth-child(1) { background: #ff5f57; } .desk-bar i:nth-child(2) { background: #febc2e; } .desk-bar i:nth-child(3) { background: #28c840; }
.url { margin: 0 auto; display: flex; align-items: center; gap: 6px; background: #fff; border: 1px solid #e3e5ea; border-radius: 7px; padding: 3px 14px; font-size: 12px; color: #444; max-width: 60%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.url .ic { width: 11px; height: 11px; color: #888; }

.wk { flex: 1; display: flex; flex-direction: column; font-family: -apple-system, "Segoe UI", Arial, sans-serif; color: #202122; font-size: clamp(8px, 1.5cqw, 16px); min-height: 0; }
.wk a { color: #3366cc; }
.wk-head { display: flex; align-items: center; gap: 2.2%; padding: 1.4% 3%; border-bottom: 1px solid #eaecf0; }
.wk-burger { display: grid; gap: 3px; width: 16px; } .wk-burger b { height: 2px; background: #54595d; border-radius: 1px; }
.wk-word { font-family: "Linux Libertine", Georgia, "Times New Roman", serif; font-size: 1.45em; letter-spacing: .02em; line-height: 1; display: grid; }
.wk-word small { font-size: .45em; letter-spacing: .04em; color: #54595d; margin-top: 3px; }
.wk-search { display: flex; align-items: center; gap: 8px; border: 1px solid #a2a9b1; border-radius: 3px; padding: .45em .8em; color: #72777d; width: 34%; margin-left: 2%; }
.wk-search .ic { width: 1.1em; height: 1.1em; }
.wk-body { flex: 1; display: flex; gap: 4%; padding: 2.4% 5% 0 5%; min-height: 0; }
.wk-main { flex: 1; min-width: 0; align-self: flex-start; }
.wk-title { font-family: "Linux Libertine", Georgia, "Times New Roman", serif; font-size: 2.15em; line-height: 1.2; padding-bottom: .2em; border-bottom: 1px solid #a2a9b1; }
.wk-tabs { display: flex; gap: 1.2em; font-size: .9em; color: #3366cc; border-bottom: 1px solid #eaecf0; padding: .55em 0; }
.wk-tabs .on { color: #202122; font-weight: 600; } .wk-tabs .r { margin-left: auto; }
.wk-from { font-size: .86em; color: #54595d; margin: .9em 0 .8em; }
.wk-p { line-height: 1.6; margin-bottom: .75em; }
.ocr-src { position: relative; }
.wk-h { font-family: "Linux Libertine", Georgia, "Times New Roman", serif; font-size: 1.5em; border-bottom: 1px solid #a2a9b1; margin: .7em 0 .5em; padding-bottom: .1em; }
.wk-box { width: 43%; flex: none; align-self: flex-start; background: #f8f9fa; border: 1px solid #a2a9b1; padding: .6em; font-size: .9em; }
.wk-box-title { text-align: center; font-weight: 700; font-size: 1.12em; margin-bottom: .5em; }
.wk-img { width: 100%; aspect-ratio: 960 / 436; object-fit: cover; background: #d9c3a5; }
.wk-rows { margin-top: .5em; display: grid; gap: .3em; }
.wk-rows div { display: grid; grid-template-columns: 38% 1fr; }
.wk-rows span { font-weight: 700; }

@container (max-width: 640px) {
  .wk-body { flex-direction: column-reverse; justify-content: flex-end; gap: 0; padding-top: 3%; }
  .wk-box { width: 100%; padding: 0; border: 0; background: none; margin-bottom: 4%; }
  .wk-box-title, .wk-rows, .wk-extra, .wk-tabs, .wk-from { display: none; }
  .wk-title { font-size: 1.9em; margin-bottom: .5em; }
  .wk { font-size: 3.4cqw; }
  .wk-search { display: none; }
  .url { max-width: 78%; }
}

.dim { display: none; }

/* selection: position comes from --x/--y/--w/--h on .stage (set by GSAP) */
.sel {
  position: absolute; left: var(--x); top: var(--y); width: var(--w); height: var(--h);
  outline: 1.5px solid rgba(255,255,255,.95); box-shadow: 0 0 0 9999px rgba(10,12,20,.45);
  transition: box-shadow .4s, outline-color .4s;
}
.sel .c { position: absolute; width: 18px; height: 18px; border: 3.5px solid #fff; transition: opacity .3s, border-color .3s; }
.sel .tl { left: -4px; top: -4px; border-right: 0; border-bottom: 0; border-radius: 4px 0 0 0; }
.sel .tr { right: -4px; top: -4px; border-left: 0; border-bottom: 0; border-radius: 0 4px 0 0; }
.sel .bl { left: -4px; bottom: -4px; border-right: 0; border-top: 0; border-radius: 0 0 0 4px; }
.sel .br { right: -4px; bottom: -4px; border-left: 0; border-top: 0; border-radius: 0 0 4px 0; }
.sel .e { position: absolute; background: #fff; border-radius: 3px; transition: opacity .3s, background .3s; }
.sel .e.t, .sel .e.b { width: 22px; height: 4px; left: calc(50% - 11px); }
.sel .e.t { top: -2.5px; } .sel .e.b { bottom: -2.5px; }
.sel .e.l, .sel .e.r { width: 4px; height: 22px; top: calc(50% - 11px); }
.sel .e.l { left: -2.5px; } .sel .e.r { right: -2.5px; }
.size-chip { position: absolute; left: 0; top: -28px; font-family: var(--mono); font-size: 11px; color: #fff; background: rgba(0,0,0,.6); padding: 2px 8px; border-radius: 6px; transition: opacity .3s; white-space: nowrap; }

.ink { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.ink path, .ink ellipse { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 2000; stroke-dashoffset: 2000; }
.stage:not([data-mode="markup"]) .ink { opacity: 0; }
.ink-circle { stroke: #ef4444; stroke-width: 3; vector-effect: non-scaling-stroke; }
.ink-arrow { stroke: #ef4444; stroke-width: 3; vector-effect: non-scaling-stroke; }
.emoji { position: absolute; right: 5%; bottom: 6%; font-size: clamp(18px, 3.4cqw, 32px); opacity: 0; }
.flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.rec-count { position: absolute; inset: 0; display: grid; place-items: center; font-size: clamp(40px, 10cqw, 96px); font-weight: 800; color: #fff; opacity: 0; text-shadow: 0 6px 30px rgba(0,0,0,.4); }

/* toolbars */
.toolbar, .markbar, .recbar {
  position: absolute; display: flex; align-items: center; gap: 3px; padding: 5px;
  background: rgba(32,33,38,.94); border: 1px solid rgba(255,255,255,.08); border-radius: 12px;
  box-shadow: 0 12px 30px -10px rgba(0,0,0,.5); color: #e9e9ee; transition: all .45s cubic-bezier(.5,0,.2,1);
}
.toolbar { left: 50%; top: 4%; transform: translateX(-50%); }
.seg { display: flex; background: rgba(255,255,255,.06); border-radius: 8px; padding: 2px; }
.tb {
  height: 30px; min-width: 30px; display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  background: none; border: 0; color: inherit; border-radius: 7px; padding: 0 7px; font: 600 12.5px var(--font); cursor: default;
}
.tb .ic { width: 16px; height: 16px; }
.tb.wide { padding: 0 10px; }
.tb.primary { background: var(--accent); color: #fff; }
.tb.act { background: rgba(255,255,255,.14); }
.tb.danger { color: #ff8a8a; }
.sep { width: 1px; height: 18px; background: rgba(255,255,255,.14); margin: 0 3px; }
.stage[data-mode="snip"] .on-snip,
.stage[data-mode="markup"] .on-snip,
.stage[data-mode="record"] .on-record,
.stage[data-mode="color"] .on-color,
.stage[data-mode="ocr"] .on-ocr { background: var(--accent); color: #fff; }
.stage[data-mode="markup"] .markup-btn { background: rgba(255,255,255,.14); }
.stage[data-mode="record"] .mode-btn, .stage[data-mode="record"] .markup-btn { opacity: .35; }

.markbar { left: clamp(25%, calc(var(--x) + var(--w) / 2), 75%); top: min(calc(var(--y) + var(--h) + 14px), calc(100% - 50px)); transform: translate(-50%, 8px); opacity: 0; pointer-events: none; }
.recbar { left: clamp(25%, calc(var(--x) + var(--w) / 2), 75%); top: min(calc(var(--y) + var(--h) + 14px), calc(100% - 50px)); transform: translate(-50%, 8px); opacity: 0; gap: 8px; padding-left: 12px; }
.recbar .mono { font-size: 12px; }
.rec-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 0 0 rgba(239,68,68,.6); animation: pulse 1.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(239,68,68,0); } 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); } }

.magnifier { position: absolute; left: 0; top: 0; opacity: 0; transform: scale(.8); pointer-events: none; }
.mag-grid {
  width: clamp(70px, 13cqw, 120px); aspect-ratio: 1; border-radius: 50%; border: 3px solid #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
  background:
    linear-gradient(rgba(255,255,255,.18) 1px, transparent 1px) 0 0 / 12.5% 12.5%,
    linear-gradient(90deg, rgba(255,255,255,.18) 1px, transparent 1px) 0 0 / 12.5% 12.5%,
    var(--mag-img, none) var(--mag-pos, 50% 50%) / 1600% auto no-repeat, #c68e62;
  image-rendering: pixelated;
  position: relative;
}
.mag-grid::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12.5%; height: 12.5%; transform: translate(-50%,-50%); outline: 2px solid #fff; box-shadow: 0 0 0 1px #000; }
.mag-info { margin-top: 8px; display: flex; align-items: center; gap: 6px; background: rgba(32,33,38,.94); color: #fff; padding: 4px 9px; border-radius: 8px; font-size: 12px; justify-content: center; }
.mag-info i { width: 12px; height: 12px; border-radius: 3px; background: #c68e62; border: 1px solid rgba(255,255,255,.5); }

.toast {
  position: absolute; right: 2.5%; bottom: 4%; display: flex; gap: 10px; align-items: center;
  background: rgba(32,33,38,.96); color: #fff; padding: 10px 14px 10px 10px; border-radius: 12px;
  box-shadow: 0 16px 40px -12px rgba(0,0,0,.5); max-width: 300px; opacity: 0; transform: translateY(10px);
}
.toast img { flex: none; }
.toast b { display: block; font-size: 13px; }
.toast span { font-size: 11.5px; color: #b8b8c2; line-height: 1.35; display: block; }

/* ---- per-mode states (motion is driven by GSAP in script.js) ---- */
.stage[data-mode="markup"] .size-chip, .stage[data-mode="ocr"] .size-chip { opacity: 0; }
.stage[data-mode="record"] .sel { outline: 2px dashed #ef4444; }
.stage[data-mode="record"] .sel .c { border-color: #ef4444; }
.stage[data-mode="record"] .sel .e { background: #ef4444; }
.stage[data-mode="color"] .sel { box-shadow: 0 0 0 9999px rgba(10,12,20,0); outline-color: transparent; background: rgba(10,12,20,.08); }
.stage[data-mode="color"] .sel .c, .stage[data-mode="color"] .sel .e, .stage[data-mode="color"] .size-chip { opacity: 0; }

/* fallback when GSAP is off (reduced motion / offline) */
.stage.static[data-mode="markup"] .markbar, .stage.static[data-mode="record"] .recbar { opacity: 1; transform: translate(-50%, 0); }
.stage.static[data-mode="markup"] .ink path, .stage.static[data-mode="markup"] .ink ellipse { stroke-dashoffset: 0; }
.stage.static[data-mode="markup"] .emoji { opacity: 1; }
.stage.static[data-mode="record"] .rec-count { opacity: 1; }
.stage.static[data-mode="color"] .magnifier { opacity: 1; transform: none; left: 45%; top: 30%; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 64px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 28px 24px; }
.step .num { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: var(--ink); color: #fff; font: 600 13px var(--mono); }
.step h3 { margin: 28px 0 8px; font-size: 20px; }
.step p { color: var(--muted); font-size: 15px; }
.step kbd { font-size: 0.78em; }

/* ---------- feature cards ---------- */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 64px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 32px; display: flex; flex-direction: column; }
.card h3 { font-size: 22px; }
.card > p { color: var(--muted); margin-top: 10px; font-size: 15px; }
.panel { margin-top: 28px; min-height: 150px; background: var(--dark); color: #e6e6ea; border-radius: 12px; padding: 18px; font-size: 13.5px; flex: 1; display: grid; align-content: start; gap: 10px; }
.term-line { display: flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 12.5px; }
.term-line.dim-t { color: #8b8b96; padding-left: 18px; }
.term-line.ok { color: #7ee2a8; }
.color-panel { grid-template-columns: auto 1fr; align-items: center; gap: 18px; }
.big-swatch { width: 84px; height: 84px; border-radius: 14px; background: linear-gradient(135deg, #2f6bff, #22b8ff); box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); }
.codes { display: grid; gap: 7px; }
.codes div { display: flex; align-items: center; gap: 10px; background: var(--dark-2); border: 1px solid var(--dark-line); border-radius: 8px; padding: 6px 10px; }
.codes span { font-size: 11px; color: #8b8b96; width: 32px; font-weight: 600; }
.codes b { font-weight: 500; font-size: 12.5px; flex: 1; }
.codes .ic { color: #8b8b96; }
.ocr-box { background: var(--dark-2); border: 1px dashed #4b6fd6; border-radius: 8px; padding: 12px; line-height: 1.6; font-size: 12.5px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 12px; background: var(--dark-2); border: 1px solid var(--dark-line); border-radius: 6px; padding: 3px 9px; color: #c9c9d1; }
.lens-url { display: flex; gap: 8px; align-items: center; background: var(--dark-2); border: 1px solid var(--dark-line); border-radius: 8px; padding: 8px 10px; font-size: 12px; color: #a7a7b2; }
.lens-row { display: flex; gap: 14px; align-items: center; }
.lens-thumb { width: 92px; aspect-ratio: 4/3; border-radius: 8px; background:
  linear-gradient(#fff0 60%, #fff0), repeating-linear-gradient(90deg, #2f6bff 0 10px, transparent 10px 16px) bottom / 100% 55% no-repeat, #fff; }
.lens-lines { flex: 1; display: grid; gap: 8px; }
.lens-lines .line { background: #2a2a31; }

/* ---------- dark band ---------- */
.dark-band { background: var(--dark); color: #fff; margin-top: 160px; padding: 140px 0; text-align: center; position: relative; overflow: hidden; }
.dark-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 50% 0%, rgba(47,107,255,.25), transparent 70%); }
.dark-band .container { position: relative; }
.dark-band h2 { margin: 0 auto; max-width: 820px; }
.dark-band .sub { margin: 16px auto 0; color: #a3a3ad; }
.orbit { position: relative; width: 300px; height: 150px; margin: 0 auto 40px; }
.orbit-center { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 92px; height: 92px; border-radius: 24px; background: #fff; display: grid; place-items: center; box-shadow: 0 0 60px rgba(47,107,255,.45); }
.orbit-center img { width: 52px; height: auto; }
.o { position: absolute; width: 50px; height: 50px; border-radius: 14px; background: #fff; color: #111; display: grid; place-items: center; animation: bob 6s ease-in-out infinite; }
.o .ic { width: 24px; height: 24px; }
.o1 { left: 0; top: 50px; } .o2 { left: 64px; top: 0; animation-delay: -2s; } .o3 { right: 64px; top: 0; animation-delay: -4s; } .o4 { right: 0; top: 50px; animation-delay: -1s; }
.dark-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 64px auto 0; max-width: 900px; text-align: left; }
.dcard { background: var(--dark-2); border: 1px solid var(--dark-line); border-radius: 18px; padding: 24px; }
.dcard h4 { display: flex; align-items: center; gap: 10px; font-size: 17px; }
.dcard p { color: #a3a3ad; font-size: 14.5px; margin-top: 10px; }
.dcard .kd { background: #26262d; color: #fff; border-color: #3a3a43; }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 64px auto 0; max-width: 760px; align-items: stretch; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 32px; display: flex; flex-direction: column; }
.plan h3 { display: flex; align-items: center; gap: 10px; font-size: 20px; min-height: 28px; }
.plan-sub { color: var(--muted); font-size: 15px; margin-top: 6px; }
.price { font-size: 44px; font-weight: 800; letter-spacing: -0.04em; margin: 28px 0 24px; padding-bottom: 24px; border-bottom: 1px solid var(--line); line-height: 1; }
.plan.featured .price { border-color: var(--dark-line); }
.price small { font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-left: 8px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 14px; flex: 1; align-content: start; }
.plan li { display: flex; gap: 12px; align-items: center; font-size: 15px; }
.ck { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #e8efff; color: var(--accent); }
.ck .ic { width: 13px; height: 13px; stroke-width: 3; }
.plan li.off { color: #9a9aa3; }
.plan li.off .ck { background: #f1f1f4; color: #a3a3ab; }
.plan.featured .ck { background: var(--accent); color: #fff; }
.plan.featured { background: var(--dark); color: #fff; border-color: var(--dark); }
.plan.featured .plan-sub, .plan.featured .price small { color: #a3a3ad; }
.rec-tag { font-size: 10px; font-weight: 700; letter-spacing: .08em; background: var(--accent); color: #fff; padding: 3px 8px; border-radius: 5px; }

/* ---------- download ---------- */
.download { background: var(--dark); color: #fff; margin-top: 160px; padding: 140px 0; }
.download .sub { color: #a3a3ad; }
.os-tabs-wrap { text-align: center; margin-top: 40px; }
.os-tabs { display: inline-flex; gap: 4px; background: var(--dark-2); border: 1px solid var(--dark-line); border-radius: 12px; padding: 4px; }
.os-tab { font: 600 14.5px var(--font); color: #a3a3ad; background: none; border: 0; padding: 9px 16px; border-radius: 9px; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.os-tab:hover { color: #fff; }
.os-tab.active { background: #fff; color: var(--ink); }
.os-panel { margin: 32px auto 0; max-width: 900px; }
.dl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.dl-card { min-width: 0; background: var(--dark-2); border: 1px solid var(--dark-line); border-radius: 22px; padding: 32px; display: grid; gap: 16px; align-content: start; }
.dl-card h3 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dl-card .muted { color: #a3a3ad; }
.howto { margin: 4px 0 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 12px; }
.howto li { counter-increment: s; position: relative; padding-left: 34px; font-size: 14.5px; color: #dcdce2; }
.howto li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 6px; background: #26262d; border: 1px solid #34343c; display: grid; place-items: center; font: 500 12px var(--mono); color: #c9c9d1; margin-top: 1px; }
.dl-card .kd { background: #26262d; color: #fff; border-color: #3a3a43; }
.cmd { display: flex; align-items: center; gap: 10px; background: #0a0a0d; border: 1px solid var(--dark-line); border-radius: 10px; padding: 6px 6px 6px 14px; font-family: var(--mono); font-size: 13.5px; }
.cmd .ps { color: #6b6b75; }
.cmd code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; color: #e9e9ee; }
.copy { font: 600 12.5px var(--font); background: var(--accent); color: #fff; border: 0; border-radius: 7px; padding: 7px 12px; cursor: pointer; }
.copy.done { background: #16a34a; }
code.inline { font-family: var(--mono); font-size: .9em; background: #26262d; padding: 1px 6px; border-radius: 5px; color: #e9e9ee; }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; align-items: start; max-width: 960px; margin: 0 auto; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-weight: 600; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.pm { flex: none; width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); display: grid; place-items: center; transition: transform .2s; }
.pm .ic { width: 15px; height: 15px; }
.faq details[open] .pm { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 50px 24px 0; }

/* ---------- footer ---------- */
.footer { margin-top: 160px; border-top: 1px solid var(--line); padding: 30px 0; }
.foot .brand img { height: 18px; }
.foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: space-between; font-size: 14px; color: var(--muted); }
.foot a:hover { color: var(--ink); }
.foot-links { display: flex; gap: 18px; }

/* GSAP hover lift targets */
.step, .card, .plan, .dcard, .dl-card { will-change: transform; }
.faq details > p { overflow: hidden; }
.lens-thumb { background-size: cover !important; background-position: center !important; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; }
  .section { padding-top: 120px; }
  .dark-band, .download { margin-top: 120px; padding: 100px 0; }
  .steps { grid-template-columns: 1fr 1fr; }
  .grid2, .dl-grid, .faq-wrap { grid-template-columns: 1fr; }
  .plans { max-width: 640px; }
  .dark-grid { grid-template-columns: 1fr; }
  .faq-wrap { gap: 24px; text-align: center; }
  .faq { text-align: left; }
  .t2, .t3, .t7 { display: none; }
  .stage-frame { padding: 10px; border-radius: 18px; }
  .stage { aspect-ratio: 4 / 4.2; }
}
@media (max-width: 560px) {
  .hero { padding: 140px 16px 70px; }
  .section { padding-top: 96px; }
  .dark-band, .download { margin-top: 96px; padding: 80px 0; }
  .footer { margin-top: 96px; }
  .gh-btn span { display: none; }
  .gh-btn { padding: 8px 10px; }
  .plans { grid-template-columns: 1fr; }
  .card, .plan, .dl-card { padding: 24px; }
  .works-with { margin-top: 70px; }
  .works-with ul { gap: 10px 20px; }
  .foot { flex-direction: column; text-align: center; }
  .tile { width: 46px; height: 46px; border-radius: 12px; }
  .tile .ic { width: 22px; height: 22px; }
  .floaters { display: none; }
  .steps { grid-template-columns: 1fr 1fr; gap: 12px; }
  .step { padding: 22px 18px; }
  .step h3 { margin-top: 20px; font-size: 18px; }
  .tab { padding: 12px 2px; font-size: 13px; flex-direction: column; align-items: center; gap: 2px; }
  .tab span { font-size: 11px; }
  .tb { height: 24px; min-width: 22px; padding: 0 4px; }
  .tb .ic { width: 13px; height: 13px; }
  .toolbar, .markbar, .recbar { gap: 1px; padding: 3px; border-radius: 9px; }
  .sep { margin: 0 1px; }
  .markbar .tb:nth-of-type(n+9) { display: none; }
  .toast { max-width: 220px; padding: 8px; }
  .toast span { display: none; }
  .os-tabs { display: flex; }
  .os-tab { flex: 1; justify-content: center; padding: 9px 8px; }
  .color-panel { grid-template-columns: 1fr; }
  .faq details p { padding-right: 0; }
  .price { font-size: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
