/* =========================================================
   Limpa Ai — landing page
   Estética: minimal, flat, terminal/developer.
   ========================================================= */

:root {
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", SFMono-Regular, Menlo, Consolas, monospace;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --accent: #4ade80;
  --accent-dim: rgba(74, 222, 128, 0.12);
  --maxw: 1080px;
  --nav-h: 60px;
  --r: 10px;
  --r-sm: 7px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-theme="dark"] {
  --bg: #0a0a0a;
  --bg-2: #0d0d0d;
  --surface: #111111;
  --surface-2: #161616;
  --line: #222222;
  --line-2: #2e2e2e;
  --fg: #ededed;
  --fg-2: #a1a1a1;
  --fg-3: #6b6b6b;
  --white-btn: #f5f5f5;
  --white-btn-fg: #0a0a0a;
  --code-bg: #0d0d0d;
}

html[data-theme="light"] {
  --bg: #fafafa;
  --bg-2: #f2f2f2;
  --surface: #ffffff;
  --surface-2: #f6f6f6;
  --line: #e4e4e4;
  --line-2: #d4d4d4;
  --fg: #101010;
  --fg-2: #5c5c5c;
  --fg-3: #8a8a8a;
  --white-btn: #101010;
  --white-btn-fg: #fafafa;
  --code-bg: #f6f6f6;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 20px); }

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .25s var(--ease), color .25s var(--ease);
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
code { font-family: var(--mono); font-size: .88em; }

.skip { position: absolute; left: -999px; top: 0; background: var(--fg); color: var(--bg); padding: 10px 14px; border-radius: 8px; z-index: 999; }
.skip:focus { left: 12px; top: 12px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 760px; }
.muted { color: var(--fg-2); }
.hl { color: var(--accent); }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--mono); font-weight: 500; font-size: 13.5px; line-height: 1;
  padding: 11px 18px; border-radius: var(--r-sm); border: 1px solid transparent;
  cursor: pointer; transition: transform .15s var(--ease), background .2s, border-color .2s, opacity .2s;
  white-space: nowrap;
}
.btn-sm { padding: 8px 14px; font-size: 12.5px; }
.btn-lg { padding: 14px 24px; font-size: 14px; border-radius: 9px; }
.btn-primary { background: var(--white-btn); color: var(--white-btn-fg); }
.btn-primary:hover { transform: translateY(-1px); opacity: .9; }
.btn-outline { background: transparent; color: var(--fg); border-color: var(--line-2); }
.btn-outline:hover { border-color: var(--fg); transform: translateY(-1px); }

/* ---------------- nav ---------------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid transparent; transition: border-color .25s, background .25s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { height: var(--nav-h); display: flex; align-items: center; gap: 20px; }

.brand { display: inline-flex; align-items: center; gap: 9px; font-family: var(--mono); font-weight: 600; letter-spacing: -.02em; }
.brand-ic { border-radius: 6px; }
.brand-name { font-size: 15px; }
.brand-name b { color: var(--accent); font-weight: 700; }
.brand-ver { font-size: 11px; color: var(--fg-3); border: 1px solid var(--line); padding: 2px 6px; border-radius: 5px; margin-left: 2px; }

.nav-links { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav-links a { font-size: 13.5px; color: var(--fg-2); padding: 8px 12px; border-radius: 7px; transition: color .18s, background .18s; }
.nav-links a:hover { color: var(--fg); background: var(--surface); }
.nav-links a[aria-current="page"] { color: var(--fg); }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle {
  display: grid; place-items: center; width: 36px; height: 36px;
  border-radius: 8px; border: 1px solid var(--line); background: transparent;
  color: var(--fg-2); cursor: pointer; transition: color .18s, border-color .18s;
}
.theme-toggle:hover { color: var(--fg); border-color: var(--line-2); }
html[data-theme="dark"] .ic-sun { display: none; }
html[data-theme="light"] .ic-moon { display: none; }

.burger { display: none; flex-direction: column; gap: 4px; width: 38px; height: 36px; align-items: center; justify-content: center; background: transparent; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.burger span { width: 16px; height: 1.6px; background: var(--fg); transition: transform .22s, opacity .18s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.6px) rotate(-45deg); }

/* ---------------- hero ---------------- */
.hero { position: relative; padding: calc(var(--nav-h) + 84px) 0 72px; }
.hero-glow {
  position: absolute; inset: 0 0 auto 0; height: 520px; pointer-events: none;
  background: radial-gradient(560px 300px at 50% -40px, var(--accent-dim), transparent 72%);
}
.hero-head { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }

.tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px; color: var(--fg-2);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; margin-bottom: 26px;
}
.tag .sep { color: var(--fg-3); }

h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); line-height: 1.02; letter-spacing: -.045em; font-weight: 700; margin: 0 0 22px; }
.sub { font-size: 17px; color: var(--fg-2); max-width: 620px; margin: 0 0 32px; }
.sub b { color: var(--fg); font-weight: 600; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 40px; }

/* terminal card (opencode style) */
.term { width: 100%; max-width: 640px; text-align: left; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--code-bg); }
.term-head { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.term-title { font-family: var(--mono); font-size: 11.5px; color: var(--fg-3); text-transform: uppercase; letter-spacing: .06em; }
.term-tabs { display: flex; gap: 6px; }
.t-tab { font-family: var(--mono); font-size: 11.5px; color: var(--fg); background: var(--surface); border: 1px solid var(--line-2); border-radius: 6px; padding: 3px 10px; cursor: default; }
.term-dots { display: flex; gap: 6px; margin-left: auto; }
.term-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.term-body { margin: 0; padding: 18px 18px 20px; overflow-x: auto; }
.term-body code { font-family: var(--mono); font-size: 13px; line-height: 1.9; white-space: pre; color: var(--fg); }
.t-com { color: var(--fg-3); }
.t-prompt { color: var(--accent); }
.cursor { display: inline-block; width: 7px; height: 15px; background: var(--accent); margin-left: 2px; vertical-align: -3px; animation: blink 1.1s steps(2, start) infinite; }
@keyframes blink { to { opacity: 0; } }
/* product shot */

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

.shot-real {
  width: 100%;
  height: auto;
  max-width: min(1240px, 95%);
  margin: 0 auto;
  display: block;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  box-shadow: 0 40px 140px -60px rgba(31, 168, 90, .8), 0 0 0 1px rgba(31, 168, 90, .24) inset;
  background: var(--surface);
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform .18s var(--ease), box-shadow .4s var(--ease);
}

.shot-real:hover {
  box-shadow: 0 44px 150px -55px rgba(31, 168, 90, .95), 0 0 0 1px rgba(31, 168, 90, .34) inset;
}

.shot-inline { max-width: 100%; border-radius: 12px; }

.shot {
  border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden;
  background: var(--surface); box-shadow: 0 40px 120px -50px rgba(0,0,0,.8);
}
.shot-bar { display: flex; align-items: center; gap: 10px; padding: 11px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.dots { display: flex; gap: 7px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; }
.d1 { background: #ff5f57; } .d2 { background: #febc2e; } .d3 { background: #28c840; }
.shot-title { font-family: var(--mono); font-size: 12.5px; color: var(--fg-2); margin-left: 4px; }
.shot-badge { margin-left: auto; font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; color: var(--accent); background: var(--accent-dim); padding: 3px 9px; border-radius: 5px; }

.shot-body { display: grid; grid-template-columns: 190px 1fr; min-height: 380px; }
.shot-side { background: var(--surface-2); border-right: 1px solid var(--line); padding: 14px 12px; display: flex; flex-direction: column; gap: 3px; }
.side-item { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--fg-3); padding: 8px 12px; border-radius: 8px; font-family: var(--mono); }
.side-item.active { background: var(--accent-dim); color: var(--accent); }
.sdot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; flex-shrink: 0; }
.side-foot { margin-top: auto; display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--fg-3); padding: 8px 12px; font-family: var(--mono); }

