/* =================================================================
   2027.site — Global Stylesheet
   A fast, dependency-free, responsive dark theme.
   ================================================================= */

:root {
  /* Palette */
  --bg: #070912;
  --bg-2: #0c1020;
  --surface: #11162a;
  --surface-2: #161c34;
  --border: #232a47;
  --border-soft: #1a2138;
  --text: #e9ecf6;
  --text-dim: #aab2cf;
  --text-faint: #7a83a3;

  /* Brand accents */
  --cyan: #2ee6d6;
  --blue: #4d7cff;
  --violet: #9b5cff;
  --pink: #ff5ca8;
  --amber: #ffb84d;
  --green: #38e08a;

  --accent: var(--cyan);
  --gradient: linear-gradient(120deg, var(--cyan), var(--blue) 45%, var(--violet));
  --gradient-soft: linear-gradient(120deg, rgba(46,230,214,.16), rgba(155,92,255,.16));

  /* Layout */
  --maxw: 1180px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px -20px rgba(0,0,0,.7);
  --shadow-glow: 0 0 40px -12px rgba(77,124,255,.5);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Ambient background glow */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 50% at 12% -5%, rgba(77,124,255,.18), transparent 60%),
    radial-gradient(50% 45% at 92% 0%, rgba(155,92,255,.16), transparent 55%),
    radial-gradient(45% 40% at 50% 110%, rgba(46,230,214,.10), transparent 60%);
  pointer-events: none;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 { line-height: 1.15; font-weight: 800; letter-spacing: -.02em; }

/* ---------- Utilities ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--cyan);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--gradient); border-radius: 2px; }
.muted { color: var(--text-dim); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 999;
  background: var(--cyan); color: #06121a; padding: 10px 16px; border-radius: 0 0 8px 0; font-weight: 700;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(7,9,18,.72);
  border-bottom: 1px solid var(--border-soft);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 66px; gap: 18px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.15rem; letter-spacing: -.03em; }
.brand .logo-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--gradient);
  display: grid; place-items: center;
  font-size: .72rem; font-weight: 900; color: #04101a; letter-spacing: -.04em;
  box-shadow: var(--shadow-glow);
}
.brand .dot { color: var(--cyan); }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 8px 14px; border-radius: 9px; font-size: .92rem; font-weight: 600; color: var(--text-dim);
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-links a.active { color: var(--text); background: var(--gradient-soft); }

.nav-cta {
  padding: 9px 18px !important; border-radius: 10px !important;
  color: #06121a !important; background: var(--gradient); font-weight: 700 !important;
}
.nav-cta:hover { filter: brightness(1.08); }

.nav-toggle {
  display: none; background: var(--surface); border: 1px solid var(--border);
  width: 42px; height: 42px; border-radius: 10px; color: var(--text);
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; top: 66px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--bg-2); border-bottom: 1px solid var(--border);
    padding: 14px 22px 22px; box-shadow: var(--shadow);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .22s var(--ease), transform .22s var(--ease);
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 12px 14px; font-size: 1rem; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 86px 0 64px; overflow: hidden; }
.hero-grid {
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(77,124,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77,124,255,.06) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(80% 60% at 50% 30%, #000 30%, transparent 75%);
}
.hero-inner { max-width: 820px; }
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  line-height: 1.02; margin: 20px 0 18px;
}
.hero p.lead { font-size: clamp(1.05rem, 2.3vw, 1.3rem); color: var(--text-dim); max-width: 640px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 24px; border-radius: 12px; font-weight: 700; font-size: .98rem;
  border: 1px solid transparent; transition: transform .15s var(--ease), filter .2s var(--ease), background .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--gradient); color: #06121a; box-shadow: var(--shadow-glow); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-2); }

/* ---------- Countdown ---------- */
.countdown {
  display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px;
}
.countdown .unit {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 14px 20px; min-width: 92px; text-align: center;
  position: relative; overflow: hidden;
}
.countdown .unit::after {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: var(--gradient);
}
.countdown .num { font-family: var(--mono); font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 700; color: var(--text); }
.countdown .lbl { font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--text-faint); margin-top: 4px; }
.countdown-note { font-size: .9rem; color: var(--text-faint); margin-top: 14px; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 14px 0 12px; }
.section-head p { color: var(--text-dim); font-size: 1.05rem; }
.section-alt { background: linear-gradient(180deg, transparent, var(--bg-2) 12%, var(--bg-2) 88%, transparent); }

