/* ============================================================
   Beyond Metaverse Technology — Global Site
   Clean Western B2B design system. No external dependencies.
   ============================================================ */

:root {
  --navy: #0a1628;
  --navy-2: #101f38;
  --ink: #16233a;
  --body: #45526b;
  --muted: #7a8699;
  --accent: #2e7cf6;
  --accent-dark: #1d63d8;
  --accent-soft: #eaf1fe;
  --cyan: #22d3ee;
  --bg: #f6f8fc;
  --card: #ffffff;
  --line: #e4e9f2;
  --ok: #12b76a;
  --warn: #f04438;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 31, 56, .05), 0 8px 24px rgba(16, 31, 56, .07);
  --shadow-lg: 0 2px 4px rgba(16, 31, 56, .06), 0 16px 40px rgba(16, 31, 56, .12);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--body);
  background: var(--card);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.22; font-weight: 700; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.22rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 10px; font-weight: 600; font-size: .98rem;
  border: 1px solid transparent; cursor: pointer; transition: all .18s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(46, 124, 246, .32); }
.btn-primary:hover { background: var(--accent-dark); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.88); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 1.06rem; letter-spacing: -0.01em; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-name b { color: var(--accent); font-weight: 700; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a.nav-link { color: var(--body); font-weight: 500; font-size: .95rem; }
.nav a.nav-link:hover, .nav a.nav-link.active { color: var(--accent); }
.nav .btn { padding: 9px 20px; font-size: .9rem; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle svg { display: block; width: 22px; height: 22px; stroke: var(--ink); }

@media (max-width: 860px) {
  .nav {
    position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 16px;
    display: none; box-shadow: var(--shadow-lg);
  }
  .nav.open { display: flex; }
  .nav a.nav-link { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 14px; }
  .nav-toggle { display: block; }
}

/* ---------- Hero (dark) ---------- */
.hero {
  background: radial-gradient(1100px 500px at 78% -10%, rgba(46,124,246,.35), transparent 60%),
              radial-gradient(700px 400px at 8% 108%, rgba(34,211,238,.16), transparent 60%),
              linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #c6d2e6; overflow: hidden; position: relative;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(900px 480px at 60% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(900px 480px at 60% 0%, #000 20%, transparent 75%);
}
.hero-inner { position: relative; padding: 96px 0 84px; max-width: 780px; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 22px;
}
.hero .eyebrow::before { content: ""; width: 22px; height: 1.5px; background: var(--cyan); }
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero h1 .hl { color: transparent; background: linear-gradient(92deg, #5ea0ff, var(--cyan)); -webkit-background-clip: text; background-clip: text; }
.hero p.lead { font-size: 1.14rem; max-width: 640px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Stats bar ---------- */
.stats-band { background: #fff; border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 34px 0; }
.stat { text-align: center; }
.stat .num { font-size: 2rem; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.stat .num span { color: var(--accent); }
.stat .lbl { font-size: .88rem; color: var(--muted); margin-top: 2px; }
@media (max-width: 700px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section.alt { background: var(--bg); }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .kicker {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 12px;
}
.section-head p { margin-top: 14px; font-size: 1.05rem; }

/* ---------- Cards / grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 920px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card .icon {
  width: 46px; height: 46px; border-radius: 11px; background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.card .icon svg { width: 23px; height: 23px; stroke: var(--accent); }
.card h3 { margin-bottom: 10px; }
.card p { font-size: .95rem; }

.card.linked { display: flex; flex-direction: column; }
.card.linked .more { margin-top: auto; padding-top: 16px; font-weight: 600; font-size: .92rem; }

/* ---------- Feature list rows ---------- */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature-row + .feature-row { margin-top: 64px; }
.feature-row.reverse .visual { order: 2; }
@media (max-width: 860px) {
  .feature-row { grid-template-columns: 1fr; gap: 28px; }
  .feature-row.reverse .visual { order: 0; }
}
.feature-row h2 { margin-bottom: 16px; }
.feature-row p { margin-bottom: 18px; }
.check-list { list-style: none; }
.check-list li { position: relative; padding: 7px 0 7px 34px; font-size: .98rem; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 12px; width: 20px; height: 20px;
  border-radius: 50%; background: var(--accent-soft);
}
.check-list li::after {
  content: ""; position: absolute; left: 6.5px; top: 16px; width: 5px; height: 9px;
  border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(42deg);
}

/* ---------- Visual mock panels ---------- */
.visual {
  border-radius: 16px; padding: 34px 30px; position: relative; overflow: hidden;
  background: linear-gradient(155deg, var(--navy), var(--navy-2));
  box-shadow: var(--shadow-lg);
}
.visual::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 34px 34px;
}
.visual .chip {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  background: rgba(46,124,246,.18); border: 1px solid rgba(94,160,255,.4);
  color: #bcd7ff; font-size: .8rem; font-weight: 600; padding: 7px 14px; border-radius: 999px;
  margin: 0 8px 12px 0;
}
.visual .chip.live { background: rgba(18,183,106,.15); border-color: rgba(18,183,106,.5); color: #7fe0b4; }
.visual .bar { position: relative; height: 9px; border-radius: 99px; background: rgba(255,255,255,.1); margin: 22px 0 10px; overflow: hidden; }
.visual .bar i { position: absolute; inset: 0 auto 0 0; width: var(--w, 60%); border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--cyan)); }
.visual .cap { position: relative; font-size: .8rem; color: #8fa3c4; display: flex; justify-content: space-between; }
.visual .big-glyph { position: relative; font-size: 2.6rem; line-height: 1; margin-bottom: 14px; }

/* ---------- Logos / trust ---------- */
.trust { display: flex; flex-wrap: wrap; gap: 12px; }
.trust .pill {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 18px; font-size: .9rem; font-weight: 500; color: var(--body);
  display: inline-flex; align-items: center; gap: 8px;
}
.trust .pill::before { content: "✓"; color: var(--ok); font-weight: 700; }

/* ---------- Timeline ---------- */
.timeline { position: relative; margin-top: 40px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding: 0 0 34px 44px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 16px; height: 16px;
  border-radius: 50%; background: #fff; border: 3px solid var(--accent);
}
.tl-item .tl-year { font-weight: 800; color: var(--accent); font-size: .95rem; }
.tl-item h3 { margin: 4px 0 6px; font-size: 1.08rem; }
.tl-item p { font-size: .95rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: radial-gradient(900px 380px at 85% 0%, rgba(34,211,238,.2), transparent 55%),
              linear-gradient(140deg, var(--navy), var(--navy-2));
  border-radius: 20px; color: #c6d2e6; padding: 56px 48px; position: relative; overflow: hidden;
}
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { max-width: 560px; margin-bottom: 28px; }
.cta-band .actions { display: flex; gap: 14px; flex-wrap: wrap; }
@media (max-width: 640px) { .cta-band { padding: 40px 26px; } }

/* ---------- Page hero (light) ---------- */
.page-hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #c6d2e6; padding: 72px 0 64px; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(700px 320px at 70% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(700px 320px at 70% 0%, #000 20%, transparent 75%);
}
.page-hero .container { position: relative; }
.page-hero .crumb { font-size: .88rem; color: #8fa3c4; margin-bottom: 18px; }
.page-hero .crumb a { color: #9db7dd; }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin-bottom: 14px; }
.page-hero p { max-width: 640px; font-size: 1.08rem; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
@media (max-width: 920px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.step::before {
  counter-increment: step; content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 9px; margin-bottom: 14px;
  background: var(--navy); color: #fff; font-weight: 700; font-size: 1rem;
}
.step h3 { font-size: 1.02rem; margin-bottom: 6px; }
.step p { font-size: .9rem; }

/* ---------- Contact form ---------- */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.35fr; gap: 44px; align-items: start; }
@media (max-width: 880px) { .contact-wrap { grid-template-columns: 1fr; } }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.info-card + .info-card { margin-top: 16px; }
.info-card h3 { font-size: 1rem; margin-bottom: 4px; }
.info-card .sub { font-size: .86rem; color: var(--muted); margin-bottom: 10px; }
.info-card a.big { font-size: 1.12rem; font-weight: 700; color: var(--ink); }
.info-card a.big:hover { color: var(--accent); }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-size: .88rem; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.field label .req { color: var(--warn); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 9px;
  font: inherit; color: var(--ink); background: #fbfcfe; transition: border .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(46,124,246,.14); background: #fff;
}
.field textarea { min-height: 130px; resize: vertical; }
.field .hint { font-size: .8rem; color: var(--muted); margin-top: 5px; }
.hp { position: absolute; left: -9999px; top: -9999px; opacity: 0; height: 0; overflow: hidden; }

.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; color: var(--body); }
.consent input { margin-top: 3px; width: 15px; height: 15px; accent-color: var(--accent); flex: none; }
.consent a { text-decoration: underline; }

.form-msg { display: none; border-radius: 10px; padding: 14px 16px; font-size: .93rem; margin-bottom: 18px; }
.form-msg.ok { display: block; background: #e9f9f0; color: #0b7245; border: 1px solid #b8ead1; }
.form-msg.err { display: block; background: #fdeceb; color: #a51f16; border: 1px solid #f6c9c5; }
.spinner { width: 15px; height: 15px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn[disabled] { opacity: .75; cursor: wait; }

/* ---------- FAQ ---------- */
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
.faq-item summary {
  cursor: pointer; padding: 18px 22px; font-weight: 600; color: var(--ink);
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.3rem; color: var(--accent); font-weight: 500; transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 22px 20px; font-size: .95rem; }

/* ---------- Prose (privacy etc.) ---------- */
.prose { max-width: 780px; }
.prose h2 { font-size: 1.35rem; margin: 44px 0 14px; }
.prose h3 { font-size: 1.1rem; margin: 28px 0 10px; }
.prose p, .prose li { margin-bottom: 12px; }
.prose ul { padding-left: 22px; }
.prose .updated { color: var(--muted); font-size: .9rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #94a6c3; padding: 64px 0 34px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer .about-blurb { font-size: .92rem; max-width: 300px; }
.site-footer h4 { color: #fff; font-size: .92rem; margin-bottom: 16px; letter-spacing: .02em; }
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer ul a { color: #94a6c3; font-size: .92rem; }
.site-footer ul a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 26px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: .84rem; color: #6d7f9e;
}

/* ---------- 404 ---------- */
.err-wrap { text-align: center; padding: 110px 24px; }
.err-wrap .code { font-size: 6rem; font-weight: 800; letter-spacing: -.04em; color: var(--navy); }
.err-wrap .code span { color: var(--accent); }
.err-wrap p { margin: 14px 0 30px; font-size: 1.05rem; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
