/* StarkZip — starkzip.com */
:root {
  --bg: #f7f5f1;
  --bg-soft: #f2efe9;
  --card: #ffffff;
  --border: #e6e1d6;
  --border-strong: #d5cebe;
  --text: #211d16;
  --text-2: #6c655a;
  --text-3: #9a9285;
  --gold: #c9930f;
  --gold-deep: #8a6608;
  --gold-soft: #fbf3de;
  --gold-grad: linear-gradient(180deg, #dba81e, #c9930f);
  --success: #1d7d55;
  --danger: #c4392f;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(58, 49, 38, .05), 0 8px 24px rgba(58, 49, 38, .07);
  --shadow-lg: 0 2px 6px rgba(58, 49, 38, .08), 0 18px 48px rgba(58, 49, 38, .14);
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--gold-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.3rem); font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -.01em; }
h3 { font-size: 1.15rem; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section.tight { padding: 48px 0; }
.center { text-align: center; }
.muted { color: var(--text-2); }
.small { font-size: .875rem; }
.gold { color: var(--gold-deep); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 245, 241, .88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--text); }
.brand img { width: 28px; height: 28px; }
.brand .zip { color: var(--gold-deep); }
.brand:hover { text-decoration: none; }
.nav-links { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--text-2); font-size: .925rem; font-weight: 500; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
@media (max-width: 720px) { .nav-links a:not(.btn) { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px; border: 1px solid transparent;
  font: 600 .95rem var(--font-display); cursor: pointer; text-decoration: none !important;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-gold { background: var(--gold-grad); color: #241b04; box-shadow: 0 6px 18px rgba(201, 147, 15, .35); }
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(201, 147, 15, .45); }
.btn-outline { background: var(--card); color: var(--text); border-color: var(--border-strong); }
.btn-outline:hover { border-color: var(--gold); }
.btn-sm { padding: 8px 14px; font-size: .85rem; border-radius: 8px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 84px 0 72px; }
.hero::before {
  content: ""; position: absolute; inset: -40% -20% auto; height: 140%;
  background: radial-gradient(closest-side, rgba(201, 147, 15, .16), transparent 70%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; position: relative; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { margin-top: 18px; }
.hero p.lead { font-size: 1.15rem; color: var(--text-2); max-width: 34em; }
.hero-cta { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-meta { margin-top: 18px; font-size: .85rem; color: var(--text-3); }
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold-soft); color: var(--gold-deep);
  border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: .8rem;
}

/* CSS-drawn app window mockup */
.app-window {
  background: var(--card); border: 1px solid var(--border-strong); border-radius: 16px;
  box-shadow: var(--shadow-lg); overflow: hidden; font-size: 12px;
}
.app-window .titlebar {
  display: flex; align-items: center; gap: 8px; padding: 10px 14px;
  border-bottom: 1px solid var(--border); background: #fbfaf7;
}
.app-window .titlebar img { width: 16px; height: 16px; }
.app-window .titlebar .name { font-weight: 600; }
.app-window .titlebar .name b { color: var(--gold-deep); }
.app-window .titlebar .dots { margin-left: auto; display: flex; gap: 6px; }
.app-window .titlebar .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.app-window .toolbar { display: flex; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.app-window .toolbar span {
  display: inline-flex; align-items: center; gap: 5px; color: var(--text-2);
  background: var(--bg-soft); border-radius: 8px; padding: 5px 9px; font-weight: 500;
}
.app-window .toolbar span::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--gold); }
.app-window .filelist { padding: 8px 14px 14px; }
.app-window .filelist .row {
  display: grid; grid-template-columns: 1fr 74px 74px; gap: 10px;
  padding: 7px 8px; border-radius: 8px; color: var(--text-2);
}
.app-window .filelist .row:nth-child(odd) { background: #fcfbf8; }
.app-window .filelist .row.head { color: var(--text-3); font-weight: 600; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
.app-window .filelist .row .nm { display: flex; gap: 8px; align-items: center; color: var(--text); }
.app-window .filelist .row .nm::before { content: ""; width: 14px; height: 14px; border-radius: 4px; background: var(--gold-soft); border: 1px solid rgba(201, 147, 15, .4); }
.app-window .filelist .row .nm.lock::after { content: "🔒"; font-size: 9px; }

/* ---------- feature cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 900px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.card .icon {
  width: 44px; height: 44px; border-radius: 12px; background: var(--gold-soft);
  display: flex; align-items: center; justify-content: center; font-size: 21px; margin-bottom: 14px;
}
.card h3 { margin-bottom: 6px; }
.card p { margin: 0; color: var(--text-2); font-size: .925rem; }

/* ---------- format table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; font-size: .925rem; }
th { text-align: left; padding: 13px 18px; color: var(--text-3); font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; border-bottom: 1px solid var(--border); background: #fcfbf8; }
td { padding: 12px 18px; border-bottom: 1px solid var(--border); }
tr:last-child td { border-bottom: 0; }
.badge { display: inline-block; border-radius: 999px; padding: 3px 10px; font-size: .75rem; font-weight: 600; }
.badge-yes { background: #e5f3ec; color: var(--success); }
.badge-partial { background: var(--gold-soft); color: var(--gold-deep); }
.badge-no { background: #f7e6e4; color: var(--danger); }

/* ---------- changelog ---------- */
.timeline { position: relative; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.timeline .item { position: relative; padding: 0 0 28px; }
.timeline .item::before { content: ""; position: absolute; left: -24px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }

/* ---------- faq ---------- */
details { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 18px 22px; margin-bottom: 12px; box-shadow: var(--shadow); }
details summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; }
details summary::after { content: "+"; color: var(--gold-deep); font-size: 1.3rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin: 10px 0 0; color: var(--text-2); }

/* ---------- download panel ---------- */
.download-panel {
  background: var(--card); border: 1px solid var(--border); border-radius: 18px;
  padding: 40px; box-shadow: var(--shadow-lg); text-align: center; position: relative; overflow: hidden;
}
.download-panel::before {
  content: ""; position: absolute; inset: -60% -20% auto; height: 160%;
  background: radial-gradient(closest-side, rgba(201, 147, 15, .12), transparent 70%);
}
.checksum {
  font-family: Consolas, monospace; font-size: .78rem; color: var(--text-3);
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 8px;
  padding: 8px 12px; margin-top: 14px; word-break: break-all; display: inline-block;
}
.specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-top: 26px; text-align: center; }
.specs .spec { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 10px; padding: 14px; }
.specs .spec b { display: block; font-size: 1rem; }
.specs .spec span { font-size: .78rem; color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; }

/* ---------- announcement ---------- */
.announcement {
  background: var(--gold-soft); border-bottom: 1px solid var(--border);
  padding: 10px 0; text-align: center; font-size: .875rem; color: var(--gold-deep);
}
.announcement a { font-weight: 600; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-soft); padding: 44px 0 36px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; color: var(--text-3); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 7px 0; }
.site-footer a { color: var(--text-2); font-size: .9rem; }
.site-footer .fineprint { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--text-3); font-size: .8rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- admin ---------- */
.admin-layout { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.admin-side { background: #171514; color: #ece9e3; padding: 22px 14px; }
.admin-side .brand { color: #ece9e3; margin: 4px 8px 26px; }
.admin-side nav a { display: block; color: #a9a29a; padding: 9px 12px; border-radius: 8px; font-size: .9rem; font-weight: 500; }
.admin-side nav a:hover, .admin-side nav a.active { background: #2a2624; color: #ece9e3; text-decoration: none; }
.admin-main { padding: 28px 36px; background: var(--bg); }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 26px; }
.stat { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 18px 20px; box-shadow: var(--shadow); }
.stat b { font-size: 1.7rem; font-family: var(--font-display); display: block; }
.stat span { font-size: .78rem; color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.dot.on { background: var(--success); }
.dot.off { background: var(--border-strong); }

.admin-form { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 26px; box-shadow: var(--shadow); max-width: 720px; }
.admin-form.full { max-width: none; }
label { display: block; font-weight: 600; font-size: .875rem; margin: 16px 0 6px; }
input[type=text], input[type=password], input[type=number], input[type=file], select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border-strong); border-radius: 8px;
  font: inherit; background: #fff; color: var(--text);
}
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(201, 147, 15, .4); border-color: var(--gold); }
.field-help { font-size: .78rem; color: var(--text-3); margin-top: 4px; }
.validation-message, .alert { border-radius: 10px; padding: 12px 16px; margin: 14px 0; font-size: .9rem; }
.alert-error { background: #f7e6e4; color: var(--danger); }
.alert-ok { background: #e5f3ec; color: var(--success); }

/* login/setup */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--bg); }
.auth-card { width: 380px; background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 36px; box-shadow: var(--shadow-lg); text-align: center; }
.auth-card img { width: 64px; height: 64px; margin-bottom: 12px; }