.shot-main { padding: 18px; display: flex; flex-direction: column; }
.shot-toolbar { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.chip-mini { font-family: var(--mono); font-size: 11.5px; color: var(--white-btn-fg); background: var(--white-btn); padding: 5px 11px; border-radius: 6px; }
.chip-mini.ghost { background: transparent; color: var(--fg-2); border: 1px solid var(--line-2); }

.shot-stats { display: flex; gap: 34px; margin-bottom: 16px; }
.snum { display: block; font-family: var(--mono); font-size: 22px; font-weight: 700; color: var(--fg); letter-spacing: -.02em; }
#sNum { color: var(--accent); }
.slbl { font-size: 12px; color: var(--fg-3); }

.shot-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.lrow { display: grid; grid-template-columns: 16px 1fr auto auto; align-items: center; gap: 12px; font-size: 12.5px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-2); }
.lrow .cb { width: 15px; height: 15px; border-radius: 4px; border: 1.5px solid var(--line-2); }
.lrow.sel .cb { background: var(--accent); border-color: var(--accent); box-shadow: inset 0 0 0 2px var(--bg-2); }
.lname { color: var(--fg-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ltag { font-family: var(--mono); font-size: 10.5px; color: var(--fg-3); border: 1px solid var(--line); padding: 1px 7px; border-radius: 999px; }
.lsize { font-family: var(--mono); color: var(--fg-3); font-size: 12px; }

.shot-progress { height: 8px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); overflow: hidden; margin-top: auto; }
.shot-progress i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .35s var(--ease); }
.shot-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.sf-lbl { font-size: 13px; color: var(--fg-2); }
.sf-lbl b { font-family: var(--mono); color: var(--fg); }
.sf-btn { font-family: var(--mono); font-size: 12.5px; color: var(--white-btn-fg); background: var(--white-btn); padding: 9px 18px; border-radius: 7px; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 72px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--line); }
.st { background: var(--bg); padding: 26px 20px; text-align: center; }
.st b { display: block; font-family: var(--mono); font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 700; letter-spacing: -.03em; }
.st span { font-size: 12.5px; color: var(--fg-3); }

/* ---------------- sections ---------------- */
.sec { padding: 96px 0; }
.sec-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.idx { font-family: var(--mono); font-size: 12.5px; color: var(--accent); display: block; margin-bottom: 14px; }
.sec-lead { max-width: 680px; margin-bottom: 52px; }
.sec-lead.center { margin-left: auto; margin-right: auto; text-align: center; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); line-height: 1.1; letter-spacing: -.035em; font-weight: 700; margin: 0 0 16px; }
.sec-lead p { font-size: 16.5px; margin: 0; }

/* star list (opencode) */
.star-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 40px; }
.star-list li { display: flex; gap: 14px; align-items: baseline; font-size: 14.5px; color: var(--fg-2); padding: 16px 0; border-top: 1px solid var(--line); }
.star-list li b { color: var(--fg); font-weight: 600; }
.star { font-family: var(--mono); color: var(--accent); flex-shrink: 0; font-size: 13px; }

/* feature blocks (codex) */
.block { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 52px 0; border-top: 1px solid var(--line); }
.block.reverse .block-text { order: 2; }
.block.reverse .block-visual { order: 1; }
.block-tag { font-family: var(--mono); font-size: 12px; color: var(--accent); display: block; margin-bottom: 14px; }
.block-text h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); letter-spacing: -.03em; font-weight: 700; line-height: 1.15; margin: 0 0 16px; }
.block-text p { color: var(--fg-2); font-size: 15.5px; margin: 0 0 22px; }
.ticks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 11px; }
.ticks li { position: relative; padding-left: 26px; font-size: 14.5px; color: var(--fg-2); }
.ticks li::before { content: "→"; position: absolute; left: 0; top: 0; font-family: var(--mono); color: var(--accent); }
.ticks.big li { font-size: 15px; padding-top: 2px; padding-bottom: 2px; }

