/* Shared layout for the migrated site. Legacy account/admin components use styles.css. */
:root {
  --bg: #0d1117;
  --surface: #141a22;
  --surface-2: #1a2430;
  --text: #edf2f7;
  --muted: #9fb0c2;
  --line: #2b3746;
  --green: #42d392;
  --cyan: #49c6e5;
  --blue: #7aa2ff;
  --page-width: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
}
html { scroll-padding-top: 110px; }
body { overflow-wrap: break-word; }
[hidden] { display: none !important; }
a, button, summary { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--cyan); outline-offset: 5px;
}
button, input, select, summary { font: inherit; }
button, summary { cursor: pointer; }
img { max-width: 100%; }
main, section, article, .hero-copy { min-width: 0; }
main:focus { outline: none; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 50; padding: 14px 22px; background: var(--cyan); color: var(--bg); border-radius: 8px; }
.skip-link:focus { top: 12px; }
.topbar { min-height: 82px; padding: 16px var(--gutter); gap: 18px; flex-direction: row; flex-wrap: wrap; align-items: center; background: rgba(13,17,23,.94); }
.brand { font-size: 22px; letter-spacing: -.6px; flex-shrink: 0; }
.brand-mark { width: 36px; height: 36px; }
.nav { align-items: center; gap: 2px; }
.nav > a { min-height: 44px; display: inline-flex; align-items: center; font-size: 14px; }
.nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.account-top-badge { flex: 0 0 auto; font-size: 14px; line-height: 1.5; min-height: 44px; padding: 9px 14px; max-width: min(280px, 100%); min-width: 0; overflow: visible; text-overflow: clip; white-space: normal; overflow-wrap: anywhere; }
.lang-switch { margin-left: 8px; border: 0; background: var(--surface); }
.lang-switch a { min-height: 38px; }
.nav-toggle { margin-left: auto; align-items: center; gap: 14px; color: var(--text); background: var(--surface); border: 1px solid var(--line); padding: 10px 14px; border-radius: 8px; min-height: 44px; }
.landing-hero { max-width: 1400px; margin: auto; padding: clamp(60px, 8vw, 112px) var(--gutter) 72px; display: grid; grid-template-columns: 1.07fr 1fr; align-items: center; gap: clamp(30px, 5vw, 72px); }
.landing-hero h1 { font-size: clamp(42px, 4.6vw, 68px); line-height: 1.1; letter-spacing: -2.7px; margin: 20px 0 24px; }
.landing-hero h1 span { color: var(--green); }
.eyebrow, .section-kicker { letter-spacing: 1px; font-size: 15px; line-height: 1.6; margin: 0 0 18px; }
.lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.75; max-width: 720px; }
.hero-note { font-size: 13px; line-height: 1.8; max-width: 480px; margin-top: 26px; }
.hero-note a { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); margin-right: 7px; vertical-align: middle; }
.button { padding: 12px 21px; min-height: 48px; border-radius: 9px; font-size: 14px; gap: 18px; line-height: 1.5; }
.button.primary { color: #06110c; }
.button:hover { filter: brightness(1.1); }
.hero-actions { gap: 10px; }
.terminal-preview { border: 1px solid var(--line); border-radius: 16px; background: #10161e; overflow: hidden; box-shadow: 0 24px 70px #0004; transform: rotate(-1.2deg); }
.terminal-title { display: flex; gap: 10px; align-items: center; padding: 17px 20px; background: var(--surface-2); font-size: 13px; }
.preview-label { margin-left: auto; font-size: 10px; color: var(--muted); white-space: nowrap; }
.preview-tabs { display: flex; gap: 8px; padding: 13px 18px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.preview-tabs span { padding: 7px 10px; border-radius: 5px; }
.preview-tabs .selected { color: var(--green); background: #42d39216; }
.preview-code { padding: 23px; font: 12px/1.8 ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; }
.preview-code p { color: var(--text); margin: 0; }
.preview-code p span { color: var(--cyan); }
.preview-code .code-comment { color: var(--muted); margin-top: 20px; }
.preview-code .code-comment:first-child { margin-top: 0; }
.preview-caption { padding: 14px 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.7; }
.value-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: var(--page-width); margin: 0 auto; padding: 25px var(--gutter); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.value-strip div { display: flex; gap: 14px; align-items: center; font-size: 13px; }
.value-strip b { font: 12px ui-monospace, monospace; color: var(--green); }
.section { padding: clamp(48px, 7vw, 88px) max(var(--gutter), calc((100% - var(--page-width)) / 2)); }
h2 { font-size: clamp(27px, 3vw, 40px); line-height: 1.2; letter-spacing: -1.1px; }
h3 { font-size: 20px; line-height: 1.35; letter-spacing: -.35px; }
p { font-size: 15px; line-height: 1.85; }
.section-heading { max-width: 720px; margin-bottom: 32px; }
.section-heading > p:last-child { margin-bottom: 0; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feature-card { padding: 26px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); display: flex; flex-direction: column; align-items: flex-start; }
.feature-number { color: var(--green); font: 13px/1.5 ui-monospace, monospace; letter-spacing: .5px; margin-bottom: 32px; }
.feature-card p { flex: 1; margin-bottom: 22px; }
.feature-card a, .text-link { color: var(--cyan); font-weight: 650; font-size: 14px; line-height: 1.7; }
.feature-card a:hover, .text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.flow-panel { background: #10161e; }
.split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); }
.timeline { gap: 16px; }
.timeline li { background: transparent; padding: 20px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; grid-template-columns: 36px minmax(0, 1fr); }
.timeline li:first-child { padding-top: 0; }
.timeline span { width: 34px; font-size: 13px; background: #42d39218; color: var(--green); }
.timeline h3 { font-size: 18px; margin: 0 0 8px; }
.timeline p { font-size: 14px; }
.doc-link { border-radius: 10px; padding: 24px; }
.doc-link strong { color: var(--text); font-size: 17px; }
.page-hero { max-width: 1328px; margin: auto; padding: clamp(48px, 7vw, 88px) var(--gutter) 56px; }
.page-hero h1 { max-width: 880px; margin: 16px 0 24px; font-size: clamp(38px, 5vw, 64px); line-height: 1.12; letter-spacing: -2px; }
.page-hero .lead { max-width: 810px; }
.page-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.content-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.content-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.info-card, .download-card { min-width: 0; padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.info-card h2, .download-card h2 { font-size: 25px; letter-spacing: -.7px; }
.download-grid { max-width: none; gap: 22px; }
.download-card { gap: 16px; }
.download-card p { margin: 0; }
.download-card .button { justify-self: start; }
.development-card { border-style: dashed; background: transparent; }
.release-version { color: var(--text); font-size: 20px; font-weight: 600; }
.download-badge { color: var(--green); border-color: #42d39244; background: #42d3920c; font-size: 12px; letter-spacing: .8px; }
.file-details { border-top: 1px solid var(--line); padding-top: 18px; font-size: 13px; }
summary { padding: 8px 0; line-height: 1.6; color: var(--text); }
.download-meta { margin-top: 14px; }
.download-meta div { background: #0b1118; border-radius: 7px; }
.notice { border-left: 3px solid var(--green); padding: 16px 22px; background: #42d3920b; margin: 24px 0; color: var(--muted); line-height: 1.8; }
.notice strong { color: var(--text); }
.command-block { max-width: 100%; overflow-x: auto; padding: 20px; border: 1px solid var(--line); border-radius: 8px; background: #0b1118; color: var(--cyan); font: 13px/1.9 ui-monospace, monospace; }
.steps { padding-left: 24px; color: var(--muted); line-height: 1.85; }
.steps li { margin-bottom: 15px; padding-left: 8px; }
.steps strong { color: var(--text); }
.stats-note { font-size: 13px; color: var(--muted); }
.metrics { padding-left: 0; padding-right: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.metrics div { background: var(--surface); border-radius: 10px; }
.metrics strong { color: var(--cyan); }
.account-panel { background: #10161e; }
.account-grid { grid-template-columns: minmax(0, 1.1fr) repeat(2, minmax(0, 1fr)); }
.account-box { min-width: 0; border-radius: 12px; padding: 24px; }
.account-box input, .manifest-row input { width: 100%; min-width: 0; }
.account-box .button { padding: 10px 14px; font-size: 14px; min-height: 44px; }
.account-status { overflow-wrap: anywhere; }
.account-note { font-size: 13px; }
.app-connect-panel { min-width: 0; }
.qr-row { grid-template-columns: minmax(0, 1fr); gap: 20px; }
.qr-row > div { min-width: 0; }
.qr-row strong { color: var(--text); font-size: 16px; line-height: 1.5; }
.qr-row p { margin: 10px 0 16px; line-height: 1.7; }
.qr-row .button { width: 100%; }
.qr-code { width: 180px; height: auto; aspect-ratio: 1; justify-self: center; }
.updates-timeline { max-width: none; }
.update-entry { grid-template-columns: 150px minmax(0, 1fr); padding: 24px; border-radius: 12px; gap: 28px; }
.update-entry.highlight { border-color: #42d39260; background: var(--surface); }
.update-body h3 { font-size: 25px; line-height: 1.3; }
.archive-intro { margin-bottom: 32px; }
.founder-card { border-radius: 12px; }
.founder-photo { background: #42d3920e; border-color: #42d39244; font-size: 54px; }
.founder-card h2 { font-size: 32px; }
.founder-layout { grid-template-columns: minmax(0, 1fr); }
.footer { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; padding: 44px max(var(--gutter), calc((100% - var(--page-width)) / 2)); background: #0a0e14; }
.footer p { font-size: 13px; margin: 9px 0; }
.footer-brand { color: var(--text); font-size: 22px; font-weight: 700; }
.footer nav { display: flex; flex-wrap: wrap; gap: 10px 24px; max-width: 400px; justify-content: flex-end; }
.footer nav a { padding: 6px 0; font-size: 13px; color: var(--muted); }
@media (max-width: 1100px) {
  .topbar { gap: 10px; padding-inline: 24px; }
  .nav > a { padding-inline: 7px; font-size: 13px; }
}
@media (max-width: 960px) {
  .topbar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; padding: 13px 20px; min-height: 72px; }
  .account-top-badge { justify-self: end; }
  .nav-toggle:not([hidden]) { display: inline-flex; margin-left: 0; }
  .nav { grid-column: 1 / -1; width: 100%; justify-content: flex-start; padding-top: 10px; }
  .nav > a { padding: 10px 12px; }
  .nav .lang-switch { margin-left: auto; }
  .menu-enhanced .nav { display: none; }
  .menu-enhanced.menu-open .nav { display: flex; }
  .landing-hero { grid-template-columns: minmax(0, 1fr); gap: 40px; max-width: 760px; }
  .landing-hero h1 { font-size: clamp(42px, 7vw, 64px); }
  .terminal-preview { transform: none; }
  .feature-grid, .account-grid { grid-template-columns: minmax(0, 1fr); }
  .feature-number { margin-bottom: 18px; }
  .feature-card p { margin-top: 0; }
  .feature-card { padding: 24px; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .content-grid { grid-template-columns: minmax(0, 1fr); }
  .docs-grid { grid-template-columns: minmax(0, 1fr); }
  .account-box { min-height: auto; }
}
@media (max-width: 600px) {
  html { scroll-padding-top: 160px; }
  .topbar { grid-template-columns: minmax(0, 1fr) auto; }
  .brand { grid-column: 1; grid-row: 1; }
  .nav-toggle { grid-column: 2; grid-row: 1; }
  .account-top-badge { grid-column: 1 / -1; grid-row: 2; max-width: 100%; justify-self: start; }
  .landing-hero { padding-top: 46px; padding-bottom: 40px; }
  .landing-hero h1 { font-size: clamp(38px, 9.4vw, 52px); letter-spacing: -1.8px; }
  .value-strip { grid-template-columns: 1fr; gap: 16px; padding-block: 24px; margin-inline: 20px; padding-inline: 0; }
  .content-grid.two, .download-grid, .metrics { grid-template-columns: minmax(0, 1fr); }
  .terminal-title { padding: 14px; }
  .preview-code { padding: 18px 14px; font-size: 11px; }
  .preview-tabs { padding: 10px; }
  .preview-caption { padding: 12px 14px; }
  .update-entry, .founder-card { grid-template-columns: minmax(0, 1fr); }
  .update-entry { padding: 20px; gap: 20px; }
  .footer { flex-direction: column; gap: 22px; }
  .footer nav { justify-content: flex-start; }
  .brand { font-size: 20px; }
  .brand-mark { width: 30px; height: 30px; }
  .nav-toggle { padding: 8px 10px; font-size: 13px; gap: 7px; }
  .manifest-row { display: grid; grid-template-columns: 1fr; }
}
@media (min-width: 961px) { .nav-toggle { display: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
