/* Empire Code Editor — marketing site, v2 design. Palette mirrors the editor (theme.js). */
:root {
  --bg: #0a0d14;
  --bg-2: #0e121b;
  --panel: #121722;
  --raised: #182030;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.12);
  --fg: #c5ccda;
  --fg-strong: #f3f6fc;
  --fg-muted: #78829a;
  --accent: #3d7cff;
  --accent-2: #19b2ff;
  --grad: linear-gradient(120deg, #2f6bff 0%, #19b2ff 100%);
  --glow: rgba(45, 110, 255, 0.45);
  /* syntax colors from the editor's Empire Night theme */
  --s-key: #7aa2ff;
  --s-str: #8fd6a8;
  --s-num: #f2a97a;
  --s-type: #5fd4e6;
  --s-com: #5f6a82;
  --s-var: #c4a7ff;
  --display: 'Space Grotesk', system-ui, sans-serif;
  --body: 'Inter', system-ui, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', Consolas, monospace;
  --radius: 14px;
  --maxw: 1200px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--display); color: var(--fg-strong); letter-spacing: -0.02em; line-height: 1.08; margin: 0; }
code { font-family: var(--mono); font-size: 0.85em; color: var(--s-type); background: rgba(95, 212, 230, 0.08); padding: 1px 6px; border-radius: 5px; }

.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.ico.sm { width: 16px; height: 16px; }

/* fixed background: grid lines + two soft glows */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(900px 520px at 82% -6%, rgba(25, 178, 255, 0.14), transparent 60%),
    radial-gradient(760px 560px at 6% 8%, rgba(45, 110, 255, 0.12), transparent 62%),
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 46px 46px, 46px 46px;
  mask-image: linear-gradient(180deg, #000 0%, #000 60%, transparent 100%);
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 11px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.12s, filter 0.15s, border-color 0.15s, color 0.15s, background 0.15s;
}
.btn .ico { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 30px -8px var(--glow); }
.btn-primary:hover { filter: brightness(1.08); }
/* Download button — still blue, but a deeper glossy style with a shine that sweeps across on hover. */
.btn[data-download] { position: relative; overflow: hidden; background: linear-gradient(180deg, #2f72ff 0%, #0b43d6 100%); border: 1px solid rgba(130, 170, 255, 0.5); box-shadow: 0 8px 24px -6px rgba(16, 70, 220, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.btn[data-download]:hover { filter: brightness(1.06); box-shadow: 0 12px 30px -6px rgba(16, 70, 220, 0.78), inset 0 1px 0 rgba(255, 255, 255, 0.34); }
.btn[data-download] > * { position: relative; z-index: 1; }
.btn[data-download]::after { content: ""; position: absolute; top: 0; left: -60%; width: 45%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent); transform: skewX(-20deg); transition: left 0.6s ease; pointer-events: none; }
.btn[data-download]:hover::after { left: 125%; }
.btn-ghost { background: rgba(255, 255, 255, 0.02); color: var(--fg); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--accent); color: var(--fg-strong); }
.btn.lg { height: 52px; padding: 0 26px; font-size: 16px; }
.btn.wide { width: 100%; justify-content: center; }

/* kickers */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--fg-muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 13px;
}
.kicker .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 4px rgba(25, 178, 255, 0.18); }
.sec-kicker { font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-2); display: block; margin-bottom: 14px; }

/* nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 13px clamp(16px, 5vw, 56px);
  background: rgba(10, 13, 20, 0.7);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 18px; color: var(--fg-strong); }
.brand img { border-radius: 7px; }
.brand-dim { color: var(--fg-muted); font-weight: 500; }
.nav-links { display: flex; gap: 26px; margin-left: auto; color: var(--fg-muted); font-size: 15px; }
.nav-links a { position: relative; }
.nav-links a:hover { color: var(--fg-strong); }
.nav-cta { height: 40px; padding: 0 16px; font-size: 14px; }

/* layout */
.section { padding: clamp(64px, 9vw, 120px) clamp(16px, 5vw, 56px); max-width: var(--maxw); margin: 0 auto; }
.sec-head { max-width: 640px; margin-bottom: 48px; }
.sec-head h2 { font-size: clamp(30px, 4.4vw, 46px); }
.sec-head p { color: var(--fg-muted); font-size: 18px; margin: 14px 0 0; }

