/* SuperTerminal for Android presentation: tokens and controls follow the SuperTerminal web (D:\superterminalweb\styles.css). */
:root {
  --bg: #0a0c10; --bg2: #0f1218; --bg3: #151a22; --line: #232933; --line-hi: #3a4250;
  --ink: #d8d5cf; --bright: #f1efea; --dim: #8b95a1; --faint: #4b5361;
  --accent: #ff4a1c; --accent-2: #ff7a3d; --accent-ink: #0a0c10; --ok: #8fd16a; --warn: #e3a857;
  --sans: "Geist", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", "Cascadia Mono", Consolas, ui-monospace, monospace;
  --wrap: 1240px; --gutter: 24px; --radius: 14px; --nav-h: 64px;
  color-scheme: dark;
}
:lang(zh-Hans) { --sans: "Geist", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif; }
:lang(ja) { --sans: "Geist", "Hiragino Sans", "Yu Gothic UI", "Meiryo", "Noto Sans JP", system-ui, sans-serif; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--sans); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { color: var(--bright); margin: 0; font-weight: 600; }
p { margin: 0; }
.mono, code { font-family: var(--mono); }
::selection { background: #3a1a10; color: var(--bright); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 10px 14px; border-radius: 6px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.accent { color: var(--accent); }
.embers { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: .55; }
main, .nav, .foot { position: relative; z-index: 1; }

.kicker { display: inline-flex; align-items: center; gap: 10px; font: 500 12.5px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 18px; }
.kicker .dot { width: 8px; height: 8px; background: var(--accent); box-shadow: 0 0 12px var(--accent); animation: blink 2.4s steps(2, jump-none) infinite; }
@keyframes blink { 50% { opacity: .35; } }
.sec-lede { color: var(--ink); max-width: 62ch; margin-top: 16px; }
h2 { font-size: clamp(30px, 4.2vw, 50px); line-height: 1.08; letter-spacing: -.02em; max-width: 20ch; }
:lang(zh-Hans) h2, :lang(ja) h2, :lang(zh-Hans) h1, :lang(ja) h1 { letter-spacing: 0; }

/* Buttons echo the app's bracket controls */
.btn { display: inline-flex; align-items: center; gap: 10px; font: 600 16px/1 var(--sans); padding: 15px 22px; border-radius: 8px; text-decoration: none; border: 1px solid transparent; transition: transform .15s, background-color .15s, border-color .15s, box-shadow .15s; }
.btn--primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 40px -12px rgba(255, 74, 28, .7); }
.btn--primary:hover { transform: translateY(-1px); background: #ff5a2e; box-shadow: 0 14px 50px -10px rgba(255, 74, 28, .9); }
.btn--ghost { border-color: var(--line-hi); color: var(--bright); background: rgba(255, 255, 255, .02); }
.btn--ghost:hover { border-color: var(--dim); background: rgba(255, 255, 255, .05); }
.get { margin-top: 16px; max-width: 60ch; font: 400 13px/1.6 var(--mono); color: var(--dim); }
.get code { color: var(--ink); overflow-wrap: anywhere; }
.get a { color: var(--accent-2); text-underline-offset: 3px; white-space: nowrap; }
.get a:hover { color: var(--bright); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; height: var(--nav-h); background: rgba(10, 12, 16, .78); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); border-bottom: 1px solid var(--line); }
.nav__in { height: 100%; width: min(100% - 2 * var(--gutter), 1320px); margin-inline: auto; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; padding: 10px 0; }
.brand img { width: 42px; height: auto; image-rendering: pixelated; }
.brand__name { font: 500 14px/1 var(--mono); color: var(--dim); letter-spacing: .02em; white-space: nowrap; }
.brand__name b { color: var(--accent); font-weight: 500; }
.brand__name i { font-style: normal; color: var(--bright); border: 1px solid var(--line-hi); border-radius: 4px; padding: 3px 6px; margin-left: 4px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.brand__eb { color: var(--bright); font-weight: 700; letter-spacing: .08em; }
.nav__links { display: flex; gap: 22px; margin-left: auto; font: 500 14px/1 var(--sans); }
.nav__links a { text-decoration: none; color: var(--dim); padding: 8px 0; }
.nav__links a:hover { color: var(--bright); }

/* Language menu: <details> works without script */
.lang { position: relative; font: 500 13px/1 var(--mono); }
.lang summary { list-style: none; cursor: pointer; color: var(--bright); padding: 10px 12px; border: 1px solid var(--line-hi); border-radius: 6px; white-space: nowrap; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary::before { content: "[ "; color: var(--dim); } .lang summary::after { content: " ▾ ]"; color: var(--dim); }
.lang__code { color: var(--accent); }
.lang ul { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; margin: 0; padding: 6px; list-style: none; background: var(--bg2); border: 1px solid var(--line-hi); border-radius: 8px; columns: 2; column-gap: 4px; width: max-content; box-shadow: 0 20px 60px -20px #000; }
.lang a { display: block; padding: 9px 12px; border-radius: 5px; text-decoration: none; color: var(--ink); font-family: var(--sans); font-size: 14px; }
.lang a:hover, .lang a[aria-current] { background: var(--bg3); color: var(--bright); }
.lang a[aria-current]::after { content: " ✓"; color: var(--accent); }

/* Hero: copy on the left, the computer, the link and the phone on the right */
.hero { width: min(100% - 2 * var(--gutter), 1320px); margin-inline: auto; padding: clamp(40px, 7vw, 96px) 0 40px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 32px 48px; align-items: center; }
.hero h1 { font-size: clamp(42px, 6.4vw, 84px); line-height: 1.02; letter-spacing: -.03em; }
.lede { margin-top: 22px; font-size: clamp(17px, 1.45vw, 19px); max-width: 56ch; color: var(--ink); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; align-items: center; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font: 400 13.5px/1.4 var(--mono); color: var(--dim); }
.ticks li::before { content: "✓ "; color: var(--ok); }
.stage { position: relative; min-height: 690px; }
.link { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.link .wire, .link .pkt { filter: drop-shadow(0 0 6px rgba(255, 74, 28, .45)); }
.pc rect:first-child { fill: var(--bg2); stroke: var(--line-hi); stroke-width: 1.5; }
.pc path { fill: var(--bg3); stroke: var(--line-hi); }
.pc__lines rect { fill: var(--faint); rx: 2; }
.pc__lines rect:nth-child(2) { fill: #5b3a2a; }
.pc .caret { fill: var(--accent); animation: blink 1s steps(2, jump-none) infinite; }
.pc text, .pkt text { font: 500 13px var(--mono); fill: var(--dim); text-anchor: middle; letter-spacing: .06em; }
.wire { fill: none; stroke: var(--accent); stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 520; stroke-dashoffset: 520; }
.wire--glow { stroke-width: 9; opacity: .18; filter: blur(4px); }
.is-ready .wire { animation: draw 1.4s cubic-bezier(.6, 0, .2, 1) .2s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.pkt { opacity: 0; }
.pkt rect { fill: var(--bg); stroke: var(--accent); stroke-width: 1.2; }
.pkt text { fill: var(--bright); font-size: 11.5px; }
.device { position: relative; margin: 0; width: clamp(230px, 22vw, 300px); }
.stage .device { position: absolute; right: 2%; top: 2%; transform: perspective(1200px) rotateY(var(--ry, -14deg)) rotateX(var(--rx, 4deg)); transition: transform .4s cubic-bezier(.2, .7, .2, 1); will-change: transform; }
.device__glass { position: relative; aspect-ratio: 720 / 1440; border-radius: 34px; padding: 10px; background: linear-gradient(160deg, #2a3039, #11151b 40%, #0b0e12); box-shadow: 0 0 0 1px #3a4250 inset, 0 40px 90px -30px rgba(0, 0, 0, .9), 0 0 120px -50px rgba(255, 74, 28, .55); overflow: hidden; }
.device__glass img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 25px; background: #0a0c10; }
.device figcaption, .step__shot figcaption { margin-top: 12px; font: 400 12px/1.4 var(--mono); color: var(--dim); text-align: center; }
.tag { display: inline-block; color: var(--accent-2); border: 1px solid #4a2416; border-radius: 4px; padding: 2px 6px; margin-right: 6px; text-transform: uppercase; letter-spacing: .08em; font-size: 10.5px; }
.facts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: 24px 0 0; padding-top: 28px; border-top: 1px solid var(--line); }
.facts dt { font: 600 clamp(28px, 3vw, 40px)/1 var(--mono); color: var(--bright); }
.facts div:first-child dt { color: var(--accent); }
.facts dd { margin: 10px 0 0; font: 400 13.5px/1.45 var(--mono); color: var(--dim); }

/* Story: one phone, four screens, chosen by scroll or by the step buttons */
.story { padding: 110px 0 40px; }
.story__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; margin-top: 56px; }
.story__phone { position: relative; }
.device--sticky { position: sticky; top: calc(var(--nav-h) + 6vh); margin-inline: auto; }
.device--sticky .screen { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); opacity: 0; transform: scale(1.03); transition: opacity .5s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.device--sticky .screen.is-on { opacity: 1; transform: none; }
.steps { list-style: none; margin: 0; padding: 0; }
.step { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; padding: 24px 0 24px 28px; border-left: 1px solid var(--line); opacity: .45; transition: opacity .4s, border-color .4s; }
.step.is-on { opacity: 1; border-left-color: var(--accent); }
.step__k { all: unset; cursor: pointer; font: 500 12.5px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 14px; }
.step__k .mono { color: var(--dim); margin-right: 6px; }
.step h3 { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.15; letter-spacing: -.01em; }
.step p { margin-top: 14px; max-width: 52ch; }
.step__shot { display: none; }

/* Hands: the disclosure and the three levels */
.hands { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 64px; align-items: center; padding: 120px 0 60px; }
.levels { margin-top: 30px; display: grid; gap: 10px; }
.level { display: grid; grid-template-columns: 130px 1fr; gap: 16px; align-items: center; padding: 14px 18px; border: 1px solid var(--line); border-radius: 10px; background: rgba(15, 18, 24, .7); font-size: 15px; transition: border-color .35s, background-color .35s; }
.bracket { font: 600 14px/1 var(--mono); color: var(--dim); transition: color .35s; }
.level.is-on { border-color: var(--accent); background: rgba(58, 26, 16, .35); }
.level.is-on .bracket { color: var(--accent); }
.hands__note { margin-top: 22px; color: var(--dim); font-size: 15px; max-width: 60ch; }
.device--flat { margin-inline: auto; }

/* Security */
.sec { padding: 110px 0 40px; }
.sec__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 44px; }
.card { padding: 26px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, rgba(21, 26, 34, .85), rgba(10, 12, 16, .85)); }
.card h3 { font-size: 18px; line-height: 1.3; }
.card h3::before { content: ""; display: block; width: 10px; height: 10px; margin-bottom: 18px; background: var(--accent); box-shadow: 0 0 14px var(--accent); }
.card p { margin-top: 10px; font-size: 15px; color: var(--ink); }

.demo { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 64px; align-items: center; padding: 120px 0 40px; }

.docs { padding: 110px 0 40px; }
.docs__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-top: 40px; }
.doc-card { display: block; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; background: rgba(15, 18, 24, .75); transition: border-color .2s, transform .2s; }
.doc-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.doc-card h3 { font-size: 18px; display: flex; justify-content: space-between; gap: 12px; }
.doc-card h3 span { color: var(--accent); }
.doc-card p { margin-top: 8px; color: var(--dim); font-size: 15px; }

.faq { padding: 100px 0 110px; }
.faq > * { max-width: 900px; }
.faq h2 { margin-bottom: 26px; }
.faq details { border-top: 1px solid var(--line); padding: 18px 0; }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; color: var(--bright); list-style: none; display: flex; justify-content: space-between; gap: 18px; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--accent); }
.faq details[open] summary::after { content: "−"; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { margin-top: 12px; color: var(--ink); max-width: 70ch; }

/* Footer (shared look with the documents) */
.foot { border-top: 1px solid var(--line); background: rgba(10, 12, 16, .92); }
.foot__in { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; padding: 44px 0 38px; display: grid; gap: 22px; }
.foot__lead { display: flex; align-items: center; gap: 12px; color: var(--dim); font-size: 15px; }
.foot__lead img { width: 42px; image-rendering: pixelated; }
.foot__docs, .foot__langs { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; }
.foot__docs a, .foot__langs a { color: var(--dim); text-decoration: none; }
.foot__docs a:hover, .foot__langs a:hover, .foot__langs a[aria-current] { color: var(--bright); }
.foot__langs { font-size: 13px; }
.foot__legal { margin: 0; font-size: 13px; color: var(--dim); }
.foot__rights { font: 400 12.5px/1 var(--mono); color: var(--faint); }

/* Reveal once */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .rv.is-in { opacity: 1; transform: none; }

@media (max-width: 1020px) {
  .nav__links { display: none; }
  .lang { margin-left: auto; }
  .hero { grid-template-columns: 1fr; }
  .stage { min-height: 520px; max-width: 560px; width: 100%; margin-inline: auto; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .story__grid, .hands, .demo { grid-template-columns: 1fr; gap: 40px; }
  .story__phone { display: none; }
  .step { min-height: 0; opacity: 1; padding: 28px 0 8px 22px; }
  .step__shot { display: block; margin: 22px 0 0; max-width: 300px; }
  .step__shot img { border-radius: 22px; border: 1px solid var(--line-hi); }
  .sec__grid { grid-template-columns: repeat(2, 1fr); }
  .demo .device { order: 2; }
}
@media (max-width: 560px) {
  :root { --gutter: 16px; }
  .brand__name { font-size: 12px; } .brand__name .brand__eb, .brand__name i { display: none; }
  /* The link diagram needs width; on phones the real screen stands alone. */
  .link { display: none; }
  .stage { min-height: 590px; }
  .stage .device { right: 50%; transform: translateX(50%); top: 0; width: 250px; }
  .sec__grid { grid-template-columns: 1fr; }
  .level { grid-template-columns: 1fr; gap: 6px; }
  .lang ul { columns: 1; max-height: 60vh; overflow: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .wire { stroke-dashoffset: 0; }
  .stage .device { transform: none; }
  .js .rv { opacity: 1; transform: none; }
}

.eb-home{display:inline-flex;align-items:center;gap:6px;margin-right:18px;padding:6px 12px 6px 8px;border-radius:999px;border:1px solid #ffffff22;color:inherit;font-size:13px;font-weight:600;letter-spacing:.02em;text-decoration:none;opacity:.85;transition:opacity .2s,border-color .2s,background .2s;white-space:nowrap}.eb-home:hover,.eb-home:focus-visible{opacity:1;border-color:#ff4a1c;background:#ff4a1c1a}@media(max-width:560px){.eb-home span{display:none}.eb-home{margin-right:10px;padding:6px}}
