:root {
  --bg: #0b0d12;
  --bg-2: #10131b;
  --surface: #161a24;
  --surface-2: #1c212e;
  --line: #262c3a;
  --text: #e8ebf2;
  --muted: #9aa3b7;
  --faint: #6b7488;
  --gold: #e8b24c;
  --gold-2: #f4d089;
  --accent: #6ea8ff;
  --accent-2: #8bc0ff;
  --radius: 16px;
  --shadow: 0 20px 60px -20px rgba(0,0,0,.7);
  --max: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }

.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60rem 40rem at 72% -10%, rgba(232,178,76,.14), transparent 60%),
    radial-gradient(50rem 40rem at 10% 8%, rgba(110,168,255,.12), transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
}

.grad {
  background: linear-gradient(120deg, var(--gold-2), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Nav ---------- */
.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 4px 14px rgba(0,0,0,.5); }
.brand-name { font-family: "Cinzel", serif; font-weight: 600; letter-spacing: .3px; font-size: 1.05rem; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--muted); font-weight: 500; font-size: .95rem; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-github {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px;
}
.nav-github:hover { border-color: var(--gold); }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--max);
  margin: 40px auto 0;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(232,178,76,.1); border: 1px solid rgba(232,178,76,.28);
  color: var(--gold-2); font-size: .82rem; font-weight: 600; letter-spacing: .3px;
}
.pill-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.hero h1 {
  font-family: "Cinzel", serif;
  font-size: clamp(2.2rem, 4.4vw, 3.5rem);
  line-height: 1.1;
  margin: 20px 0 16px;
  font-weight: 700;
}
.lead { font-size: 1.14rem; color: var(--muted); max-width: 34ch; }
.lead strong { color: var(--text); font-weight: 600; }

.download-row { display: flex; gap: 14px; margin: 30px 0 18px; flex-wrap: wrap; }
.download-row--center { justify-content: center; }

.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 13px 20px; border-radius: 12px;
  font-weight: 600; font-size: .98rem; cursor: pointer;
  border: 1px solid transparent; transition: transform .15s, box-shadow .2s, background .2s, border-color .2s;
}
.btn svg { flex-shrink: 0; }
.btn span { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.btn span small { font-weight: 500; font-size: .74rem; opacity: .72; }
.btn-primary {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border-color: var(--line); color: var(--text);
}
.btn-primary:hover { transform: translateY(-2px); border-color: var(--gold); box-shadow: var(--shadow); }
.btn-suggested {
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  border-color: var(--gold); color: #2a1e05;
}
.btn-suggested small { opacity: .85; }
.btn-ghost { border-color: var(--line); background: transparent; color: var(--text); padding: 12px 22px; }
.btn-ghost:hover { border-color: var(--gold); transform: translateY(-2px); }

.release-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; color: var(--faint); font-size: .9rem; }
.release-meta a { color: var(--muted); }
.release-meta a:hover { color: var(--gold-2); }
.release-meta strong { color: var(--gold-2); }
.dot-sep { opacity: .5; }

/* ---------- App window mock ---------- */
.hero-visual { perspective: 1600px; min-width: 0; }
/* Dark Windows 11 style app window (matches the app's own dark mode) */
.window {
  --w-bg: #141414;
  --w-bar: #1c1c1c;
  --w-line: #2e2e2e;
  --w-text: #f0f0f0;
  --w-muted: #9a9a9a;
  --w-sel: #2f6fda;
  --w-accent: #6ea8ff;
  background: var(--w-bg);
  color: var(--w-text);
  border: 1px solid #303030;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transform: rotateY(-10deg) rotateX(4deg);
  transition: transform .5s ease;
}
.hero-visual:hover .window { transform: rotateY(-3deg) rotateX(1deg); }