/* ---------- Category cards ---------- */
.card-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }

.cat-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px; overflow: hidden;
  transition: transform .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
.cat-card::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .25s var(--ease);
  background: var(--gradient-soft);
}
.cat-card:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--accent) 60%, var(--border)); }
.cat-card:hover::before { opacity: 1; }
.cat-card > * { position: relative; z-index: 1; }
.cat-icon {
  width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center;
  background: var(--gradient-soft); border: 1px solid var(--border); margin-bottom: 18px;
}
.cat-icon svg { width: 26px; height: 26px; stroke: var(--accent); }
.cat-card h3 { font-size: 1.3rem; margin-bottom: 9px; }
.cat-card p { color: var(--text-dim); font-size: .96rem; flex: 1; }
.cat-card .more { margin-top: 18px; font-weight: 700; font-size: .9rem; color: var(--accent); display: inline-flex; gap: 6px; align-items: center; }
.cat-card:hover .more svg { transform: translateX(4px); }
.cat-card .more svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }

/* accent variants */
.accent-ai     { --accent: var(--violet); }
.accent-gaming { --accent: var(--green); }
.accent-tech   { --accent: var(--blue); }
.accent-sports { --accent: var(--amber); }
.accent-events { --accent: var(--pink); }
.accent-space  { --accent: var(--cyan); }

/* ---------- Highlights / article cards ---------- */
.highlight-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.hcard {
  display: flex; flex-direction: column; height: 100%;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: transform .25s var(--ease), border-color .25s var(--ease);
}
.hcard:hover { transform: translateY(-4px); border-color: var(--border); }
.hcard .thumb {
  aspect-ratio: 16/9; position: relative; display: grid; place-items: center;
  background: var(--bg-2); overflow: hidden;
}
.hcard .thumb svg { width: 64px; height: 64px; opacity: .9; }
.hcard .thumb .thumb-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hcard .thumb::after { content:""; position:absolute; inset:0; background: var(--gradient-soft); mix-blend-mode: screen; opacity:.6; }
.hcard .thumb:has(.thumb-img)::after { opacity: .22; }
/* Article hero cover image */
.article-cover { width: 100%; max-width: 760px; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--border); margin-top: 24px; }
.hcard .body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.tag {
  align-self: flex-start; font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px; background: var(--gradient-soft); color: var(--text);
  border: 1px solid var(--border); margin-bottom: 13px;
}
.hcard h3 { font-size: 1.18rem; margin-bottom: 9px; }
.hcard p { color: var(--text-dim); font-size: .94rem; flex: 1; }
.hcard .meta { margin-top: 16px; font-size: .82rem; color: var(--text-faint); display: flex; gap: 8px; align-items: center; }
.hcard .meta .pill-date { color: var(--accent, var(--cyan)); font-weight: 700; }

