/* Mared — Multiverse MENA landing page
   Converted from the Claude Design project (Mared.dc.html) — see README.
   No build step: plain CSS, custom properties, no framework. */

/* ---------------------------------------------------------------- tokens */
:root {
  --ink: #0F172A;
  --muted: #475569;
  --brand: #0369A1;
  --brand-hover: #0284C7;
  --brand-light: #38BDF8;
  --accent: #B91C1C;
  --green: #15803D;

  --surface: #FFFFFF;
  --surface-2: #F1F5F9;
  --surface-3: #E2E8F0;
  --surface-4: #CBD5E1;
  --tint: rgba(240, 249, 255, .88);

  --line: rgba(15, 23, 42, .07);
  --line-card: rgba(15, 23, 42, .08);
  --line-strong: rgba(15, 23, 42, .1);
  --line-input: rgba(15, 23, 42, .18);

  --shell: 1120px;
  --header-h: 88px;
  --orb: conic-gradient(from 200deg, #0369A1, #38BDF8 35%, #B91C1C 70%, #0369A1);
  --lift: 0 4px 12px rgba(0, 0, 0, .22);
}

/* ------------------------------------------------------------------ base */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  background-color: var(--surface);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%230369A1' stroke-opacity='.13' stroke-width='1'%3E%3Crect x='24' y='24' width='48' height='48'/%3E%3Crect x='24' y='24' width='48' height='48' transform='rotate(45 48 48)'/%3E%3Cpath d='M0 48H24M72 48H96M48 0V24M48 72V96M0 0L24 24M96 0L72 24M0 96L24 72M96 96L72 72'/%3E%3C/g%3E%3Ccircle cx='48' cy='48' r='2' fill='%23B91C1C' fill-opacity='.35'/%3E%3Ccircle cx='0' cy='0' r='1.5' fill='%230369A1' fill-opacity='.3'/%3E%3Ccircle cx='96' cy='0' r='1.5' fill='%230369A1' fill-opacity='.3'/%3E%3Ccircle cx='0' cy='96' r='1.5' fill='%230369A1' fill-opacity='.3'/%3E%3Ccircle cx='96' cy='96' r='1.5' fill='%230369A1' fill-opacity='.3'/%3E%3C/svg%3E");
  background-size: 96px 96px;
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-hover); }

*:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-shadow: 0 1px 2px rgba(15, 23, 42, .18); }
p, li, strong, span, a, figcaption, label { text-shadow: 0 1px 1px rgba(15, 23, 42, .1); }
pre, pre span, code { text-shadow: none; }

img { max-width: 100%; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

[hidden] { display: none !important; }

/* ---------------------------------------------------------------- motion */
@keyframes mvPulse {
  0%   { box-shadow: 0 0 0 0 rgba(3, 105, 161, .55); }
  70%  { box-shadow: 0 0 0 14px rgba(3, 105, 161, 0); }
  100% { box-shadow: 0 0 0 0 rgba(3, 105, 161, 0); }
}

@keyframes mvBlink {
  0%, 100% { opacity: 1; }
  50%      { opacity: .2; }
}

/* Reveal-on-scroll is opt-in from JS, so content stays visible without it. */
.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s ease, transform .6s ease;
}

.js-reveal [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ------------------------------------------------------------- structure */
.shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 88px 24px;
}

.shell--lg { padding: 96px 24px; }

.shell--narrow {
  max-width: 720px;
  padding: 96px 24px;
  text-align: center;
}

.band {
  border-top: 1px solid var(--line);
  background: var(--tint);
}

.band--closed { border-bottom: 1px solid var(--line); }

.eyebrow {
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 600;
}

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -.03em;
  line-height: 1.1;
  font-weight: 700;
  text-wrap: balance;
}

.section-title--spaced { margin-top: 14px; }

.lede {
  color: var(--muted);
  text-wrap: pretty;
}

.measure-sm { max-width: 480px; }
.measure { max-width: 560px; }
.measure-md { max-width: 600px; }
.measure-lg { max-width: 640px; }

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-block;
  border-radius: 10px;
  font-size: 16px;
  padding: 14px 22px;
  font-family: inherit;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.btn--primary {
  background: var(--brand);
  color: var(--surface);
  border: 0;
  font-weight: 700;
  box-shadow: var(--lift);
}

.btn--primary:hover {
  background: var(--brand-hover);
  color: var(--surface);
}

.btn--primary[disabled] {
  opacity: .6;
  cursor: progress;
}

.btn--ghost {
  border: 1px solid var(--line-input);
  color: var(--ink);
  font-weight: 600;
  box-shadow: var(--lift);
}

.btn--ghost:hover {
  border-color: rgba(15, 23, 42, .4);
  color: var(--ink);
}

.btn--sm {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: none;
}

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, .85);
  border-bottom: 1px solid var(--line);
}

.nav {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 16px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -.02em;
  font-size: 18px;
}

.nav__brand:hover { color: var(--ink); }

.nav__brand-sub {
  color: var(--muted);
  font-weight: 500;
  font-size: 13px;
  margin-left: 8px;
  padding-left: 10px;
  border-left: 1px solid rgba(15, 23, 42, .15);
}