/* hero */
.hero {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding: clamp(52px, 8vw, 104px) clamp(16px, 5vw, 56px) clamp(40px, 6vw, 72px);
  max-width: var(--maxw);
  margin: 0 auto;
}
.hero h1 { font-size: clamp(42px, 6.4vw, 76px); font-weight: 700; margin: 22px 0 0; }
.hero .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: clamp(17px, 2vw, 20px); color: var(--fg-muted); margin: 22px 0 32px; max-width: 42ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; color: var(--fg-muted); font-size: 14px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta .ico { color: var(--s-str); }

/* hero visual: window + floating card */
.hero-visual { position: relative; }
.win {
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.8);
}
.win-bar { display: flex; align-items: center; gap: 14px; height: 44px; padding: 0 14px; border-bottom: 1px solid var(--line); }
.dots { display: flex; gap: 7px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: #2a3242; }
.dots i:first-child { background: #ff5f57; opacity: 0.7; }
.dots i:nth-child(2) { background: #febc2e; opacity: 0.7; }
.dots i:nth-child(3) { background: #28c840; opacity: 0.7; }
.win-title { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--fg-muted); font-family: var(--mono); }
.win-title .ico { color: var(--accent-2); }
.win-body { display: flex; min-height: 290px; }
.gutter { display: flex; flex-direction: column; align-items: center; gap: 13px; padding: 12px 0; width: 48px; border-right: 1px solid var(--line); }
.gutter img { border-radius: 6px; margin-bottom: 4px; }
.gutter .g { width: 22px; height: 22px; border-radius: 7px; background: #1d2534; }
.gutter .g.on { background: var(--grad); }
.code { margin: 0; padding: 14px 18px; font-family: var(--mono); font-size: 13px; line-height: 1.75; color: var(--fg); overflow-x: auto; white-space: pre; flex: 1; }
.code .ln { display: inline-block; width: 22px; color: #3a445a; user-select: none; }
.code .c { color: var(--s-com); font-style: italic; }
.code .k { color: var(--s-key); }
.code .s { color: var(--s-str); }
.code .fn { color: var(--s-type); }
.code .v { color: var(--fg); }
.code .t { color: var(--s-var); }
.win-status { display: flex; gap: 16px; align-items: center; padding: 7px 16px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--fg-muted); font-family: var(--mono); }
.win-status .grow { flex: 1; }
.win-status .st-accent { color: var(--accent-2); }
.win-status .st-live { display: inline-flex; align-items: center; gap: 6px; color: var(--fg); }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; box-shadow: 0 0 10px var(--accent-2); } }

.claude-card {
  position: absolute;
  right: -14px;
  bottom: -30px;
  width: 268px;
  background: rgba(16, 20, 30, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  padding: 15px 16px;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.85);
  animation: floaty 5s ease-in-out infinite;
}
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.cc-head { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 600; font-size: 13.5px; color: var(--fg-strong); }
.cc-head .ico { color: var(--accent-2); }
.cc-msg { font-size: 13.5px; color: var(--fg); margin: 11px 0 0; }
.cc-reply { font-family: var(--mono); font-size: 12px; color: var(--fg-muted); margin: 10px 0 0; display: flex; align-items: center; gap: 8px; }
.cc-tag { color: var(--s-str); background: rgba(143, 214, 168, 0.1); padding: 1px 7px; border-radius: 5px; }

/* language marquee */
.marquee { border-block: 1px solid var(--line); background: rgba(255, 255, 255, 0.015); overflow: hidden; padding: 16px 0; }
.mq-track { display: flex; align-items: center; gap: 22px; width: max-content; animation: scroll 32s linear infinite; font-family: var(--mono); font-size: 15px; color: var(--fg); }
.mq-track .sep { color: var(--accent); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* feature grid (uniform 3x2) */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cell {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  overflow: hidden;
  transition: border-color 0.18s, transform 0.18s, background 0.18s;
}
.cell::before { content: ''; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, var(--line-2), transparent); opacity: 0; transition: opacity 0.18s; }
.cell:hover { border-color: var(--line-2); transform: translateY(-3px); background: var(--raised); }
.cell:hover::before { opacity: 1; }
.cell h3 { font-size: 19px; }
.cell p { color: var(--fg-muted); font-size: 15px; margin: 10px 0 0; }

/* rounded icon tile */
.feat-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(45, 110, 255, 0.12);
  border: 1px solid rgba(61, 124, 255, 0.25);
  color: var(--accent-2);
  margin-bottom: 18px;
}
.feat-tile .ico { width: 23px; height: 23px; }

/* timeline */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.timeline li { position: relative; padding: 0 22px 0 0; }
.timeline li::before { content: ''; position: absolute; left: 17px; top: 17px; right: -4px; height: 2px; background: var(--line-2); }
.timeline li:last-child::before { display: none; }
.tl-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--grad); color: #fff;
  font-family: var(--display); font-weight: 700; font-size: 16px;
  position: relative; z-index: 1; margin-bottom: 16px;
  box-shadow: 0 8px 20px -8px var(--glow);
}
.timeline h3 { font-size: 17px; }
.timeline p { color: var(--fg-muted); font-size: 14.5px; margin: 7px 18px 0 0; }