/* ---------- Article / content pages ---------- */
.page-hero { padding: 70px 0 30px; position: relative; }
.page-hero h1 { font-size: clamp(2.2rem, 6vw, 4rem); margin: 16px 0; }
.page-hero p { color: var(--text-dim); font-size: 1.15rem; max-width: 680px; }
.breadcrumb { font-size: .85rem; color: var(--text-faint); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb span { color: var(--border); }

.prose { max-width: 760px; }
.prose h2 { font-size: 1.7rem; margin: 48px 0 16px; scroll-margin-top: 90px; }
.prose h3 { font-size: 1.28rem; margin: 32px 0 12px; }
.prose p { color: var(--text-dim); margin-bottom: 18px; }
.prose ul.bullets { margin: 0 0 22px; display: grid; gap: 10px; }
.prose ul.bullets li { position: relative; padding-left: 26px; color: var(--text-dim); }
.prose ul.bullets li::before {
  content: ""; position: absolute; left: 4px; top: 10px; width: 9px; height: 9px;
  border-radius: 3px; background: var(--gradient);
}
.prose a.inline { color: var(--cyan); border-bottom: 1px solid color-mix(in srgb, var(--cyan) 40%, transparent); }
.prose a.inline:hover { border-color: var(--cyan); }
.prose strong { color: var(--text); }

.callout {
  border: 1px solid var(--border); border-left: 3px solid var(--accent, var(--cyan));
  background: var(--surface); border-radius: 12px; padding: 18px 22px; margin: 26px 0;
  color: var(--text-dim);
}
.callout strong { color: var(--text); }

/* Fact / stat strip */
.stat-strip { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin: 8px 0 0; }
.stat {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 22px; text-align: center;
}
.stat .v { font-family: var(--mono); font-size: 2rem; font-weight: 700; }
.stat .v.gradient-text { font-weight: 800; }
.stat .k { font-size: .82rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: .1em; margin-top: 6px; }

/* Timeline */
.timeline { position: relative; margin: 10px 0; padding-left: 26px; }
.timeline::before { content:""; position:absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.timeline li { position: relative; padding: 0 0 26px 24px; }
.timeline li::before {
  content:""; position:absolute; left: -26px; top: 4px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--accent, var(--cyan)); box-shadow: 0 0 0 4px var(--bg);
}
.timeline .when { font-family: var(--mono); font-size: .82rem; color: var(--accent, var(--cyan)); font-weight: 700; }
.timeline h4 { font-size: 1.08rem; margin: 4px 0 5px; }
.timeline p { color: var(--text-dim); font-size: .93rem; margin: 0; }

/* On-page TOC */
.toc {
  position: sticky; top: 86px; align-self: start;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 22px;
}
.toc h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--text-faint); margin-bottom: 12px; }
.toc a { display: block; padding: 6px 0; color: var(--text-dim); font-size: .92rem; border-left: 2px solid transparent; padding-left: 12px; margin-left: -12px; }
.toc a:hover { color: var(--text); border-color: var(--cyan); }

.content-layout { display: grid; grid-template-columns: 230px 1fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .content-layout { grid-template-columns: 1fr; } .toc { display: none; } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 14px; max-width: 820px; }
.faq details {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 4px 20px;
  transition: border-color .2s var(--ease);
}
.faq details[open] { border-color: color-mix(in srgb, var(--cyan) 45%, var(--border)); }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 0; font-weight: 700; font-size: 1.02rem;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { transition: transform .2s var(--ease); flex-shrink: 0; }
.faq details[open] summary .chev { transform: rotate(180deg); }
.faq details p { color: var(--text-dim); padding: 0 0 18px; margin: 0; }

/* ---------- Newsletter / CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: 24px;
  padding: 52px clamp(24px, 5vw, 60px); text-align: center;
}
.cta-band::before {
  content:""; position:absolute; inset:0; z-index:0; opacity:.5;
  background: radial-gradient(60% 120% at 50% 0%, rgba(77,124,255,.25), transparent 60%);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); margin-bottom: 12px; }
.cta-band p { color: var(--text-dim); max-width: 540px; margin: 0 auto 26px; }
.signup { display: flex; gap: 10px; max-width: 460px; margin: 0 auto; flex-wrap: wrap; }
.signup input {
  flex: 1; min-width: 200px; padding: 13px 16px; border-radius: 11px;
  background: var(--bg); border: 1px solid var(--border); color: var(--text); font-size: .95rem; font-family: inherit;
}
.signup input:focus { border-color: var(--cyan); outline: none; }
.signup .msg { width: 100%; font-size: .88rem; color: var(--green); min-height: 1.2em; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border-soft); padding: 56px 0 34px; margin-top: 40px; background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 34px; }
.footer-grid h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text-faint); margin-bottom: 14px; }
.footer-grid a { display: block; color: var(--text-dim); padding: 5px 0; font-size: .93rem; }
.footer-grid a:hover { color: var(--text); }
.footer-about p { color: var(--text-dim); font-size: .93rem; margin-top: 12px; max-width: 280px; }
.footer-bottom {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--border-soft);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--text-faint); font-size: .85rem;
}
.footer-bottom .socials { display: flex; gap: 10px; }
.footer-bottom .socials a {
  width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-dim);
}
.footer-bottom .socials a:hover { color: var(--text); border-color: var(--cyan); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Misc ---------- */
.divider { height: 1px; background: var(--border-soft); border: 0; margin: 0; }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.section-cta { margin-top: 40px; }
