:root {
  --blue-900: #0a3a7a;
  --blue-700: #1560b8;
  --blue-600: #1a7ad9;
  --blue-500: #2b93ef;
  --cyan-400: #3ec9e8;
  --ink: #142033;
  --ink-soft: #3d4f66;
  --muted: #6b7c90;
  --line: #d9e4f0;
  --bg: #f3f7fc;
  --bg-2: #e8f1fa;
  --card: #ffffff;
  --warn: #c45a1a;
  --radius: 14px;
  --shadow: 0 12px 40px rgba(15, 55, 110, 0.1);
  --max: 1120px;
  --font-display: "Syne", "Noto Sans SC", sans-serif;
  --font-body: "Noto Sans SC", "Source Sans 3", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(62, 201, 232, 0.22), transparent 55%),
    radial-gradient(ellipse 70% 45% at 95% 5%, rgba(26, 122, 217, 0.18), transparent 50%),
    linear-gradient(180deg, #eef5fc 0%, var(--bg) 28%, #f7fafd 100%);
  line-height: 1.75;
  font-size: 16px;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--blue-700);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--blue-500);
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(243, 247, 252, 0.88);
  border-bottom: 1px solid rgba(217, 228, 240, 0.9);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 14px rgba(21, 96, 184, 0.25);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.brand-text span {
  font-size: 0.72rem;
  color: var(--muted);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-list a:hover,
.nav-list a.active {
  color: var(--blue-700);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue-600), var(--cyan-400));
  color: #fff !important;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(26, 122, 217, 0.28);
}

/* Hero */
.hero {
  padding: 3.2rem 0 2.4rem;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-700);
  margin-bottom: 0.8rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  line-height: 1.25;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
  color: var(--blue-900);
}

.hero-lead {
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin: 0 0 1.5rem;
  max-width: 38rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.35rem;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, #1470d4, #2bb8e0);
  color: #fff;
  box-shadow: 0 10px 28px rgba(20, 112, 212, 0.32);
}

.btn-secondary {
  background: #fff;
  color: var(--blue-700);
  border: 1px solid var(--line);
}

.hero-note {
  font-size: 0.88rem;
  color: var(--muted);
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  border-radius: 22px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.7);
  margin-inline: auto;
  max-height: 520px;
  width: auto;
  object-fit: contain;
  background: #fff;
}

.hero-glow {
  position: absolute;
  inset: 12% 8%;
  background: radial-gradient(circle, rgba(62, 201, 232, 0.35), transparent 70%);
  z-index: -1;
  filter: blur(20px);
}

/* Sections */
.section {
  padding: 3rem 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(232, 241, 250, 0.7));
  border-block: 1px solid rgba(217, 228, 240, 0.65);
}

.section-head {
  margin-bottom: 1.75rem;
  max-width: 46rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  margin: 0 0 0.65rem;
  color: var(--blue-900);
  letter-spacing: -0.01em;
}

.section-head p {
  margin: 0;
  color: var(--ink-soft);
}

.prose p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

.prose h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 1.75rem 0 0.7rem;
  color: var(--ink);
}

.prose ul,
.prose ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  color: var(--ink-soft);
}

.prose li {
  margin-bottom: 0.4rem;
}

/* Feature grids */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(20, 60, 120, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feature-card img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
  background: #edf3fa;
}

.feature-card .body {
  padding: 1rem 1.05rem 1.2rem;
}

.feature-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  font-family: var(--font-display);
}

.feature-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.split.reverse .split-media {
  order: 2;
}

.split-media img {
  border-radius: 18px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  margin-inline: auto;
  max-height: 560px;
  width: auto;
}

.shot-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.shot-row figure {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.shot-row img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
}

.shot-row figcaption {
  padding: 0.65rem 0.75rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  counter-reset: step;
}

.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
  position: relative;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-600), var(--cyan-400));
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.step h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-family: var(--font-display);
}