/* extensions: steps row + centered form */
.ext-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 40px; }
.ext-step {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.ext-step::after {
  counter-increment: ext;
  content: '0' counter(ext);
  position: absolute;
  top: 22px;
  right: 24px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--fg-muted);
  opacity: 0.6;
}
.ext-steps { counter-reset: ext; }
.ext-step h3 { font-size: 18px; }
.ext-step p { color: var(--fg-muted); font-size: 14.5px; margin: 10px 0 0; }

.submit-card h3 { font-size: 21px; margin-bottom: 20px; }
.field { margin-bottom: 13px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.field label { display: block; font-size: 12.5px; color: var(--fg-muted); margin-bottom: 6px; }
.input-wrap { position: relative; }
.field-ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--fg-muted); pointer-events: none; }
.field-ico.top { top: 14px; transform: none; }
.field input[type='text'], .field input[type='email'], .field input[type='password'], .field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  color: var(--fg-strong);
  font: inherit;
  font-size: 15px;
  padding: 11px 13px 11px 38px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field textarea { resize: vertical; min-height: 58px; }
.field input:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(61, 124, 255, 0.2); }
.field input:focus + .field-ico, .input-wrap:focus-within .field-ico { color: var(--accent-2); }
.file {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg); border: 1px dashed var(--line-2); border-radius: 10px;
  padding: 11px 14px; color: var(--fg-muted); font-size: 14px; cursor: pointer;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: border-color 0.15s, color 0.15s;
}
.file span { overflow: hidden; text-overflow: ellipsis; }
.file:hover { border-color: var(--accent); color: var(--fg); }
.file .ico { color: var(--accent-2); }
.file.has-file { color: var(--fg-strong); border-style: solid; border-color: var(--accent); }
.form-msg { font-size: 14px; margin: 14px 0 0; min-height: 20px; }
.form-msg.ok { color: var(--s-str); }
.form-msg.err { color: #f0716b; }

/* submission modal */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-start; justify-content: center; padding: clamp(16px, 6vh, 64px) 16px; overflow-y: auto; }
.modal[hidden] { display: none; }
.modal-overlay { position: fixed; inset: 0; background: rgba(5, 7, 12, 0.72); backdrop-filter: blur(6px); animation: fade 0.2s ease; }
.modal-box {
  position: relative;
  width: 100%;
  max-width: 540px;
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-radius: 20px;
  padding: clamp(26px, 4vw, 38px);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.9);
  animation: pop 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.modal-box h2 { font-size: clamp(24px, 3.4vw, 30px); margin-top: 2px; }
