@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,600;0,700;0,800;1,400&display=swap');

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

:root {
  --c-white: #ffffff;
  --c-surface: #f5f5f5;
  --c-ink: #1f1f1f;
  --c-ink-2: #3a3a3a;
  --c-ink-3: #6b6b6b;
  --c-border: #e2e2e2;
  --c-accent: #1f1f1f;
  --c-accent-light: #f0f0f0;
  --radius-card: 18px;
  --radius-lg: 24px;
  --shadow-card: 0 4px 16px rgba(0,0,0,0.07), 0 1px 3px rgba(0,0,0,0.04);
  --shadow-hover: 0 8px 32px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --header-h: 64px;
  --anchor-h: 44px;
  --scroll-top: calc(var(--header-h) + var(--anchor-h) + 8px);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background: var(--c-surface);
  color: var(--c-ink);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

article[id] {
  scroll-margin-top: var(--scroll-top);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

ul, menu {
  list-style: none;
}

/* ===== OVERLAY MENU ===== */
.overlay-menu {
  position: fixed;
  inset: 0;
  background: var(--c-ink);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.overlay-menu.is-open {
  opacity: 1;
  pointer-events: auto;
}
.overlay-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: var(--c-white);
  font-size: 1.5rem;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}
.overlay-close:hover {
  background: rgba(255,255,255,0.1);
}
.overlay-nav menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}
.overlay-nav li {
  width: 100%;
  text-align: center;
}
.overlay-link {
  display: block;
  color: var(--c-white);
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-weight: 600;
  padding: 14px 40px;
  border-radius: 12px;
  letter-spacing: 0.01em;
  transition: background 0.2s, transform 0.15s;
  min-height: 44px;
}
.overlay-link:hover {
  background: rgba(255,255,255,0.1);
  transform: translateX(4px);
}

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-border);
  z-index: 500;
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.header-left {
  flex: 1;
  display: flex;
  align-items: center;
}
.header-brand {
  flex-shrink: 0;
}
.header-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}
.brand-link {
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand-logo {
  height: 36px;
  width: auto;
}
.brand-text {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--c-ink);
  white-space: nowrap;
}

/* nav details used for DOM contract */
.nav-details {
  position: relative;
}
.nav-details > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px;
  border-radius: 8px;
  min-height: 44px;
  justify-content: center;
}
.nav-details > summary::-webkit-details-marker { display: none; }
.nav-details > summary .bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--c-ink);
  border-radius: 2px;
  transition: background 0.2s;
}

.desktop-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}
.desktop-menu li a {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--c-ink-2);
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
  min-height: 40px;
}
.desktop-menu li a:hover {
  background: var(--c-surface);
  color: var(--c-ink);
}

/* hide left desktop-menu on mobile; show hamburger */
.hamburger-btn {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  border-radius: 8px;
  min-height: 44px;
  min-width: 44px;
  align-items: center;
  justify-content: center;
}
.hamburger-btn .bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-ink);
  border-radius: 2px;
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  background: var(--c-ink);
  color: var(--c-white);
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: 10px;
  transition: opacity 0.2s, transform 0.2s;
  white-space: nowrap;
  min-height: 40px;
}
.cta-btn:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

/* ===== STICKY ANCHOR ===== */
.sticky-anchor {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  height: var(--anchor-h);
  background: var(--c-white);
  border-bottom: 1px solid var(--c-border);
  z-index: 490;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.3s, transform 0.3s;
}
.sticky-anchor.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.anchor-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.anchor-inner::-webkit-scrollbar { display: none; }
.anchor-link {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--c-ink-3);
  border-radius: 8px;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
  min-height: 32px;
}
.anchor-link:hover,
.anchor-link.active {
  background: var(--c-ink);
  color: var(--c-white);
}

/* ===== MAIN LAYOUT ===== */
.bento-main {
  padding-top: calc(var(--header-h) + 24px);
  min-height: 100vh;
}

/* ===== HERO SECTION ===== */
.hero-section {
  max-width: 1280px;
  margin: 0 auto 24px;
  padding: 0 24px;
}
.hero-figure {
  background: var(--c-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 48px 48px 48px 48px;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  align-items: center;
  min-height: 45vh;
  position: relative;
  overflow: hidden;
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, var(--c-border) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.5;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 1;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-ink-3);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.hero-h1 {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--c-ink);
  margin-bottom: 16px;
}
.hero-desc {
  font-size: 1rem;
  color: var(--c-ink-2);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 28px;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  background: var(--c-ink);
  color: var(--c-white);
  font-size: 0.9375rem;
  font-weight: 700;
  border-radius: 12px;
  transition: opacity 0.2s, transform 0.2s;
  min-height: 48px;
}
.hero-cta:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}
.hero-aside {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 12px;
}
.stat-tile {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-card);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.stat-tile:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-hover);
}
.tile-a { grid-column: 1; grid-row: 1; }
.tile-b { grid-column: 2; grid-row: 1; }
.tile-c { grid-column: 1 / 3; grid-row: 2; flex-direction: row; align-items: center; justify-content: center; gap: 12px; }
.stat-num {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--c-ink);
  line-height: 1;
}
.stat-num small {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0;
}
.stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--c-ink-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ===== CONTENT SECTION ===== */
.content-section {
  max-width: 1280px;
  margin: 0 auto 48px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 24px;
  align-items: start;
}
.content-figure {
  min-width: 0;
}
.bento-content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

