:root {
  --bg: #f5f8ff;
  --surface: #ffffff;
  --ink: #1f2a44;
  --sub: #506080;
  --brand: #4f7cff;
  --brand-2: #38d6ff;
  --accent: #8f5bff;
  --ok: #20b66f;
  --line: #dbe5ff;
  --shadow: 0 12px 30px rgba(79, 124, 255, 0.15);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 0% 0%, #e4eeff 0, transparent 35%),
    radial-gradient(circle at 100% 0%, #dffcff 0, transparent 30%),
    var(--bg);
  line-height: 1.65;
}

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

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

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(245, 248, 255, 0.85);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
}

.brand img {
  width: 40px;
  height: 40px;
}

.brand-name {
  line-height: 1.05;
}

.brand-name small {
  display: block;
  font-size: 0.72rem;
  color: var(--sub);
  font-weight: 600;
}

.nav-links {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.nav-links a {
  padding: 0.58rem 0.9rem;
  border-radius: 999px;
  font-weight: 700;
  color: #2f4268;
  transition: 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  box-shadow: var(--shadow);
}

.menu-btn {
  display: none;
  border: 0;
  background: #fff;
  border-radius: 10px;
  width: 42px;
  height: 42px;
  box-shadow: var(--shadow);
  font-size: 1.15rem;
}

.hero {
  padding: 4.5rem 0 3rem;
  position: relative;
  overflow: clip;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
}

.bubble {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
  z-index: -1;
}

.bubble.one {
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, #89a7ff, #7ce8ff);
  top: -70px;
  left: -40px;
  opacity: 0.45;
}

.bubble.two {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, #b18cff, #79ccff);
  right: -120px;
  bottom: -120px;
  opacity: 0.28;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 1rem;
}

h1 {
  font-size: clamp(1.95rem, 4vw, 3rem);
}

h2 {
  font-size: clamp(1.45rem, 2.6vw, 2.2rem);
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: #5a74aa;
  margin-bottom: 0.55rem;
  font-weight: 700;
}

.lead {
  color: var(--sub);
  font-size: 1.05rem;
}

.btn-row {
  margin-top: 1.25rem;
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.74rem 1.05rem;
  font-weight: 700;
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff;
  box-shadow: var(--shadow);
}

.btn-secondary {
  background: #fff;
  border-color: var(--line);
  color: #294171;
}

.card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 1.2rem;
}

.hero-card .chart {
  border-radius: var(--radius-lg);
  padding: 1rem;
  background: linear-gradient(155deg, #e9f0ff, #f5fbff);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 0.8rem;
}

.metric {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0.85rem;
}

.metric strong {
  display: block;
  font-size: 1.15rem;
}

.section {
  padding: 2.3rem 0;
}

.grid-3,
.grid-2 {
  display: grid;
  gap: 1rem;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature {
  padding: 1rem;
}

.feature .icon {
  width: 52px;
  height: 52px;
  margin-bottom: 0.8rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.stats .item {
  text-align: center;
  padding: 1rem 0.75rem;
}

.stats .item strong {
  font-size: 1.5rem;
  display: block;
}

.timeline {
  border-left: 3px dashed #bfd0ff;
  margin-left: 0.5rem;
  padding-left: 1rem;
}

.timeline p {
  margin: 0 0 0.85rem;
}

.list {
  margin: 0;
  padding-left: 1rem;
}

.list li {
  margin-bottom: 0.35rem;
}

.table-like {
  display: grid;
  gap: 0.7rem;
}

.table-like .row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-bottom: 1px dashed #dce5ff;
  padding-bottom: 0.55rem;
}

.muted {
  color: var(--sub);
}

.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  background: #eef4ff;
}

.footer-grid {
  padding: 1.5rem 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.1fr 0.9fr;
}

.footer-links {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  font-weight: 700;
}

.small {
  font-size: 0.9rem;
}

.page-hero {
  padding: 3rem 0 1.5rem;
}

.page-hero .card {
  padding: 1.2rem;
}

.legal {
  padding: 1.2rem;
}

.legal h2 {
  margin-top: 1.35rem;
}

.tag {
  display: inline-block;
  background: #e9efff;
  color: #3a5ca6;
  border-radius: 999px;
  padding: 0.22rem 0.68rem;
  font-size: 0.78rem;
  margin-right: 0.35rem;
  margin-bottom: 0.35rem;
}

.timeline-panel {
  padding: 1rem;
  position: relative;
  overflow: hidden;
}

.timeline-panel::before {
  content: "";
  position: absolute;
  inset: -30% auto auto -10%;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(56, 214, 255, 0.28), rgba(56, 214, 255, 0));
  pointer-events: none;
}

.timeline-viz {
  margin-top: 1rem;
  position: relative;
  display: grid;
  gap: 1rem;
}

.timeline-viz::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background: linear-gradient(180deg, #38d6ff, #8f5bff);
  border-radius: 999px;
  box-shadow: 0 0 16px rgba(56, 214, 255, 0.6);
}

.timeline-node {
  position: relative;
  margin-left: 2.2rem;
  background: linear-gradient(140deg, #ffffff, #f3f8ff);
  border: 1px solid #dbe5ff;
  border-radius: 14px;
  padding: 0.9rem 1rem;
  box-shadow: var(--shadow);
  animation: floatIn 0.65s ease both;
}

.timeline-node::before {
  content: "";
  position: absolute;
  left: -1.9rem;
  top: 1.05rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #38d6ff, #8f5bff);
  box-shadow: 0 0 0 4px #eaf2ff, 0 0 16px rgba(79, 124, 255, 0.7);
}

.timeline-node .year {
  display: inline-block;
  font-size: 0.78rem;
  color: #395aa3;
  background: #e8f0ff;
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.timeline-node h3 {
  margin-bottom: 0.45rem;
}

.timeline-node:nth-child(2) {
  animation-delay: 0.08s;
}

.timeline-node:nth-child(3) {
  animation-delay: 0.16s;
}

.timeline-node:nth-child(4) {
  animation-delay: 0.24s;
}

.timeline-node:nth-child(5) {
  animation-delay: 0.32s;
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

  .nav-links {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: 66px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 0.6rem;
    flex-direction: column;
    align-items: stretch;
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .menu-btn {
    display: inline-grid;
    place-items: center;
  }
}
