/* ============================================================
   variacao-4 — Terminal / IDE
   ============================================================ */

:root {
  --bg: #0a0e17;
  --bg-2: #0f1623;
  --bg-3: #161f30;
  --bg-4: #1e2a40;
  --line: rgba(148, 163, 184, 0.12);
  --line-2: rgba(148, 163, 184, 0.22);
  --text: #e2e8f0;
  --text-2: #94a3b8;
  --text-3: #64748b;
  --text-4: #475569;

  --green: #34d399;
  --green-soft: #4ade80;
  --cyan: #22d3ee;
  --blue: #60a5fa;
  --purple: #a78bfa;
  --pink: #f472b6;
  --amber: #fbbf24;
  --red: #f87171;
  --orange: #fb923c;

  --kw: #ff7b95;       /* keyword */
  --kw2: #c084fc;      /* secondary keyword */
  --fn: #fbbf24;       /* function names */
  --var: #93c5fd;      /* variables */
  --str: #86efac;      /* strings */
  --num: #fcd34d;      /* numbers */
  --comment: #64748b;  /* comments */
  --punct: #94a3b8;    /* punctuation */

  --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, 0.5), 0 10px 24px -8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 12px 28px -8px rgba(0, 0, 0, 0.45);
  --radius: 10px;
  --radius-sm: 6px;
  --mono: 'JetBrains Mono', 'Fira Code', ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
}

[data-theme="light"] {
  --bg: #f8fafc;
  --bg-2: #ffffff;
  --bg-3: #f1f5f9;
  --bg-4: #e2e8f0;
  --line: rgba(15, 23, 42, 0.08);
  --line-2: rgba(15, 23, 42, 0.16);
  --text: #0f172a;
  --text-2: #475569;
  --text-3: #64748b;
  --text-4: #94a3b8;

  --kw: #d946ef;
  --kw2: #9333ea;
  --fn: #d97706;
  --var: #2563eb;
  --str: #059669;
  --num: #b45309;
  --comment: #94a3b8;
  --punct: #475569;
  --shadow-lg: 0 30px 60px -20px rgba(15, 23, 42, 0.18), 0 10px 24px -8px rgba(15, 23, 42, 0.12);
  --shadow-md: 0 12px 28px -8px rgba(15, 23, 42, 0.16);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* subtle scanlines / grid background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(34, 211, 238, 0.06), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(167, 139, 250, 0.05), transparent 60%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 32px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 32px 100%;
  opacity: 0.5;
  z-index: 0;
}

/* ============================================================
   Window chrome (title bar)
   ============================================================ */
.window-chrome {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 16px;
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding-top: 64px;
}