.block-visual { display: flex; justify-content: center; }
.mini { width: 100%; max-width: 460px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.mini-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--fg-2); }
.mini-total { font-family: var(--mono); color: var(--accent); font-size: 12.5px; }
.mini-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 13px; }
.mini-row:last-child { border-bottom: 0; }
.mini-nm { color: var(--fg-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-sz { font-family: var(--mono); color: var(--fg-3); font-size: 12px; flex-shrink: 0; }

.mini-progress { height: 6px; background: var(--bg-2); margin: 14px 16px; border-radius: 999px; overflow: hidden; }
.mini-progress i { display: block; height: 100%; width: 78%; background: var(--accent); border-radius: 999px; }
.loglines { margin: 0; padding: 0 16px 16px; font-family: var(--mono); font-size: 12px; line-height: 1.9; color: var(--fg-2); white-space: pre; overflow-x: auto; }
.c-com { color: var(--fg-3); } .c-ok { color: var(--accent); } .c-warn { color: #f0b429; } .c-info { color: #7dd3fc; }

/* settings mock */
.settings { width: 100%; max-width: 460px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 16px; border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--fg-2); }
.set-row:last-child { border-bottom: 0; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 7px; overflow: hidden; font-family: var(--mono); font-size: 12px; }
.seg i { padding: 4px 12px; font-style: normal; color: var(--fg-3); }
.seg i.on { background: var(--white-btn); color: var(--white-btn-fg); }
.sw { width: 38px; height: 22px; border-radius: 999px; background: var(--line-2); position: relative; flex-shrink: 0; }
.sw i { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--fg-3); transition: transform .2s; }
.sw.on { background: var(--accent); }
.sw.on i { transform: translateX(16px); background: #04140d; }

/* security */
.sec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.sec-grid p { font-size: 16px; }
.sec-grid .ticks { margin-top: 26px; }
.sec-grid .ticks code, .ticks code { font-size: 12.5px; color: var(--fg); background: var(--surface-2); border: 1px solid var(--line); padding: 1px 6px; border-radius: 5px; }

.code { border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; background: var(--code-bg); }
.code-head { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.code-name { font-family: var(--mono); font-size: 12px; color: var(--fg-3); margin-left: 4px; }
.code pre { margin: 0; padding: 20px; overflow-x: auto; }
.code code { font-family: var(--mono); font-size: 13px; line-height: 1.8; white-space: pre; color: var(--fg-2); }
.code .k { color: var(--accent); } .code .s { color: #7dd3fc; } .code .c { color: var(--fg-3); }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip { font-family: var(--mono); font-size: 12.5px; color: var(--fg-2); background: var(--surface); border: 1px solid var(--line); padding: 8px 14px; border-radius: 999px; transition: color .18s, border-color .18s; }
.chip:hover { color: var(--fg); border-color: var(--line-2); }

/* numbers */
.numbers .num-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.num { background: var(--bg); padding: 34px 22px; text-align: center; }
.num b { display: block; font-family: var(--mono); font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 700; letter-spacing: -.04em; color: var(--accent); margin-bottom: 8px; }
.num span { font-size: 13px; color: var(--fg-3); }

/* download */
.dl { position: relative; overflow: hidden; text-align: center; border: 1px solid var(--line-2); border-radius: 16px; padding: 64px 32px; background: var(--surface); }
.dl-glow { position: absolute; inset: -40% 0 auto 0; height: 320px; background: radial-gradient(400px 200px at 50% 0, var(--accent-dim), transparent 70%); pointer-events: none; }
.dl > :not(.dl-glow) { position: relative; }
.dl h2 { margin-bottom: 12px; }
.dl > p { max-width: 520px; margin: 0 auto 30px; font-size: 16px; }
.dl-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 16px; }
.dl-meta { font-family: var(--mono); font-size: 12.5px; color: var(--fg-3); }
.dl-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 46px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--line); text-align: left; }
.note { background: var(--bg-2); padding: 20px; }
.note-k { font-family: var(--mono); font-size: 11px; color: var(--accent); text-transform: uppercase; letter-spacing: .08em; }
.note p { font-size: 13.5px; color: var(--fg-2); margin: 8px 0 0; }

/* faq */
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 4px; font-weight: 600; font-size: 15.5px; display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); font-size: 20px; color: var(--accent); font-weight: 400; transition: transform .22s var(--ease); flex-shrink: 0; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 4px 22px; color: var(--fg-2); font-size: 14.5px; }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 56px 0 28px; background: var(--bg-2); }
.footer-top { display: grid; grid-template-columns: 1.4fr 2fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.footer-brand p { color: var(--fg-2); font-size: 14px; margin: 16px 0 0; max-width: 260px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.fcol { display: flex; flex-direction: column; gap: 10px; }
.fcol h4 { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--fg-3); margin: 0 0 4px; font-weight: 500; }
.fcol a, .fmut { font-size: 13.5px; color: var(--fg-2); transition: color .18s; }
.fcol a:hover { color: var(--fg); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; padding-top: 24px; font-size: 12.5px; color: var(--fg-3); font-family: var(--mono); }

/* ---------------- subpages (configurações / download) ---------------- */
.page-hero { position: relative; padding: calc(var(--nav-h) + 76px) 0 0; }
.page-hero .wrap { text-align: center; }
.crumb { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; color: var(--accent); margin-bottom: 20px; }
.page-hero h1 { font-size: clamp(2.2rem, 5.6vw, 3.6rem); margin-bottom: 18px; }
.page-hero .sub { margin-left: auto; margin-right: auto; }

.sgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.scard { border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); padding: 22px 22px 6px; }
.scard.wide { grid-column: 1 / -1; }
.scard > h3 { font-family: var(--mono); font-size: 12.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--accent); margin: 0 0 6px; font-weight: 600; }
.sopt { padding: 14px 0; border-top: 1px solid var(--line); }
.sopt:first-of-type { border-top: 0; }
.sopt b { display: block; font-size: 14.5px; color: var(--fg); font-weight: 600; margin-bottom: 3px; }
.sopt span { font-size: 13.5px; color: var(--fg-2); }
.sopt .def { font-family: var(--mono); font-size: 11.5px; color: var(--accent); }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.step { background: var(--bg); padding: 26px 22px; }
.step-n { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.step h4 { font-size: 15px; margin: 10px 0 8px; letter-spacing: -.01em; }
.step p { font-size: 13.5px; color: var(--fg-2); margin: 0; }
.step code { font-size: 12px; }

.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.spec { background: var(--bg); padding: 18px 20px; }
.spec-k { display: block; font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--fg-3); margin-bottom: 6px; }
.spec-v { font-size: 14.5px; color: var(--fg); }

