/* ============================================================
   Agents Code AI — Editorial documentation layout
   Light, print-inspired, ink + paper. No gradients, no glow.
   ============================================================ */

/* ── VARS ── */
:root {
  --paper: #f7f5f0;
  --paper-2: #efece4;
  --paper-3: #e7e3d8;
  --ink: #1c1a17;
  --ink-2: #3d3a34;
  --ink-3: #6b675e;
  --ink-4: #9a958a;
  --rule: #d8d3c6;
  --rule-strong: #b9b3a3;
  --navy: #1e3a5f;
  --navy-2: #2c5078;
  --navy-wash: #e6ebf0;
  --rust: #8a3b1c;
  --radius: 3px;
  --font-serif: 'Iowan Old Style', 'Palatino Linotype', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Consolas', monospace;
  --ease: cubic-bezier(.4,0,.2,1);
}

[data-theme="dark"] {
  --paper: #171614;
  --paper-2: #1f1e1b;
  --paper-3: #272521;
  --ink: #ece8e0;
  --ink-2: #c8c3b8;
  --ink-3: #948e82;
  --ink-4: #6b665c;
  --rule: #35322c;
  --rule-strong: #4a463e;
  --navy: #7ba3cc;
  --navy-2: #9bbadd;
  --navy-wash: #20262e;
  --rust: #d08a63;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  font-family: var(--font-sans);
  color: var(--ink-2);
  background: var(--paper);
  line-height: 1.7;
  font-size: 15px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  transition: background .25s, color .25s;
}
a { color: var(--navy); text-decoration: none; transition: color .15s; }
a:hover { color: var(--rust); text-decoration: underline; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; border: none; background: none; color: inherit; }
code, kbd, table { font-variant-numeric: tabular-nums; }
code, kbd { font-family: var(--font-mono); }
::selection { background: var(--navy); color: var(--paper); }

/* ── LAYOUT ── */
.container { max-width: 860px; margin: 0 auto; padding: 0 32px; }
.section { padding: 72px 0; border-top: 1px solid var(--rule); }
.bg-alt { background: var(--paper-2); }
.section-header { margin-bottom: 36px; }
.section-label {
  display: block;
  font-family: var(--font-sans); font-size: 11px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-4); margin-bottom: 10px;
}
.section-header h2 {
  font-family: var(--font-sans);
  font-size: 1.45rem; font-weight: 600; letter-spacing: -.015em;
  color: var(--ink); line-height: 1.2;
}
.section-header p {
  margin-top: 10px; font-size: 15px; color: var(--ink-3); max-width: 560px;
}