.traffic { display: inline-flex; gap: 8px; align-items: center; flex-shrink: 0; }
.traffic .dot { width: 12px; height: 12px; border-radius: 50%; display: block; }
.traffic.small .dot { width: 10px; height: 10px; }
.dot-red { background: #ff5f57; box-shadow: inset 0 0 0 0.5px rgba(0,0,0,0.2); }
.dot-yellow { background: #febc2e; box-shadow: inset 0 0 0 0.5px rgba(0,0,0,0.2); }
.dot-green { background: #28c840; box-shadow: inset 0 0 0 0.5px rgba(0,0,0,0.2); }

.window-title {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 0.02em;
}
.window-title svg { color: var(--green); }
.wt-user { color: var(--green); }
.wt-host { color: var(--blue); }
.wt-cwd { color: var(--text); }
.wt-meta { color: var(--text-4); }

.window-actions { display: flex; gap: 8px; flex-shrink: 0; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  color: var(--text-2);
  background: var(--bg-4);
  border: 1px solid var(--line);
  padding: 6px 10px; border-radius: 6px;
  cursor: pointer; text-decoration: none;
  transition: all 0.2s ease;
}
.chip:hover { color: var(--text); border-color: var(--line-2); transform: translateY(-1px); }
.chip-primary {
  background: linear-gradient(135deg, var(--green), var(--cyan));
  color: #0a0e17;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(52, 211, 153, 0.35);
}
.chip-primary:hover { color: #0a0e17; filter: brightness(1.05); }

.chip .icon-sun { display: none; }
[data-theme="light"] .chip .icon-moon { display: none; }
[data-theme="light"] .chip .icon-sun { display: inline-block; }

/* ============================================================
   IDE grid (sidebar + editor)
   ============================================================ */
.ide {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: calc(100vh - 80px);
}

.sidebar {
  border-right: 1px solid var(--line);
  background: var(--bg-2);
  padding: 18px 0;
  position: sticky;
  top: 70px;
  align-self: start;
  height: calc(100vh - 80px);
  overflow-y: auto;
  font-size: 13px;
}

.sb-section { padding: 12px 0; border-bottom: 1px solid var(--line); }
.sb-section:last-child { border-bottom: 0; }
.sb-head {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 0 18px 8px;
  font-weight: 700;
}

.filetree { list-style: none; padding: 0; margin: 0; }
.filetree ul { list-style: none; padding-left: 18px; margin: 0; border-left: 1px dashed var(--line); margin-left: 14px; }
.ft-row {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 18px;
  color: var(--text-2);
  text-decoration: none;
  cursor: pointer;
  font-family: var(--mono);
}
.ft-row:hover { background: rgba(148, 163, 184, 0.08); color: var(--text); }
.ft-caret { color: var(--text-4); font-size: 10px; width: 8px; }
.folder.open > .ft-row { color: var(--text); font-weight: 600; }
.ft-ico { width: 14px; height: 14px; display: inline-block; flex-shrink: 0; border-radius: 3px; }
.ft-folder { background: var(--amber); mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'><path d='M10 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-8l-2-2z'/></svg>") center / contain no-repeat; }
.ft-md { background: var(--blue); mask: linear-gradient(45deg, currentColor, currentColor); }
.ft-py { background: var(--green); }
.ft-json { background: var(--amber); }
.ft-mp4 { background: var(--red); }
.ft-sh { background: var(--purple); }

.commits { list-style: none; padding: 0 18px; margin: 0; }
.commits li {
  display: flex; gap: 10px;
  padding: 5px 0;
  font-size: 12px;
  border-bottom: 1px dashed var(--line);
}
.commits li:last-child { border-bottom: 0; }
.commit-hash { color: var(--amber); font-weight: 700; }
.commit-msg { color: var(--text-2); }

.sb-run {
  display: flex; align-items: center; gap: 10px;
  margin: 4px 18px;
  padding: 10px 12px;
  background: var(--bg-4);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}
.sb-run:hover { border-color: var(--green); color: var(--green); }
.sb-play { color: var(--green); font-size: 12px; }

/* Sidebar toggle (mobile) */
.sb-toggle {
  display: none;
  position: fixed;
  bottom: 64px; left: 14px;
  z-index: 90;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg-4);
  border: 1px solid var(--line-2);
  color: var(--text);
  font-size: 22px; line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-md);
}

/* ============================================================
   Editor
   ============================================================ */
.editor {
  min-width: 0;
  padding-bottom: 80px;
}

.tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  overflow-x: auto;
  scrollbar-width: thin;
}
.tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-3);
  text-decoration: none;
  background: var(--bg-2);
  border-right: 1px solid var(--line);
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
}
.tab:hover { color: var(--text); }
.tab.tab-active {
  color: var(--text);
  background: var(--bg);
  border-top: 1px solid var(--green);
  position: relative;
}
.tab.tab-active::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--green);
}
.tab-x {
  color: var(--text-4);
  margin-left: 4px;
  font-size: 14px;
}
.tab-ico {
  width: 8px; height: 8px; border-radius: 2px; display: inline-block; flex-shrink: 0;
}
.tab-ico.md { background: var(--blue); }
.tab-ico.py { background: var(--green); }
.tab-ico.json { background: var(--amber); }
.tab-ico.mp4 { background: var(--red); }
.tab-ico.sh { background: var(--purple); }

.breadcrumb {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 24px;
  font-size: 11px;
  color: var(--text-3);
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.bc-active { color: var(--text); }

/* ============================================================
   HERO / README
   ============================================================ */
.hero {
  padding: 56px 32px 80px;
  max-width: 1280px;
  margin: 0 auto;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: start;
}

.prompt-line {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text);
  margin-bottom: 12px;
}
.ps1 { color: var(--text-3); }
.ps-user { color: var(--green); font-weight: 700; }
.ps-host { color: var(--cyan); }
.ps-path { color: var(--blue); }
.ps-dollar { color: var(--text); margin: 0 6px 0 2px; }
.cmd { color: var(--amber); font-weight: 600; }
.cmd-static { color: var(--amber); font-weight: 600; }
.c-flag { color: var(--purple); }
.caret {
  display: inline-block;
  color: var(--green);
  animation: blink 1s steps(2, end) infinite;
  font-weight: 700;
  vertical-align: -1px;
}
@keyframes blink {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}

.typed-output {
  margin: 8px 0 28px;
  padding-left: 4px;
}
.out-line {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-2);
  padding: 2px 0;
  opacity: 0;
  transform: translateY(4px);
  animation: revealUp 0.4s ease forwards;
}
.out-line:nth-child(1) { animation-delay: 1.2s; }
.out-line:nth-child(2) { animation-delay: 1.5s; }
.out-line:nth-child(3) { animation-delay: 1.8s; }
.out-line:nth-child(4) { animation-delay: 2.1s; }
@keyframes revealUp {
  to { opacity: 1; transform: translateY(0); }
}
.ok { color: var(--green); font-weight: 700; }
.info { color: var(--cyan); font-weight: 700; }
.hl { color: var(--amber); font-weight: 600; }

