/* ===== Macifique shared styles ===== */
:root {
  --bg: #0f1720;
  --surface: #16212e;
  --surface-2: #1b2938;
  --text: #e7edf3;
  --muted: #9fb0c0;
  --accent: #35c6b4;      /* brand accent */
  --accent-ink: #06231f;  /* text on accent */
  --border: #253544;
  --danger: #e56a6a;
  --ok: #4bbf87;
  --maxw: 980px;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ===== Header / nav ===== */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(15,23,32,.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 16px 24px; max-width: var(--maxw); margin: 0 auto;
}
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 1.2rem; letter-spacing: .3px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand span { color: var(--accent); }
.brand-mark { flex: none; display: block; }
.nav-links { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
.nav-links a { color: var(--muted); font-size: .95rem; }
.nav-links a:hover, .nav-links a.active { color: var(--text); text-decoration: none; }

/* ===== Buttons ===== */
.btn {
  display: inline-block; background: var(--accent); color: var(--accent-ink) !important;
  font-weight: 600; padding: 12px 24px; border-radius: 10px; border: none; cursor: pointer;
  font-size: 1rem;
}
.btn:hover { text-decoration: none; filter: brightness(1.07); }
.btn.ghost {
  background: transparent; color: var(--text) !important;
  border: 1px solid var(--border);
}
.btn.ghost:hover { border-color: var(--accent); }

/* ===== Hero ===== */
.hero { padding: 72px 24px 40px; text-align: center; }
.hero .eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: 1.5px; font-size: .8rem; font-weight: 600; }
.hero h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.12; margin: 14px 0 18px; }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 660px; margin: 0 auto 28px; }
.hero .cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ===== Sections ===== */
section.block { padding: 44px 0; border-top: 1px solid var(--border); }
section.block:first-of-type { border-top: none; }
h2 { font-size: 1.7rem; margin: 0 0 8px; }
.section-intro { color: var(--muted); max-width: 680px; margin: 0 0 24px; }
.pill { display: inline-block; font-size: .78rem; text-transform: uppercase; letter-spacing: .5px;
  color: var(--accent); border: 1px solid var(--border); border-radius: 999px; padding: 3px 12px; }

/* ===== Cards ===== */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
}
.card h3 { margin: 6px 0 8px; font-size: 1.15rem; }
.card p { margin: 0; color: var(--muted); font-size: .97rem; }
.card .tag { font-size: .78rem; color: var(--accent); text-transform: uppercase; letter-spacing: .6px; font-weight: 600; }
a.card:hover { text-decoration: none; border-color: var(--accent); }
a.card:hover h3 { color: var(--accent); }

/* Featured strip */
.feature {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: center;
  background: linear-gradient(135deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 28px;
}
.feature h3 { margin: 6px 0 10px; font-size: 1.4rem; }
.feature p { color: var(--muted); margin: 0 0 16px; }
.feature .stat-row { display: flex; gap: 22px; flex-wrap: wrap; }
.feature .stat { }
.feature .stat b { display: block; color: var(--text); font-size: 1.25rem; }
.feature .stat span { color: var(--muted); font-size: .82rem; }
@media (max-width: 720px) { .feature { grid-template-columns: 1fr; } }

/* ===== Stat band ===== */
.stat-band { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: 18px; text-align: center; }
.stat-band .s b { display: block; font-size: 1.8rem; color: var(--accent); }
.stat-band .s span { color: var(--muted); font-size: .9rem; }

/* ===== Lists ===== */
ul.clean { list-style: none; padding: 0; margin: 0; }
ul.clean li { padding: 8px 0 8px 28px; position: relative; color: var(--muted); }
ul.clean li::before { content: "▸"; color: var(--accent); position: absolute; left: 4px; }
ul.clean li b { color: var(--text); }

/* ===== Table ===== */
table.spec { width: 100%; border-collapse: collapse; }
table.spec th, table.spec td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
table.spec th { color: var(--text); width: 34%; font-weight: 600; }
table.spec td { color: var(--muted); }

/* ===== Diagram (how it works) ===== */
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 12px; align-items: stretch; }
.flow .node { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.flow .node h4 { margin: 0 0 6px; font-size: 1rem; color: var(--accent); }
.flow .node p { margin: 0; color: var(--muted); font-size: .85rem; }
.flow .arrow { align-self: center; color: var(--accent); font-size: 1.4rem; }
@media (max-width: 760px) {
  .flow { grid-template-columns: 1fr; }
  .flow .arrow { transform: rotate(90deg); justify-self: center; }
}

/* ===== Callout ===== */
.callout { background: var(--surface); border-left: 3px solid var(--accent); border-radius: 8px; padding: 18px 20px; color: var(--muted); }
.callout.warn { border-left-color: var(--danger); }

/* ===== Form ===== */
form.contact { display: grid; gap: 14px; max-width: 560px; }
form.contact label { font-size: .9rem; color: var(--muted); display: grid; gap: 6px; }
form.contact input, form.contact textarea {
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  color: var(--text); padding: 12px 14px; font: inherit; width: 100%;
}
form.contact input:focus, form.contact textarea:focus { outline: none; border-color: var(--accent); }
form.contact textarea { min-height: 130px; resize: vertical; }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--border); margin-top: 40px; padding: 40px 24px; color: var(--muted); font-size: .92rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--text); }
.site-footer .foot-links { display: flex; gap: 18px; flex-wrap: wrap; }

/* Back link */
.backlink { display: inline-block; margin-bottom: 8px; color: var(--muted); font-size: .9rem; }