.modal-sub { color: var(--fg-muted); font-size: 15px; margin: 12px 0 26px; }
.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--fg-muted);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.modal-close:hover { color: var(--fg-strong); border-color: var(--line-2); background: rgba(255, 255, 255, 0.07); }
body.modal-open { overflow: hidden; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(0.98); } }

/* extensions CTA + nav active */
.ext-cta { text-align: center; margin-top: 44px; }
.nav-links a.active { color: var(--fg-strong); }

/* buttons: small + danger + select */
.btn.sm { height: 36px; padding: 0 14px; font-size: 13.5px; border-radius: 9px; }
.btn.danger:hover { border-color: #f0716b; color: #f0716b; }
.select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  color: var(--fg-strong);
  font: inherit;
  font-size: 15px;
  padding: 11px 13px;
  outline: none;
}
.select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(61, 124, 255, 0.2); }

/* dev area */
.dev-main { max-width: var(--maxw); margin: 0 auto; padding: clamp(40px, 7vw, 80px) clamp(16px, 5vw, 56px) 80px; }
.auth-wrap { display: flex; justify-content: center; }
.auth-card { width: 100%; max-width: 440px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 20px; padding: clamp(26px, 4vw, 38px); box-shadow: 0 40px 100px -40px rgba(0, 0, 0, 0.8); }
.auth-card h1 { font-size: clamp(22px, 3vw, 28px); margin-top: 4px; }
.auth-sub { color: var(--fg-muted); font-size: 15px; margin: 12px 0 22px; }
.auth-tabs { display: flex; gap: 6px; background: var(--bg); border: 1px solid var(--line); border-radius: 11px; padding: 4px; margin-bottom: 22px; }
.auth-tab { flex: 1; height: 38px; border: 0; background: transparent; color: var(--fg-muted); font-family: var(--display); font-weight: 600; font-size: 14px; border-radius: 8px; cursor: pointer; transition: background 0.15s, color 0.15s; }
.auth-tab.on { background: var(--raised); color: var(--fg-strong); }
.auth-foot { color: var(--fg-muted); font-size: 12.5px; margin: 16px 0 0; text-align: center; }

.dash-head { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-end; justify-content: space-between; margin-bottom: 36px; }
.dash-head h1 { font-size: clamp(28px, 4vw, 42px); margin-top: 4px; }
.dash-sub { color: var(--fg-muted); font-size: 15px; margin: 10px 0 0; }
.dash-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Admin site ---------- */
.adm-storage { display: flex; gap: 12px; align-items: flex-start; background: rgba(240, 113, 107, 0.1); border: 1px solid rgba(240, 113, 107, 0.45); color: var(--fg-strong); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 20px; font-size: 14px; }
.adm-storage .ico { color: #f0716b; flex-shrink: 0; margin-top: 2px; }
.adm-download { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 26px; }
.adm-download h2 { font-family: var(--display); font-size: 20px; margin-top: 4px; }
.adm-download .dash-sub { max-width: 650px; margin-top: 6px; font-size: 13px; }
.adm-download form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.adm-file-label { color: var(--fg-muted); font-size: 13px; }
.adm-download input[type='url'] { width: min(440px, 100%); height: 44px; background: var(--bg); border: 1px solid var(--line-2); border-radius: 10px; color: var(--fg-strong); padding: 0 14px; font: inherit; font-size: 13px; }
.adm-download input[type='url']:focus { outline: none; border-color: var(--accent); }
.adm-download-status { color: var(--fg-muted); font-size: 13px; margin-top: 8px; }
.adm-download button:disabled { opacity: 0.65; cursor: wait; }
.adm-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 26px; }
.adm-stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.adm-stat .ico { color: var(--accent-2); margin-bottom: 6px; }
.adm-stat b { font-family: var(--display); font-size: 30px; color: var(--fg-strong); line-height: 1.1; }
.adm-stat span { color: var(--fg-muted); font-size: 13px; }
.adm-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.adm-tabs { margin-bottom: 0; flex: 0 1 420px; }
.adm-search { flex: 0 1 280px; height: 44px; background: var(--bg); border: 1px solid var(--line-2); border-radius: 10px; color: var(--fg-strong); padding: 0 14px; font: inherit; font-size: 14px; }
.adm-search:focus { outline: none; border-color: var(--accent); }
.adm-table-wrap { overflow-x: auto; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.adm-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.adm-table th { text-align: left; font-weight: 600; color: var(--fg-muted); font-size: 12.5px; padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.adm-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--fg); }
.adm-table tr:last-child td { border-bottom: 0; }
.adm-table td b { color: var(--fg-strong); }
.adm-sub { color: var(--fg-muted); font-size: 12.5px; margin-top: 2px; }
.adm-desc { color: var(--fg-muted); font-size: 13px; margin-top: 4px; max-width: 420px; }
.adm-icon { width: 36px; height: 36px; border-radius: 9px; object-fit: cover; border: 1px solid var(--line-2); display: inline-flex; align-items: center; justify-content: center; background: var(--bg); }
.adm-icon-none { color: var(--accent-2); }
.adm-empty { color: var(--fg-muted); text-align: center; padding: 30px 0; }