.h1 {
  font-family: var(--mono);
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.25;
  margin: 24px 0 16px;
  letter-spacing: -0.01em;
}
.c-comment { color: var(--comment); font-style: italic; }
.c-kw { color: var(--green-soft); font-weight: 800; }
.c-kw2 { color: var(--purple); font-weight: 800; }
.c-fn { color: var(--fn); font-weight: 700; }
.c-var { color: var(--var); }
.c-str { color: var(--str); }
.c-num { color: var(--num); }
.c-ps { color: var(--green); }
.c-ok { color: var(--green); }

.lead {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-2);
  max-width: 560px;
  margin: 8px 0 28px;
}
.lead strong { color: var(--text); }

.cta-row {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-bottom: 28px;
}
.btn-deploy {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  background: linear-gradient(135deg, var(--green), var(--cyan));
  color: #06121f;
  text-decoration: none;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 14px;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(52, 211, 153, 0.3), 0 0 0 1px rgba(52, 211, 153, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.btn-deploy:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 14px 32px rgba(52, 211, 153, 0.45), 0 0 0 1px rgba(52, 211, 153, 0.55);
}
.btn-deploy-lg { padding: 16px 28px; font-size: 15px; }
.btn-ps { color: rgba(6, 18, 31, 0.55); font-weight: 700; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px;
  background: transparent;
  color: var(--text);
  font-family: var(--mono);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  transition: all 0.2s ease;
}
.btn-ghost:hover { border-color: var(--green); color: var(--green); transform: translateY(-2px); }

.check-list {
  list-style: none; padding: 0; margin: 0;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-2);
}
.check-list li { padding: 4px 0; }
.check-bracket { color: var(--text-4); }
.check-x { color: var(--green); font-weight: 700; }

/* Stats JSON window */
.stats-json {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  font-family: var(--mono);
  position: relative;
}
.stats-json::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.08), transparent 50%);
  pointer-events: none;
}
.json-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 16px;
  background: var(--bg-3);
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  color: var(--text-3);
}
.json-name { color: var(--amber); font-weight: 600; }
.json-line-count { color: var(--text-4); }
.json-body {
  margin: 0;
  padding: 18px 16px 22px;
  font-size: 13px;
  line-height: 1.85;
  color: var(--text);
  overflow-x: auto;
  white-space: pre;
}
.ln {
  display: inline-block;
  width: 28px;
  color: var(--text-4);
  user-select: none;
  font-size: 11px;
  text-align: right;
  padding-right: 14px;
}
.js-brace { color: var(--punct); font-weight: 700; }
.js-key { color: var(--cyan); }
.js-str { color: var(--str); }
.js-num { color: var(--num); }
.js-bool { color: var(--kw); }

/* ============================================================
   Sections
   ============================================================ */
.section {
  padding: 80px 32px;
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
}
.section-alt { background: var(--bg-2); max-width: none; padding-left: 32px; padding-right: 32px; }
.section-alt > * { max-width: 1280px; margin-left: auto; margin-right: auto; }

.section-head {
  margin-bottom: 40px;
  max-width: 720px;
}
.kicker {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--green);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  background: rgba(52, 211, 153, 0.08);
  margin-bottom: 16px;
}
.kicker .hash { color: var(--amber); margin-right: 4px; }
.section-head h2 {
  font-family: var(--mono);
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  color: var(--text);
}
.section-head p {
  font-family: var(--sans);
  font-size: 16px;
  color: var(--text-2);
  margin: 0;
}
.section-close {
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 800;
  margin-top: 24px;
  color: var(--purple);
}

/* Code cards (benefícios) */
.code-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.code-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}
.code-card::after {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--green), var(--cyan), var(--purple));
  opacity: 0; transition: opacity 0.25s ease;
}
.code-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-2);
  box-shadow: var(--shadow-md);
}
.code-card:hover::after { opacity: 1; }
.cc-head {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  background: var(--bg-3);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.cc-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--bg-4);
  color: var(--text-2);
}
.cc-tag-emerald { background: rgba(52, 211, 153, 0.18); color: var(--green); }
.cc-tag-blue    { background: rgba(96, 165, 250, 0.18); color: var(--blue); }
.cc-tag-amber   { background: rgba(251, 191, 36, 0.18); color: var(--amber); }
.cc-tag-purple  { background: rgba(167, 139, 250, 0.18); color: var(--purple); }
.cc-tag-red     { background: rgba(248, 113, 113, 0.18); color: var(--red); }
.cc-tag-cyan    { background: rgba(34, 211, 238, 0.18); color: var(--cyan); }
.cc-file { color: var(--text-2); font-family: var(--mono); }
.cc-body {
  margin: 0;
  padding: 16px 14px;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--text);
  background: var(--bg-2);
  overflow-x: auto;
  white-space: pre;
  font-family: var(--mono);
}
.cc-foot {
  padding: 12px 16px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--text-2);
  border-top: 1px solid var(--line);
  background: var(--bg);
}

