/* BMM Autodiagnose – stylesheet */

:root {
  --bg: #0d1117;
  --bg-2: #141a22;
  --surface: #1a212b;
  --line: #2a3340;
  --text: #e8edf3;
  --muted: #9aa6b4;
  --accent: #3fe03f;
  --warn: #f5a524;
  --accent-ink: #06210a;
  --ok: #3ddc84;
  --radius: 14px;
  --max: 1160px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: "Space Grotesk", Inter, sans-serif; line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
section { padding: 96px 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--accent); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); margin-top: 12px; }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 17px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 22px; border-radius: 10px; font-weight: 600; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap; font-size: 15px; transition: transform .15s, background .15s, border-color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #62ef62; }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--muted); }
.btn svg { width: 18px; height: 18px; }

/* Header */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13,17,23,.85); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-mark { width: 64px; height: 47px; color: var(--text); flex: none; }
.logo-text { font: 700 18px "Space Grotesk", sans-serif; line-height: 1.1; white-space: nowrap; }
.logo-text small { display: block; font: 500 11px Inter, sans-serif; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.nav-links { display: flex; gap: 22px; white-space: nowrap; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.nav-cta .btn { padding: 11px 16px; }
@media (max-width: 1180px) { .nav-cta .btn-ghost { display: none; } }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 8px; width: 44px; height: 44px; cursor: pointer; }
.menu-btn svg { margin: auto; width: 22px; height: 22px; }

/* Hero */
.hero { padding: 88px 0 96px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(600px 400px at 85% 20%, rgba(63,224,63,.14), transparent 70%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 48px 48px;
  opacity: .35; pointer-events: none;
  mask-image: linear-gradient(to bottom, #000 40%, transparent);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(36px, 6vw, 60px); margin: 18px 0 20px; }
.hero h1 span { color: var(--accent); }
.hero-lead { font-size: 18px; color: var(--muted); max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 36px; padding: 0; list-style: none; color: var(--muted); font-size: 15px; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points svg { width: 18px; height: 18px; color: var(--ok); flex: none; }

/* Scanner card */
.scanner {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line); border-radius: 20px; padding: 22px;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.7);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px;
}
.scanner-top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 14px; color: var(--muted); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.live { display: inline-flex; align-items: center; gap: 6px; color: var(--ok); }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(61,220,132,.6); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(61,220,132,0); } 100% { box-shadow: 0 0 0 0 rgba(61,220,132,0); } }
.code-row { display: grid; grid-template-columns: 70px 1fr auto; gap: 12px; align-items: center; padding: 11px 12px; border-radius: 10px; }
.code-row + .code-row { margin-top: 4px; }
.code-row:nth-child(odd) { background: rgba(255,255,255,.025); }
.code { color: var(--accent); font-weight: 600; }
.desc { color: var(--text); font-family: Inter, sans-serif; font-size: 14px; }
.tag { font-size: 11px; padding: 3px 8px; border-radius: 999px; font-family: Inter, sans-serif; font-weight: 600; }
.tag-warn { background: rgba(245,165,36,.15); color: var(--warn); }
.tag-ok { background: rgba(61,220,132,.13); color: var(--ok); }
.scanner-foot { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; }
.bar { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; margin-top: 8px; }
.bar i { display: block; height: 100%; width: 72%; background: var(--accent); border-radius: 6px; animation: load 3s ease-in-out infinite alternate; }
@keyframes load { from { width: 30%; } to { width: 92%; } }

/* Strip */
.strip { border-block: 1px solid var(--line); background: var(--bg-2); padding: 26px 0; }
.strip-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 32px; align-items: center; color: var(--muted); font-weight: 600; letter-spacing: .04em; font-size: 15px; }
.strip-inner span:first-child { color: var(--text); font-weight: 500; letter-spacing: 0; }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: border-color .2s, transform .2s;
}
.card:hover { border-color: rgba(63,224,63,.5); transform: translateY(-2px); }
.icon { width: 48px; height: 48px; border-radius: 12px; background: rgba(63,224,63,.12); color: var(--accent); display: grid; place-items: center; margin-bottom: 20px; }
.icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; }

