/* ========================
   GEMv3 Landing Page CSS
   ======================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Roboto+Mono:wght@400;500&display=swap');

/* ── Tokens ── */
:root {
  --navy: #1d3a5f;
  --dark-blue: #1d558b;
  --blue: #0082d9;
  --pale-blue: #e8f3fc;
  --bg: #f1f5f9;
  --white: #ffffff;
  --border: #dde6ef;
  --text: #1a2633;
  --muted: #586878;

  --radius: 8px;
  --max-w: 1080px;
  --t: 0.18s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover { text-decoration: underline; }

/* ── Layout ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 56px 0; }

.bg-off {
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.bg-dark {
  background: var(--navy);
  color: #fff;
}

/* ── Type ── */
h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); }
h3 { font-size: 1.05rem; }

h2 { color: var(--navy); }

.section-copy {
  color: var(--muted);
  margin-top: 10px;
  max-width: 700px;
  font-size: 0.9rem;
}

.label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--t), border-color var(--t), color var(--t);
  text-decoration: none;
}

.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--blue);
  color: #fff;
}

.btn-primary:hover {
  background: #0070ba;
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue);
}

/* ── Hero ── */
#hero {
  background: var(--white);
  border-top: 3px solid var(--blue);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr);
  gap: 40px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 20px;
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--blue);
  border-radius: 50%;
}

.hero-content {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}

.hero-content h1 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  color: var(--navy);
  margin-bottom: 24px;
}

.hero-content h1 span { color: var(--blue); }

.hero-content p {
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 32px;
  max-width: 42ch;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-actions .btn {
  min-width: 184px;
  justify-content: center;
  padding: 16px 30px;
  border-radius: 14px;
  font-size: 0.95rem;
  box-shadow: 0 10px 24px rgba(29, 58, 95, 0.08);
  transition: background var(--t), border-color var(--t), color var(--t), box-shadow var(--t), transform var(--t);
}

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

.hero-actions .btn-primary {
  box-shadow:
    0 0 0 3px rgba(0, 130, 217, 0.18),
    0 12px 28px rgba(0, 130, 217, 0.18);
}

.hero-actions .btn-outline {
  background: rgba(255, 255, 255, 0.98);
  border-color: #d4e1ee;
  box-shadow:
    0 0 0 2px rgba(0, 130, 217, 0.08),
    0 10px 24px rgba(29, 58, 95, 0.06);
}

.hero-visual {
  width: 100%;
}

.hero-logo {
  height: 0.92em;
  width: auto;
  display: inline-block;
  vertical-align: middle;
  margin-bottom: 6px;
}

.hero-tabs {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
  padding: 4px 6px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  align-self: flex-start;
}

.hero-tab {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 4px;
  cursor: pointer;
  transition: background var(--t), color var(--t);
}

.hero-tab.active {
  background: var(--pale-blue);
  color: var(--dark-blue);
}

.hero-video-panel {
  position: relative;
  width: 100%;
  max-width: 430px;
  margin-left: auto;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
}

.hero-video-panel video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
}

.hero-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 24px;
}

.hero-placeholder svg { opacity: 0.35; }

.hero-placeholder code {
  color: var(--blue);
  font-family: 'Roboto Mono', monospace;
  font-size: 0.78rem;
}

/* ── Stats ── */
#stats {
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 88px;
  padding: 20px 16px;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(29, 58, 95, 0.03);
}

.stat-number {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  color: var(--dark-blue);
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--muted);
}

/* ── Dataset ── */
.var-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 32px;
}

.var-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  box-shadow: 0 2px 8px rgba(29, 58, 95, 0.03);
  transition: transform var(--t), box-shadow var(--t);
}

.var-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(29, 58, 95, 0.06);
}

.var-icon {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: var(--pale-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.var-card h3 {
  font-size: 0.9rem;
  margin-bottom: 3px;
}

.var-card p {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
}

.dataset-divider {
  width: 100%;
  height: 1px;
  margin: 20px 0 16px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--border) 18%,
    var(--border) 82%,
    transparent 100%
  );
}

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

.meta-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  box-shadow: 0 2px 8px rgba(29, 58, 95, 0.03);
}

.meta-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.meta-item h4 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.meta-item p {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ── Scorecard ── */
.scorecard-caption {
  color: var(--muted);
  font-size: 0.875rem;
  margin-top: 12px;
  max-width: 760px;
}

.scorecard-img-wrap {
  margin-top: 28px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--white);
  box-shadow: 0 4px 20px rgba(29, 58, 95, 0.05);
}

.scorecard-img-wrap img {
  width: 100%;
  display: block;
}