/* package.json window */
.pkg-window, .video-window, .cta-terminal {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.pkg-head, .vw-head, .ct-head {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  background: var(--bg-3);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--text-3);
}
.pkg-file, .vw-title, .ct-title { color: var(--text); font-family: var(--mono); }
.pkg-meta, .vw-meta { margin-left: auto; color: var(--text-4); font-size: 11px; }
.vw-meta { color: var(--red); font-weight: 600; letter-spacing: 0.1em; animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.pkg-body {
  margin: 0;
  padding: 22px 16px 28px;
  font-size: 14px;
  line-height: 1.95;
  color: var(--text);
  overflow-x: auto;
  white-space: pre;
  font-family: var(--mono);
}

/* video */
.vw-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}
.vw-frame iframe {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border: 0; display: block;
}

/* CTA */
.section-cta {
  padding-top: 40px;
}
.ct-badge {
  margin-left: auto;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(251, 191, 36, 0.15);
  color: var(--amber);
  font-weight: 700;
}
.ct-body { padding: 28px 28px 36px; }
.ct-body .prompt-line { margin-bottom: 16px; }
.ct-body .out-line { animation: none; opacity: 1; transform: none; }
.ct-h {
  font-family: var(--mono);
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 700;
  margin: 28px 0 12px;
  color: var(--text);
}
.ct-p {
  font-family: var(--sans);
  font-size: 16px;
  color: var(--text-2);
  margin: 0 0 22px;
  max-width: 640px;
}
.ct-reassure {
  margin: 16px 0 0;
  font-size: 12px;
  color: var(--text-3);
  font-family: var(--mono);
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 12px;
}
.faq-item {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.faq-item[open] { border-color: var(--green); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
  transition: background 0.2s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: var(--bg-3); }
.faq-prefix {
  font-family: var(--mono);
  color: var(--cyan);
  font-weight: 700;
}
.faq-a { color: var(--amber); }
.faq-toggle {
  margin-left: auto;
  color: var(--text-3);
  font-size: 18px;
  font-weight: 700;
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 4px;
  background: var(--bg-4);
  transition: transform 0.2s ease, background 0.2s ease;
}
.faq-item[open] .faq-toggle { transform: rotate(45deg); background: var(--green); color: #06121f; }
.faq-answer {
  padding: 0 20px 18px 20px;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-2);
}
.faq-answer .faq-prefix { margin-right: 6px; }

/* ============================================================
   Status bar (footer)
   ============================================================ */
.statusbar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 6px 16px;
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-3);
  z-index: 80;
}
.sb-item {
  display: inline-flex; align-items: center; gap: 5px;
  white-space: nowrap;
}
.sb-item-accent {
  color: var(--green);
}
.sb-item-accent svg { color: var(--green); }
.sb-item strong { color: var(--text); font-weight: 700; }
.sb-flex { flex: 1; }
.sb-link { color: var(--cyan); text-decoration: none; }
.sb-link:hover { color: var(--green); }

/* Hint pill */
.hint {
  position: fixed;
  bottom: 36px; right: 16px;
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  padding: 6px 10px;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-2);
  z-index: 85;
  display: flex; gap: 4px; align-items: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.hint.show { opacity: 1; transform: translateY(0); }
.hint-k {
  background: var(--bg-4);
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  padding: 1px 5px;
  border-radius: 3px;
  color: var(--text);
  font-weight: 600;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .ide { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    left: 0; top: 0; bottom: 0;
    width: 260px; height: 100vh;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    z-index: 95;
    padding-top: 80px;
  }
  .sidebar.open { transform: translateX(0); }
  .sb-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .window-chrome { padding-top: 60px; }
  .window-title { font-size: 11px; }
  .window-title .wt-meta { display: none; }
}

@media (max-width: 640px) {
  .hero { padding: 32px 18px 56px; }
  .section { padding: 56px 18px; }
  .h1 { font-size: 24px; }
  .lead { font-size: 15px; }
  .tabs .tab { padding: 8px 12px; font-size: 11px; }
  .ct-body { padding: 20px 18px 28px; }
  .hint { display: none; }
}

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