.ext-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.ext-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; transition: border-color 0.15s, transform 0.15s; }
.ext-card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.ec-head { display: flex; gap: 14px; align-items: center; }
.ec-icon { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; border: 1px solid var(--line-2); flex-shrink: 0; background: var(--bg); }
.ec-icon-fallback { display: inline-flex; align-items: center; justify-content: center; color: var(--accent-2); background: rgba(45, 110, 255, 0.12); }
.ec-icon-fallback .ico { width: 24px; height: 24px; }
.ec-title h3 { font-size: 18px; }
.ec-cat { font-family: var(--mono); font-size: 11.5px; color: var(--accent-2); }
.ec-desc { color: var(--fg-muted); font-size: 14.5px; margin: 14px 0 0; flex: 1; }
.ec-stats { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 16px 0; font-size: 13px; color: var(--fg); }
.ec-stats span { display: inline-flex; align-items: center; gap: 6px; }
.ec-stats .ico { color: var(--accent-2); }
.ec-actions { display: flex; gap: 8px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 16px; }
.muted { color: var(--fg-muted); }
.dev-loading { color: var(--fg-muted); font-size: 15px; padding: 20px 0; }
.dev-empty { text-align: center; padding: 60px 20px; border: 1px dashed var(--line-2); border-radius: var(--radius); }
.dev-empty .ico { width: 36px; height: 36px; color: var(--accent-2); }
.dev-empty h3 { font-size: 20px; margin: 14px 0 6px; }
.dev-empty p { color: var(--fg-muted); margin: 0 0 20px; }

@media (max-width: 560px) {
  .dash-head { flex-direction: column; align-items: flex-start; }
}

