:root {
  --m-bg: #efefef;
  --m-surface: #ffffff;
  --m-surface-strong: #f5f5f6;
  --m-border: rgba(10, 11, 16, 0.08);
  --m-text: #1a1c1c;
  --m-muted: #5e5e64;
  --m-primary: #4648d4;
  --m-primary-strong: #3739b8;
  --m-accent: #4648d4;
  --m-max: 1120px;
  --m-font: 'Geist', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --m-font-display: 'Hanken Grotesk', 'Geist', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--m-bg);
  color: var(--m-text);
  font-family: var(--m-font);
  line-height: 1.6;
}

a { color: inherit; }

.m-page {
  position: relative;
}

.m-wrap { width: min(var(--m-max), calc(100% - 48px)); margin-inline: auto; }

.m-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--m-border);
  background: rgba(239, 239, 239, 0.88);
  backdrop-filter: blur(16px);
}

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

.m-brand { display: inline-flex; align-items: center; gap: 0.6rem; flex: 0 0 auto; color: var(--m-text); }
.m-brand-icon { width: 2.1rem; height: 2.1rem; object-fit: contain; flex: 0 0 auto; }
.m-brand-word { font-family: var(--m-font-display); font-size: 1.15rem; font-weight: 700; color: var(--m-text); letter-spacing: -0.01em; }
.m-brand-tm { font-size: 0.55em; font-weight: 700; margin-left: 0.1em; }

.m-nav { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 0.3rem 1.1rem; }

.m-nav a,
.m-footer a {
  color: var(--m-muted);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
}

.m-nav a:hover,
.m-footer a:hover { color: var(--m-text); }

.m-nav .m-nav-cta {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 0.85rem;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #eeeeee;
  background: var(--m-primary);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.25);
}

.m-nav .m-nav-cta:hover { background: var(--m-primary-strong); }

.m-nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border: none;
  background: none;
  padding: 0;
  position: relative;
  cursor: pointer;
}

.m-nav-toggle-bar,
.m-nav-toggle::before,
.m-nav-toggle::after {
  content: '';
  position: absolute;
  left: 9px;
  right: 9px;
  height: 2px;
  border-radius: 2px;
  background: var(--m-text);
  transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
}

.m-nav-toggle::before { top: 11px; }
.m-nav-toggle-bar { top: 19px; }
.m-nav-toggle::after { top: 27px; }

.m-nav-toggle[aria-expanded="true"] .m-nav-toggle-bar { background: transparent; }
.m-nav-toggle[aria-expanded="true"]::before { top: 19px; transform: rotate(45deg); }
.m-nav-toggle[aria-expanded="true"]::after { top: 19px; transform: rotate(-45deg); }

.m-hero { padding: clamp(4.25rem, 9vw, 7.5rem) 0 3.5rem; }

.m-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(290px, 0.8fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}

.m-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: var(--m-primary);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.m-kicker::before {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--m-primary);
  content: "";
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  max-width: 790px;
  margin-bottom: 1.25rem;
  color: var(--m-text);
  font-family: var(--m-font-display);
  font-weight: 400;
  font-size: clamp(2.3rem, 5vw, 4.1rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

h1 strong { color: var(--m-primary); font-weight: inherit; }

.m-lead {
  max-width: 700px;
  margin-bottom: 1.6rem;
  color: var(--m-muted);
  font-size: clamp(1.02rem, 2vw, 1.16rem);
}

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

.m-button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #eeeeee;
  background: var(--m-primary);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.25);
  font-size: 0.92rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.m-button:hover { background: var(--m-primary-strong); }

.m-button-secondary {
  border-color: var(--m-border);
  background: transparent;
  color: var(--m-text);
  box-shadow: none;
}

.m-button-secondary:hover { background: rgba(70, 72, 212, 0.08); border-color: var(--m-primary); }

.m-trust { display: flex; flex-wrap: wrap; gap: 0.65rem 1.2rem; margin-top: 1.25rem; color: var(--m-muted); font-size: 0.78rem; font-weight: 700; }
.m-trust span::before { margin-right: 0.38rem; color: var(--m-primary); content: "✓"; }

