:root {
  --bg: #0a0a0a;
  --panel: rgba(255,255,255,0.04);
  --panel-strong: rgba(255,255,255,0.06);
  --text: #f5f5f5;
  --muted: #b3b3b3;
  --soft: #8a8a8a;
  --accent: #7dd3fc;
  --accent-soft: rgba(125, 211, 252, 0.12);
  --border: rgba(255,255,255,0.10);
  --max: 1120px;
  --content: 840px;
  --hero: 1120px;
  --radius: 28px;
  --shadow: 0 20px 60px rgba(0,0,0,0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.content {
  width: min(calc(100% - 32px), var(--content));
  margin: 0 auto;
}

.hero-container {
  width: min(calc(100% - 32px), var(--hero));
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  line-height: 1.05;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(14px);
  background: rgba(10,10,10,0.8);
  border-bottom: 1px solid var(--border);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
}

.brand-name {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-tag {
  font-size: 0.94rem;
  color: var(--soft);
  margin-top: 2px;
}

.nav {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}

.nav a {
  font-size: 0.94rem;
  color: var(--muted);
  transition: color 0.2s ease;
}

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

section {
  padding: 52px 0;
}

.hero {
  padding: 80px 0 36px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 28px;
  align-items: start;
}

.hero-copy {
  min-width: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(125, 211, 252, 0.25);
  background: var(--accent-soft);
  color: #c7efff;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}

.small-label {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent);
  margin-bottom: 10px;
  font-weight: 700;
}

h1, h2, h3 {
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.75rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
  max-width: 10ch;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 14px;
}

h3 {
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  margin-top: 22px;
  margin-bottom: 10px;
}

p, li {
  color: var(--muted);
  font-size: 0.98rem;
}

.hero p.lead,
.lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 760px;
  margin: 22px 0 0;
}

.post-meta {
  color: var(--soft);
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  padding: 14px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  border: 1px solid transparent;
}

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

.button.primary {
  background: #ffffff;
  color: #111111;
  box-shadow: 0 10px 30px rgba(255,255,255,0.08);
}

.button.secondary {
  border-color: var(--border);
  background: transparent;
  color: var(--text);
}

.button.secondary:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.18);
}

.card,
.section-card {
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}

.section-card {
  margin: 24px 0;
}

.meta-card {
  align-self: start;
  display: grid;
  gap: 14px;
  min-width: 0;
}

.meta-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  align-items: start;
}

.meta-label {
  color: var(--text);
  font-weight: 700;
}

.meta-value {
  color: var(--muted);
}

.card h3,
.section-card h3 {
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.card p,
.card li,
.section-card p,
.section-card li {
  color: var(--muted);
  font-size: 0.96rem;
}

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

.section-note {
  color: var(--soft);
  font-size: 0.94rem;
}

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

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

.media-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.media-item {
  margin: 0;
}

.media-placeholder {
  min-height: 220px;
  border-radius: 20px;
  border: 1px dashed rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.02);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--soft);
  padding: 24px;
}

figure {
  margin: 1.5rem 0;
}

figure img {
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--panel);
}

figcaption {
  margin-top: 0.7rem;
  font-size: 0.92rem;
  color: var(--soft);
}

pre {
  background: #111827;
  color: #e5e7eb;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  overflow-x: auto;
  font-size: 0.92rem;
  border: 1px solid rgba(255,255,255,0.08);
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.chart-embed {
  margin: 1.5rem 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.chart-embed iframe {
  display: block;
  width: 100%;
  min-height: 600px;
  border: 0;
  background: white;
}

.footer {
  padding: 22px 0 40px;
  color: var(--soft);
  font-size: 0.92rem;
}

@media (max-width: 960px) {
  .hero-grid,
  .grid-3,
  .grid-2,
  .media-gallery {
    grid-template-columns: 1fr;
  }

  .section-head,
  .site-header-inner {
    flex-direction: column;
    align-items: start;
  }

  .nav {
    gap: 14px 18px;
  }

  .hero {
    padding-top: 56px;
  }

  .chart-embed iframe {
    min-height: 420px;
  }
}

@media (max-width: 720px) {
  .meta-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  h1 {
    max-width: none;
  }
}