.nav__links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  font-size: 14px;
  color: var(--muted);
}

.nav__link { color: var(--muted); }
.nav__link:hover { color: var(--ink); }

.orb {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--orb);
  display: inline-block;
  flex-shrink: 0;
}

/* ------------------------------------------------------------------ hero */
.hero {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 96px 24px 72px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 56px;
  align-items: center;
}

.hero__eyebrow { margin-bottom: 20px; }

.hero__title {
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.02;
  letter-spacing: -.035em;
  font-weight: 800;
  text-wrap: balance;
}

.hero__lede {
  font-size: 19px;
  color: var(--muted);
  margin-top: 24px;
  max-width: 520px;
  text-wrap: pretty;
}

.hero__cta {
  display: flex;
  gap: 12px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.hero__art {
  display: grid;
  gap: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
}

.hero__art-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

/* -------------------------------------------------------- browser mockup */
.mock { margin: 0; }

.mock__frame {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  max-width: 100%;
  position: relative;
}

.mock__bar {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-card);
}

.mock__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--surface-4);
}

.mock__body {
  padding: 18px;
  display: grid;
  gap: 10px;
}

.skel { border-radius: 4px; }
.skel--title { height: 10px; width: 45%; background: var(--surface-4); }
.skel--line { height: 8px; background: var(--surface-3); }
.skel--w85 { width: 85%; }
.skel--w70 { width: 70%; }

.skel-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.skel--tile {
  height: 44px;
  flex: 1;
  background: var(--surface-3);
  border-radius: 6px;
}

.mock__bubble {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--orb);
  animation: mvPulse 2.6s ease-out infinite;
  display: grid;
  place-items: center;
}

.mock__bubble::after {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--surface);
  display: block;
}

.mock__panel {
  position: absolute;
  right: 10px;
  bottom: 10px;
  left: 32%;
  top: 22%;
  background: var(--surface-2);
  border: 1px solid rgba(3, 105, 161, .4);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 10px;
  line-height: 1.4;
  box-shadow: 0 20px 40px rgba(15, 23, 42, .15);
}

.mock__panel-head {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-weight: 600;
}

.mock__panel-head .orb {
  width: 14px;
  height: 14px;
}

.mock__cap {
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
}

.msg {
  padding: 5px 8px;
  color: var(--ink);
}

.msg--user {
  align-self: flex-end;
  background: var(--surface-4);
  border-radius: 8px 8px 2px 8px;
  max-width: 85%;
}

.msg--bot {
  align-self: flex-start;
  background: rgba(3, 105, 161, .12);
  border-radius: 8px 8px 8px 2px;
  max-width: 90%;
}

.mock__input {
  margin-top: auto;
  border: 1px solid rgba(15, 23, 42, .12);
  border-radius: 6px;
  padding: 5px 8px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
}

.mock__input-key { color: var(--brand); }

/* ----------------------------------------------------------------- cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.card {
  padding: 28px;
  border: 1px solid var(--line-card);
  border-radius: 14px;
  background: var(--surface);
}

.card__num {
  color: var(--brand);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .08em;
}

.card__title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-top: 12px;
}

.card__text {
  color: var(--muted);
  margin-top: 10px;
  text-wrap: pretty;
}

/* ----------------------------------------------------------------- steps */
.steps {
  list-style: none;
  padding: 0;
  margin: 56px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.step {
  border: 1px solid var(--line-card);
  border-radius: 14px;
  background: var(--surface);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.step__head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.step__num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--surface);
  font-weight: 800;
  font-size: 13px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.step__title {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.02em;
}

.step__text {
  color: var(--muted);
  text-wrap: pretty;
}

.code {
  margin: 0;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 16px;
  font: 13px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--ink);
  white-space: pre-wrap;
  word-break: break-all;
  overflow: visible;
}

.code .tok-punct { color: var(--muted); }
.code .tok-tag { color: var(--brand); }
.code .tok-str { color: var(--green); }

.crawl {
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 16px;
  display: grid;
  gap: 8px;
  font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.crawl__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
}

.crawl__state { color: var(--green); }

.crawl__state--live {
  color: var(--brand);
  animation: mvBlink 1.4s ease-in-out infinite;
}

.chat {
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  line-height: 1.45;
}

.chat .msg { padding: 7px 10px; }
.chat .msg--user { border-radius: 10px 10px 2px 10px; max-width: 80%; }
.chat .msg--bot { border-radius: 10px 10px 10px 2px; max-width: 88%; }

.chat__link { color: var(--brand); }

/* ----------------------------------------------------------- what's live */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 48px;
  align-items: start;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.check {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--line-card);
  border-radius: 12px;
  background: var(--surface);
}

.check__mark {
  color: var(--brand);
  font-weight: 700;
}

.check__title {
  display: block;
  letter-spacing: -.01em;
}

.check__text { color: var(--muted); }

/* --------------------------------------------------------------- roadmap */
.phases {
  list-style: none;
  padding: 0;
  margin: 56px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.phase {
  position: relative;
  padding: 28px 24px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line-card);
  transition: transform .25s ease, border-color .25s ease;
}

