:root {
  --blue-900: #0a2d6b;
  --blue-700: #1456c8;
  --blue-600: #1e6fe8;
  --blue-500: #3b86f6;
  --blue-100: #e8f1fe;
  --blue-50: #f3f8ff;
  --ink: #14213d;
  --muted: #5a6a85;
  --line: #d7e3f5;
  --surface: #ffffff;
  --warm: #ff7a45;
  --radius: 14px;
  --shadow: 0 12px 40px rgba(20, 86, 200, 0.12);
  --max: 1120px;
  --font-display: "Sora", "Noto Sans SC", sans-serif;
  --font-body: "Noto Sans SC", "Sora", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(59, 134, 246, 0.18), transparent 60%),
    radial-gradient(900px 420px at 100% 0%, rgba(255, 122, 69, 0.12), transparent 55%),
    linear-gradient(180deg, #f7fbff 0%, #eef5ff 40%, #f8fafc 100%);
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--blue-700);
  text-decoration: none;
}

a:hover {
  color: var(--blue-600);
  text-decoration: underline;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--blue-700);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(247, 251, 255, 0.88);
  border-bottom: 1px solid rgba(215, 227, 245, 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;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand:hover {
  text-decoration: none;
  color: var(--blue-700);
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 14px rgba(20, 86, 200, 0.25);
}

.brand span {
  font-size: 1.05rem;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  cursor: pointer;
  color: var(--ink);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.1rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.25rem 0;
  position: relative;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--blue-700);
}

.site-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--blue-600);
  border-radius: 2px;
}

.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(--blue-700));
  color: #fff !important;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(30, 111, 232, 0.28);
}

.nav-cta:hover {
  text-decoration: none;
  filter: brightness(1.05);
}

/* Hero */
.hero {
  padding: 3.2rem 0 2.2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.2rem;
  align-items: center;
}

.hero-copy h1 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.4vw, 2.55rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--blue-900);
}

.hero-copy .lead {
  margin: 0 0 1.4rem;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 36rem;
}

.hero-actions {
  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.25rem;
  border-radius: 12px;
  font-weight: 600;
  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-600), #0f4db8);
  color: #fff;
  box-shadow: 0 10px 24px rgba(30, 111, 232, 0.3);
}

.btn-primary:hover {
  color: #fff;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.85);
  border-color: var(--line);
  color: var(--blue-700);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-meta strong {
  color: var(--blue-700);
}

.hero-visual {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #dbeafe;
  min-height: 360px;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 360px;
  animation: riseIn 0.9s ease both;
}

.hero-badge {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  background: rgba(10, 45, 107, 0.82);
  color: #fff;
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  font-size: 0.85rem;
  backdrop-filter: blur(6px);
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(1.02);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.reveal {
  animation: fadeUp 0.7s ease both;
}

/* Sections */
.section {
  padding: 2.8rem 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.55);
  border-block: 1px solid rgba(215, 227, 245, 0.7);
}

.section-head {
  margin-bottom: 1.6rem;
  max-width: 46rem;
}

.section-head h2 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  color: var(--blue-900);
  letter-spacing: -0.01em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.toc {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.toc a {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(20, 86, 200, 0.05);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.toc a:hover {
  border-color: var(--blue-500);
  transform: translateY(-2px);
  text-decoration: none;
}

.toc strong {
  display: block;
  color: var(--blue-700);
  margin-bottom: 0.2rem;
}

.toc span {
  color: var(--muted);
  font-size: 0.88rem;
}

.content-block {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.6rem;
  align-items: start;
  margin-bottom: 2rem;
}

.content-block.reverse {
  grid-template-columns: 0.9fr 1.1fr;
}

.content-block.reverse .text {
  order: 2;
}

.content-block.reverse .media {
  order: 1;
}

.content-block h3 {
  margin: 0 0 0.7rem;
  font-size: 1.25rem;
  color: var(--blue-900);
}

.content-block p {
  margin: 0 0 0.9rem;
  color: #334155;
}

.content-block ul {
  margin: 0 0 0.9rem;
  padding-left: 1.15rem;
  color: #334155;
}

.content-block li {
  margin-bottom: 0.35rem;
}

.media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}

.media img {
  width: 100%;
}

.media figcaption {
  padding: 0.7rem 0.9rem;
  font-size: 0.86rem;
  color: var(--muted);
  background: var(--blue-50);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.feature-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(20, 86, 200, 0.06);
  transition: transform 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
}

.feature-card img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
  background: #e2e8f0;
}

.feature-card .body {
  padding: 0.95rem 1rem 1.1rem;
}

.feature-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  color: var(--blue-900);
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 1rem;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-700));
  color: #fff;
  font-weight: 700;
  flex-shrink: 0;
}