.callout { display: flex; gap: 14px; align-items: flex-start; border: 1px solid var(--line-2); border-left: 3px solid var(--accent); border-radius: var(--r-sm); background: var(--surface); padding: 18px 20px; margin-top: 24px; }
.callout p { margin: 0; font-size: 14px; color: var(--fg-2); }
.callout b { color: var(--fg); }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 40px; }

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

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .cursor { opacity: 1; }
}

/* responsive */
@media (max-width: 940px) {
  .block, .sec-grid { grid-template-columns: 1fr; gap: 36px; }
  .block.reverse .block-text, .block.reverse .block-visual { order: 0; }
  .footer-top { grid-template-columns: 1fr; }
  .star-list { grid-template-columns: 1fr; gap: 0; }
  .numbers .num-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 14px 24px 20px; margin: 0;
    transform: translateY(-130%); transition: transform .28s var(--ease); z-index: 90;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 12px; font-size: 15px; }
  .burger { display: flex; }
  .term-body code { font-size: 12px; }
  .shot-body { grid-template-columns: 1fr; }
  .shot-side { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .side-foot { display: none; }
  .sec { padding: 68px 0; }
  .hero { padding-top: calc(var(--nav-h) + 52px); }
  .dl { padding: 44px 20px; }
  .dl-notes { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .shot-stats { gap: 22px; }
  .lrow { grid-template-columns: 16px 1fr auto; }
  .ltag { display: none; }
  .steps { grid-template-columns: 1fr 1fr; }
  .sgrid, .specs { grid-template-columns: 1fr; }
}

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