/* ============================================================
   EMBER — landing / about / shortcuts pages
   ============================================================ */

body.page {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(1000px 500px at 70% -10%, rgba(255, 92, 26, 0.13), transparent 60%),
    radial-gradient(800px 600px at -10% 40%, rgba(255, 122, 60, 0.05), transparent 55%),
    var(--bg-0);
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 32px; }

/* ---------- nav ---------- */
.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 22px 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.12em;
}
.logo-mark {
  width: 18px;
  height: 18px;
  background: var(--accent);
  border-radius: 3px;
  transform: rotate(45deg);
  box-shadow: 0 0 18px var(--accent-glow);
}
.nav-links {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-size: 14px;
  color: var(--text-1);
}
.nav-links a { transition: color 0.15s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--text-0); }
.nav .btn-accent { padding: 7px 16px; font-size: 13px; }

/* ---------- hero ---------- */
.hero {
  padding: 96px 0 64px;
  text-align: left;
  position: relative;
}
.hero-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-hi);
  margin-bottom: 22px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(44px, 7vw, 88px);
  line-height: 1.0;
  font-weight: 800;
  letter-spacing: -0.02em;
  max-width: 13ch;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
  text-shadow: 0 0 40px var(--accent-glow);
}
.hero-sub {
  margin-top: 26px;
  font-size: 19px;
  color: var(--text-1);
  max-width: 52ch;
}
.hero-cta {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.hero-cta .btn-accent { font-size: 16px; padding: 14px 32px; border-radius: var(--radius-m); }
.hero-cta .btn-ghost { font-size: 15px; padding: 13px 24px; border-radius: var(--radius-m); }
.hero-note {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-2);
}

/* staggered reveal */
.reveal { opacity: 0; transform: translateY(18px); animation: reveal 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
.reveal.d1 { animation-delay: 0.08s; }
.reveal.d2 { animation-delay: 0.16s; }
.reveal.d3 { animation-delay: 0.26s; }
.reveal.d4 { animation-delay: 0.38s; }
@keyframes reveal { to { opacity: 1; transform: none; } }

/* ---------- editor mock ---------- */
.mock {
  margin: 40px 0 90px;
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  background: var(--bg-1);
  box-shadow: var(--shadow-panel), 0 0 80px rgba(255, 92, 26, 0.07);
  overflow: hidden;
}
.mock-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}
.mock-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--bg-4); }
.mock-dot:first-child { background: var(--accent); }
.mock-title {
  margin-left: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-2);
}
.mock-body { display: grid; grid-template-columns: 48px 1fr 220px; height: 380px; }
.mock-tools {
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 0;
  gap: 10px;
}
.mock-tool { width: 28px; height: 28px; border-radius: 6px; background: var(--bg-3); }
.mock-tool.on { background: var(--accent-soft); outline: 1px solid var(--accent); }
.mock-canvas {
  position: relative;
  background:
    conic-gradient(var(--bg-3) 90deg, var(--bg-2) 90deg 180deg, var(--bg-3) 180deg 270deg, var(--bg-2) 270deg) 0 0 / 22px 22px;
}
.mock-photo {
  position: absolute;
  inset: 40px 60px;
  border-radius: 4px;
  background:
    radial-gradient(120% 90% at 25% 20%, #ff8a4d 0%, #d43e0e 34%, #5c1f0a 62%, #1b0e08 100%);
  outline: 1px solid var(--accent);
  outline-offset: 4px;
}
.mock-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(50% 40% at 70% 65%, rgba(255, 214, 170, 0.5), transparent 70%);
  border-radius: 4px;
}
.mock-handle {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--bg-0);
  border: 1px solid var(--accent);
}
.mock-panel {
  border-left: 1px solid var(--border);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mock-layer {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-1);
}
.mock-layer.on { border-color: var(--accent); background: var(--accent-soft); color: var(--text-0); }
.mock-swatch { width: 22px; height: 22px; border-radius: 4px; background: linear-gradient(135deg, #ff8a4d, #74260c); }
.mock-slider { height: 4px; border-radius: 2px; background: var(--bg-3); margin-top: 10px; position: relative; }
.mock-slider::after {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 62%;
  border-radius: 2px;
  background: var(--accent);
}
.mock-label { font-family: var(--font-mono); font-size: 10px; color: var(--text-2); margin-top: 12px; letter-spacing: 0.08em; }

/* ---------- features ---------- */
.section-title {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.section-sub { color: var(--text-1); max-width: 60ch; margin-bottom: 42px; }

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding-bottom: 90px;
}
.feature {
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  padding: 24px 22px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.feature:hover { border-color: var(--accent); transform: translateY(-3px); }
.feature svg { width: 26px; height: 26px; stroke: var(--accent); stroke-width: 1.6; fill: none; margin-bottom: 16px; }
.feature h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.feature p { font-size: 13.5px; color: var(--text-1); }

/* ---------- privacy strip ---------- */
.privacy {
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  background:
    radial-gradient(600px 200px at 15% 0%, rgba(255, 92, 26, 0.1), transparent 60%),
    var(--bg-1);
  padding: 48px 44px;
  margin-bottom: 90px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: center;
}
.privacy svg { width: 44px; height: 44px; stroke: var(--accent); stroke-width: 1.4; fill: none; }
.privacy h2 { font-family: var(--font-display); font-size: 26px; margin-bottom: 8px; }
.privacy p { color: var(--text-1); max-width: 70ch; }
.privacy code {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-hi);
  background: var(--accent-soft);
  padding: 1px 6px;
  border-radius: 4px;
}

/* ---------- prose pages (about / shortcuts) ---------- */
.prose { padding: 60px 0 90px; max-width: 760px; }
.prose h1 { font-family: var(--font-display); font-size: 44px; margin-bottom: 22px; letter-spacing: -0.01em; }
.prose h2 { font-family: var(--font-display); font-size: 22px; margin: 38px 0 12px; }
.prose p { color: var(--text-1); margin-bottom: 14px; }
.prose strong { color: var(--text-0); }

.kbd-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.kbd-table td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-1);
}
.kbd-table td:first-child { width: 220px; }
kbd {
  font-family: var(--font-mono);
  font-size: 12px;
  background: var(--bg-3);
  border: 1px solid var(--border-strong);
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: 2px 7px;
  color: var(--text-0);
}

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 40px;
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 13px;
  color: var(--text-2);
}
.footer .logo { font-size: 14px; }
.footer .logo-mark { width: 12px; height: 12px; box-shadow: none; }
.footer-links { margin-left: auto; display: flex; gap: 20px; }
.footer-links a:hover { color: var(--text-0); }

@media (max-width: 860px) {
  .features { grid-template-columns: 1fr; }
  .privacy { grid-template-columns: 1fr; }
  .mock-body { grid-template-columns: 48px 1fr; }
  .mock-panel { display: none; }
}
