/* ============ Concept G — "Gameday" ============
   Narrative timeline: one event day told minute by minute.
   Page background follows the clock — pre-dawn ink → midday
   light → dusk amber → night. */

:root {
  --bone: #f4f1ea;
  --accent: #4f8dfd;
  --good: #34d399;
  --warn-c: #fbbf24;
  --danger: #f87171;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; background: #0c1020; }
h1, h2 { font-family: var(--font-display); letter-spacing: -0.02em; }
a { color: inherit; }

/* ---- time-of-day backgrounds (long transitions between sections) ---- */
.moment { padding: 110px 24px; }
.bg-night   { background: linear-gradient(180deg, #0a0e1d, #101630); }
.bg-dawn    { background: linear-gradient(180deg, #101630, #1d2747); }
.bg-early   { background: linear-gradient(180deg, #1d2747, #3a4a74); }
.bg-morning { background: linear-gradient(180deg, #3a4a74, #b8c9e2, #dde7f2); }
.bg-day     { background: linear-gradient(180deg, #dde7f2, #eef3f8); }
.bg-noon    { background: linear-gradient(180deg, #eef3f8, #f6f1e4); }
.bg-dusk    { background: linear-gradient(180deg, #f6f1e4, #ce8d5e, #5a3a55, #221c3a); }
.bg-night2  { background: linear-gradient(180deg, #221c3a, #0e1226); }

/* text modes */
.t-dark { color: var(--bone); }
.t-dark h2, .t-dark h1 { color: #fff; }
.t-dark p { color: rgba(244, 241, 234, 0.78); }
.t-light { color: #1a2233; }
.t-light h2 { color: #131a2a; }
.t-light p { color: #41506b; }

/* ---- nav (transparent, floats over night hero) ---- */
.nav {
  position: absolute; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 28px;
}
.wordmark {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 21px;
  color: #fff; text-decoration: none;
}
.wordmark .mark { width: 26px; height: 26px; color: var(--accent); }
.btn-nav {
  font-size: 14px; font-weight: 600; color: #fff; text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 99px;
  padding: 8px 18px; background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
}
.btn-nav:hover { background: rgba(255, 255, 255, 0.14); }

/* ---- hero ---- */
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; text-align: center; }
.hero .wrap { max-width: 760px; margin: 0 auto; }
.kicker {
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 20px;
}
.hero h1 { font-size: clamp(38px, 5.4vw, 62px); line-height: 1.1; margin-bottom: 22px; }
.hero .lede { font-size: 18px; }
.scroll-hint {
  margin: 44px auto 0; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255, 255, 255, 0.7); font-size: 16px;
  animation: bob 2s ease infinite;
}
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7px); } }
@media (prefers-reduced-motion: reduce) { .scroll-hint { animation: none; } }

/* ---- timeline layout ---- */
.wrap { max-width: 880px; margin: 0 auto; }
.tl { display: grid; grid-template-columns: 150px 1fr; gap: 40px; }
.when { position: relative; }
.tstamp {
  position: sticky; top: 40vh;
  display: inline-block;
  font-family: var(--font-display); font-weight: 700; font-size: 22px;
  padding: 8px 16px; border-radius: 12px;
  background: rgba(127, 127, 127, 0.12);
  border: 1px solid rgba(127, 127, 127, 0.25);
  backdrop-filter: blur(6px);
  white-space: nowrap;
}
.t-dark .tstamp { color: #fff; background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.18); }
.t-light .tstamp { color: #131a2a; background: rgba(19, 26, 42, 0.05); border-color: rgba(19, 26, 42, 0.14); }

.what h2 { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 14px; }
.what > p { font-size: 16.5px; max-width: 560px; margin-bottom: 26px; }

/* reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---- artifacts (small UI evidence cards) ---- */
.artifact {
  border-radius: 14px; padding: 18px 20px; max-width: 520px;
}
.t-dark .artifact {
  background: rgba(10, 14, 26, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}
.t-light .artifact {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(19, 26, 42, 0.12);
  backdrop-filter: blur(8px);
  box-shadow: 0 18px 50px rgba(40, 60, 110, 0.12);
}
.a-label { font-size: 10.5px; font-weight: 700; letter-spacing: 0.12em; margin-bottom: 8px; color: var(--accent); }
.a-main { font-size: 16.5px; font-weight: 700; font-family: var(--font-display); margin-bottom: 8px; }
.a-sub { font-size: 13px; opacity: 0.85; }
.a-sub.center { text-align: center; padding-top: 10px; }
.good { color: #15a36e; }
.t-dark .good { color: var(--good); }

.a-bar {
  height: 9px; border-radius: 99px; overflow: hidden;
  background: rgba(127, 127, 127, 0.18); margin: 10px 0;
}
.a-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #34d399, #10b981); }
.a-bar.pay i { background: linear-gradient(90deg, #4f8dfd, #34d399); }

.a-row { display: flex; align-items: flex-start; gap: 12px; padding: 9px 0; }
.a-row + .a-row { border-top: 1px solid rgba(127, 127, 127, 0.16); }
.a-row b { display: block; font-size: 14px; font-weight: 600; }
.a-row span { font-size: 12.5px; opacity: 0.75; }
.a-row em { font-style: normal; font-size: 11.5px; opacity: 0.6; margin-left: auto; white-space: nowrap; padding-top: 3px; }
.a-row.resolved { opacity: 0.85; }
.dot { width: 26px; height: 26px; border-radius: 8px; flex: none; position: relative; margin-top: 2px; }
.dot::after { content: ''; position: absolute; inset: 0; margin: auto; width: 9px; height: 9px; border-radius: 50%; }
.dot.warn { background: rgba(251, 191, 36, 0.16); } .dot.warn::after { background: var(--warn-c); }
.dot.good-bg { background: rgba(52, 211, 153, 0.16); } .dot.good-bg::after { background: var(--good); }

.a-cells { display: flex; gap: 10px; margin-bottom: 12px; }
.cellmock {
  flex: 1; border-radius: 9px; padding: 9px 11px;
  border: 1px solid rgba(248, 113, 113, 0.55);
  background: rgba(248, 113, 113, 0.07);
}
.cellmock b { display: block; font-size: 12px; font-weight: 700; }
.cellmock span { font-size: 12px; color: #d33b3b; font-weight: 600; }
.t-dark .cellmock span { color: var(--danger); }

.a-toast {
  margin-top: 12px; border-radius: 10px; padding: 10px 13px;
  font-size: 12.5px; font-weight: 600;
  background: linear-gradient(135deg, rgba(79, 141, 253, 0.25), rgba(52, 211, 153, 0.2));
  border: 1px solid rgba(79, 141, 253, 0.4);
}

/* ---- closer ---- */
.closer { text-align: center; padding: 140px 24px 150px; }
.closer h2 { font-size: clamp(34px, 4.6vw, 54px); margin-bottom: 18px; }
.closer .lede { max-width: 600px; margin: 0 auto 34px; font-size: 17.5px; }
.btn-big {
  display: inline-block; font-weight: 700; font-size: 17px;
  text-decoration: none; color: #fff; padding: 16px 38px; border-radius: 12px;
  background: linear-gradient(135deg, #4f8dfd, #2f6ae0);
  box-shadow: 0 8px 36px rgba(79, 141, 253, 0.4);
  transition: transform 0.15s ease;
}
.btn-big:hover { transform: translateY(-2px); }
.closer .sub { margin-top: 20px; font-size: 13.5px; opacity: 0.65; }

/* ---- footer ---- */
.footer { background: #0a0e1d; text-align: center; padding: 30px 24px 40px; }
.footer p { font-size: 12.5px; color: rgba(244, 241, 234, 0.45); }

/* ---- design switcher ---- */
.dswitch {
  position: fixed; bottom: 18px; right: 18px; z-index: 999;
  display: flex; gap: 3px; align-items: center;
  padding: 7px 10px; border-radius: 99px;
  background: rgba(10, 12, 18, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  font-size: 11.5px; font-weight: 600; color: #9aa1ac;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}
.dswitch span { padding: 0 7px; letter-spacing: 0.08em; text-transform: uppercase; font-size: 10px; }
.dswitch a { color: #cdd2da; text-decoration: none; padding: 4px 9px; border-radius: 99px; }
.dswitch a:hover { background: rgba(255, 255, 255, 0.1); }
.dswitch a.active { background: #3b82f6; color: #fff; }
@media (max-width: 600px) { .dswitch span { display: none; } }

/* ---- responsive ---- */
@media (max-width: 760px) {
  .moment { padding: 80px 20px; }
  .tl { grid-template-columns: 1fr; gap: 18px; }
  .tstamp { position: static; font-size: 18px; }
  .hero { min-height: 86vh; }
}
