:root {
  --bg: #ffffff;
  --fg: #0a0a0a;
  --muted: #525252;
  --subtle: #737373;
  --border: #e5e5e5;
  --border-strong: #d4d4d4;
  --card: rgba(255, 255, 255, 0.82);
  --radius: 14px;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
/* clip, not hidden on body only: phone browsers otherwise widen the page to the glow and it sits off-centre. */
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Background: Dub-style grid with radial fade + soft gradient glow */
.bg-grid {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(0,0,0,0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,0,0,0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 40%, transparent 100%);
          mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 40%, transparent 100%);
}
.bg-glow {
  position: absolute; z-index: -1; pointer-events: none;
  top: -160px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 520px; max-width: 100%;
  background:
    radial-gradient(closest-side at 30% 50%, rgba(249, 115, 22, 0.16), transparent),
    radial-gradient(closest-side at 50% 40%, rgba(236, 72, 153, 0.14), transparent),
    radial-gradient(closest-side at 70% 55%, rgba(139, 92, 246, 0.16), transparent);
  filter: blur(40px);
}

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,0.72);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.01em; }
.brand img { border-radius: 8px; }
.nav-links { display: flex; gap: 28px; font-size: 14px; color: var(--muted); }
.nav-links a:hover { color: var(--fg); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 999px;
  font-size: 15px; font-weight: 500; border: 1px solid transparent;
  transition: background .15s, border-color .15s, box-shadow .15s, transform .15s;
}
.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; }
.btn-dark { background: var(--fg); color: #fff; border-color: var(--fg); }
.btn-dark:hover { background: #262626; }
.btn-light { background: #fff; color: var(--fg); border-color: var(--border-strong); box-shadow: 0 1px 2px rgba(0,0,0,0.04); }
.btn-light:hover { border-color: #a3a3a3; }

/* Hero */
.hero { text-align: center; padding-top: 88px; padding-bottom: 72px; }
h1 {
  margin: 0 auto; max-width: 900px;
  font-size: clamp(36px, 5.6vw, 62px); line-height: 1.08;
  font-weight: 600; letter-spacing: -0.035em;
}
.grad {
  background: linear-gradient(90deg, #f97316, #ec4899 45%, #8b5cf6);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { margin: 24px auto 0; max-width: 620px; font-size: 18px; color: var(--muted); }
.hero-actions { margin-top: 36px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Announcement pill */
.pill {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%;
  margin-bottom: 28px; padding: 4px 14px 4px 4px; border-radius: 999px;
  border: 1px solid var(--border); background: rgba(255,255,255,0.8);
  font-size: 13px; color: var(--muted); box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  transition: border-color .15s, color .15s;
}
.pill:hover { border-color: var(--border-strong); color: var(--fg); }
.pill-tag {
  padding: 2px 10px; border-radius: 999px; background: var(--fg); color: #fff;
  font-family: var(--mono); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em;
}

/* Product rail under hero */
.rail { list-style: none; margin: 44px auto 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.rail a {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--border); background: rgba(255,255,255,0.7); font-size: 14px; color: var(--muted);
  transition: border-color .15s, color .15s;
}
.rail a:hover { border-color: var(--border-strong); color: var(--fg); }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot-fx, .card-fx { --accent: #ea580c; }
.dot-lvc, .card-lvc { --accent: #2563eb; }
.dot-cvf, .card-cvf { --accent: #db2777; }
.dot-healthy, .card-healthy { --accent: #16a34a; }
.dot-ma, .card-ma { --accent: #dc2626; }
.dot { background: var(--accent); }

/* Sections */
.section { padding-top: 56px; padding-bottom: 56px; }
.section-head { text-align: center; margin-bottom: 40px; }
.section-sub { margin: 12px auto 0; max-width: 560px; color: var(--muted); font-size: 16px; }
.eyebrow {
  margin: 0; font-family: var(--mono); font-size: 12px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--subtle);
}
h2 { margin: 10px 0 0; font-size: clamp(28px, 3.6vw, 40px); line-height: 1.15; font-weight: 600; letter-spacing: -0.03em; }

/* Product cards */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.card {
  position: relative; display: flex; flex-direction: column;
  padding: 28px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--card);
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
  transition: border-color .2s, box-shadow .2s, transform .2s;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent, #8b5cf6), transparent);
  opacity: 0; transition: opacity .2s;
}
.card:hover::before { opacity: 1; }
.card:hover { border-color: var(--border-strong); box-shadow: 0 12px 32px -12px rgba(0,0,0,0.14); transform: translateY(-2px); }
.card-top { display: flex; align-items: center; justify-content: space-between; }
.icon {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid var(--border); background: #fff;
}
.icon svg { width: 20px; height: 20px; }
.card .icon { color: var(--accent); }
.tag {
  font-family: var(--mono); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--subtle); border: 1px solid var(--border); border-radius: 999px; padding: 3px 10px; background: #fafafa;
}
.card h3 { margin: 22px 0 0; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.card p { margin: 8px 0 0; color: var(--muted); font-size: 15px; }
.points { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; flex: 1; align-content: start; }
.points li { position: relative; padding-left: 24px; font-size: 14px; color: var(--fg); }
.points li::before {
  content: ""; position: absolute; left: 2px; top: 6px; width: 10px; height: 5px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}
.card-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 22px; padding-top: 16px; border-top: 1px dashed var(--border);
}
.domain { font-family: var(--mono); font-size: 13px; color: var(--subtle); min-width: 0; overflow-wrap: anywhere; transition: color .15s; }
.go { flex: none; font-size: 14px; font-weight: 500; color: var(--muted); transition: color .15s, transform .15s; }
.card:hover .domain { color: var(--fg); }
.card:hover .go { color: var(--accent); transform: translateX(2px); }

/* ── Ma: the one dark surface on a white page ─────────────────── */
.card-ma {
  --ma-bg: #0a0710;
  --ma-fg: #f2ece6;
  --ma-muted: #b9aeb6;
  --ma-line: rgba(255, 255, 255, 0.12);
  --ma-surface: rgba(255, 255, 255, 0.05);
  grid-column: 1 / -1;
  padding: 0;
  border-color: #241a2b;
  background: var(--ma-bg);
  color: var(--ma-fg);
  box-shadow: 0 24px 60px -32px rgba(10, 7, 16, 0.75);
  isolation: isolate;
  scroll-margin-top: 84px;
}
.card-ma::before { display: none; }
.card-ma::after {
  content: "MA"; position: absolute; right: 14px; bottom: -34px; z-index: 0;
  font-size: 190px; line-height: 1; font-weight: 600; letter-spacing: -0.07em;
  color: rgba(255, 255, 255, 0.035); pointer-events: none;
}
.card-ma:hover {
  transform: none;
  border-color: #3b2a45;
  box-shadow: 0 28px 64px -30px rgba(10, 7, 16, 0.85);
}

.ma-noise, .ma-aura { position: absolute; pointer-events: none; }
.ma-noise {
  inset: -20%; z-index: 0; opacity: .5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: maGrain 7s steps(6) infinite;
}
.ma-aura {
  inset: -30% -10%; z-index: 0;
  background:
    radial-gradient(ellipse 42% 58% at 14% 6%, rgba(190, 24, 45, 0.55), transparent 64%),
    radial-gradient(ellipse 48% 62% at 84% 94%, rgba(91, 33, 182, 0.5), transparent 64%),
    radial-gradient(ellipse 32% 36% at 64% 18%, rgba(217, 70, 239, 0.18), transparent 70%),
    radial-gradient(ellipse 26% 30% at 38% 88%, rgba(120, 53, 15, 0.28), transparent 72%);
  filter: blur(26px);
  animation: maBreathe 15s ease-in-out infinite alternate;
}

.ma-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 44px; padding: 36px 38px;
}
.ma-badge { position: absolute; top: 34px; right: 36px; z-index: 2; }
.card-ma .icon { background: var(--ma-surface); border-color: var(--ma-line); color: #f87171; }
.card-ma .tag { background: var(--ma-surface); border-color: var(--ma-line); color: #c8bcc4; }

.card-ma .ma-title {
  position: relative; margin: 20px 0 0;
  font-size: clamp(26px, 3.4vw, 34px); line-height: 1.1;
  letter-spacing: -0.03em; color: #fbf6f1;
}
.ma-title::before, .ma-title::after {
  content: attr(data-text); position: absolute; inset: 0;
  pointer-events: none; opacity: 0;
}
.ma-title::before { color: #f87171; transform: translate(-1.5px, -1px); }
.ma-title::after { color: #67e8f9; transform: translate(1.5px, 1px); }
.card-ma:hover .ma-title::before,
.card-ma:hover .ma-title::after { animation: maGlitch 1.8s steps(2, end) infinite; }

.card-ma .ma-desc { margin: 10px 0 0; color: var(--ma-muted); font-size: 15px; max-width: 40ch; }
.ma-points { margin-top: 18px; }
.ma-points li { color: #e6dde2; }
.ma-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 26px; }
.ma-cta { height: 40px; font-size: 14px; background: #f7f1ec; color: var(--ma-bg); border-color: #f7f1ec; }
.ma-cta:hover { background: #fff; border-color: #fff; }
.card-ma .domain { color: #9c8f99; }

.ma-tabs-wrap { min-width: 0; display: flex; flex-direction: column; }
.ma-tabs {
  display: inline-flex; flex-wrap: wrap; gap: 4px; align-self: flex-start;
  padding: 4px; border-radius: 999px;
  border: 1px solid var(--ma-line);
  background: rgba(255, 255, 255, 0.035);
}
.ma-tab {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 500; color: #b0a3ac;
  padding: 7px 13px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 7px;
  transition: color .15s, background .15s, box-shadow .15s;
}
.ma-tab::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: #4a3a4e; transition: background .15s;
}
.ma-tab:hover { color: var(--ma-fg); }
.ma-tab[aria-selected="true"] {
  color: #fff; background: rgba(220, 38, 38, 0.16);
  box-shadow: inset 0 0 0 1px rgba(220, 38, 38, 0.45);
}
.ma-tab[aria-selected="true"]::before { background: #ef4444; animation: maPulse 2.4s ease-out infinite; }
.ma-tab:focus-visible { outline: 2px solid #f87171; outline-offset: 2px; }

.ma-panel {
  margin-top: 20px; padding-left: 18px; min-height: 148px;
  border-left: 1px solid rgba(255, 255, 255, 0.09);
}
.ma-panel[hidden] { display: none; }
.ma-panel.is-in { animation: maIn .34s ease-out both; }
.card-ma .ma-kicker {
  margin: 0; font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: #9d8b96;
}
.card-ma .ma-text { margin: 10px 0 0; font-size: 15px; color: #d8ced4; max-width: 48ch; }
.ma-chips { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.card-ma .ma-stats {
  margin: auto 0 0; padding-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: #7d6f79;
}
.ma-stats span + span::before { content: "·"; margin-right: 10px; color: #4c3f49; }
.ma-chips li {
  font-size: 12.5px; padding: 5px 11px; border-radius: 999px;
  border: 1px solid var(--ma-line); background: rgba(255, 255, 255, 0.04); color: #cec2c9;
}

@keyframes maGrain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-1.5%, 1%); }
  40% { transform: translate(1%, -1.5%); }
  60% { transform: translate(-1%, -1%); }
  80% { transform: translate(1.5%, 1%); }
}
@keyframes maBreathe {
  from { opacity: .7; transform: scale(1); }
  to { opacity: 1; transform: scale(1.06); }
}
@keyframes maPulse {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.65); }
  70%, 100% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
}
@keyframes maIn {
  from { opacity: 0; transform: translateY(6px); filter: blur(3px); }
  to { opacity: 1; transform: none; filter: none; }
}
@keyframes maGlitch {
  0%, 92%, 100% { opacity: 0; }
  93% { opacity: .7; clip-path: inset(8% 0 62% 0); }
  95% { opacity: .65; clip-path: inset(52% 0 18% 0); }
  97% { opacity: .5; clip-path: inset(30% 0 44% 0); }
}

/* Features */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); overflow: hidden; }
.feature { padding: 28px; }
.feature + .feature { border-left: 1px solid var(--border); }
.ficon {
  display: inline-grid; place-items: center; width: 36px; height: 36px; margin-bottom: 16px;
  border-radius: 10px; border: 1px solid var(--border); background: #fff; color: var(--fg);
}
.ficon svg { width: 18px; height: 18px; }
.feature h3 { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.feature p { margin: 8px 0 0; color: var(--muted); font-size: 15px; }

/* CTA band */
.cta {
  position: relative; overflow: hidden; text-align: center;
  padding: 56px 24px; border-radius: 20px; border: 1px solid var(--border);
  background:
    radial-gradient(ellipse 60% 80% at 20% 0%, rgba(249,115,22,0.10), transparent),
    radial-gradient(ellipse 60% 80% at 80% 100%, rgba(139,92,246,0.12), transparent),
    var(--card);
}
.cta h2 { margin: 0; }
.cta p { margin: 12px auto 0; max-width: 520px; color: var(--muted); }
.cta .hero-actions { margin-top: 28px; }

/* Footer */
.footer { margin-top: 40px; border-top: 1px solid var(--border); font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; padding-top: 40px; padding-bottom: 32px; }
.footer-brand p { margin: 12px 0 0; max-width: 300px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; color: var(--muted); }
.footer-col a { overflow-wrap: anywhere; }
.footer-col a:hover { color: var(--fg); }
.footer-title {
  margin: 0 0 4px; font-family: var(--mono); font-size: 12px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--fg);
}
.footer-bottom {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding-top: 20px; padding-bottom: 32px; border-top: 1px solid var(--border);
  font-size: 13px; color: var(--subtle);
}
.muted { color: var(--subtle); }

a:focus-visible, .btn:focus-visible { outline: 2px solid #8b5cf6; outline-offset: 3px; }

@media (max-width: 820px) {
  .nav-links { display: none; }
  .grid, .features { grid-template-columns: 1fr; }
  .feature + .feature { border-left: 0; border-top: 1px solid var(--border); }
  .hero { padding-top: 64px; }
  /* Phones: footer stacks and centres. */
  .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 28px; }
  .footer-brand p { margin-left: auto; margin-right: auto; }
  .footer-col { align-items: center; }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; gap: 4px; }
  .card, .feature { padding: 24px; }
  .ma-inner { grid-template-columns: 1fr; gap: 30px; padding: 26px 22px; }
  .ma-tabs { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; border-radius: 16px; }
  .ma-tab { justify-content: center; border-radius: 12px; }
  .ma-badge { top: 22px; right: 22px; }
  .card-ma::after { font-size: 130px; bottom: -24px; }
  .card-ma .ma-stats { flex-direction: column; align-items: flex-start; gap: 2px; }
  .card-ma .ma-stats span + span::before { content: none; }
  .ma-panel { min-height: 0; }
  .cta { padding: 44px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
  .ma-noise, .ma-aura, .ma-title::before, .ma-title::after,
  .ma-tab[aria-selected="true"]::before { animation: none !important; }
}
