/* Base reset and variables */
:root {
  --bg: #0b0c10;
  --panel: #12141a;
  --text: #e8eaf0;
  --muted: #aab1c6;
  --accent: #7c5cff;
  --accent-2: #3ddc97;
  --border: #222532;
  --shadow: 0 10px 25px rgba(0,0,0,0.25);
}

/* Light theme overrides */
:root.light {
  --bg: #f7f8fb;
  --panel: #ffffff;
  --text: #0f1222;
  --muted: #4a5168;
  --accent: #5b4bff;
  --accent-2: #16b87f;
  --border: #e7e9f2;
  --shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: radial-gradient(1200px 600px at 10% -10%, rgba(124,92,255,0.15), transparent 60%),
              radial-gradient(1000px 600px at 110% 10%, rgba(61,220,151,0.12), transparent 60%),
              var(--bg);
  color: var(--text);
  line-height: 1.55;
}

.site-header, .site-footer { display: none; }

.brand { display: none; }
.brand-name { display: none; }
.brand-icon { display: none; }

.container { min-height: 100%; display: grid; place-items: center; padding: 20px; }
.card {
  width: 100%; max-width: 720px; background: var(--panel); border: 1px solid var(--border);
  border-radius: 16px; padding: 28px; box-shadow: var(--shadow);
}

.title { font-size: clamp(24px, 3.5vw, 36px); margin: 4px 0 8px; }
.subtitle { margin: 0 0 16px; color: var(--muted); }

.status { display: grid; gap: 14px; margin: 20px 0; }
.countdown {
  font-variant-numeric: tabular-nums; font-weight: 800; letter-spacing: 1px;
  font-size: clamp(28px, 5vw, 44px);
}
.eta { color: var(--muted); }
.eta-label { opacity: .9; margin-right: 6px; }

.progress-wrap {
  height: 10px; background: color-mix(in oklab, var(--panel) 70%, var(--text) 5%);
  border: 1px solid var(--border); border-radius: 999px; overflow: hidden; position: relative;
}
.progress-bar {
  height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2));
  width: 0%; transition: width .6s cubic-bezier(.2,.8,.2,1);
}

.info { margin: 12px 0 4px; }
.info summary {
  cursor: pointer; color: var(--text); font-weight: 700;
  display: flex; align-items: center; gap: 10px; list-style: none;
}
.summary-icon { font-size: 18px; }
.pill {
  margin-left: auto; font-size: 12px; padding: 4px 8px; border-radius: 999px;
  border: 1px solid var(--border); background: color-mix(in oklab, var(--accent) 16%, var(--panel) 84%);
  color: var(--text); opacity: 0.95;
}
.pill.in-progress { background: color-mix(in oklab, var(--accent-2) 12%, var(--panel) 88%); }
.info-body { margin-top: 12px; }
.feature-list { margin: 0; padding: 0; display: grid; gap: 10px; }
.feature-list li { list-style: none; display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
.feature-list .icon { color: var(--accent-2); display: inline-flex; align-items: center; justify-content: center; }
.feature-list .icon.ok { color: var(--accent); }
.feature-list .text { color: var(--muted); display: grid; gap: 2px; }
.feature-list .text strong { color: var(--text); font-weight: 700; }
.callout {
  margin-top: 12px; padding: 10px 12px; border-radius: 10px;
  border: 1px dashed var(--border); color: var(--muted); display: flex; gap: 8px; align-items: center;
  background: color-mix(in oklab, var(--panel) 85%, var(--text) 3%);
}
.callout p { margin: 0; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 14px; border-radius: 10px; font-weight: 600; text-decoration: none;
  background: var(--accent); color: white; border: 1px solid transparent;
}
.button.ghost { background: transparent; color: var(--text); border-color: var(--border); }
.button:hover { filter: brightness(1.05); }
.button:active { transform: translateY(1px); }

.theme-toggle {
  appearance: none; border: 1px solid var(--border); background: var(--panel); color: var(--text);
  padding: 8px 10px; border-radius: 10px; cursor: pointer; box-shadow: var(--shadow);
}
.theme-icon { display: inline-block; font-size: 16px; }

/* Responsive tweaks */
@media (max-width: 480px) {
  .card { padding: 20px; border-radius: 14px; }
  .actions { flex-direction: column; }
  .pill { display: none; }
}

/* Respect system preference by default; JS can set .light or .dark on :root */
@media (prefers-color-scheme: light) {
  :root:not(.dark):not(.light) { color-scheme: light; }
}
@media (prefers-color-scheme: dark) {
  :root:not(.dark):not(.light) { color-scheme: dark; }
}