.step h3 {
  margin: 0 0 0.35rem;
  font-size: 1.08rem;
  color: var(--blue-900);
}

.step p {
  margin: 0;
  color: var(--muted);
}

.shot-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}

.shot-row figure {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.shot-row img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
}

.shot-row figcaption {
  padding: 0.55rem 0.7rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.prose {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.4rem 1.5rem;
  box-shadow: 0 8px 24px rgba(20, 86, 200, 0.05);
}

.prose h2,
.prose h3 {
  color: var(--blue-900);
  margin-top: 1.4rem;
}

.prose h2:first-child,
.prose h3:first-child {
  margin-top: 0;
}

.prose p,
.prose li {
  color: #334155;
}

.prose a {
  font-weight: 600;
}

.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  margin-bottom: 0.7rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--blue-900);
}

.faq p {
  margin: 0.7rem 0 0;
  color: var(--muted);
}

.cta-band {
  margin: 1rem 0 0;
  padding: 1.6rem;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(30, 111, 232, 0.95), rgba(10, 45, 107, 0.96)),
    var(--blue-700);
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: var(--shadow);
}

.cta-band h2 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  color: #fff;
}

.cta-band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  max-width: 36rem;
}

.cta-band .btn {
  background: #fff;
  color: var(--blue-700);
}

.page-hero {
  padding: 2.4rem 0 1.2rem;
}

.page-hero h1 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--blue-900);
}

.page-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 42rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 0.9rem;
}

.breadcrumb a {
  color: var(--blue-700);
}

.legal {
  padding-bottom: 3rem;
}

.legal .prose {
  max-width: 820px;
}

/* Footer */
.site-footer {
  margin-top: 2rem;
  background: #0b1f44;
  color: rgba(255, 255, 255, 0.82);
  padding: 2.4rem 0 1.6rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.6rem;
}

.site-footer h3 {
  margin: 0 0 0.7rem;
  color: #fff;
  font-size: 1rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.78);
}

.site-footer a:hover {
  color: #fff;
}

.footer-links {
  display: grid;
  gap: 0.45rem;
}

.footer-brand {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.footer-brand img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Error pages */
.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1rem;
}

.error-page h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  color: var(--blue-900);
  font-family: var(--font-display);
}

.error-page p {
  margin: 0 0 1.2rem;
  color: var(--muted);
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid,
  .content-block,
  .content-block.reverse {
    grid-template-columns: 1fr;
  }

  .content-block.reverse .text,
  .content-block.reverse .media {
    order: initial;
  }

  .toc {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .shot-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: 68px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0.8rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 0.7rem 0.75rem;
    border-radius: 8px;
  }

  .site-nav a:hover {
    background: var(--blue-50);
  }

  .site-nav a.active::after {
    display: none;
  }

  .nav-cta {
    margin-top: 0.35rem;
    border-radius: 10px;
  }

  .hero {
    padding-top: 1.6rem;
  }

  .hero-visual,
  .hero-visual img {
    min-height: 280px;
  }

  .toc,
  .feature-grid,
  .shot-row,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .feature-card img,
  .shot-row img {
    aspect-ratio: 3 / 4;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
