:root {
  color-scheme: dark;
  --page: #0d0c0b;
  --surface: #171514;
  --surface-2: #211e1b;
  --ink: #f4efe7;
  --muted: #a59b8d;
  --line: #39332d;
  --accent: #c8a46a;
  --accent-soft: #f0d39a;
  --info: #6f8fa6;
  --shadow: 0 22px 64px rgba(0, 0, 0, 0.34);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--page); }
main { overflow: clip; }
body {
  margin: 0;
  color: var(--ink);
  background: radial-gradient(circle at 50% -10%, rgba(200, 164, 106, 0.16), transparent 360px), var(--page);
}
a { color: inherit; text-decoration: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 28px;
  border-bottom: 1px solid rgba(200, 164, 106, 0.14);
  background: rgba(13, 12, 11, 0.8);
  backdrop-filter: blur(18px);
}

.wordmark {
  font-size: 22px;
  font-weight: 860;
  line-height: 1;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.site-nav a:hover { color: var(--ink); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  color: #16110d;
  background: var(--accent);
}

.hero {
  position: relative;
  min-height: calc(100vh - 77px);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 12, 11, 0.98) 0 34%, rgba(13, 12, 11, 0.92) 48%, rgba(13, 12, 11, 0.62) 66%, rgba(13, 12, 11, 0.9) 100%),
    radial-gradient(circle at 28% 18%, rgba(200, 164, 106, 0.18), transparent 20%),
    radial-gradient(circle at 78% 24%, rgba(111, 143, 166, 0.14), transparent 18%),
    url("assets/hazehack-app-preview.png?v=20260425e") right 34px bottom -28px / 58% auto no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 150px;
  background: linear-gradient(180deg, rgba(13, 12, 11, 0), rgba(13, 12, 11, 0.96));
}

.hero-inner,
.band-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero-inner {
  position: relative;
  display: grid;
  align-content: center;
  min-height: calc(100vh - 77px);
  padding: 132px min(44vw, 560px) 110px 0;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-soft);
  font-size: 13px;
  font-weight: 780;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.showcase-band h2,
.readout-band h2,
.community-card h2,
.cadence-band h2,
.closing-band h2 {
  margin: 0;
  line-height: 0.96;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 700px;
  font-size: clamp(44px, 6.4vw, 80px);
  text-wrap: balance;
}

.hero-copy {
  max-width: 620px;
  margin: 22px 0 0;
  color: rgba(244, 239, 231, 0.84);
  font-size: 17px;
  line-height: 1.55;
}

.hero-actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 780;
  white-space: nowrap;
}

.button.primary {
  color: #16110d;
  background: var(--accent);
}

.button.secondary {
  color: var(--accent-soft);
  background: rgba(200, 164, 106, 0.12);
  border-color: rgba(200, 164, 106, 0.18);
}

.button.ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.text-link {
  display: inline-flex;
  align-items: center;
  color: var(--accent-soft);
  font-weight: 760;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  max-width: 720px;
}

.hero-points span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.11);
  font-size: 13px;
  font-weight: 740;
}

.band { padding: 72px 0; }
.metrics-band { padding-top: 56px; }

.metrics-grid,
.community-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.metrics-grid article,
.community-card {
  padding: 22px;
  border: 1px solid rgba(200, 164, 106, 0.14);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.metrics-grid span {
  color: var(--accent-soft);
  font-size: 13px;
  font-weight: 780;
}

.metrics-grid h2,
.community-card h2 {
  margin: 10px 0 0;
  font-size: 26px;
}

.metrics-grid p,
.community-card p,
.showcase-band p,
.readout-band p,
.cadence-band li,
.site-footer,
.closing-band p {
  color: var(--muted);
  line-height: 1.6;
}

.showcase-grid,
.readout-grid,
.cadence-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.82fr);
  gap: 28px;
  align-items: center;
}

.showcase-band h2,
.readout-band h2,
.cadence-band h2,
.closing-band h2 {
  font-size: clamp(34px, 5vw, 56px);
}

.feature-list {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.image-column img {
  display: block;
  width: 100%;
  border: 1px solid rgba(200, 164, 106, 0.14);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.readout-block {
  margin: 0;
  padding: 18px;
  border: 1px solid rgba(200, 164, 106, 0.14);
  border-radius: 8px;
  background: #100f0e;
  color: var(--ink);
  font-family: Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
}

.community-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cadence-grid ol {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 22px;
}

.closing-inner {
  padding: 28px 0 0;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 44px;
  border-top: 1px solid rgba(200, 164, 106, 0.14);
  font-size: 13px;
}

.site-footer div {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

@media (max-width: 960px) {
  .showcase-grid,
  .readout-grid,
  .cadence-grid,
  .metrics-grid,
  .community-grid {
    grid-template-columns: 1fr;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 18px;
  }

  .site-nav {
    flex-wrap: wrap;
    gap: 12px;
  }

  .hero-inner {
    min-height: auto;
    padding: 108px 0 78px;
  }

  .hero h1 {
    max-width: 760px;
  }

  .hero-media {
    background:
      linear-gradient(180deg, rgba(13, 12, 11, 0.94) 0 16%, rgba(13, 12, 11, 0.9) 40%, rgba(13, 12, 11, 0.98) 100%),
      radial-gradient(circle at 28% 12%, rgba(200, 164, 106, 0.16), transparent 20%),
      url("assets/hazehack-app-preview.png?v=20260425e") center bottom -52px / 112% auto no-repeat;
  }
}

@media (max-width: 640px) {
  .hero { min-height: auto; }
  .hero-media {
    background:
      linear-gradient(180deg, rgba(13, 12, 11, 0.96) 0 24%, rgba(13, 12, 11, 0.92) 52%, rgba(13, 12, 11, 0.99) 100%),
      radial-gradient(circle at 42% 8%, rgba(200, 164, 106, 0.14), transparent 18%),
      url("assets/hazehack-app-preview.png?v=20260425e") center bottom -12px / 146% auto no-repeat;
  }
  .hero-inner { min-height: auto; padding: 88px 0 52px; }
  .hero h1 { font-size: clamp(36px, 10vw, 48px); }
  .hero-copy { max-width: 34ch; font-size: 15px; }
  .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
  .hero-actions .button.primary { grid-column: 1 / -1; }
  .hero-actions .button.ghost { display: none; }
  .hero-points {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    max-width: none;
  }
  .hero-points span { justify-content: center; text-align: center; }
  .hero-actions,
  .inline-actions,
  .site-footer,
  .site-footer div {
    flex-direction: column;
    align-items: flex-start;
  }
  .button,
  .nav-cta { width: 100%; }
}