.win-titlebar { display: flex; align-items: center; gap: 9px; padding: 0 0 0 12px; background: var(--w-bar); border-bottom: 1px solid var(--w-line); }
.win-ico { width: 16px; height: 16px; border-radius: 3px; }
.win-title { flex: 1; font-size: .74rem; color: var(--w-muted); padding: 9px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-caption { display: flex; }
.cap { width: 40px; text-align: center; color: var(--w-text); font-size: .8rem; padding: 9px 0; transition: background .15s; }
.cap:hover { background: rgba(255,255,255,.08); }
.cap-close:hover { background: #e81123; color: #fff; }

.win-menu { display: flex; gap: 18px; padding: 6px 14px; background: var(--w-bg); border-bottom: 1px solid var(--w-line); font-size: .74rem; color: var(--w-muted); }

.window-toolbar { display: flex; align-items: center; gap: 7px; padding: 10px 12px; background: var(--w-bg); border-bottom: 1px solid var(--w-line); }
.wb { display: inline-flex; align-items: center; font-size: .72rem; color: var(--w-text); padding: 5px 10px; border: 1px solid #3a3a3a; border-radius: 5px; background: #232323; white-space: nowrap; }
.wb-accent { border-color: var(--w-accent); box-shadow: 0 0 0 1px var(--w-accent); }
.wb-spacer { flex: 1; }
.wb-lang { color: var(--w-muted); }

.ic { width: 14px; height: 14px; margin-right: 6px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.window-search { margin: 10px 12px; padding: 7px 12px; background: #1e1e1e; border: 1px solid #3a3a3a; border-radius: 5px; color: var(--w-muted); font-size: .76rem; display: flex; align-items: center; }
.search-ico { margin-right: 8px; color: var(--w-muted); }
.search-clear { margin-left: auto; color: var(--w-muted); font-size: .68rem; }

.window-cols { display: flex; padding: 8px 16px; background: #0a0a0a; color: var(--w-muted); font-size: .72rem; font-weight: 600; border-bottom: 1px solid var(--w-line); }
.window-cols span:first-child { width: 44%; }
.window-list { list-style: none; margin: 0; padding: 0; }
.window-list li { display: flex; align-items: center; padding: 8px 16px; font-size: .78rem; border-bottom: 1px solid #1e1e1e; }
.window-list .acc { width: 44%; color: var(--w-text); font-weight: 500; }
.window-list .desc { color: var(--w-muted); }
.window-list .sel { background: var(--w-sel); }
.window-list li.sel .acc, .window-list li.sel .desc { color: #fff; }
.window-footer { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: var(--w-bar); border-top: 1px solid var(--w-line); }
.fb { display: inline-flex; align-items: center; font-size: .68rem; color: var(--w-text); padding: 5px 9px; border: 1px solid #3a3a3a; border-radius: 5px; background: #232323; white-space: nowrap; }
.fb-spacer { flex: 1; }
.window-status { display: flex; justify-content: space-between; gap: 12px; padding: 7px 14px; background: var(--w-bar); border-top: 1px solid var(--w-line); color: var(--w-muted); font-size: .7rem; }
.window-status .path { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Trust strip ---------- */
.strip {
  max-width: var(--max);
  margin: 70px auto 0;
  padding: 20px 24px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 34px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.strip-item { color: var(--muted); font-weight: 500; font-size: .95rem; }
.strip-ico { margin-right: 8px; }

/* ---------- Sections ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: 96px 24px; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-head h2, .safety h2, .reborn h2, .cta h2 {
  font-family: "Cinzel", serif; font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 0 0 12px; font-weight: 600;
}
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; transition: transform .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(232,178,76,.4); }
.card-ico { font-size: 1.7rem; margin-bottom: 12px; }
.card h3 { margin: 0 0 8px; font-size: 1.08rem; }
.card p { margin: 0; color: var(--muted); font-size: .92rem; }
.card code { background: var(--surface-2); padding: 1px 6px; border-radius: 5px; font-size: .85em; color: var(--gold-2); }
.card:first-child, .card:nth-child(2) { grid-column: span 2; }

/* ---------- Safety ---------- */
.safety { }
.safety-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.eyebrow { color: var(--gold); font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; font-size: .78rem; }
.safety-copy h2 { margin: 12px 0 18px; }
.safety-copy p { color: var(--muted); margin: 0 0 16px; }
.safety-copy code { background: var(--surface-2); padding: 1px 6px; border-radius: 5px; color: var(--gold-2); font-size: .88em; }
.safety-copy strong { color: var(--text); }
.safety-actions { margin-top: 24px; }
.safety-list {
  list-style: none; margin: 0; padding: 26px;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line); border-radius: var(--radius);
}
.safety-list li { display: flex; align-items: flex-start; gap: 12px; padding: 11px 0; color: var(--text); font-weight: 500; border-bottom: 1px solid var(--line); }
.safety-list li:last-child { border-bottom: 0; }
.check { color: #28c840; font-weight: 700; }

/* ---------- L2 Reborn ---------- */
.reborn-inner {
  text-align: center; max-width: 720px; margin: 0 auto;
  background: radial-gradient(40rem 20rem at 50% 0%, rgba(232,178,76,.1), transparent 70%);
  padding: 40px 30px; border: 1px solid var(--line); border-radius: 20px;
}
.reborn-inner p { color: var(--muted); margin: 12px 0 0; font-size: 1.05rem; }
.reborn a { color: var(--gold-2); font-weight: 600; }
.reborn a:hover { text-decoration: underline; }
.reborn code { background: var(--surface-2); padding: 1px 6px; border-radius: 5px; color: var(--gold-2); font-size: .88em; }

/* ---------- CTA ---------- */
.cta { text-align: center; }
.cta > p { color: var(--muted); font-size: 1.1rem; margin: 0 0 28px; }
.cta-note { margin-top: 22px; color: var(--faint); font-size: .92rem; }
.cta-note a { color: var(--muted); text-decoration: underline; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); margin-top: 40px; }
.footer-inner {
  max-width: var(--max); margin: 0 auto; padding: 34px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-logo { width: 40px; height: 40px; border-radius: 10px; }
.footer-name { font-family: "Cinzel", serif; font-weight: 600; }
.footer-sub { color: var(--faint); font-size: .84rem; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--muted); font-weight: 500; }
.footer-links a:hover { color: var(--gold-2); }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; gap: 40px; margin-top: 24px; }
  .hero-visual { order: 2; }
  .window { transform: none; }
  .lead { max-width: none; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .card:first-child, .card:nth-child(2) { grid-column: span 1; }
  .safety-grid { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 560px) {
  .nav-links a:not(.nav-github) { display: none; }
  .features { grid-template-columns: 1fr; }
  .btn { flex: 1; justify-content: center; }
  .section { padding: 64px 20px; }
  .window-cols span:last-child, .window-list .desc { display: none; }
  .window-cols span:first-child, .window-list .acc { width: auto; }
  .window-toolbar { flex-wrap: wrap; }
  .window-footer { display: none; }
}