.m-demo-card {
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--m-border);
  border-radius: 20px;
  background: var(--m-surface);
  box-shadow: 0 24px 60px rgba(10, 11, 16, 0.1);
}

.m-demo-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.35rem; }
.m-demo-label { margin: 0; color: var(--m-text); font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; }
.m-demo-pill { padding: 0.3rem 0.55rem; border-radius: 99px; background: rgba(70, 72, 212, 0.12); color: var(--m-primary); font-size: 0.7rem; font-weight: 800; }
.m-demo-value { margin: 0.2rem 0 0; color: var(--m-text); font-size: 2.3rem; font-weight: 800; line-height: 1; }
.m-demo-copy { margin: 0.4rem 0 1.35rem; color: var(--m-muted); font-size: 0.84rem; }
.m-progress { height: 11px; overflow: hidden; border-radius: 99px; background: var(--m-border); }
.m-progress span { display: block; width: 70%; height: 100%; border-radius: inherit; background: var(--m-primary); }
.m-stamps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.5rem; margin-top: 1.15rem; }
.m-stamps span { aspect-ratio: 1; display: grid; place-items: center; border: 1px solid var(--m-border); border-radius: 9px; color: var(--m-text); background: var(--m-surface-strong); font-weight: 900; }
.m-stamps span:last-child { color: #ffffff; border-color: var(--m-primary); background: var(--m-primary); }

.m-section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.m-section-muted { border-top: 1px solid var(--m-border); border-bottom: 1px solid var(--m-border); background: rgba(10, 11, 16, 0.02); }
.m-section-heading { max-width: 760px; margin-bottom: 2.1rem; }
.m-section-heading h2 { margin-bottom: 0.75rem; color: var(--m-text); font-family: var(--m-font); font-weight: 700; font-size: clamp(1.8rem, 3vw, 2.65rem); line-height: 1.16; letter-spacing: -0.03em; }
.m-section-heading p { margin-bottom: 0; color: var(--m-muted); }

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

.m-card {
  padding: 1.35rem;
  border: 1px solid var(--m-border);
  border-radius: 14px;
  background: var(--m-surface);
}

.m-card-icon { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 1rem; border-radius: 10px; background: rgba(70, 72, 212, 0.12); color: var(--m-primary); font-size: 1.15rem; font-weight: 900; }
.m-card h3 { margin-bottom: 0.55rem; color: var(--m-text); font-size: 1.05rem; line-height: 1.3; }
.m-card p { margin-bottom: 0; color: var(--m-muted); font-size: 0.9rem; }

.m-steps { display: grid; gap: 1rem; counter-reset: step; }
.m-step { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 1rem; align-items: start; padding: 1.2rem; border: 1px solid var(--m-border); border-radius: 14px; background: var(--m-surface); }
.m-step::before { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: rgba(70, 72, 212, 0.12); color: var(--m-primary); font-size: 0.85rem; font-weight: 900; counter-increment: step; content: counter(step); }
.m-step h3 { margin: 0 0 0.3rem; color: var(--m-text); font-size: 1rem; }
.m-step p { margin: 0; color: var(--m-muted); font-size: 0.9rem; }

.m-checklist { display: grid; gap: 0.75rem; padding: 0; margin: 0; list-style: none; }
.m-checklist li { position: relative; padding-left: 1.75rem; color: var(--m-text); }
.m-checklist li::before { position: absolute; top: 0.12rem; left: 0; width: 1.1rem; height: 1.1rem; display: grid; place-items: center; border-radius: 50%; color: #ffffff; background: var(--m-primary); font-size: 0.7rem; font-weight: 900; content: "✓"; }

.m-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.m-note { padding: 1.4rem; border-left: 3px solid var(--m-primary); border-radius: 0 12px 12px 0; background: rgba(70, 72, 212, 0.06); color: var(--m-text); }
.m-note strong { color: var(--m-text); }

.m-faq { display: grid; gap: 0.7rem; }
.m-faq details { padding: 0 1.1rem; border: 1px solid var(--m-border); border-radius: 11px; background: var(--m-surface); }
.m-faq summary { min-height: 58px; display: flex; align-items: center; cursor: pointer; color: var(--m-text); font-size: 0.96rem; font-weight: 800; }
.m-faq p { margin: -0.35rem 0 1rem; color: var(--m-muted); font-size: 0.9rem; }

.m-link-list { display: grid; gap: 0.65rem; }
.m-link-list a { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.7rem 0.95rem; border: 1px solid var(--m-border); border-radius: 10px; color: var(--m-text); background: var(--m-surface); font-size: 0.88rem; font-weight: 800; text-decoration: none; }
.m-link-list a:hover { border-color: var(--m-primary); background: rgba(70, 72, 212, 0.06); }
.m-link-list a span { color: var(--m-primary); font-size: 1.15rem; }

.m-cta { padding: clamp(2rem, 5vw, 3.5rem); border: 1px solid rgba(70, 72, 212, 0.18); border-radius: 20px; background: linear-gradient(125deg, rgba(70, 72, 212, 0.08), rgba(255, 255, 255, 0.9)); text-align: center; }
.m-cta h2 { max-width: 720px; margin: 0 auto 0.75rem; color: var(--m-text); font-size: clamp(1.75rem, 3vw, 2.4rem); line-height: 1.2; }
.m-cta p { max-width: 660px; margin: 0 auto 1.35rem; color: var(--m-muted); }
.m-cta .m-actions { justify-content: center; }

.m-footer { padding: 2.5rem 0 calc(2.5rem + env(safe-area-inset-bottom)); margin-top: 4rem; border-top: 1px solid var(--m-border); }
.m-footer-grid { display: grid; grid-template-columns: 1.2fr 2fr; gap: 2rem; }
.m-footer p { max-width: 360px; margin: 0.75rem 0 0; color: var(--m-muted); font-size: 0.82rem; }
.m-footer-links { display: flex; flex-wrap: wrap; align-content: start; gap: 0.75rem 1.25rem; }
.m-footer-meta { margin-top: 1.35rem; color: var(--m-muted); font-size: 0.72rem; }

@media (max-width: 800px) {
  .m-hero-grid,
  .m-split,
  .m-footer-grid { grid-template-columns: 1fr; }
  .m-grid-3 { grid-template-columns: 1fr; }
  .m-header-inner { min-height: 64px; }
  .m-nav { gap: 0.2rem 0.8rem; }
}

@media (max-width: 560px) {
  .m-wrap { width: min(var(--m-max), calc(100% - 32px)); }
  .m-header { position: static; }
  .m-header-inner { flex-wrap: wrap; padding: 1rem 0; }
  .m-nav-toggle { display: inline-flex; }
  .m-nav {
    flex: 1 0 100%;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.2s ease, opacity 0.2s ease;
  }
  .m-nav.is-open { max-height: 420px; opacity: 1; margin-top: 0.75rem; }
  .m-nav a { min-height: 44px; width: 100%; display: inline-flex; align-items: center; border-bottom: 1px solid var(--m-border); }
  .m-nav .m-nav-cta { margin-top: 0.5rem; width: 100%; justify-content: center; border-bottom: none; }
  .m-hero { padding-top: 3.25rem; }
  .m-grid-2 { grid-template-columns: 1fr; }
  .m-actions { display: grid; grid-template-columns: 1fr; }
  .m-button { width: 100%; }
  .m-trust { display: grid; gap: 0.5rem; }
  .m-demo-card { padding: 1.2rem; }
}

.m-note-warn { border-left-color: #d97706; background: rgba(217, 119, 6, 0.08); }
.m-note-warn strong { color: #92400e; }

.m-help-grid { display: grid; gap: 1rem; }
.m-help-card { padding: 1.4rem; border: 1px solid var(--m-border); border-radius: 14px; background: var(--m-surface); }
.m-help-card h3 { display: flex; align-items: center; gap: 0.6rem; margin: 0 0 0.5rem; color: var(--m-text); font-size: 1.05rem; }
.m-help-card h3 .m-help-emoji { font-size: 1.3rem; }
.m-help-card p { margin: 0; color: var(--m-muted); font-size: 0.92rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