.scorecard-placeholder {
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.85rem;
  flex-direction: column;
  gap: 10px;
}

/* ── Quickstart ── */
.quickstart-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: start;
  margin-top: 32px;
}

.code-block {
  background: #0f1729;
  border-radius: var(--radius);
  padding: 16px 20px;
  border: 1px solid #1e2e46;
  position: relative;
}

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

.code-lang {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64b5f6;
  background: rgba(100, 181, 246, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
}

.code-block pre {
  overflow-x: auto;
  white-space: pre;
}

.code-block code,
.code-block pre {
  color: #e6edf7;
  font-family: 'Roboto Mono', monospace;
  font-size: 0.82rem;
  line-height: 1.6;
}

.code-block .kw { color: #79c0ff; }
.code-block .st { color: #a5d6ff; }
.code-block .nm { color: #d2a8ff; }
.code-block .fn { color: #ffae57; }

.copy-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.75);
  border-radius: 4px;
  padding: 3px 10px;
  font-size: 0.72rem;
  cursor: pointer;
  transition: background var(--t), color var(--t), border-color var(--t);
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.copy-btn.copied {
  background: rgba(100, 181, 246, 0.14);
  border-color: rgba(100, 181, 246, 0.35);
  color: #9fd0ff;
}

.quickstart-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

/* ── Access ── */
.access-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.access-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 34px 38px 38px;
  display: flex;
  flex-direction: column;
  min-height: 438px;
}

.access-card h3 {
  font-size: 1.05rem;
  margin-bottom: 22px;
  color: var(--text);
}

.access-price {
  font-size: clamp(2rem, 2.6vw, 2.65rem);
  line-height: 1;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 24px;
}

.access-price.sub {
  color: var(--dark-blue);
}

.access-card p,
.access-desc {
  color: var(--muted);
  font-size: 0.93rem;
  margin-bottom: 28px;
}

.access-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 34px;
  flex: 1;
}

.access-card li {
  position: relative;
  padding-left: 28px;
  color: var(--text);
  font-size: 0.93rem;
  line-height: 1.45;
}

.access-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--blue);
  font-weight: 700;
  font-size: 1rem;
}

.access-card.featured {
  border-color: var(--blue);
}

.access-card .btn {
  align-self: flex-start;
}

.access-card .btn-outline {
  border-color: var(--border);
  background: #fff;
}

/* ── Footer ── */
footer {
  background: #0f1b2f;
  color: #fff;
}

.footer-inner {
  padding: 30px 0 18px;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(320px, auto);
  gap: 44px;
  align-items: start;
  padding-bottom: 22px;
}

.footer-brand {
  max-width: 420px;
}

.footer-brand img {
  height: 28px;
  width: auto;
  margin-bottom: 14px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.88rem;
  line-height: 1.6;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  gap: 32px;
  justify-self: end;
}

.footer-links-group h4 {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.36);
  margin-bottom: 12px;
}

.footer-links-group ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-group a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.84rem;
  transition: color var(--t);
}

.footer-links-group a:hover {
  color: #fff;
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 16px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.56);
}

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.d1 { transition-delay: 0.08s; }
.d2 { transition-delay: 0.16s; }
.d3 { transition-delay: 0.24s; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-content {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
  }
  .hero-content h1 {
    justify-content: center;
  }
  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions { justify-content: center; }
  .hero-video-panel {
    max-width: min(390px, 100%);
    margin: 0 auto;
  }
  .stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .var-grid { grid-template-columns: 1fr 1fr; }
  .quickstart-grid { grid-template-columns: 1fr; }
  .access-grid { grid-template-columns: 1fr; }
  .dataset-meta { grid-template-columns: 1fr; }
  .access-card {
    min-height: 0;
    padding: 30px 28px 32px;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-links {
    justify-self: start;
    width: 100%;
    max-width: 440px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (max-width: 600px) {
  section { padding: 48px 0; }
  .container { padding: 0 18px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .var-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
  .access-grid {
    gap: 18px;
  }
  .access-card {
    border-radius: 14px;
    padding: 26px 22px 28px;
  }
  .access-card h3 {
    font-size: 1rem;
    margin-bottom: 14px;
  }
  .access-price {
    font-size: 2rem;
    margin-bottom: 18px;
  }
  .access-card p,
  .access-desc {
    margin-bottom: 22px;
  }
  .access-features {
    gap: 14px;
    margin-bottom: 28px;
  }
  .footer-inner {
    padding: 28px 0 18px;
  }
  .footer-links {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .footer-brand img {
    height: 30px;
  }
}