/* guide */
.guide-back { margin-bottom: 24px; }
.guide { max-width: 820px; }
.guide h1 { font-size: clamp(28px, 4vw, 40px); margin-top: 4px; }
.guide-lead { color: var(--fg-muted); font-size: 17px; margin: 14px 0 28px; }
.guide h2 { font-size: 24px; margin: 40px 0 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.guide h3 { font-size: 17px; margin: 24px 0 8px; color: var(--accent-2); }
.guide p { color: var(--fg); font-size: 15.5px; margin: 0 0 12px; }
.guide-note { color: var(--fg-muted); font-size: 14px; margin: 14px 0 6px; }
.guide code { font-size: 0.85em; }
.guide-code {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 18px;
  margin: 0 0 16px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.65;
  color: var(--s-str);
  overflow-x: auto;
  white-space: pre;
}
.guide-toc { display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 0 0 20px; }
.guide-toc a { font-family: var(--mono); font-size: 13px; color: var(--fg-muted); background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px; }
.guide-toc a:hover { color: var(--fg-strong); border-color: var(--line-2); }
.guide-cta { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); display: flex; justify-content: center; }
.guide-steps { color: var(--fg); font-size: 15.5px; padding-left: 20px; }
.guide-steps li { margin: 0 0 10px; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 24px); opacity: 0; pointer-events: none; background: var(--raised); border: 1px solid var(--line-2); color: var(--fg-strong); padding: 12px 18px; border-radius: 12px; font-size: 14px; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.8); transition: opacity 0.2s, transform 0.2s; z-index: 200; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { border-color: #f0716b; color: #f0716b; }
.toast.ok { border-color: var(--s-str); }

/* faq */
.faq { display: flex; flex-direction: column; gap: 12px; max-width: 840px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 2px 20px; transition: border-color 0.15s; }
.faq details[open] { border-color: var(--line-2); }
.faq summary { list-style: none; cursor: pointer; font-family: var(--display); font-weight: 600; color: var(--fg-strong); font-size: 16px; padding: 17px 30px 17px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 2px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--fg-muted); border-bottom: 2px solid var(--fg-muted); transform: translateY(-65%) rotate(45deg); transition: transform 0.2s; }
.faq details[open] summary::after { transform: translateY(-35%) rotate(-135deg); }
.faq p { color: var(--fg-muted); font-size: 15px; margin: 0 0 18px; }

/* download card */
#download { padding-top: clamp(20px, 4vw, 48px); }
.dl-card {
  position: relative;
  text-align: center;
  background: linear-gradient(165deg, var(--raised), var(--panel));
  border: 1px solid var(--line-2);
  border-radius: 22px;
  padding: clamp(44px, 6vw, 76px) 24px;
  overflow: hidden;
}
.dl-card::before { content: ''; position: absolute; inset: -1px -1px auto; height: 3px; background: var(--grad); }
.dl-card::after { content: ''; position: absolute; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, var(--glow), transparent 65%); top: -210px; left: 50%; transform: translateX(-50%); pointer-events: none; }
.dl-card > * { position: relative; }
.dl-card h2 { font-size: clamp(28px, 4.2vw, 42px); margin-top: 4px; }
.dl-card > p { color: var(--fg-muted); font-size: 18px; margin: 14px 0 0; }
.dl-card .btn { margin-top: 30px; }
.dl-req { list-style: none; margin: 26px 0 0; padding: 0; display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; }
.dl-req li { display: inline-flex; align-items: center; gap: 8px; color: var(--fg-muted); font-size: 14px; }
.dl-req .ico { color: var(--s-str); }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 40px clamp(16px, 5vw, 56px); max-width: var(--maxw); margin: 0 auto; }
.foot-top { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.foot-links { display: flex; flex-wrap: wrap; gap: 20px; margin-left: auto; color: var(--fg-muted); font-size: 14.5px; }
.foot-links a:hover { color: var(--fg-strong); }
.foot-bot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; padding-top: 22px; }
.foot-note { color: var(--fg-muted); font-size: 13px; margin: 0; flex: 1; min-width: 240px; }
.foot-copy { color: var(--fg-muted); font-size: 13px; margin: 0; }

/* entrance */
.hero-copy, .hero-visual { opacity: 0; transform: translateY(16px); animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
.hero-copy { animation-delay: 0.05s; }
.hero-visual { animation-delay: 0.18s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* responsive */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .hero .lead { max-width: none; }
  .claude-card { right: 10px; bottom: -24px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .hl-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: repeat(2, 1fr); gap: 32px 0; }
  .timeline li::before { display: none; }
  .ext-steps { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .nav-links { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .hero-actions .btn { flex: 1; justify-content: center; }
  .claude-card { display: none; }
}
