/* ── Reset & base ────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:    #1A1A2E;
  --dark:    #0D1117;
  --red:     #E63946;
  --blue:    #2196F3;
  --gold:    #F5A623;
  --light:   #F8F9FA;
  --muted:   #6B7280;
  --border:  #E5E7EB;
  --white:   #FFFFFF;
  --font:    'Helvetica Neue', Helvetica, Arial, sans-serif;
  --radius:  12px;
  --shadow:  0 4px 24px rgba(0,0,0,0.10);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--navy);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Header ──────────────────────────────────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--navy);
}

.logo { width: 40px; height: auto; border-radius: 6px; }
.logo-sm { width: 28px; height: auto; border-radius: 4px; }

nav { display: flex; align-items: center; gap: 28px; }
nav a { font-size: 15px; color: var(--muted); font-weight: 500; transition: color .2s; }
nav a:hover { color: var(--navy); }

.btn-nav {
  background: var(--navy);
  color: var(--white) !important;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
}
.btn-nav:hover { background: #2A2A45; }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  padding: 96px 0 80px;
  background: linear-gradient(160deg, #F0F4FF 0%, #FFFFFF 60%);
}

.hero h1 {
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--navy);
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 18px;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.btn-primary {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 16px;
  transition: background .2s, transform .1s;
}
.btn-primary:hover { background: #2A2A45; transform: translateY(-1px); }

.btn-secondary {
  display: inline-block;
  border: 2px solid var(--navy);
  color: var(--navy);
  padding: 12px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 16px;
  transition: background .2s;
}
.btn-secondary:hover { background: var(--light); }

.social-links {
  display: flex;
  gap: 20px;
}
.social-links a {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.social-links a:hover { color: var(--navy); border-color: var(--navy); }

/* ── Charts grid ─────────────────────────────────────────────────────────── */
.charts-section { padding: 80px 0 100px; }

.section-title {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 40px;
  letter-spacing: -0.02em;
}

.chart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.chart-card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--white);
  transition: transform .2s, box-shadow .2s;
}
.chart-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.chart-card > a { display: block; }

.thumb-wrap {
  position: relative;
  aspect-ratio: 9 / 7;
  overflow: hidden;
  background: var(--light);
}
.thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.chart-card:hover .thumb-wrap img { transform: scale(1.03); }

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 5px;
}

.badge-live {
  background: #16A34A;
  color: white;
}

.badge-soon {
  background: rgba(30,30,50,0.55);
  color: white;
  backdrop-filter: blur(4px);
}

/* Side-by-side video embeds */
.embed-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 0 0 16px;
  max-width: 760px;
}
.embed-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.embed-col h4 {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .07em;
}
.embed-col iframe {
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 12px;
  border: 1px solid var(--border);
  display: block;
}
@media (max-width: 640px) {
  .embed-row { grid-template-columns: 1fr; max-width: 360px; }
}

.badge-type {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(26,26,46,0.75);
  backdrop-filter: blur(4px);
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
}

.card-body { padding: 20px 22px 22px; }
.card-body h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; line-height: 1.4; }
.card-body p { font-size: 14px; color: var(--muted); line-height: 1.6; margin-bottom: 12px; }
.card-meta { font-size: 12px; color: #9CA3AF; font-weight: 500; }

/* ── Email signup ────────────────────────────────────────────────────────── */
.signup-section {
  background: var(--navy);
  padding: 80px 0;
}

.signup-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}

.signup-text { max-width: 460px; }
.signup-text h2 { font-size: 32px; font-weight: 800; color: white; margin-bottom: 12px; letter-spacing: -0.02em; }
.signup-text p { color: #9CA3AF; font-size: 16px; line-height: 1.7; }

.signup-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.signup-form input {
  padding: 14px 18px;
  border-radius: 10px;
  border: none;
  font-size: 15px;
  width: 280px;
  outline: none;
  font-family: var(--font);
}

.signup-form button {
  padding: 14px 24px;
  background: var(--red);
  color: white;
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-family: var(--font);
  transition: background .2s;
}
.signup-form button:hover { background: #C62828; }

.signup-note { color: #6B7280; font-size: 13px; margin-top: 12px; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
footer {
  background: var(--dark);
  padding: 40px 0;
  border-top: 1px solid #1E2229;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand { display: flex; align-items: center; gap: 10px; color: white; font-weight: 600; font-size: 15px; }

.footer-links { display: flex; gap: 24px; }
.footer-links a { color: #6B7280; font-size: 14px; transition: color .2s; }
.footer-links a:hover { color: white; }

.footer-copy { color: #4B5563; font-size: 13px; }

/* ── Chart detail pages ───────────────────────────────────────────────────── */
.chart-hero { padding: 60px 0 40px; background: var(--light); }
.chart-hero h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 12px; }
.chart-hero .meta { color: var(--muted); font-size: 15px; margin-bottom: 24px; }
.chart-hero .description { font-size: 17px; line-height: 1.8; max-width: 680px; color: #374151; }

.chart-media { padding: 48px 0; }
.chart-media img, .chart-media video { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; max-width: 480px; }
.chart-media-portrait { max-width: 360px; }

.chart-details { padding: 0 0 80px; }
.chart-details h2 { font-size: 20px; font-weight: 700; margin: 40px 0 12px; }
.chart-details p { color: #374151; font-size: 15px; line-height: 1.8; margin-bottom: 16px; }
.chart-details .source { font-size: 13px; color: var(--muted); padding: 16px; background: var(--light); border-radius: 8px; border-left: 3px solid var(--border); }

.share-row { display: flex; gap: 12px; margin: 32px 0; flex-wrap: wrap; }
.share-btn { padding: 10px 20px; border-radius: 8px; font-size: 14px; font-weight: 600; border: 1px solid var(--border); color: var(--navy); transition: background .2s; cursor: pointer; }
.share-btn:hover { background: var(--light); }

.back-link { display: inline-block; color: var(--muted); font-size: 14px; margin-bottom: 28px; }
.back-link:hover { color: var(--navy); }

/* ── About page ──────────────────────────────────────────────────────────── */
.about-section { padding: 80px 0; max-width: 720px; }
.about-section h1 { font-size: 44px; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 24px; }
.about-section p { font-size: 17px; line-height: 1.9; color: #374151; margin-bottom: 24px; }
.about-section h2 { font-size: 24px; font-weight: 700; margin: 48px 0 16px; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  nav { gap: 16px; }
  nav a:not(.btn-nav) { display: none; }
  .hero { padding: 64px 0 56px; }
  .hero h1 { font-size: 38px; }
  .signup-inner { flex-direction: column; }
  .signup-form input { width: 100%; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .chart-grid { grid-template-columns: 1fr; }
}
