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

:root {
  --blue-950: #082b66;
  --blue-900: #0a3d91;
  --blue-700: #1769e0;
  --blue-600: #287ff0;
  --blue-100: #e9f2ff;
  --blue-50: #f5f9ff;
  --ink: #14213a;
  --muted: #61708a;
  --line: #d9e4f3;
  --white: #fff;
  --shadow: 0 18px 50px rgba(23, 105, 224, 0.1);
}

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

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Noto Sans SC", system-ui, sans-serif;
  line-height: 1.75;
}

a { color: inherit; }
.container { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }

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

.nav {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--blue-950);
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(145deg, var(--blue-600), var(--blue-900));
  border-radius: 10px 10px 10px 3px;
  font: 700 1rem "Space Grotesk", sans-serif;
  box-shadow: 0 8px 20px rgba(23, 105, 224, 0.24);
}

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: #40516e; font-size: 0.92rem; font-weight: 600; text-decoration: none; }
.nav-links a:hover { color: var(--blue-700); }
.nav-links .github-link { padding-left: 28px; border-left: 1px solid var(--line); }
.menu-button { display: none; }

.hero { position: relative; overflow: hidden; background: var(--blue-50); border-bottom: 1px solid var(--line); }

.hero::before, .hero::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}
.hero::before { width: 520px; height: 520px; right: -120px; top: -250px; }
.hero::after { width: 350px; height: 350px; right: 130px; bottom: -280px; }

.hero-inner { position: relative; padding: 92px 0; display: grid; grid-template-columns: 220px 1fr; align-items: center; gap: 70px; }

.portrait {
  width: 210px; aspect-ratio: 1; display: grid; place-items: center;
  color: white; background: linear-gradient(145deg, #61aaff, var(--blue-900));
  border: 9px solid white; border-radius: 50%; box-shadow: 0 22px 55px rgba(23,105,224,.22);
}
.portrait span { font: 700 3.2rem "Space Grotesk", sans-serif; letter-spacing: -.08em; }

.hero-kicker {
  margin: 0 0 16px;
  color: var(--blue-700);
  font: 700 0.72rem "Space Grotesk", sans-serif;
  letter-spacing: 0.2em;
}

h1, h2, h3 { margin-top: 0; line-height: 1.25; }
h1 { margin-bottom: 12px; color: var(--blue-950); font-size: clamp(2.8rem, 7vw, 5.1rem); letter-spacing: -0.045em; }
.hero-subtitle { margin: 0; color: var(--muted); font-size: clamp(1.08rem, 2.2vw, 1.45rem); }

.intro {
  padding: 96px 0;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 90px;
  border-bottom: 1px solid var(--line);
}

.section-label {
  display: block;
  margin-bottom: 12px;
  color: var(--blue-700);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.intro h2, .section-heading h2 {
  margin-bottom: 0;
  color: var(--blue-950);
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.035em;
}

.intro-copy p { margin: 0 0 18px; color: var(--muted); font-size: 1.05rem; }

.focus-section { padding: 92px 0; background: var(--blue-950); }
.focus-section .section-label { color: #7eb8ff; }
.focus-section .section-heading h2 { color: white; }
.focus-section .section-heading > p { color: #a8bddb; }
.timeline { border-top: 1px solid rgba(255,255,255,.16); }
.timeline-item { padding: 32px 0; display: grid; grid-template-columns: 150px 1fr; gap: 30px; color: white; border-bottom: 1px solid rgba(255,255,255,.16); }
.timeline-year { color: #7eb8ff; font: 700 .78rem "Space Grotesk",sans-serif; letter-spacing: .12em; }
.timeline-item h3 { margin-bottom: 8px; font-size: 1.3rem; }
.timeline-item p { max-width: 650px; margin: 0; color: #a8bddb; }

.garden { padding: 92px 0 112px; }

.section-heading {
  margin-bottom: 42px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}
.section-heading > p { max-width: 360px; margin: 0 0 5px; color: var(--muted); }

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

.card {
  position: relative;
  min-height: 320px;
  padding: 34px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 1px 0 rgba(23, 105, 224, 0.05);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.card:hover { transform: translateY(-6px); border-color: #9ac6ff; box-shadow: var(--shadow); }

.card-number {
  position: absolute;
  top: 26px;
  right: 28px;
  color: #adc8ec;
  font: 700 0.75rem "Space Grotesk", sans-serif;
}

.card-icon {
  width: 50px;
  height: 50px;
  margin-bottom: 44px;
  display: grid;
  place-items: center;
  color: var(--blue-700);
  background: var(--blue-100);
  border-radius: 14px;
  font-size: 1.35rem;
  font-weight: 700;
}

.card h3 { margin-bottom: 12px; color: var(--blue-950); font-size: 1.35rem; }
.card p { margin: 0 0 28px; color: var(--muted); font-size: 0.94rem; }
.card-link { color: var(--blue-700); font-size: 0.85rem; font-weight: 700; }

footer { color: #c8daf2; background: var(--blue-950); }
.footer-inner { padding: 50px 0; display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.footer-inner strong { color: white; }
.footer-inner p { margin: 6px 0 0; font-size: 0.82rem; }

@media (max-width: 760px) {
  .container { width: min(100% - 32px, 1120px); }
  .menu-button { display: block; padding: 5px; color: var(--blue-950); background: none; border: 0; font-size: 1.35rem; }
  .nav-links {
    position: absolute;
    top: 70px;
    right: 0;
    left: 0;
    padding: 12px 24px 22px;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    background: white;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 15px 30px rgba(8, 43, 102, 0.08);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 10px 0; }
  .nav-links .github-link { padding-left: 0; border-left: 0; }
  .hero-inner { padding: 82px 0 88px; }
  .hero-inner { grid-template-columns: 1fr; gap: 34px; }
  .portrait { width: 150px; border-width: 6px; }
  .portrait span { font-size: 2.3rem; }
  .intro { padding: 68px 0; grid-template-columns: 1fr; gap: 30px; }
  .garden { padding: 68px 0 80px; }
  .section-heading { align-items: start; flex-direction: column; }
  .cards { grid-template-columns: 1fr; }
  .timeline-item { grid-template-columns: 1fr; gap: 8px; }
  .card { min-height: 280px; }
  .footer-inner { align-items: start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card { transition: none; }
}