/* ── NAV ── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
}
.nav-inner {
  max-width: 860px; margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; height: 56px; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand-icon { width: 26px; height: 26px; border-radius: 2px; object-fit: cover; border: 1px solid var(--rule); }
.brand-name { font-family: var(--font-serif); font-size: 16px; font-weight: 600; color: var(--ink); letter-spacing: -.01em; white-space: nowrap; }
.nav-links { display: flex; gap: 0; flex: 1; justify-content: flex-end; margin-right: 8px; }
.nav-links a {
  color: var(--ink-3); font-size: 13px;
  padding: 6px 12px; text-decoration: none; transition: color .15s;
  border-bottom: 1px solid transparent;
}
.nav-links a:hover { color: var(--ink); text-decoration: none; border-bottom-color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.theme-btn {
  border: none; padding: 0; width: 30px; height: 30px;
  color: var(--ink-3); display: flex; align-items: center; justify-content: center;
  transition: color .15s; border-radius: 2px;
}
.theme-btn:hover { color: var(--ink); background: var(--paper-3); }
.theme-btn:active { transform: scale(.94); }

.lang-switch {
  display: inline-flex; align-items: center; gap: 2px;
  border: 1px solid var(--rule-strong); border-radius: var(--radius);
  padding: 2px; background: var(--paper-2);
}
.lang-btn {
  border: none; background: transparent; cursor: pointer;
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  letter-spacing: .06em; color: var(--ink-4);
  padding: 4px 8px; border-radius: 2px; line-height: 1;
  transition: color .15s, background .15s;
}
.lang-btn:hover { color: var(--ink); }
.lang-btn.is-active { background: var(--ink); color: var(--paper); }
.icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: block; }
.nav-toggle {
  display: none; border: none; width: 30px; height: 30px; padding: 0;
  color: var(--ink); line-height: 1;
  align-items: center; justify-content: center;
  font-size: 17px; border-radius: 2px; transition: background .15s;
}
.nav-toggle:hover { background: var(--paper-3); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: var(--radius);
  font-size: 13px; font-weight: 600; text-decoration: none;
  cursor: pointer; border: 1px solid var(--ink);
  transition: background .15s, color .15s;
  white-space: nowrap; letter-spacing: .01em;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--navy); border-color: var(--navy); color: var(--paper); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.btn-ghost:hover { background: var(--paper-3); border-color: var(--ink); text-decoration: none; color: var(--ink); }
.btn-sm { padding: 8px 16px; font-size: 12px; }
.btn-accent { background: var(--navy); color: var(--paper); border-color: var(--navy); }
.btn-accent:hover { background: var(--rust); border-color: var(--rust); color: var(--paper); text-decoration: none; }

/* ── HERO ── */
.hero { position: relative; padding: 64px 0 56px; }
.hero-bg { display: none; }
.hero .container { position: relative; z-index: 1; }
.hero-inner { display: block; }
.hero-text { display: flex; flex-direction: column; align-items: flex-start; border-bottom: 1px solid var(--rule); padding-bottom: 40px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-3); border: 1px solid var(--rule);
  padding: 4px 12px; border-radius: 100px; margin-bottom: 22px;
}
.badge-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--navy); }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.badge-dot { animation: pulse 2.4s ease-in-out infinite; }
.hero-title {
  font-family: var(--font-sans);
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  font-weight: 700; letter-spacing: -.035em;
  line-height: 1.08; color: var(--ink);
  margin-bottom: 20px; max-width: 14ch;
}
.hero-title span { color: var(--rust); }
.hero-desc {
  font-size: 16px; color: var(--ink-3);
  line-height: 1.7; margin-bottom: 28px; max-width: 520px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-actions .btn { padding: 12px 22px; font-size: 14px; }
.hero-meta { display: flex; gap: 0; flex-wrap: wrap; }
.meta-chip {
  font-size: 11px; font-family: var(--font-mono);
  color: var(--ink-3); padding: 0 12px;
  border-right: 1px solid var(--rule);
}
.meta-chip:first-child { padding-left: 0; }
.meta-chip:last-child { border-right: none; }
.meta-chip strong { color: var(--ink); font-weight: 600; }

/* Preview window */
.hero-card { margin-top: 40px; display: flex; justify-content: center; }
.preview-window {
  width: 100%; max-width: 660px;
  background: var(--paper-2);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 6px 6px 0 var(--rule);
}
[data-theme="dark"] .preview-window { box-shadow: 6px 6px 0 #000; }
.preview-titlebar {
  display: flex; align-items: center; gap: 7px;
  padding: 10px 14px;
  background: var(--paper-3);
  border-bottom: 1px solid var(--rule-strong);
}
.preview-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; border: 1px solid var(--rule-strong); }
.preview-dot.r { background: #c9897d; }
.preview-dot.y { background: #d6bd82; }
.preview-dot.g { background: #94b385; }
.preview-title { font-size: 11px; color: var(--ink-3); font-family: var(--font-mono); margin-left: 8px; }
.preview-body { display: flex; height: 230px; }
.preview-sidebar {
  width: 150px; flex-shrink: 0;
  border-right: 1px solid var(--rule);
  padding: 12px 0; background: var(--paper-2);
}
.sidebar-item {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 14px; font-size: 12px;
  color: var(--ink-3); cursor: default;
  border-left: 2px solid transparent;
}
.sidebar-item.active { color: var(--ink); border-left-color: var(--rust); font-weight: 600; }
.preview-main { flex: 1; display: flex; flex-direction: column; padding: 14px; gap: 9px; overflow: hidden; background: var(--paper); }
.preview-msg { font-size: 12px; padding: 9px 12px; line-height: 1.6; border: 1px solid var(--rule); }
.preview-msg.user { background: var(--paper-2); color: var(--ink-3); }
.preview-msg.agent { background: var(--navy-wash); color: var(--ink-2); border-color: transparent; }
.agent-label {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--navy); font-weight: 600;
  display: block; margin-bottom: 3px; letter-spacing: .04em;
}
.agent-time { font-family: var(--font-mono); font-size: 10px; color: var(--ink-4); }
.preview-input {
  margin-top: auto;
  display: flex; align-items: center; gap: 7px;
  padding: 9px 12px; background: var(--paper-2);
  border: 1px solid var(--rule); font-size: 12px; color: var(--ink-4);
}
.input-prompt { color: var(--rust); font-family: var(--font-mono); }
.input-cursor { animation: blink 1s step-end infinite; color: var(--ink-3); }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

/* ── LOGOS ── */
.logos { padding: 32px 0; border-top: 1px solid var(--rule-strong); }
.logos-label {
  font-size: 10px; font-family: var(--font-mono);
  color: var(--ink-4); text-transform: uppercase;
  letter-spacing: .2em; margin-bottom: 16px;
}
.logos-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.logo-chip {
  font-size: 12px; font-family: var(--font-mono); font-weight: 500;
  color: var(--ink-3);
  border: 1px solid var(--rule); border-radius: 999px;
  background: var(--paper-2);
  padding: 5px 12px;
  transition: border-color .15s, color .15s, background .15s;
}
.logo-chip:hover {
  border-color: var(--rule-strong); color: var(--ink);
  background: var(--paper-3);
}

/* ── DOWNLOAD LIST ── */
.downloads { border-top: 1px solid var(--ink); }
.download-card {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 4px; gap: 20px;
  border-bottom: 1px solid var(--rule);
  transition: background .15s;
}
.download-card:hover { background: var(--paper-2); }
.download-card-left { display: flex; align-items: center; gap: 16px; min-width: 0; }
.download-card-right { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }
.download-card.latest .dl-name { color: var(--ink); }
.dl-icon { width: 34px; height: 34px; border-radius: 2px; border: 1px solid var(--rule-strong); object-fit: cover; flex-shrink: 0; }
.dl-name { font-size: 15px; font-weight: 600; color: var(--ink-2); margin-bottom: 2px; letter-spacing: -.01em; }
.dl-desc { font-size: 13px; color: var(--ink-3); line-height: 1.5; }
.dl-meta { font-size: 11px; color: var(--ink-4); font-family: var(--font-mono); white-space: nowrap; }
.dl-status { font-size: 11px; font-family: var(--font-mono); color: var(--ink-4); font-style: italic; }
.latest-tag {
  font-family: var(--font-mono); font-size: 9px; font-weight: 700;
  letter-spacing: .14em; color: var(--rust);
  border: 1px solid var(--rust); padding: 2px 8px; border-radius: 100px;
}

/* ── FEATURES ── */
.features { border-top: 1px solid var(--ink); counter-reset: feat; }
.feat {
  display: grid; grid-template-columns: 34px 1fr;
  gap: 0 20px; padding: 22px 0;
  border-bottom: 1px solid var(--rule);
}
.feat-icon { display: none; }
.feat::before {
  counter-increment: feat;
  content: counter(feat, decimal-leading-zero);
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-4); padding-top: 4px; letter-spacing: .04em;
}
.feat h3 {
  font-family: var(--font-sans); font-size: 15px; font-weight: 600;
  color: var(--ink); margin-bottom: 5px; letter-spacing: -.005em;
}
.feat p { font-size: 13.5px; color: var(--ink-3); line-height: 1.65; max-width: 640px; }

/* ── STEPS ── */
.steps { display: flex; flex-direction: column; counter-reset: step; }
.step {
  display: grid; grid-template-columns: 48px 1fr; gap: 20px;
  padding: 28px 0; border-bottom: 1px solid var(--rule);
}
.step:last-child { border-bottom: none; }
.step-num {
  font-family: var(--font-serif); font-size: 32px; line-height: 1;
  color: var(--rule-strong); font-style: italic;
}
.step:hover .step-num { color: var(--rust); }
.step h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; color: var(--ink); letter-spacing: -.01em; }
.step p { font-size: 14px; color: var(--ink-3); line-height: 1.7; }
.code-wrap { position: relative; margin-top: 12px; }
.code-wrap code {
  display: block; font-size: 13px; padding: 14px 18px 14px 74px;
  background: var(--paper-3); border: 1px solid var(--rule);
  border-radius: var(--radius); color: var(--ink);
  font-family: var(--font-mono); word-break: break-all; line-height: 1.5;
}
[data-theme="dark"] .code-wrap code { background: #100f0d; border-color: #35322c; color: var(--ink-2); }
.copy-btn {
  position: absolute; top: 50%; transform: translateY(-50%); left: 12px;
  font-family: var(--font-mono); font-size: 10px;
  background: transparent; border: 1px solid var(--rule-strong);
  border-radius: 2px; padding: 4px 10px;
  color: var(--ink-3); cursor: pointer; transition: all .15s;
  text-transform: uppercase; letter-spacing: .08em;
}
.copy-btn:hover { color: var(--ink); border-color: var(--ink); }
.copy-btn.copied { color: var(--rust); border-color: var(--rust); }
kbd {
  font-size: 11px; background: var(--paper-3); border: 1px solid var(--rule-strong);
  border-radius: 3px; padding: 2px 7px; color: var(--ink); font-weight: 500;
  display: inline-block; box-shadow: 0 1px 0 var(--rule-strong);
}

/* ── SHORTCUTS TABLE ── */
.shortcuts-table-wrap { overflow-x: auto; }
.shortcuts-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 380px; }
.shortcuts-table th {
  text-align: left; font-weight: 600; font-size: 10px;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-4); padding: 10px 16px 10px 0;
  border-bottom: 2px solid var(--ink); background: transparent;
}
.shortcuts-table td {
  padding: 11px 16px 11px 0; border-bottom: 1px solid var(--rule);
  vertical-align: middle; color: var(--ink-2); font-size: 13px;
}
.shortcuts-table td:first-child { width: 42%; }
.shortcuts-table tr:last-child td { border-bottom: none; }
.shortcuts-table tr:hover td { background: var(--paper-3); }
.shortcuts-table kbd {
  font-size: 11px; background: transparent; border: 1px solid var(--rule-strong);
  border-radius: 3px; padding: 3px 8px; white-space: nowrap; font-weight: 500; color: var(--ink);
}