.step p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* TOC / FAQ / table */
.toc {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  margin-bottom: 2rem;
}

.toc h2 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  font-family: var(--font-display);
}

.toc ol {
  margin: 0;
  padding-left: 1.2rem;
  columns: 2;
  gap: 2rem;
}

.toc a {
  text-decoration: none;
}

.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.95rem 1.1rem;
  margin-bottom: 0.75rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
}

.faq details p {
  margin: 0.7rem 0 0;
  color: var(--ink-soft);
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.info-table th,
.info-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

.info-table th {
  background: #eef5fc;
  color: var(--blue-900);
  width: 32%;
}

.cta-band {
  margin: 1rem 0 0;
  padding: 2rem;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(20, 112, 212, 0.95), rgba(43, 184, 224, 0.9)),
    var(--blue-700);
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: 0 16px 40px rgba(20, 112, 212, 0.28);
}

.cta-band h2 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
}

.cta-band p {
  margin: 0;
  opacity: 0.92;
}

.cta-band .btn {
  background: #fff;
  color: var(--blue-700);
}

/* Legal / utility pages */
.page-hero {
  padding: 2.4rem 0 1.2rem;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 0.6rem;
  color: var(--blue-900);
}

.page-hero p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 40rem;
}

.legal {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.75rem 1.5rem;
  margin-bottom: 3rem;
  box-shadow: 0 8px 28px rgba(20, 60, 120, 0.04);
}

.legal h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 1.6rem 0 0.6rem;
  color: var(--ink);
}

.legal h2:first-child {
  margin-top: 0;
}

.legal p,
.legal li {
  color: var(--ink-soft);
}

.breadcrumb {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.breadcrumb a {
  text-decoration: none;
}

/* Error pages */
.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1rem;
}

.error-page .code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 7rem);
  line-height: 1;
  background: linear-gradient(135deg, var(--blue-600), var(--cyan-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0;
}

.error-page h1 {
  margin: 0.4rem 0 0.8rem;
  font-family: var(--font-display);
}

.error-page p {
  color: var(--ink-soft);
  max-width: 28rem;
  margin: 0 auto 1.4rem;
}

/* Footer */
.site-footer {
  margin-top: 2rem;
  background: #0d2b52;
  color: rgba(255, 255, 255, 0.86);
  padding: 2.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.footer-brand img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.footer-brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 0.35rem;
}

.footer-brand p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
}

.footer-col h3 {
  margin: 0 0 0.8rem;
  font-size: 0.95rem;
  color: #fff;
  font-family: var(--font-display);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.92rem;
  display: inline-block;
  margin-bottom: 0.45rem;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.back-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--blue-600), var(--cyan-400));
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(20, 112, 212, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 40;
}

.back-top.show {
  opacity: 1;
  pointer-events: auto;
}

/* Animations */
@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-copy,
.hero-visual {
  animation: rise-in 0.7s ease both;
}

.hero-visual {
  animation-delay: 0.12s;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid,
  .split,
  .split.reverse,
  .feature-grid,
  .steps,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .split.reverse .split-media {
    order: 0;
  }

  .shot-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .toc ol {
    columns: 1;
  }

  .hero-visual img,
  .split-media img {
    max-height: 420px;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-list {
    display: none;
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: 68px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
    box-shadow: var(--shadow);
  }

  .nav-list.open {
    display: flex;
  }

  .nav-list a {
    padding: 0.7rem 0.8rem;
    border-radius: 10px;
  }

  .nav-list a:hover {
    background: var(--bg-2);
  }

  .nav-cta {
    margin-top: 0.25rem;
  }

  .feature-grid,
  .shot-row,
  .steps {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 2rem;
  }

  .section {
    padding: 2.2rem 0;
  }

  .cta-band {
    padding: 1.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-copy,
  .hero-visual,
  .reveal {
    animation: none;
    transition: none;
    opacity: 1;
    transform: none;
  }
}