.phase:hover {
  transform: translateY(-4px);
  border-color: rgba(15, 23, 42, .25);
}

.phase--now {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(185, 28, 28, .1);
}

.phase--now:hover { border-color: var(--accent); }

.phase__rail {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.phase__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--muted);
  box-sizing: border-box;
}

.phase__dot--now {
  border: 0;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(185, 28, 28, .22);
}

.phase__line {
  flex: 1;
  height: 1px;
  background: rgba(15, 23, 42, .15);
}

.phase__label {
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.phase__label--now { color: var(--accent); }

.phase__title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-top: 8px;
}

.phase__list {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 6px;
}

/* ---------------------------------------------------------- architecture */
.arch {
  margin: 56px 0 0;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--surface-2);
  padding: 28px;
}

.arch__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  align-items: stretch;
}

.arch__node {
  border: 1px solid rgba(15, 23, 42, .12);
  border-radius: 12px;
  padding: 18px;
  display: grid;
  gap: 6px;
  background: var(--surface);
  align-content: start;
}

.arch__node--hot {
  border-color: var(--brand);
  background: rgba(3, 105, 161, .06);
}

.arch__node--planned { border: 1px dashed rgba(15, 23, 42, .2); }

.arch__kind {
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

.arch__node--hot .arch__kind { color: var(--brand); }

.arch__name { letter-spacing: -.01em; }

.arch__note {
  font-size: 13px;
  color: var(--muted);
}

.arch__divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.arch__divider::before,
.arch__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(15, 23, 42, .12);
}

.arch__cap {
  font-size: 13px;
  color: var(--muted);
  margin-top: 20px;
}

/* -------------------------------------------------------------- founders */
.founders {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.founder {
  border: 1px solid var(--line-card);
  border-radius: 16px;
  background: var(--surface);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.founder__head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.founder__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid rgba(3, 105, 161, .5);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -.02em;
  color: var(--brand);
  flex-shrink: 0;
}

/* Sized so a long name and a long address each stay on one line in the 3-up
   grid, where a card is roughly 344px wide. */
.founder__name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.02em;
}

.founder__role {
  color: var(--muted);
  font-size: 14px;
}

.founder__bio {
  color: var(--muted);
  text-wrap: pretty;
}

.founder__mail {
  font-weight: 600;
  font-size: 14px;
  margin-top: auto;
  word-break: break-word;
}

/* ---------------------------------------------------------- early access */
.access__title {
  font-size: clamp(30px, 4.5vw, 44px);
  letter-spacing: -.03em;
  line-height: 1.05;
  font-weight: 800;
  text-wrap: balance;
}

.access__lede {
  color: var(--muted);
  margin-top: 16px;
  font-size: 18px;
  text-wrap: pretty;
}

.form {
  display: flex;
  gap: 10px;
  margin: 32px auto 0;
  max-width: 480px;
  flex-wrap: wrap;
  justify-content: center;
}

.form__input {
  flex: 1;
  min-width: 220px;
  background: var(--surface-2);
  border: 1px solid var(--line-input);
  color: var(--ink);
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 16px;
  font-family: inherit;
}

.form__input[aria-invalid="true"] { border-color: var(--accent); }

.form__error {
  color: var(--accent);
  font-size: 14px;
  margin-top: 12px;
}

.form__note {
  color: var(--muted);
  font-size: 13px;
  margin-top: 16px;
}

.notice {
  margin: 32px auto 0;
  max-width: 480px;
  border: 1px solid rgba(21, 128, 61, .5);
  background: rgba(21, 128, 61, .08);
  color: var(--ink);
  padding: 16px 20px;
  border-radius: 10px;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

.notice__mark {
  color: var(--green);
  font-weight: 700;
}

/* ---------------------------------------------------------------- footer */
.site-footer { border-top: 1px solid var(--line); }

.footer__inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 36px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: var(--muted);
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -.02em;
  font-size: 16px;
}

.footer__brand .orb {
  width: 20px;
  height: 20px;
}

.footer__links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer__link { color: var(--muted); }
.footer__link:hover { color: var(--ink); }

/* ------------------------------------------------------------ responsive */
@media (max-width: 720px) {
  :root { --header-h: 76px; }

  .shell,
  .shell--lg,
  .shell--narrow { padding: 64px 20px; }

  .hero { padding: 64px 20px 48px; gap: 40px; }
  .nav { padding: 14px 20px; }
  .footer__inner { padding: 28px 20px; }
  .steps, .cards, .phases, .founders { margin-top: 36px; }
  .split { gap: 32px; }
  .arch { margin-top: 36px; padding: 20px; }
  .founder { padding: 24px; }
}

@media (max-width: 420px) {
  .nav__brand { flex-wrap: wrap; }

  .nav__brand-sub {
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
    flex-basis: 100%;
  }

  .mock__panel { left: 20%; top: 16%; }
}

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

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  .js-reveal [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .site-header { position: static; }
  body { background-image: none; }
}