/* ── FAQ ── */
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--ink); }
.faq-item { padding: 24px 0; border-bottom: 1px solid var(--rule); }
.faq-item:last-child { border-bottom: none; }
.faq-item h3 {
  font-family: var(--font-serif); font-size: 17px; font-weight: 600;
  margin-bottom: 7px; color: var(--ink); letter-spacing: -.01em;
}
.faq-item p { font-size: 14px; color: var(--ink-3); line-height: 1.75; max-width: 640px; }
.faq-item code {
  font-size: 12px; background: var(--paper-3); border: 1px solid var(--rule);
  padding: 2px 7px; border-radius: 3px; color: var(--rust);
}

/* ── FOOTER ── */
footer { border-top: 1px solid var(--ink); padding: 40px 0; background: var(--paper-2); }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 20px; }
.footer-left { display: flex; align-items: center; gap: 14px; }
.footer-logo { width: 28px; height: 28px; border-radius: 2px; object-fit: cover; border: 1px solid var(--rule-strong); }
.footer-brand { font-family: var(--font-serif); font-size: 15px; font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
.footer-copy { font-size: 11px; color: var(--ink-4); margin-top: 3px; font-family: var(--font-mono); }
.footer-right { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.footer-right a { color: var(--ink-3); font-weight: 500; transition: color .15s; }
.footer-right a:hover { color: var(--rust); text-decoration: none; }
.sep { color: var(--rule-strong); }

/* ── BACK TO TOP ── */
.back-top {
  position: fixed; bottom: 24px; right: 24px;
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--paper); border-radius: 2px;
  opacity: 0; pointer-events: none; transform: translateY(8px);
  transition: opacity .2s, transform .2s, background .2s;
  z-index: 50; text-decoration: none;
}
.back-top.visible { opacity: 1; pointer-events: all; transform: translateY(0); }
.back-top:hover { background: var(--navy); color: var(--paper); text-decoration: none; }

/* ── TOAST ── */
.toast {
  position: fixed; bottom: 80px; left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--ink); color: var(--paper);
  font-size: 13px; font-weight: 500;
  padding: 10px 20px; border-radius: var(--radius);
  opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s;
  z-index: 200; white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── FADE-UP ── */
.fade-up { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── Reveal bertahap ── */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.features .feat { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease), background-color .2s var(--ease); }
.features .feat.visible { opacity: 1; transform: translateY(0); }
.features .feat.visible:hover { background: var(--paper-3); }
.features .feat.visible:hover h3 { color: var(--navy); }
.features .feat h3 { transition: color .2s var(--ease); }
.features .feat::before { transition: color .2s var(--ease); }
.features .feat.visible:hover::before { color: var(--rust); }

/* ── Nav saat scroll ── */
.nav { transition: box-shadow .25s var(--ease); }
.nav.scrolled { box-shadow: 0 6px 22px rgba(0,0,0,.07); }

@media (prefers-reduced-motion: reduce) {
  .fade-up, .reveal, .features .feat { opacity: 1; transform: none; transition: none; }
  .nav-links, .nav-links.open a { transition: none; }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(180deg); }
}
.nav-toggle.spin { animation: spin .3s var(--ease); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .container { padding: 0 22px; }
  .section { padding: 48px 0; }
  .section-header { margin-bottom: 26px; }
  .section-header h2 { font-size: 1.6rem; }
  .section-header p { font-size: 14px; }

  .nav-inner { padding: 0 18px; height: 54px; gap: 8px; }
  .nav-links {
    display: flex; flex-direction: column; position: fixed;
    top: 54px; left: 0; right: 0;
    background: var(--paper); border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--ink);
    padding: 6px 0; z-index: 99;
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity .28s var(--ease), transform .28s var(--ease), visibility 0s .28s;
  }
  .nav-links.open {
    opacity: 1; visibility: visible; transform: translateY(0);
    transition: opacity .28s var(--ease), transform .28s var(--ease), visibility 0s;
    box-shadow: 0 14px 30px rgba(0,0,0,.10);
  }
  .nav-links.open a {
    padding: 13px 22px; font-size: 15px; font-weight: 500; border-bottom: 1px solid var(--rule);
    opacity: 0; transform: translateX(-12px);
    transition: opacity .3s var(--ease), transform .3s var(--ease);
  }
  .nav-links.open a:nth-child(1) { transition-delay: .04s; }
  .nav-links.open a:nth-child(2) { transition-delay: .08s; }
  .nav-links.open a:nth-child(3) { transition-delay: .12s; }
  .nav-links.open a:nth-child(4) { transition-delay: .16s; }
  .nav-links.open a:nth-child(5) { transition-delay: .20s; }
  .nav-links.open a { opacity: 1; transform: translateX(0); }
  .nav-links.open a:last-child { border-bottom: none; }
  .nav-toggle { display: flex; order: 4; flex-shrink: 0; }
  .nav-actions .btn-accent { display: none; }
  .nav-actions { flex-shrink: 0; gap: 4px; }
  .brand { margin-right: auto; flex: 1 1 auto; min-width: 0; }
  .brand-name { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }

  .hero { padding: 40px 0 36px; }
  .hero-title { font-size: 2.2rem; max-width: 100%; }
  .hero-desc { font-size: 15px; }
  .hero-inner { gap: 0; }
  .hero-text { padding-bottom: 32px; }
  .hero-card { margin-top: 32px; }
  .preview-body { height: 190px; }
  .preview-sidebar { width: 108px; }
  .sidebar-item { padding: 6px 10px; font-size: 10px; gap: 6px; }
  .sidebar-item svg { width: 11px; height: 11px; }
  .preview-main { padding: 10px; gap: 7px; }
  .preview-msg { font-size: 11px; padding: 7px 10px; }

  .logos-grid { gap: 4px; }
  .logo-chip { font-size: 11px; padding: 4px 10px; }

  .download-card { flex-direction: column; align-items: stretch; padding: 18px 0; gap: 14px; }
  .download-card-left { gap: 12px; align-items: flex-start; }
  .dl-name { font-size: 14px; line-height: 1.35; }
  .dl-desc { font-size: 12.5px; line-height: 1.5; }
  .download-card-right {
    justify-content: flex-start; align-items: center; gap: 12px;
    flex-wrap: wrap; padding-top: 14px; border-top: 1px solid var(--rule);
  }
  .download-card-right .btn { flex: 1 1 auto; justify-content: center; order: 3; margin-top: 2px; }
  .download-card-right .dl-meta { flex: 1 1 100%; order: 1; }
  .download-card-right .dl-status { order: 2; }
  .download-card-right .latest-tag { order: 2; }

  .feat { grid-template-columns: 28px 1fr; gap: 0 14px; padding: 18px 0; }

  .step { grid-template-columns: 36px 1fr; gap: 16px; padding: 22px 0; }
  .step-num { font-size: 26px; }
  .step h3 { font-size: 15px; }
  .step p { font-size: 13px; }
  .code-wrap code { font-size: 11px; padding: 34px 14px 12px 14px; }
  .copy-btn { top: 10px; transform: none; left: 12px; }

  .shortcuts-table { font-size: 13px; min-width: 320px; }
  .shortcuts-table th, .shortcuts-table td { padding: 9px 12px 9px 0; }

  .footer-inner { flex-direction: column; gap: 16px; }
  .footer-right { flex-wrap: wrap; gap: 8px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .brand-name { font-size: 13px; }
  .brand-icon { width: 22px; height: 22px; }

  .hero { padding: 30px 0 26px; }
  .hero-title { font-size: 1.9rem; }
  .hero-desc { font-size: 14px; margin-bottom: 20px; }
  .hero-badge { font-size: 9px; padding: 3px 10px; margin-bottom: 16px; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; justify-content: center; padding: 12px 16px; font-size: 13px; }
  .meta-chip { font-size: 10px; padding: 0 10px; }

  .preview-body { height: 155px; }
  .preview-sidebar { width: 84px; }
  .sidebar-item { padding: 5px 8px; font-size: 9px; gap: 5px; }
  .sidebar-item svg { width: 9px; height: 9px; }
  .preview-main { padding: 8px; gap: 5px; }
  .preview-msg { font-size: 10px; padding: 5px 8px; }

  .dl-name { font-size: 14px; }
  .dl-icon { width: 32px; height: 32px; }
  .download-card { padding: 16px 0; }
  .dl-desc { font-size: 12px; }
  .download-card-right .btn { width: 100%; flex: 1 1 100%; }

  .feat { padding: 16px 0; }
  .feat h3 { font-size: 14.5px; }
  .feat p { font-size: 13px; }

  .step { padding: 18px 0; }
  .code-wrap code { font-size: 10px; }

  .shortcuts-table { font-size: 12px; }
  .shortcuts-table th, .shortcuts-table td { padding: 8px 8px 8px 0; }
  .shortcuts-table td:first-child { width: 46%; }

  .faq-item { padding: 18px 0; }
  .faq-item h3 { font-size: 15px; }
  .faq-item p { font-size: 13px; }

  footer { padding: 28px 0; }
  .footer-brand { font-size: 14px; }

  .back-top { bottom: 16px; right: 16px; width: 36px; height: 36px; }
  .toast { font-size: 12px; padding: 8px 16px; bottom: 64px; }
}
