:root {
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-soft: #dbeafe;
  --dark: #0a0f1a;
  --green: #16a34a;
  --amber: #d97706;
  --red: #dc2626;
  --container: 1120px;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

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

.section {
  padding: 5rem 0;
}

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

.nav-inner,
.footer-inner,
.cta-row,
.cta-actions,
.sample-actions,
.page-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-inner {
  min-height: 64px;
}

.logo,
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
}

.logo-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.btn-lang {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.35rem 0.55rem;
  color: var(--text);
  font-size: 0.875rem;
  line-height: 1;
}

.nav-links a:not(.btn) {
  color: var(--muted);
  font-size: 0.95rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 0.85rem 1.2rem;
  font-weight: 600;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  cursor: pointer;
  appearance: none;
  background: none;
  text-align: center;
}

.btn-sm {
  padding: 0.6rem 0.9rem;
  border-radius: 10px;
  font-size: 0.9rem;
}

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

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

.btn-secondary {
  background: #fff;
  color: var(--text);
  border-color: var(--border);
}

.hero {
  padding: 6rem 0 3rem;
}

.hero-badge,
.section-label,
.step-label,
.mono,
.faq-list summary::before {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.hero-badge {
  display: inline-block;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 0.75rem;
  margin-bottom: 1rem;
}

.hero h1,
.section-title,
.final-cta h2 {
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.hero h1 {
  max-width: 860px;
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  margin: 0 0 1rem;
}

.hero h1 span,
.section-label {
  color: var(--primary);
}

.hero-sub,
.section-desc,
.step-card p,
.card p,
.faq-body,
.footer-copy {
  color: var(--muted);
}

.hero-sub {
  max-width: 760px;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  align-items: center;
}

.hero-note {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.section-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  margin-bottom: 0.75rem;
}

.section-title {
  max-width: 820px;
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin: 0 0 0.75rem;
}

.section-desc {
  max-width: 720px;
  margin-bottom: 2rem;
}

.grid-2,
.steps-grid,
.report-preview,
.faq-grid,
.link-grid {
  display: grid;
  gap: 1.25rem;
}

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

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

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

.card,
.step-card,
.cta-card,
.faq-card,
.terminal-card,
.mini-report {
  padding: 1.5rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.problem-section,
.faq-section,
.final-cta {
  background: var(--bg-soft);
}

.step-card h3,
.card h3,
.cta-card h3,
.faq-card h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.step-label {
  color: var(--primary);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  margin-bottom: 0.85rem;
}

.list {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--muted);
}

.list li + li {
  margin-top: 0.65rem;
}

.cta-card {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(255, 255, 255, 0.98));
}

.cta-row,
.cta-actions,
.sample-actions,
.page-links {
  flex-wrap: wrap;
}

.terminal-card,
.mini-report {
  background: var(--dark);
  color: #e2e8f0;
  border-color: rgba(226, 232, 240, 0.08);
}

.terminal-section + .terminal-section {
  margin-top: 1.2rem;
}

.mono {
  font-size: 0.92rem;
}

.mono.blue {
  color: #60a5fa;
}

.mono.green {
  color: #4ade80;
}

.mono.amber,
.amber {
  color: #fbbf24;
}

.mono.red {
  color: #f87171;
}

.mono.muted {
  color: #94a3b8;
}

.badge-amber {
  display: inline-block;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.16);
  color: #fbbf24;
}

.tag-row {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.tag {
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.8rem;
  border: 1px solid var(--border);
  color: var(--muted);
}

.tag.dark {
  color: #cbd5e1;
  border-color: rgba(148, 163, 184, 0.28);
}

.faq-list {
  display: grid;
  gap: 1rem;
}

.faq-list details {
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
}

.faq-list summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

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

.faq-list summary::before {
  content: "+";
  color: var(--primary);
  font-size: 1rem;
}

.faq-list details[open] summary::before {
  content: "–";
}

.faq-body {
  margin-top: 0.85rem;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  background: #fff;
}

.footer-copy {
  margin: 0;
}

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

.page-links a {
  color: var(--primary);
}

@media (max-width: 960px) {
  .grid-2,
  .report-preview,
  .steps-grid,
  .faq-grid,
  .link-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav-inner,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 0.9rem;
  }

  .hero {
    padding-top: 4.5rem;
  }

  .hero-actions,
  .cta-actions,
  .sample-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn,
  .cta-actions .btn,
  .sample-actions .btn {
    width: 100%;
  }
}