/* page.content sections become bento cards */
.bento-content-grid > article,
.bento-content-grid article {
  background: var(--c-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 36px 40px;
  margin-bottom: 20px;
  transition: box-shadow 0.25s, transform 0.25s;
}
.bento-content-grid > article:last-child,
.bento-content-grid article:last-child {
  margin-bottom: 0;
}
.bento-content-grid > article:hover,
.bento-content-grid article:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.bento-content-grid h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.625rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--c-ink);
  margin-bottom: 12px;
}
.bento-content-grid h2 + hr,
.bento-content-grid h3 + hr {
  border: none;
  border-top: 2px solid var(--c-surface);
  margin: 0 0 20px 0;
}
.bento-content-grid h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--c-ink);
  margin: 24px 0 10px;
}
.bento-content-grid p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--c-ink-2);
  margin-bottom: 14px;
}
.bento-content-grid p:last-child { margin-bottom: 0; }
.bento-content-grid ul,
.bento-content-grid ol {
  padding-left: 1.5em;
  margin-bottom: 14px;
}
.bento-content-grid li {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--c-ink-2);
  margin-bottom: 6px;
}
.bento-content-grid strong {
  font-weight: 700;
  color: var(--c-ink);
}
.bento-content-grid a {
  color: var(--c-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.bento-content-grid a:hover { opacity: 0.7; }
.bento-content-grid table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  margin-bottom: 16px;
}
.bento-content-grid th,
.bento-content-grid td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--c-border);
}
.bento-content-grid th {
  font-weight: 700;
  color: var(--c-ink);
  background: var(--c-surface);
}
.bento-content-grid figure {
  margin: 16px 0;
  border-radius: var(--radius-card);
  overflow: hidden;
}
.bento-content-grid figcaption {
  font-size: 0.8125rem;
  color: var(--c-ink-3);
  padding: 8px 0 0;
}

/* ===== ASIDE ===== */
.content-aside {
  background: var(--c-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 28px 24px;
  position: sticky;
  top: calc(var(--header-h) + var(--anchor-h) + 16px);
}
.aside-title {
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-ink-3);
  margin-bottom: 12px;
}
.content-aside hr {
  border: none;
  border-top: 1px solid var(--c-border);
  margin: 0 0 16px 0;
}
.aside-nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 24px;
}
.aside-nav-list li a {
  display: flex;
  align-items: center;
  padding: 8px 10px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--c-ink-2);
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
  min-height: 36px;
  line-height: 1.4;
}
.aside-nav-list li a:hover {
  background: var(--c-surface);
  color: var(--c-ink);
}
.aside-tip {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--c-surface);
  border-radius: 12px;
  padding: 14px;
}
.tip-icon {
  font-size: 0.75rem;
  color: var(--c-ink-3);
  flex-shrink: 0;
  margin-top: 2px;
}
.aside-tip p {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--c-ink-3);
  margin: 0;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--c-white);
  border-top: 1px solid var(--c-border);
  padding: 0 24px;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-logo a {
  display: flex;
  align-items: center;
}
.footer-logo .brand-text {
  font-size: 0.875rem;
}
.footer-logo .brand-logo {
  height: 28px;
}
.footer-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.footer-nav a {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--c-ink-3);
  padding: 8px 10px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}
.footer-nav a:hover {
  color: var(--c-ink);
  background: var(--c-surface);
}
.footer-copy {
  font-size: 0.8125rem;
  color: var(--c-ink-3);
  white-space: nowrap;
}

/* ===== SCROLL REVEAL ===== */
.reveal,
.reveal-delay-1,
.reveal-delay-2,
.reveal-delay-3 {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal.revealed,
.reveal-delay-1.revealed,
.reveal-delay-2.revealed,
.reveal-delay-3.revealed {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-delay-1, .reveal-delay-2, .reveal-delay-3 {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html { scroll-behavior: auto; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .content-section {
    grid-template-columns: 1fr;
  }
  .content-aside {
    position: static;
  }
  .desktop-menu {
    display: none;
  }
  .hamburger-btn {
    display: flex;
  }
  .nav-details > summary {
    display: flex;
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 56px;
  }
  .header-inner {
    padding: 0 16px;
  }
  .hero-figure {
    grid-template-columns: 1fr;
    padding: 32px 24px;
    min-height: auto;
  }
  .hero-aside {
    grid-template-columns: repeat(3, 1fr);
  }
  .tile-c {
    grid-column: 3;
    grid-row: 1;
  }
  .hero-h1 {
    font-size: clamp(1.5rem, 6vw, 2.25rem);
  }
  .content-section {
    padding: 0 16px;
  }
  .hero-section {
    padding: 0 16px;
  }
  .bento-content-grid > article,
  .bento-content-grid article {
    padding: 24px 20px;
  }
  .anchor-inner {
    padding: 0 16px;
  }
  .footer-nav {
    display: none;
  }
  .footer-inner {
    height: auto;
    padding: 16px 0;
  }
}

@media (max-width: 480px) {
  .hero-aside {
    grid-template-columns: 1fr 1fr;
  }
  .tile-c {
    grid-column: 1 / 3;
    grid-row: 2;
  }
  .stat-num {
    font-size: 1.5rem;
  }
  .bento-content-grid > article,
  .bento-content-grid article {
    padding: 20px 16px;
    border-radius: 14px;
  }
}
