@import url('https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&family=Geist+Mono:wght@400;500&display=swap');

:root {
  --bg:        #F7F5F1;
  --surface:   #FFFFFF;
  --surface-2: #FBFAF7;
  --line:      #EAE6DE;
  --line-2:    #DCD7CC;
  --ink:       #151412;
  --ink-2:     #3A3732;
  --ink-3:     #6B655B;
  --ink-4:     #9B9488;

  --accent:       oklch(0.87 0.19 105);
  --accent-ink:   #1A1A0A;
  --accent-soft:  oklch(0.96 0.08 105);

  --danger:   #E5484D;
  --success:  #2B8A4A;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --shadow-1: 0 1px 0 rgba(20,19,17,0.04), 0 1px 2px rgba(20,19,17,0.06);
  --shadow-2: 0 1px 0 rgba(20,19,17,0.04), 0 8px 24px rgba(20,19,17,0.08);
  --shadow-3: 0 24px 60px rgba(20,19,17,0.18), 0 4px 12px rgba(20,19,17,0.08);

  --font: 'Geist', -apple-system, system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* Background flair: soft accent halo top-right */
body::before {
  content: '';
  position: fixed;
  inset: -10% -10% auto auto;
  width: 60vw;
  height: 60vw;
  max-width: 720px;
  max-height: 720px;
  background: radial-gradient(closest-side, var(--accent-soft), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Typography helpers (mirrors tokens.css) */
.t-display { font-weight: 600; letter-spacing: -0.04em; line-height: 0.95; }
.t-mono    { font-family: var(--mono); }
.t-caps    { text-transform: uppercase; letter-spacing: 0.08em; font-size: 11px; font-weight: 600; }

/* Buttons / chips */
.btn {
  appearance: none; border: 0; font-family: inherit; font-weight: 500;
  border-radius: 999px; padding: 8px 14px; font-size: 13px;
  cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  transition: background .12s, transform .06s; text-decoration: none;
}
.btn:active { transform: translateY(0.5px); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: rgba(0,0,0,0.05); }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 999px;
  background: rgba(0,0,0,0.05); font-size: 11px; color: var(--ink-2);
  font-family: var(--mono);
}

.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--success); }

@keyframes liveBlink { 0%, 60% { opacity: 1; } 80%, 100% { opacity: 0.3; } }
.live-dot { animation: liveBlink 1.4s infinite; }

/* Layout */
.topbar {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px;
  max-width: 1200px; margin: 0 auto;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-name { font-size: 18px; }
.logo {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 8px;
}
.topnav { display: flex; gap: 6px; }

.page {
  position: relative; z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 24px 64px;
}

.hero {
  padding: 32px 0 40px;
  max-width: 720px;
}
.hero-title {
  font-size: clamp(40px, 7vw, 72px);
  margin: 0 0 16px;
  color: var(--ink);
}
.hero-sub {
  font-size: clamp(16px, 1.6vw, 18px);
  color: var(--ink-3);
  margin: 0;
  max-width: 480px;
  line-height: 1.5;
}

/* Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 8px;
}

/* Tile */
.tile {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px;
  display: flex; flex-direction: column;
  gap: 14px;
  text-decoration: none;
  color: var(--ink);
  min-height: 220px;
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
  box-shadow: var(--shadow-1);
}
.tile.tile-live:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
  border-color: var(--line-2);
}
.tile.tile-live:active { transform: translateY(0); }

.tile-head {
  display: flex; align-items: center; justify-content: space-between;
}
.tile-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px;
  flex-shrink: 0;
}

.status-dot {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 500;
  font-family: var(--mono);
}
.status-live { background: rgba(43,138,74,0.10); color: var(--success); }
.status-soon { background: rgba(0,0,0,0.05); color: var(--ink-4); }

.tile-body { flex: 1; }
.tile-title { font-size: 22px; font-weight: 600; margin: 0 0 6px; letter-spacing: -0.02em; }
.tile-desc  { color: var(--ink-3); font-size: 14px; line-height: 1.5; margin: 0; }

.tile-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}
.tile-tag { color: var(--ink-4); }
.tile-cta {
  font-size: 13px; font-weight: 500; color: var(--ink);
  display: inline-flex; align-items: center; gap: 4px;
  transition: gap .15s ease;
}
.tile.tile-live:hover .tile-cta { gap: 8px; }
.tile-cta-muted { color: var(--ink-4); }

/* Coming-soon variant */
.tile-soon {
  cursor: not-allowed;
  background: var(--surface-2);
  border-style: dashed;
  border-color: var(--line-2);
}
.tile-soon .tile-title,
.tile-soon .tile-desc { opacity: 0.7; }

/* Footer */
.foot {
  position: relative; z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
  display: flex; gap: 12px; align-items: center;
  font-size: 12px; color: var(--ink-4);
  border-top: 1px solid var(--line);
}
.foot-dot { color: var(--line-2); }

@media (max-width: 520px) {
  .topbar { padding: 14px 16px; }
  .page   { padding: 16px 16px 48px; }
  .hero   { padding: 16px 0 24px; }
  .grid   { gap: 12px; }
  .tile   { padding: 16px; min-height: 200px; }
}

@media (prefers-reduced-motion: reduce) {
  .tile, .tile-cta { transition: none; }
  .live-dot { animation: none; }
}