/* Steps */
.alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { position: relative; padding: 28px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font: 700 14px "Space Grotesk", sans-serif; color: var(--accent);
  display: inline-block; padding: 4px 10px; border: 1px solid rgba(63,224,63,.4); border-radius: 999px; margin-bottom: 18px;
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }

/* Why */
.why { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.why-list { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; }
.why-item h3 { font-size: 18px; margin-bottom: 6px; display: flex; gap: 10px; align-items: center; }
.why-item h3 svg { width: 20px; height: 20px; color: var(--accent); flex: none; }
.why-item p { color: var(--muted); font-size: 15px; }
.callout { margin-top: 32px; padding: 22px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); }
.callout strong { display: block; margin-bottom: 4px; }
.callout p { color: var(--muted); font-size: 15px; }

/* Brands */
.brands { display: flex; flex-wrap: wrap; gap: 10px; }
.brands span { padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-weight: 500; font-size: 14px; background: var(--bg); }

/* FAQ */
.faq { max-width: 820px; }
details { border-bottom: 1px solid var(--line); }
summary {
  list-style: none; cursor: pointer; padding: 22px 0; font-weight: 600; font-size: 17px;
  display: flex; justify-content: space-between; gap: 20px; align-items: center;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font: 400 26px/1 Inter, sans-serif; color: var(--accent); transition: transform .2s; flex: none; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); padding: 0 0 22px; max-width: 720px; }

/* Contact */
.contact { display: grid; grid-template-columns: .85fr 1.15fr; gap: 40px; }
.info { display: grid; gap: 14px; align-content: start; }
.info-item { display: flex; gap: 16px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.info-item .icon { margin: 0; width: 44px; height: 44px; flex: none; }
.info-item small { display: block; color: var(--muted); font-size: 13px; }
.info-item a, .info-item div > span { font-weight: 600; text-decoration: none; }
.hours { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 6px; }
.hours td { padding: 3px 0; }
.hours td:last-child { text-align: right; color: var(--muted); }

form { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 32px; }
form h3 { font-size: 22px; margin-bottom: 6px; }
form > p { color: var(--muted); font-size: 15px; margin-bottom: 24px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.full { grid-column: 1 / -1; }
label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
input, select, textarea {
  width: 100%; padding: 13px 14px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg); color: var(--text); font: inherit; font-size: 15px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(63,224,63,.18); }
textarea { min-height: 120px; resize: vertical; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.form-note { color: var(--muted); font-size: 13px; margin-top: 14px; }

footer { border-top: 1px solid var(--line); padding: 36px 0; color: var(--muted); font-size: 14px; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--text); }

.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.4); text-decoration: none;
}
.wa-float svg { width: 28px; height: 28px; }

/* Responsive */
@media (max-width: 980px) {
  .hero-grid, .why, .contact { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 400px) { .nav-cta .btn-primary { display: none; } }
@media (max-width: 960px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .menu-btn { display: grid; }
  .nav-links.open {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 20px 16px;
  }
  .nav-links.open a { display: block; padding: 12px 0; font-size: 16px; }
}
@media (max-width: 640px) {
  section { padding: 72px 0; }
  .wrap { padding: 0 16px; }
  .hero { padding: 56px 0 72px; }
  .services, .steps, .why-list, .fields { grid-template-columns: 1fr; }
  .nav-cta .btn-primary { padding: 9px 12px; font-size: 13px; }
  .logo-mark { width: 48px; height: 35px; }
  .logo-text { font-size: 15px; }
  .logo-text small { display: none; }
  form { padding: 22px; }
  .code-row { grid-template-columns: 60px 1fr; }
  .code-row .tag { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
