/* MeshMigo marketing site — matches the app's dark "tactical" theme. */
:root {
  --bg: #07090e;
  --bg-soft: #0d1117;
  --panel: #0f141c;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(0, 223, 130, 0.35);
  --accent: #00df82;
  --accent-light: #69f0ae;
  --accent-glow: rgba(0, 223, 130, 0.25);
  --amber: #f59e0b;
  --text: #e8eef0;
  --muted: #8a96a3;
  --max: 1100px;
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* faint topo/grid texture */
  background-image:
    radial-gradient(1200px 600px at 50% -10%, rgba(0, 223, 130, 0.10), transparent 60%),
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: auto, 44px 44px, 44px 44px;
  background-attachment: fixed;
}
a { color: var(--accent-light); text-decoration: none; }
a:hover { color: var(--accent); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.4em; }
p { margin: 0 0 1em; color: #cdd6dd; }
.muted { color: var(--muted); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 22px; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 22px; border-radius: 999px; font-weight: 700; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #04130d; box-shadow: 0 6px 26px var(--accent-glow); }
.btn-primary:hover { transform: translateY(-1px); color: #04130d; box-shadow: 0 10px 32px var(--accent-glow); }
.btn-ghost { background: rgba(255, 255, 255, 0.04); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--border-strong); color: var(--text); }
.btn[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }

/* ---- header ---- */
header.site {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(7, 9, 14, 0.72);
  border-bottom: 1px solid var(--border);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: 0.01em; color: var(--text); }
.brand svg { width: 26px; height: 26px; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--muted); font-size: 14px; font-weight: 600; }
.nav-links a:hover { color: var(--text); }
@media (max-width: 720px) { .nav-links a:not(.btn) { display: none; } }

/* ---- hero ---- */
.hero { padding: 72px 0 40px; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-light); padding: 6px 14px; border: 1px solid var(--border-strong);
  border-radius: 999px; background: rgba(0, 223, 130, 0.06); margin-bottom: 22px;
}
.hero h1 { font-size: clamp(34px, 6vw, 60px); font-weight: 850; max-width: 16ch; margin-inline: auto; }
.hero h1 .grad { color: var(--accent); }
.hero .sub { font-size: clamp(16px, 2.4vw, 20px); color: #b9c4cc; max-width: 60ch; margin: 18px auto 30px; }
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-note { margin-top: 16px; font-size: 13px; color: var(--muted); }

/* Hero layout — ONE markup, two layouts:
   • phones (default): single column, centered, phone below the copy
   • desktop (>=940px): two columns, copy left-aligned, phone on the right
   The browser switches automatically at the breakpoint, even on live resize. */
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 30px; align-items: center; }
.hero-art { display: flex; justify-content: center; padding-top: 6px; }
@media (min-width: 940px) {
  .hero { text-align: left; padding: 96px 0 76px; }
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 52px; }
  .hero h1 { margin-inline: 0; max-width: 15ch; }
  .hero .sub { margin: 20px 0 30px; }
  .cta-row { justify-content: flex-start; }
  .hero-art { justify-content: flex-end; }
  .hero-art .phone { width: 332px; }
}

/* ---- phone frame ---- */
.phone {
  width: 300px; max-width: 82vw; aspect-ratio: 9 / 19;
  border-radius: 36px; border: 1px solid var(--border);
  background: #05070b; padding: 12px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 223, 130, 0.08), 0 0 60px var(--accent-glow);
}
.phone .screen { width: 100%; height: 100%; border-radius: 26px; overflow: hidden; display: block; background: #0a0e14; }

/* ---- sections ---- */
section { padding: 64px 0; }
.section-head { text-align: center; max-width: 60ch; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(26px, 4vw, 38px); }
.section-head p { font-size: 17px; }

/* ---- feature grid ---- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }
.card {
  background: linear-gradient(180deg, var(--panel), rgba(15, 20, 28, 0.4));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 24px;
  transition: border-color .2s ease, transform .12s ease;
}
.card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.card .ico {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(0, 223, 130, 0.10); border: 1px solid var(--border-strong); margin-bottom: 16px;
}
.card .ico svg { width: 22px; height: 22px; stroke: var(--accent); }
.card h3 { font-size: 18px; }
.card p { font-size: 14.5px; margin: 0; color: var(--muted); }

/* ---- screenshot gallery ---- */
.shots { display: flex; gap: 26px; justify-content: center; align-items: flex-end; flex-wrap: wrap; }
.shot { text-align: center; }
.shot .phone-sm {
  width: 230px; max-width: 70vw; aspect-ratio: 9 / 19;
  border-radius: 30px; border: 1px solid var(--border); background: #05070b; padding: 9px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 223, 130, 0.10);
  transition: transform .15s ease;
}
.shot .phone-sm:hover { transform: translateY(-4px); }
.shot .phone-sm img { width: 100%; height: 100%; border-radius: 22px; display: block; }
.shot .cap { margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--text); }
.shot .cap span { display: block; font-size: 12.5px; font-weight: 400; color: var(--muted); margin-top: 2px; }
.shot.mid .phone-sm { width: 252px; box-shadow: 0 36px 70px rgba(0, 0, 0, 0.55), 0 0 56px var(--accent-glow); }

/* ---- how it works ---- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 720px) { .steps { grid-template-columns: 1fr; } }
.step { padding: 24px; border: 1px dashed var(--border); border-radius: var(--radius); position: relative; }
.step .n { font-family: ui-monospace, monospace; font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: 0.1em; }
.step h3 { font-size: 18px; margin-top: 8px; }
.step p { font-size: 14.5px; margin: 0; color: var(--muted); }

/* ---- hardware strip ---- */
.strip {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: rgba(0, 223, 130, 0.04); padding: 30px; text-align: center;
}
.strip h3 { font-size: 20px; }
.strip p { max-width: 64ch; margin: 0 auto; }

/* ---- cta band ---- */
.cta-band { text-align: center; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: rgba(0, 223, 130, 0.03); }
.cta-band h2 { font-size: clamp(26px, 4vw, 40px); }

/* ---- footer ---- */
footer.site { padding: 40px 0; border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; }
footer.site .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
footer.site .links { display: flex; gap: 22px; flex-wrap: wrap; }
footer.site a { color: var(--muted); }
footer.site a:hover { color: var(--text); }

/* ---- legal page ---- */
.legal { max-width: 760px; margin: 0 auto; padding: 60px 22px; }
.legal h1 { font-size: 34px; }
.legal h2 { font-size: 22px; margin-top: 36px; }
.legal p, .legal li { color: #c3cdd4; }
.legal .updated { color: var(--muted); font-size: 14px; margin-bottom: 32px; }
.legal a { color: var(--accent-light); }
.legal .note { border-left: 3px solid var(--amber); background: rgba(245, 158, 11, 0.06); padding: 12px 16px; border-radius: 8px; color: #e8d9bd; font-size: 14px; }
