:root {
  --bg: #070b14;
  --bg-elevated: #0e1525;
  --bg-card: #121b2f;
  --bg-card-hover: #17223b;
  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(99, 102, 241, 0.45);
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --text-soft: #cbd5e1;
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --accent: #10b981;
  --accent-soft: rgba(16, 185, 129, 0.14);
  --primary-soft: rgba(99, 102, 241, 0.14);
  --warning-soft: rgba(245, 158, 11, 0.12);
  --warning: #fbbf24;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.65);
  --max-width: 1140px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  background: radial-gradient(
      circle at 15% 0%,
      rgba(99, 102, 241, 0.16),
      transparent 42%
    ),
    radial-gradient(
      circle at 85% 10%,
      rgba(16, 185, 129, 0.1),
      transparent 36%
    ),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(7, 11, 20, 0.82);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.95rem;
  color: #fff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--text);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.94rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease,
    border-color 0.15s ease, box-shadow 0.15s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #4f46e5);
  color: #fff;
  box-shadow: 0 10px 25px -10px rgba(99, 102, 241, 0.75);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #7275f5, var(--primary-hover));
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent), #059669);
  color: #032217;
  font-weight: 700;
}

.btn-accent:hover {
  filter: brightness(1.06);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(148, 163, 184, 0.35);
}

.btn-sm {
  padding: 0.52rem 0.95rem;
  font-size: 0.86rem;
}

/* Hero */
.hero {
  padding: 4.5rem 0 3.25rem;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--primary-soft);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: #c7d2fe;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.hero h1 {
  margin: 0 auto 1rem;
  max-width: 780px;
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  line-height: 1.14;
  letter-spacing: -0.03em;
}

.hero p.lead {
  margin: 0 auto 2rem;
  max-width: 650px;
  color: var(--text-soft);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-bottom: 2.75rem;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: 760px;
  margin: 0 auto;
}

.stat-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.05rem;
}

.stat-value {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
}

.stat-label {
  font-size: 0.83rem;
  color: var(--text-muted);
}

/* Sections */
.section {
  padding: 3.5rem 0;
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.section-kicker {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.section-title {
  margin: 0;
  font-size: clamp(1.5rem, 2.8vw, 2.05rem);
  letter-spacing: -0.02em;
}

.section-sub {
  margin: 0.4rem 0 0;
  color: var(--text-muted);
  max-width: 640px;
}

/* Step 1 Banner */
.step-card {
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.14),
    rgba(16, 185, 129, 0.07)
  );
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: grid;
  grid-template-columns: 1.5fr auto;
  gap: 1.5rem;
  align-items: center;
  box-shadow: var(--shadow);
}

.step-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #6ee7b7;
  margin-bottom: 0.6rem;
}

.step-card h2 {
  margin: 0 0 0.45rem;
  font-size: 1.38rem;
}

.step-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.96rem;
}

.step-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-width: 230px;
}

/* Filter Bar */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pill:hover {
  color: var(--text);
  border-color: rgba(148, 163, 184, 0.35);
}

.pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.search-input {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.58rem 0.9rem;
  color: var(--text);
  font-size: 0.9rem;
  min-width: 240px;
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
}

/* Template Grid */
.template-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}

.template-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  transition: transform 0.16s ease, border-color 0.16s ease,
    background 0.16s ease;
}

.template-card:hover {
  transform: translateY(-2px);
  border-color: rgba(99, 102, 241, 0.45);
  background: var(--bg-card-hover);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.template-num {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
}

.category-tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  background: var(--primary-soft);
  color: #c7d2fe;
}

.template-card h3 {
  margin: 0.45rem 0 0.35rem;
  font-size: 1.12rem;
}

.flow-line {
  font-size: 0.82rem;
  color: #6ee7b7;
  font-weight: 600;
  margin-bottom: 0.55rem;
}

.template-desc {
  margin: 0;
  font-size: 0.91rem;
  color: var(--text-soft);
}

.highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.highlight-chip {
  font-size: 0.76rem;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border);
}

/* Checklist & Support Grid */
.two-col {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.25rem;
}

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

.checklist {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  cursor: pointer;
}

.check-item input {
  margin-top: 0.22rem;
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.check-item.done .check-title {
  text-decoration: line-through;
  color: var(--text-muted);
}

.check-title {
  display: block;
  font-weight: 600;
  font-size: 0.94rem;
}

.check-note {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.progress-wrap {
  margin-top: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.progress-bar {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.2s ease;
}

/* Support Panel */
.support-panel {
  background: linear-gradient(
    160deg,
    rgba(16, 185, 129, 0.12),
    var(--bg-card) 55%
  );
  border-color: rgba(16, 185, 129, 0.35);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
}

.support-list {
  margin: 0.75rem 0 0;
  padding-left: 1.15rem;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.support-list li {
  margin-bottom: 0.45rem;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  padding: 1rem 1.2rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.faq-item p {
  margin: 0;
  padding: 0 1.2rem 1.1rem;
  color: var(--text-soft);
  font-size: 0.93rem;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.75);
  backdrop-filter: blur(6px);
  display: none;
  place-items: center;
  padding: 1.25rem;
  z-index: 100;
}

.modal-backdrop.open {
  display: grid;
}

.modal {
  width: 100%;
  max-width: 480px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
}

.modal h3 {
  margin: 0 0 0.5rem;
}

.modal p {
  color: var(--text-soft);
  font-size: 0.94rem;
  margin: 0 0 1.2rem;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 3rem;
  margin-top: 2rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

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

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

.disclosure {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  line-height: 1.5;
}

@media (max-width: 860px) {
  .step-card,
  .template-grid,
  .two-col {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }
}

@media (max-width: 560px) {
  .stats-strip {
    grid-template-columns: 1fr;
  }

  .search-input {
    width: 100%;
  }
}
