:root {
  --bg: #f7f7f5;
  --card: rgba(255,255,255,.82);
  --fg: #0c0c0c;
  --muted: #5b5b5b;
  --line: rgba(12,12,12,.1);
  --line-strong: rgba(12,12,12,.16);
  --accent: #0c0c0c;
  --soft: rgba(12,12,12,.04);
  --radius: 28px;
  --radius-sm: 20px;
  --shadow: 0 24px 60px rgba(0,0,0,.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(0,0,0,.035), transparent 28%),
    linear-gradient(180deg, #fbfbfa 0%, #f4f4f1 100%);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select { font: inherit; }

.site-shell {
  width: min(calc(100% - 48px), 1600px);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 18px 0;
  backdrop-filter: blur(16px);
  background: linear-gradient(to bottom, rgba(247,247,245,.92), rgba(247,247,245,.64));
}

.topbar-inner {
  width: min(calc(100% - 64px), 1500px);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 700;
  letter-spacing: -.04em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: block;
  flex: 0 0 auto;
  color: #0c0c0c;
}

.brand span { font-size: 1.15rem; }

.nav {
  display: flex;
  gap: 22px;
  color: rgba(12,12,12,.72);
  font-size: .96rem;
}

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

.nav-cta {
  display: flex;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  transition: .18s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-dark {
  background: #0c0c0c;
  color: white;
  border-color: #0c0c0c;
}

.btn-light { background: rgba(255,255,255,.78); }
.btn-ghost { background: transparent; }

.hero {
  min-height: calc(100vh - 78px);
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 44px;
  align-items: center;
  padding: 48px 0 96px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 12px;
  color: rgba(12,12,12,.55);
  margin: 0 0 14px;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  font-size: clamp(3.8rem, 8.4vw, 7.4rem);
  line-height: .92;
  letter-spacing: -.08em;
  max-width: 18ch;
  margin-bottom: 18px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: .94;
  letter-spacing: -.06em;
  margin-bottom: 16px;
}

h3 {
  font-size: 1.4rem;
  letter-spacing: -.04em;
  margin-bottom: 12px;
}

p, li, label, input, select {
  color: var(--muted);
  line-height: 1.7;
}

.hero-copy p.lead {
  max-width: 80ch;
  font-size: 1.08rem;
}

.inline-pills,
.tag-row,
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.inline-pills span,
.tag,
.hero-meta span,
.pill {
  border: 1px solid var(--line);
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.65);
  font-size: 13px;
  color: rgba(12,12,12,.74);
}

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

.glass,
.stack,
.dataset-card,
.info-card,
.section-panel,
.code-card,
.console,
.cta-panel,
.mini-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.stack { padding: 26px; }

.stack-grid {
  display: grid;
  grid-template-columns: 1fr 56px 1fr 56px 1fr;
  gap: 10px;
  align-items: stretch;
}

.stack-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,.72);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 190px;
}

.stack-card strong {
  font-size: 1.4rem;
  letter-spacing: -.05em;
}

.arrow-col {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.arrow-col span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #0c0c0c;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 12px;
  margin-top: 18px;
}

.metric-grid div {
  padding: 16px;
  border-radius: 18px;
  background: var(--soft);
  border: 1px solid var(--line);
}

.metric-grid strong {
  display: block;
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.section {
  padding: 56px 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 20px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 20px;
}

.info-card,
.section-panel,
.mini-card,
.code-card,
.console,
.dataset-card,
.cta-panel {
  padding: 24px;
}

.info-card ul {
  padding-left: 18px;
  margin: 0;
}

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

.dataset-card h3 { margin-bottom: 8px; }

.dataset-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.price {
  font-weight: 700;
  letter-spacing: -.03em;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 10px;
  margin: 18px 0;
}

.stats-grid div {
  border: 1px solid var(--line);
  background: var(--soft);
  border-radius: 16px;
  padding: 14px;
}

.stats-grid strong {
  display: block;
  font-size: 1.08rem;
  color: var(--fg);
}

.dataset-meta {
  font-size: .94rem;
  margin-bottom: 16px;
}

.search-bar {
  display: flex;
  gap: 12px;
}

.search-bar input {
  flex: 1;
  min-height: 50px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.8);
  padding: 0 18px;
  color: var(--fg);
}

.pipeline {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 16px;
}

.mini-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.code-card pre,
.console pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: .92rem;
  line-height: 1.6;
  color: #111;
}

.generator-layout {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 20px;
}

.field-group {
  display: grid;
  gap: 14px;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 12px;
}

select,
input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.85);
  padding: 0 14px;
  color: var(--fg);
}

.repo-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 20px;
}

.footer {
  padding: 34px 0 60px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: rgba(12,12,12,.6);
  font-size: .94rem;
}

.empty-state {
  padding: 30px;
  border-radius: 20px;
  border: 1px dashed var(--line-strong);
  text-align: center;
  color: var(--muted);
}

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.notice { font-size: .95rem; }

@media (max-width: 1080px) {
  .hero,
  .generator-layout,
  .repo-grid,
  .grid-3,
  .dataset-grid,
  .grid-2,
  .pipeline {
    grid-template-columns: 1fr 1fr;
  }

  .stack-grid {
    grid-template-columns: 1fr;
  }

  .arrow-col {
    min-height: 26px;
  }
}

@media (max-width: 760px) {
  .site-shell {
    width: 100%;
    padding: 0 16px;
  }

  .topbar,
  .section-heading,
  .footer,
  .cta-panel {
    display: block;
  }

  .nav,
  .nav-cta {
    margin-top: 12px;
    flex-wrap: wrap;
  }

  .hero,
  .generator-layout,
  .repo-grid,
  .grid-3,
  .dataset-grid,
  .grid-2,
  .pipeline {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: none;
  }

  .field-row,
  .metric-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }
}
