:root {
  --blue-50: #eef6ff;
  --blue-100: #d9ecff;
  --blue-200: #b6d8ff;
  --blue-500: #2f7dff;
  --blue-600: #1a63e8;
  --blue-700: #1249b8;
  --blue-800: #0f3d8f;
  --ink: #152238;
  --muted: #5b6b82;
  --line: rgba(18, 64, 143, 0.12);
  --surface: rgba(255, 255, 255, 0.86);
  --shadow: 0 18px 50px rgba(18, 64, 143, 0.12);
  --radius: 18px;
  --max: 1120px;
  --font-display: "Syne", "Noto Sans SC", sans-serif;
  --font-body: "Manrope", "Noto Sans SC", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(circle at 12% -10%, rgba(47, 125, 255, 0.22), transparent 42%),
    radial-gradient(circle at 88% 8%, rgba(0, 212, 255, 0.16), transparent 36%),
    linear-gradient(180deg, #f4f8ff 0%, #eef4fb 42%, #f7fafc 100%);
  line-height: 1.75;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--blue-600);
  text-decoration: none;
}

a:hover {
  color: var(--blue-800);
  text-decoration: underline;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(244, 248, 255, 0.84);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(26, 99, 232, 0.25);
}

.brand:hover {
  text-decoration: none;
  color: var(--blue-700);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.1rem;
  list-style: none;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--blue-600);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: white;
  border-radius: 10px;
  padding: 0.45rem 0.7rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}

.hero {
  padding: 3.2rem 0 2.2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 0.8rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero-lead {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 36rem;
  margin-bottom: 1.4rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.78rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue-500), #00b7ff);
  color: #fff;
  box-shadow: 0 12px 28px rgba(47, 125, 255, 0.35);
}

.btn-primary:hover {
  color: #fff;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.9);
  color: var(--blue-700);
  border-color: var(--blue-200);
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 0.9rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-card img {
  width: 100%;
  border-radius: 20px;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
  max-height: 560px;
}

.section {
  padding: 2.6rem 0;
}

.section-head {
  margin-bottom: 1.4rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  margin-bottom: 0.55rem;
  letter-spacing: -0.02em;
}

.section-head p {
  color: var(--muted);
  max-width: 48rem;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  box-shadow: 0 10px 30px rgba(18, 64, 143, 0.06);
}

.prose p,
.prose li {
  color: #24344f;
  margin-bottom: 0.95rem;
}

.prose h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 1.5rem 0 0.7rem;
}

.prose ul,
.prose ol {
  padding-left: 1.2rem;
  margin-bottom: 1rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(18, 64, 143, 0.06);
}

.feature-card img {
  width: 100%;
  aspect-ratio: 9 / 14;
  object-fit: cover;
  object-position: top;
  background: #dfe9f7;
}

.feature-card .body {
  padding: 1rem 1.05rem 1.15rem;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 0.45rem;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
}

.shot-grid figure {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.shot-grid img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
}

.shot-grid figcaption {
  padding: 0.7rem 0.8rem 0.85rem;
  font-size: 0.86rem;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  align-items: stretch;
}

.split img {
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--line);
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
  max-height: 640px;
  background: white;
}

.toc {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
  margin: 1rem 0 0.4rem;
}

.toc a {
  display: block;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  background: rgba(47, 125, 255, 0.08);
  color: var(--blue-700);
  font-weight: 700;
  text-decoration: none;
}

.toc a:hover {
  background: rgba(47, 125, 255, 0.15);
}

.keyword-box {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.8rem;
}

.keyword-box span {
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.86rem;
  color: var(--blue-700);
  font-weight: 600;
}

.page-hero {
  padding: 2.4rem 0 1.2rem;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  margin-bottom: 0.7rem;
}

.page-hero p {
  color: var(--muted);
  max-width: 46rem;
}

.breadcrumb {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.9rem;
}

.breadcrumb a {
  color: var(--blue-600);
}

.error-wrap {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1rem;
}

.error-wrap h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 8vw, 4.5rem);
  line-height: 1;
  margin-bottom: 0.8rem;
  background: linear-gradient(135deg, var(--blue-600), #00b7ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.error-wrap p {
  color: var(--muted);
  margin-bottom: 1.2rem;
}

.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(226, 238, 255, 0.9));
  padding: 2.2rem 0 1.6rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.4rem;
}

.site-footer h3 {
  font-family: var(--font-display);
  margin-bottom: 0.7rem;
  font-size: 1rem;
}

.site-footer p,
.site-footer li {
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer ul {
  list-style: none;
}

.site-footer li {
  margin-bottom: 0.4rem;
}

.footer-bottom {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  justify-content: space-between;
}

.anchor {
  scroll-margin-top: 90px;
}

@media (max-width: 980px) {
  .hero-grid,
  .split,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .shot-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-card img,
  .split img {
    max-height: 480px;
  }
}

@media (max-width: 760px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: 72px;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 0.8rem;
    flex-direction: column;
    align-items: stretch;
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 0.55rem 0.4rem;
  }

  .feature-grid,
  .shot-grid,
  .toc {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    padding-top: 2rem;
  }
}

@media (max-width: 520px) {
  .feature-grid,
  .shot-grid {
    grid-template-columns: 1fr;
  }

  .toc {
    grid-template-columns: 1fr;
  }
}
