@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap");

:root {
  --bg: #ffffff;
  --ink: #0f172a;
  --muted: #4b5563;
  --line: #dbe7ff;
  --accent: #0f766e;
  --accent-2: #2563eb;
  --accent-3: #f97316;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Plus Jakarta Sans", "Avenir Next", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

.bg-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 6% 10%, rgba(37, 99, 235, 0.08), transparent 32%),
    radial-gradient(circle at 96% 0%, rgba(15, 118, 110, 0.08), transparent 28%),
    radial-gradient(circle at 78% 88%, rgba(249, 115, 22, 0.07), transparent 28%);
}

.page {
  position: relative;
  z-index: 1;
  max-width: 1020px;
  margin: 0 auto;
  padding: 58px 20px 64px;
}

.hero {
  margin-bottom: 26px;
}

.eyebrow {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-2);
  font-weight: 600;
}

h1 {
  margin: 6px 0 10px;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.12;
  font-weight: 600;
}

.subtitle {
  margin: 0 0 22px;
  max-width: 780px;
  font-size: clamp(0.96rem, 1.5vw, 1.08rem);
  color: var(--muted);
}

.panel {
  padding: 10px 0 0;
  margin-bottom: 24px;
}

.panel h2 {
  margin: 0;
  font-size: 1.03rem;
  line-height: 1.2;
  font-weight: 600;
  color: var(--accent);
}

.section-intro {
  margin: 8px 0 0;
  padding-bottom: 14px;
  color: #1f2937;
  font-size: 1rem;
}

.chart-frame {
  display: block;
  width: 100%;
  height: 750px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  margin-top: 14px;
  padding-top: 30px;
}

.chart-scroll {
  width: 100%;
}

.text-card {
  padding: 14px 0 0;
  margin-bottom: 24px;
}

.text-card h2 {
  margin: 0 0 8px;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--accent);
}

.text-card p {
  margin: 0;
  color: #1f2937;
}

.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 38px;
  padding: 12px 0 2px;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

.github-link {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  color: #111827;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  transition: transform 120ms ease, border-color 120ms ease, color 120ms ease;
}

.github-link:hover {
  transform: translateY(-1px);
  border-color: #bfd3ff;
  color: var(--accent-2);
}

.github-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

@media (max-width: 960px) {
  .page {
    padding-top: 44px;
  }

  .chart-frame {
    height: 700px;
  }
}

@media (max-width: 680px) {
  .page {
    padding: 36px 14px 40px;
  }

  .chart-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .chart-frame {
    min-width: 940px;
    height: 560px;
  }

  .site-footer {
    font-size: 0.85rem;
  }
}
