/* ============ Surf Design System — showcase chrome ============ */

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg-chat);
  color: var(--fg-base);
  -webkit-font-smoothing: antialiased;
  transition: background .25s ease, color .25s ease;
}

::selection { background: var(--fg-red-30); }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

/* The pill nav lives in nav.css — the gallery needs it without the rest of
   this file. Every page loads both. */

/* ---- hero ---- */
.hero { padding: 140px 0 24px; }
.hero h1 { font-size: 56px; font-weight: 900; letter-spacing: -.02em; }
.hero .sub { margin-top: 12px; font-size: 17px; color: var(--fg-subtle); max-width: calc(66.6667% - 6.6667px); line-height: 1.5; }
.hero .sub code {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 15px; background: var(--bg-subtle); padding: 2px 6px; border-radius: 6px;
}

/* ---- sections ---- */
section { padding: 40px 0 8px; }
section > .wrap > h2 {
  font-size: 26px; font-weight: 900; letter-spacing: -.01em;
  margin-bottom: 20px;
}
.grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin-bottom: 24px;
}
@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .hero .sub { max-width: 100%; }
}
@media (max-width: 640px) { .grid { grid-template-columns: 1fr; } .hero h1 { font-size: 40px; } }

/* ---- component cards ---- */
.card {
  background: var(--bg-base-opaque);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow .2s ease, transform .2s ease;
}
.card:hover { box-shadow: 0 12px 32px #00000014; transform: translateY(-1px); }
.card .preview {
  flex: 1;
  min-height: 200px;
  display: flex; align-items: center; justify-content: center;
  padding: 32px 24px;
  position: relative;
  overflow: hidden;
}
.card .label {
  padding: 14px 18px;
  font-size: 14px; font-weight: 700;
  border-top: 1px solid var(--border-base);
  display: flex; align-items: center; justify-content: space-between;
}
.card .label .hint { font-weight: 400; font-size: 12px; color: var(--fg-muted); }
.card.wide { grid-column: span 2; }
@media (max-width: 640px) { .card.wide { grid-column: span 1; } }

/* ---- hero mark & footer ---- */
.hero-mark { margin-bottom: 20px; color: var(--fg-base); }
.footer { border-top: 1px solid var(--border-base); margin-top: 64px; padding: 28px 0 40px; }
.footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-left { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; }
.footer-right { font-size: 12px; color: var(--fg-muted); }

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