:root {
  --accent: #3f596b;
  --accent-light: #5a7a91;
  --bg: #f7f8fa;
  --bg-elevated: #ffffff;
  --text: #1a1f2e;
  --text-muted: #5c6478;
  --border: #e2e6ee;
  --hero-bg: #0f131c;
  --hero-text: #f4f6fa;
  --radius: 12px;
  --shadow: 0 12px 40px rgba(15, 19, 28, 0.08);
  --max-width: 960px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-light);
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 22%;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(15, 19, 28, 0.12);
}

.logo-text span {
  color: var(--accent);
}

.logo span {
  color: var(--accent);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-app-icon {
  width: min(11rem, 42vw);
  height: auto;
  border-radius: 22%;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}

.page-hero-icon {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 22%;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}

.nav-toggle {
  display: none;
}

.nav-list {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: var(--accent);
}

.hero {
  background: linear-gradient(160deg, var(--hero-bg) 0%, #1a2438 100%);
  color: var(--hero-text);
  padding: 4.5rem 0 4rem;
}

.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9eb4c9;
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 2.85rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  max-width: 18ch;
}

.hero-lead {
  font-size: 1.15rem;
  color: #c8d2df;
  max-width: 42ch;
  margin: 0 0 1rem;
}

.hero-byline {
  font-size: 0.95rem;
  color: #9eb4c9;
  max-width: 42ch;
  margin: 0 0 1.75rem;
}

.hero-byline a {
  color: #d4e4f4;
  text-decoration: none;
  font-weight: 600;
}

.hero-byline a:hover {
  text-decoration: underline;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease;
}

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

.btn-primary {
  background: var(--accent-light);
  color: #fff;
}

.btn-primary:hover {
  background: #6d8da4;
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.section {
  padding: 3.5rem 0;
}

.section-header {
  margin-bottom: 2rem;
}

.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

.section-header p {
  color: var(--text-muted);
  margin: 0;
  max-width: 55ch;
}

.feature-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.feature-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  background: rgba(63, 89, 107, 0.12);
  color: var(--accent);
  font-size: 1.2rem;
  margin-bottom: 0.85rem;
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

.steps li {
  counter-increment: step;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1.25rem 3.75rem;
  position: relative;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 1.25rem;
  top: 1.25rem;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.steps strong {
  display: block;
  margin-bottom: 0.25rem;
}

.steps p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.callout {
  background: rgba(63, 89, 107, 0.08);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

.callout p {
  margin: 0;
  color: var(--text);
}

.page-title {
  padding: 2.5rem 0 1rem;
}

.page-title h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  letter-spacing: -0.02em;
}

.page-title p {
  margin: 0;
  color: var(--text-muted);
  max-width: 60ch;
}

.prose {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  margin-bottom: 3rem;
}

.prose h2 {
  font-size: 1.35rem;
  margin: 2rem 0 0.75rem;
  letter-spacing: -0.01em;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  font-size: 1.1rem;
  margin: 1.5rem 0 0.5rem;
}

.prose p,
.prose li {
  color: var(--text);
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
}

.prose li {
  margin-bottom: 0.35rem;
}

.prose li ul {
  margin-top: 0.35rem;
}

.prose .muted {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.toc {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
}

.toc strong {
  display: block;
  margin-bottom: 0.5rem;
}

.toc ol {
  margin: 0;
  padding-left: 1.25rem;
}

.toc a {
  text-decoration: none;
}

.toc a:hover {
  text-decoration: underline;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-brand {
  max-width: 36ch;
}

.footer-brand p {
  margin: 0;
  line-height: 1.55;
}

.footer-brand a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.footer-brand a:hover {
  text-decoration: underline;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

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

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

@media (max-width: 720px) {
  .nav-toggle-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.65rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--text);
  }

  .nav-toggle {
    display: block;
    position: absolute;
    opacity: 0;
    pointer-events: none;
  }

  .site-header .container {
    position: relative;
    flex-wrap: wrap;
  }

  .nav-toggle-label {
    margin-left: auto;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    width: 100%;
    padding-top: 0.5rem;
  }

  .nav-toggle:checked ~ .nav-list {
    display: flex;
  }

  .prose {
    padding: 1.25rem;
  }
}

@media (min-width: 721px) {
  .nav-toggle-label {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}
