:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-soft: #f8fbff;
  --text: #0f172a;
  --muted: #475569;
  --line: #dde3ee;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  --radius: 24px;
  --radius-sm: 16px;
  --container: 1120px;
}

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

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(10px);
  background: rgba(246, 247, 251, 0.92);
  border-bottom: 1px solid rgba(221, 227, 238, 0.85);
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  font-weight: 700;
  color: var(--text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--text);
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 14px;
  padding: 0.95rem 1.2rem;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff !important;
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.22);
}

.btn-primary:hover { background: var(--primary-dark); }

.btn-secondary {
  background: var(--surface);
  border-color: var(--line);
  color: var(--text);
}

.hero {
  padding: 56px 0 36px;
}

.hero-grid,
.grid-2,
.grid-3 {
  display: grid;
  gap: 24px;
}

.hero-grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: center;
}

.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.hero-copy {
  min-width: 0;
}

.hero-visual,
.hero-visual-large {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
  width: 100%;
}

.hero-image-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: stretch;
  width: 100%;
  max-width: 500px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #eff6ff;
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.92rem;
}

h1, h2, h3 {
  margin-top: 0;
  line-height: 1.15;
  color: var(--text);
}

h1 {
  font-size: clamp(2.25rem, 4.5vw, 4rem);
  margin-bottom: 1rem;
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}

h3 {
  font-size: 1.15rem;
  margin-bottom: 0.45rem;
}

.lead {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 680px;
  margin-bottom: 1.5rem;
}

.subnote, p, li { color: var(--muted); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 0.9rem;
}

.panel,
.card,
.step,
.cta-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.panel {
  overflow: hidden;
  padding: 16px;
}

.panel img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  object-fit: cover;
}

.hero-panel {
  border-radius: 28px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 16px 40px rgba(15, 23, 66, 0.08);
  padding: 0;
  aspect-ratio: 1.52 / 1;
}

.hero-panel img {
  width: 100%;
  height: 100%;
  border-radius: 0;
  display: block;
  object-fit: cover;
}

.hero-panel-main {
  transform: none;
}

.hero-panel-secondary {
  transform: none;
}

.card {
  padding: 24px;
}

.section {
  padding: 30px 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 20px;
}

.feature-number,
.step-number {
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: #eff6ff;
  color: var(--primary-dark);
  font-weight: 800;
  margin-bottom: 0.8rem;
  flex-shrink: 0;
}

.steps {
  display: grid;
  gap: 16px;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  padding: 20px;
}

.resource-list {
  margin: 0;
  padding-left: 1.15rem;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: var(--shadow);
}

.faq details + details { margin-top: 14px; }

.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--text);
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  float: right;
  color: var(--primary-dark);
}

.faq details[open] summary::after { content: "−"; }

.page-hero {
  padding: 46px 0 18px;
}

.page-wrap {
  display: grid;
  gap: 20px;
}

.back-link {
  display: inline-block;
  margin-bottom: 16px;
  font-weight: 700;
}

.page-wrap h1 {
  font-size: clamp(2rem, 3.2vw, 2.6rem);
}

.page-wrap h2 {
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}

.page-wrap h3 {
  font-size: 1.1rem;
}

.cta {
  padding: 34px 0 54px;
}

.cta-box {
  text-align: center;
  padding: 34px 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
}

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 28px 0 36px;
  margin-top: 20px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a { color: var(--muted); }

@media (min-width: 1200px) {
  .hero-grid {
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  }

  .hero-image-stack {
    max-width: 540px;
    gap: 22px;
  }
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-visual,
  .hero-visual-large {
    justify-content: flex-start;
  }

  .hero-image-stack {
    max-width: 560px;
  }
}

@media (max-width: 920px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-top {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .nav-links {
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding-top: 8px;
  }

  .nav-links.show { display: flex; }

  .nav-links a,
  .nav-links .btn {
    width: 100%;
  }

  .hero {
    padding-top: 34px;
  }
}

@media (max-width: 768px) {
  .hero-image-stack {
    grid-template-columns: 1fr;
    max-width: 100%;
    gap: 18px;
  }

  .hero-visual,
  .hero-visual-large {
    justify-content: center;
  }

  .hero-panel {
    border-radius: 22px;
    padding: 0;
  }

  .hero-panel img {
    border-radius: 0;
  }

  .page-wrap h1 {
    font-size: 1.95rem;
  }

  .page-wrap h2 {
    font-size: 1.35rem;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(var(--container), calc(100% - 22px));
  }

  .site-header {
    position: static;
  }

  .hero,
  .page-hero {
    padding-top: 26px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn,
  .btn-mobile-full {
    width: 100%;
  }

  .eyebrow {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 10px 12px;
  }

  .panel,
  .card,
  .step,
  .cta-box,
  .faq details {
    border-radius: 18px;
    padding: 18px;
  }

  .step {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.55rem;
  }

  .lead {
    font-size: 1rem;
  }

  .page-wrap h1 {
    font-size: 1.8rem;
  }

  .page-wrap h2 {
    font-size: 1.25rem;
  }

  .page-wrap h3 {
    font-size: 1rem;
  }
}
