/* ============================================================
   METAMINT — Supplier Infrastructure Software
   Design system · dark-first hybrid · glassmorphism
   ============================================================ */

:root {
  /* Core palette */
  --ink-950: #060A13;
  --ink-900: #0A1020;
  --ink-800: #0F1830;
  --ink-700: #16223F;
  --ink-600: #22304F;
  --mist-50: #F7F9FC;
  --mist-100: #EEF2F8;
  --mist-200: #DDE5F0;
  --text-dark: #0C1426;
  --text-mid: #51607A;
  --text-light: #E8EEF8;
  --text-dim: #93A3BE;

  /* Brand accents */
  --mint: #2EE6A8;
  --mint-deep: #0FBF85;
  --azure: #4D8DFF;
  --violet: #8B6CF6;
  --amber: #FFB54D;
  --rose: #FF6B8B;

  /* Gradients */
  --grad-brand: linear-gradient(120deg, #2EE6A8 0%, #4D8DFF 55%, #8B6CF6 100%);
  --grad-soft: linear-gradient(120deg, rgba(46,230,168,.14), rgba(77,141,255,.14) 55%, rgba(139,108,246,.14));
  --grad-hero: radial-gradient(1200px 700px at 75% -10%, rgba(77,141,255,.22), transparent 60%),
               radial-gradient(900px 600px at 10% 110%, rgba(46,230,168,.16), transparent 55%),
               radial-gradient(700px 500px at 95% 80%, rgba(139,108,246,.14), transparent 60%);

  /* Glass */
  --glass-bg: rgba(255,255,255,.055);
  --glass-stroke: rgba(255,255,255,.12);
  --glass-bg-light: rgba(255,255,255,.72);
  --glass-stroke-light: rgba(12,20,38,.08);

  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 9px;
  --shadow-deep: 0 30px 80px -20px rgba(3,8,20,.55);
  --shadow-soft: 0 18px 50px -18px rgba(12,20,38,.16);

  --font-display: "Space Grotesk", "Inter", sans-serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;

  --container: 1180px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--ink-950);
  color: var(--text-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

::selection { background: rgba(46,230,168,.35); color: #fff; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -0.02em; font-weight: 600; }
.display-xl { font-size: clamp(2.6rem, 5.4vw, 4.4rem); }
.display-lg { font-size: clamp(2.1rem, 4vw, 3.2rem); }
.display-md { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--text-dim); max-width: 46ch; }
.grad-text {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 1.1rem;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--grad-brand); border-radius: 2px; }

/* ---------- Layout ---------- */
.container { width: min(var(--container), 92vw); margin: 0 auto; }
.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; position: relative; }
.section-head { max-width: 640px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .lead { margin-inline: auto; }
.section-head p { margin-top: 1rem; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 2.5vw, 1.8rem); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }

/* Light sections */
.section.light { background: var(--mist-50); color: var(--text-dark); }
.section.light .lead, .section.light p { color: var(--text-mid); }
.section.light h1, .section.light h2, .section.light h3, .section.light h4 { color: var(--text-dark); }
.section.light .eyebrow { color: var(--mint-deep); }

/* Dark section variation */
.section.deep { background: var(--ink-900); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .35s ease, box-shadow .35s ease, border-color .35s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(6,10,19,.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: rgba(255,255,255,.07);
}
.nav-inner {
  width: min(var(--container), 92vw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 74px;
}
.logo { display: flex; align-items: center; gap: .65rem; font-family: var(--font-display); font-weight: 700; font-size: 1.18rem; letter-spacing: -.01em; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--grad-brand);
  display: grid; place-items: center;
  box-shadow: 0 6px 18px -4px rgba(46,230,168,.5);
}
.logo-mark svg { width: 18px; height: 18px; }
.logo span em { font-style: normal; color: var(--mint); }

.nav-links { display: flex; gap: 1.9rem; font-size: .92rem; font-weight: 500; color: var(--text-dim); }
.nav-links a { transition: color .2s; position: relative; padding: .35rem 0; }
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--grad-brand); border-radius: 2px;
}
.nav-cta { display: flex; align-items: center; gap: .9rem; }
.nav-member-login {
  color: #C8D3D0;
  background: transparent;
  border-color: rgba(192,215,207,.2);
  padding-inline: .9rem;
}
.nav-member-login::before {
  content: "";
  width: 6px;
  height: 6px;
  border: 1px solid var(--mint);
  border-radius: 1px;
  background: rgba(103,214,174,.14);
  box-shadow: 0 0 10px rgba(103,214,174,.18);
}
.nav-member-login:hover,
.nav-member-login.active {
  color: #EAF2EF;
  border-color: rgba(103,214,174,.48);
  background: rgba(103,214,174,.055);
}

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: .5rem;
}
.nav-burger span { width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: .3s; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 74px 0 0 0; z-index: 99;
  background: rgba(6,10,19,.96); backdrop-filter: blur(20px);
  display: none; flex-direction: column; gap: .4rem; padding: 2rem 6vw;
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 1.25rem; font-weight: 600; padding: .8rem 0; border-bottom: 1px solid rgba(255,255,255,.07); }
.mobile-menu a.active { color: var(--mint); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .85rem 1.7rem; border-radius: 999px;
  font-weight: 600; font-size: .95rem;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s, background .25s;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; transition: transform .25s; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary {
  background: var(--grad-brand); color: #04121C;
  box-shadow: 0 10px 30px -8px rgba(46,230,168,.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -8px rgba(46,230,168,.65); }
.btn-ghost {
  border: 1px solid var(--glass-stroke); color: #fff;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { transform: translateY(-2px); background: rgba(255,255,255,.1); }
.btn-dark { background: var(--ink-900); color: #fff; }
.btn-dark:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -10px rgba(10,16,32,.5); }
.btn-sm { padding: .6rem 1.25rem; font-size: .87rem; }

/* ---------- Glass cards ---------- */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-stroke);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.card {
  padding: 1.9rem;
  border-radius: var(--radius-lg);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
  position: relative;
  overflow: hidden;
}
.card:hover { transform: translateY(-6px); }
.card.glass:hover { border-color: rgba(46,230,168,.35); box-shadow: 0 24px 60px -20px rgba(46,230,168,.18); }
.card-light {
  background: #fff; border: 1px solid var(--glass-stroke-light);
  box-shadow: var(--shadow-soft);
}
.card-light:hover { box-shadow: 0 26px 60px -18px rgba(12,20,38,.22); }
.card h3 { font-size: 1.18rem; margin-bottom: .6rem; }
.card p { font-size: .95rem; color: var(--text-dim); }
.section.light .card p { color: var(--text-mid); }

.card-icon {
  width: 46px; height: 46px; border-radius: 13px;
  display: grid; place-items: center; margin-bottom: 1.2rem;
  background: var(--grad-soft);
  border: 1px solid rgba(46,230,168,.25);
}
.card-icon svg { width: 22px; height: 22px; stroke: var(--mint); }
.section.light .card-icon { background: linear-gradient(120deg, rgba(46,230,168,.12), rgba(77,141,255,.12)); border-color: rgba(15,191,133,.25); }
.section.light .card-icon svg { stroke: var(--mint-deep); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 9rem 0 5rem;
  position: relative;
  background: var(--ink-950);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: var(--grad-hero);
  pointer-events: none;
}
.hero-grid-lines {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(900px 600px at 60% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(900px 600px at 60% 30%, #000 30%, transparent 75%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; }
.hero-copy .btn-row { margin-top: 2.2rem; }
.btn-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-badges { display: flex; gap: 1.6rem; margin-top: 2.6rem; flex-wrap: wrap; }
.hero-badge { display: flex; align-items: center; gap: .55rem; font-size: .85rem; color: var(--text-dim); }
.hero-badge svg { width: 16px; height: 16px; stroke: var(--mint); }

/* Sub-page hero */
.page-hero {
  padding: 11rem 0 5.5rem;
  position: relative;
  background: var(--ink-950);
  overflow: hidden;
}
.page-hero::before { content: ""; position: absolute; inset: 0; background: var(--grad-hero); pointer-events: none; }
.page-hero .hero-grid-lines { mask-image: radial-gradient(800px 500px at 50% 10%, #000 25%, transparent 75%); -webkit-mask-image: radial-gradient(800px 500px at 50% 10%, #000 25%, transparent 75%); }
.page-hero .container { position: relative; }

/* ---------- 3D scene / floating panels ---------- */
.scene {
  position: relative;
  perspective: 1400px;
  min-height: 480px;
}
.float-panel {
  position: absolute;
  border-radius: var(--radius-md);
  background: rgba(13,21,40,.72);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow-deep);
  padding: 1.1rem 1.25rem;
  animation: floaty 7s ease-in-out infinite;
}
.float-panel:nth-child(odd) { animation-duration: 8.5s; animation-delay: -2.5s; }
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotateX(4deg) rotateY(-6deg); }
  50% { transform: translateY(-16px) rotateX(4deg) rotateY(-6deg); }
}
.panel-title { display: flex; align-items: center; gap: .5rem; font-size: .8rem; font-weight: 600; color: var(--text-dim); letter-spacing: .04em; text-transform: uppercase; margin-bottom: .8rem; }
.panel-title .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 12px var(--mint); }

/* Orbs */
.orb {
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; pointer-events: none;
  animation: orb-drift 14s ease-in-out infinite alternate;
}
.orb-mint { background: rgba(46,230,168,.4); }
.orb-azure { background: rgba(77,141,255,.4); }
.orb-violet { background: rgba(139,108,246,.4); }
@keyframes orb-drift {
  from { transform: translate(0,0) scale(1); }
  to { transform: translate(40px,-30px) scale(1.15); }
}

/* 3D image placeholder */
.img-3d {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    radial-gradient(420px 280px at 30% 25%, rgba(46,230,168,.28), transparent 60%),
    radial-gradient(420px 300px at 75% 70%, rgba(77,141,255,.3), transparent 60%),
    radial-gradient(300px 240px at 85% 15%, rgba(139,108,246,.26), transparent 60%),
    var(--ink-800);
  border: 1px solid var(--glass-stroke);
  min-height: 340px;
  display: flex; align-items: flex-end;
}
.img-3d::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 42px 42px;
  transform: perspective(700px) rotateX(48deg) translateY(18%) scale(1.6);
  transform-origin: center bottom;
  mask-image: linear-gradient(to top, #000 20%, transparent 80%);
  -webkit-mask-image: linear-gradient(to top, #000 20%, transparent 80%);
}
.img-3d .img-3d-label {
  position: relative;
  margin: 1.1rem;
  padding: .8rem 1.05rem;
  border-radius: var(--radius-sm);
  background: rgba(6,10,19,.66);
  border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(12px);
  font-size: .78rem; line-height: 1.5; color: var(--text-dim);
  max-width: 92%;
}
.img-3d .img-3d-label strong { color: var(--mint); display: block; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .25rem; }

/* ---------- Network visual (SVG canvas) ---------- */
.network-wrap { position: relative; }
.network-svg { width: 100%; height: auto; }
.node-pulse { animation: node-pulse 3s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes node-pulse { 0%,100% { opacity: .6; transform: scale(1);} 50% { opacity: 1; transform: scale(1.25);} }
.link-dash { stroke-dasharray: 6 8; animation: dash-flow 2.8s linear infinite; }
@keyframes dash-flow { to { stroke-dashoffset: -56; } }

/* ---------- Calendar UI ---------- */
.cal {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(13,21,40,.8);
  border: 1px solid var(--glass-stroke);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-deep);
}
.cal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-family: var(--font-display); font-weight: 600;
}
.cal-head .cal-nav-btns { display: flex; gap: .5rem; }
.cal-head button {
  width: 32px; height: 32px; border-radius: 9px;
  border: 1px solid var(--glass-stroke); color: var(--text-dim);
  display: grid; place-items: center; transition: .2s;
}
.cal-head button:hover { color: #fff; border-color: var(--mint); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-grid .dow {
  padding: .7rem 0; text-align: center; font-size: .68rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.cal-day {
  aspect-ratio: 1.15; padding: .45rem; font-size: .8rem; color: var(--text-dim);
  border-bottom: 1px solid rgba(255,255,255,.045); border-right: 1px solid rgba(255,255,255,.045);
  position: relative; transition: background .2s; cursor: default;
}
.cal-day:hover { background: rgba(255,255,255,.04); }
.cal-day.muted { opacity: .3; }
.cal-day .slot {
  position: absolute; left: .35rem; right: .35rem; bottom: .4rem;
  font-size: .58rem; font-weight: 600; padding: .18rem .4rem; border-radius: 5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.slot-open { background: rgba(46,230,168,.18); color: var(--mint); border: 1px solid rgba(46,230,168,.35); }
.slot-held { background: rgba(255,181,77,.16); color: var(--amber); border: 1px solid rgba(255,181,77,.35); }
.slot-booked { background: rgba(77,141,255,.16); color: var(--azure); border: 1px solid rgba(77,141,255,.35); }

/* ---------- Status pills & timeline ---------- */
.pill {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .72rem; font-weight: 600; padding: .3rem .75rem; border-radius: 999px;
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; }
.pill-open { background: rgba(46,230,168,.14); color: var(--mint); } .pill-open .dot { background: var(--mint); }
.pill-held { background: rgba(255,181,77,.14); color: var(--amber); } .pill-held .dot { background: var(--amber); }
.pill-booked { background: rgba(77,141,255,.14); color: var(--azure); } .pill-booked .dot { background: var(--azure); }
.pill-done { background: rgba(139,108,246,.14); color: var(--violet); } .pill-done .dot { background: var(--violet); }
.pill-paid { background: rgba(46,230,168,.14); color: var(--mint); } .pill-paid .dot { background: var(--mint); }
.pill-pending { background: rgba(255,181,77,.14); color: var(--amber); } .pill-pending .dot { background: var(--amber); }
.pill-overdue { background: rgba(255,107,139,.14); color: var(--rose); } .pill-overdue .dot { background: var(--rose); }

.section.light .pill-open { background: rgba(15,191,133,.12); color: var(--mint-deep); }
.section.light .pill-held { background: rgba(200,130,20,.12); color: #B07712; }
.section.light .pill-booked { background: rgba(45,100,220,.1); color: #2D64DC; }

/* Availability timeline */
.timeline {
  display: flex; flex-direction: column; gap: 1rem;
}
.tl-row { display: grid; grid-template-columns: 130px 1fr; gap: 1.1rem; align-items: center; }
.tl-label { font-size: .85rem; font-weight: 600; color: var(--text-dim); }
.tl-track {
  height: 38px; border-radius: 10px; position: relative;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.07);
  overflow: hidden;
}
.tl-bar {
  position: absolute; top: 5px; bottom: 5px; border-radius: 7px;
  display: flex; align-items: center; padding: 0 .7rem;
  font-size: .68rem; font-weight: 700; letter-spacing: .03em;
  transform-origin: left; animation: bar-grow 1.1s cubic-bezier(.22,1,.36,1) both;
}
@keyframes bar-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.tl-bar.open { background: rgba(46,230,168,.25); color: var(--mint); border: 1px solid rgba(46,230,168,.4); }
.tl-bar.booked { background: rgba(77,141,255,.28); color: #BCD5FF; border: 1px solid rgba(77,141,255,.45); }
.tl-bar.held { background: rgba(255,181,77,.22); color: var(--amber); border: 1px solid rgba(255,181,77,.4); }

/* ---------- Reservation / invoice cards ---------- */
.res-card {
  border-radius: var(--radius-md);
  background: rgba(13,21,40,.75);
  border: 1px solid var(--glass-stroke);
  padding: 1.25rem 1.35rem;
  backdrop-filter: blur(14px);
  transition: transform .3s, border-color .3s;
}
.res-card:hover { transform: translateY(-4px); border-color: rgba(46,230,168,.35); }
.res-card .res-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: .9rem; }
.res-card h4 { font-size: 1rem; }
.res-card .res-meta { font-size: .78rem; color: var(--text-dim); display: flex; flex-direction: column; gap: .3rem; margin-bottom: 1rem; }
.res-card .res-meta span { display: flex; align-items: center; gap: .45rem; }
.res-card .res-meta svg { width: 13px; height: 13px; stroke: var(--text-dim); flex: none; }
.res-card .res-links { display: flex; gap: .6rem; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.07); padding-top: .9rem; }
.res-card .res-links a,
.res-card .res-links span {
  font-size: .72rem; font-weight: 600; color: var(--azure);
  display: inline-flex; align-items: center; gap: .3rem;
}
.res-card .res-links a:hover { color: var(--mint); }

/* Invoice doc mock */
.invoice-mock {
  background: #fff; color: var(--text-dark);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  box-shadow: var(--shadow-deep);
  font-size: .8rem;
}
.invoice-mock .inv-head { display: flex; justify-content: space-between; margin-bottom: 1.2rem; }
.invoice-mock .inv-head h4 { font-size: 1.05rem; }
.invoice-mock .inv-head small { color: var(--text-mid); }
.invoice-mock table { width: 100%; border-collapse: collapse; }
.invoice-mock th { text-align: left; font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-mid); padding: .45rem 0; border-bottom: 1.5px solid var(--mist-200); }
.invoice-mock td { padding: .55rem 0; border-bottom: 1px solid var(--mist-100); }
.invoice-mock .inv-total td { font-weight: 700; border-bottom: none; padding-top: .8rem; }

/* Workflow steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; counter-reset: step; }
.step { position: relative; padding: 1.6rem 1.4rem; counter-increment: step; }
.step::before {
  content: "0" counter(step);
  font-family: var(--font-display); font-weight: 700; font-size: 2rem;
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent;
  display: block; margin-bottom: .8rem;
}
.step h4 { font-size: 1.02rem; margin-bottom: .45rem; }
.step p { font-size: .87rem; }

/* ---------- Audience tabs (clients / suppliers / partners) ---------- */
.aud-tabs { display: flex; gap: .6rem; margin-bottom: 2rem; flex-wrap: wrap; }
.aud-tab {
  padding: .65rem 1.4rem; border-radius: 999px; font-weight: 600; font-size: .9rem;
  border: 1px solid var(--glass-stroke); color: var(--text-dim);
  transition: .25s;
}
.aud-tab:hover { color: #fff; }
.aud-tab.active { background: var(--grad-brand); color: #04121C; border-color: transparent; }
.aud-panel { display: none; animation: fade-up .5s ease both; }
.aud-panel.active { display: block; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.stat { text-align: center; padding: 1.8rem 1rem; }
.stat .num { font-family: var(--font-display); font-size: clamp(2rem, 3.4vw, 2.9rem); font-weight: 700; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .lbl { font-size: .82rem; color: var(--text-dim); margin-top: .3rem; letter-spacing: .04em; }

/* ---------- Feature rows ---------- */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; padding: clamp(2rem, 4vw, 3.5rem) 0; }
.feature-row.flip > .feature-visual { order: -1; }
.feature-row h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); margin-bottom: 1rem; }
.feature-row ul.checks { margin-top: 1.3rem; display: flex; flex-direction: column; gap: .7rem; }
ul.checks li { display: flex; gap: .7rem; font-size: .94rem; color: var(--text-dim); align-items: flex-start; }
ul.checks li svg { width: 18px; height: 18px; stroke: var(--mint); flex: none; margin-top: .15rem; }
.section.light ul.checks li { color: var(--text-mid); }
.section.light ul.checks li svg { stroke: var(--mint-deep); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg);
  padding: clamp(2.8rem, 6vw, 4.5rem);
  background: var(--ink-800);
  border: 1px solid var(--glass-stroke);
  text-align: center;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(500px 300px at 20% 0%, rgba(46,230,168,.18), transparent 60%),
    radial-gradient(500px 300px at 85% 100%, rgba(139,108,246,.2), transparent 60%);
}
.cta-band > * { position: relative; }
.cta-band h2 { margin-bottom: .9rem; }
.cta-band p { color: var(--text-dim); max-width: 52ch; margin: 0 auto 2rem; }
.cta-band .btn-row { justify-content: center; }

/* ---------- Footer ---------- */
.footer {
  background: var(--ink-900);
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 4rem 0 2rem;
  font-size: .88rem;
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 3rem; }
.footer-brand p { color: var(--text-dim); margin-top: 1rem; max-width: 34ch; font-size: .85rem; }
.footer h5 { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 1.1rem; }
.footer-col a { display: block; color: var(--text-dim); padding: .3rem 0; transition: color .2s; }
.footer-col a:hover { color: var(--mint); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding-top: 1.6rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  color: var(--text-dim); font-size: .78rem;
}

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.1rem; min-width: 0; }
.form-field { display: flex; flex-direction: column; gap: .45rem; min-width: 0; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: .8rem; font-weight: 600; color: var(--text-dim); letter-spacing: .03em; }
.form-field input, .form-field select, .form-field textarea {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  font: inherit; color: #fff;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--glass-stroke);
  border-radius: 11px;
  padding: .85rem 1rem;
  transition: border-color .2s, box-shadow .2s;
}
.form-field textarea { min-height: 130px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--mint);
  box-shadow: 0 0 0 3px rgba(46,230,168,.15);
}
.form-field select option { background: var(--ink-800); }

/* ---------- Code / terminal panels ---------- */
.code-panel {
  border-radius: var(--radius-md);
  background: #0A0F1D;
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: var(--shadow-deep);
  overflow: hidden;
  font-family: ui-monospace, "SF Mono", "Cascadia Code", Menlo, monospace;
  font-size: .8rem;
  line-height: 1.7;
}
.code-head {
  display: flex; align-items: center; gap: .45rem;
  padding: .75rem 1.1rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
  background: rgba(255,255,255,.025);
}
.code-head .cdot { width: 10px; height: 10px; border-radius: 50%; }
.code-head .cdot:nth-child(1) { background: #FF6B8B; }
.code-head .cdot:nth-child(2) { background: #FFB54D; }
.code-head .cdot:nth-child(3) { background: #2EE6A8; }
.code-head .code-title { margin-left: .6rem; font-size: .68rem; letter-spacing: .08em; color: var(--text-dim); }
.code-body { padding: 1.2rem 1.4rem; overflow-x: auto; white-space: pre; color: #C7D4EA; }
.code-body .tk-key { color: #7FB4FF; }
.code-body .tk-str { color: #5CE8B5; }
.code-body .tk-num { color: #C9A8FF; }
.code-body .tk-cmt { color: #5A6B88; }
.code-body .tk-mth { color: #FFB54D; font-weight: 700; }

/* Mono module tag */
.mono-tag {
  display: inline-block;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: .66rem; font-weight: 600; letter-spacing: .1em;
  color: var(--mint);
  background: rgba(46,230,168,.08);
  border: 1px solid rgba(46,230,168,.25);
  border-radius: 6px;
  padding: .22rem .55rem;
  margin-bottom: .9rem;
}
.section.light .mono-tag { color: var(--mint-deep); background: rgba(15,191,133,.07); border-color: rgba(15,191,133,.3); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.22,1,.36,1); }
.js .reveal.visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .12s; }
.reveal[data-delay="2"] { transition-delay: .24s; }
.reveal[data-delay="3"] { transition-delay: .36s; }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px);} to { opacity: 1; transform: none;} }

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.form-status {
  margin-top: .25rem;
  font-size: .86rem;
  color: var(--text-dim);
}

.form-status[data-state="success"] { color: var(--mint-deep); }
.form-status[data-state="error"] { color: var(--rose); }

/* ---------- Marquee logos ---------- */
.logo-strip { display: flex; gap: 3rem; justify-content: center; flex-wrap: wrap; opacity: .55; }
.logo-strip span { font-family: var(--font-display); font-weight: 600; letter-spacing: .06em; font-size: .95rem; color: var(--text-dim); }

/* ---------- Tables ---------- */
.spec-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.spec-table th, .spec-table td { padding: 1rem 1.1rem; text-align: left; border-bottom: 1px solid rgba(255,255,255,.08); }
.spec-table th { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); }
.spec-table td:first-child { font-weight: 600; }
.section.light .spec-table th, .section.light .spec-table td { border-color: var(--mist-200); }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-inner { grid-template-columns: 1fr; }
  .scene { min-height: 420px; }
  .nav-cta .contact-cta { display: none; }
}
@media (max-width: 768px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-burger { display: flex; }
  .grid-2, .grid-3, .feature-row { grid-template-columns: 1fr; }
  .feature-row.flip > .feature-visual { order: 0; }
  .form-grid { grid-template-columns: 1fr; }
  .tl-row { grid-template-columns: 1fr; gap: .4rem; }
  .hero { padding-top: 7.5rem; }
  .cal-day .slot { display: none; }
  .cal-day.has-slot::after { content: ""; position: absolute; bottom: .35rem; left: 50%; transform: translateX(-50%); width: 6px; height: 6px; border-radius: 50%; background: var(--mint); }
}
@media (max-width: 560px) {
  .grid-4, .stats, .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .scene { min-height: 360px; }
}

/* ============================================================
   DESIGN-LED LAYER — motion, scenes, scroll storytelling
   ============================================================ */

/* ---------- Aurora animated background ---------- */
.aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.aurora i {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5;
  animation: aurora-drift 18s ease-in-out infinite alternate;
}
.aurora i:nth-child(1) { width: 55vw; height: 55vw; left: -12vw; top: -18vw; background: radial-gradient(circle, rgba(46,230,168,.32), transparent 65%); }
.aurora i:nth-child(2) { width: 48vw; height: 48vw; right: -10vw; top: 4vw; background: radial-gradient(circle, rgba(77,141,255,.3), transparent 65%); animation-delay: -6s; animation-duration: 22s; }
.aurora i:nth-child(3) { width: 42vw; height: 42vw; left: 28vw; bottom: -20vw; background: radial-gradient(circle, rgba(139,108,246,.26), transparent 65%); animation-delay: -12s; animation-duration: 26s; }
@keyframes aurora-drift {
  from { transform: translate(0,0) scale(1) rotate(0deg); }
  to   { transform: translate(6vw,-4vw) scale(1.18) rotate(8deg); }
}

/* ---------- Hero canvas ---------- */
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.scroll-hint {
  position: absolute; bottom: 2.2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--text-dim);
}
.scroll-hint::after {
  content: ""; width: 1px; height: 42px;
  background: linear-gradient(to bottom, var(--mint), transparent);
  animation: hint-drop 2s ease-in-out infinite;
}
@keyframes hint-drop { 0% { transform: scaleY(0); transform-origin: top; } 60% { transform: scaleY(1); transform-origin: top; } 100% { opacity: 0; transform: scaleY(1); } }

/* Floating glass shards (abstract objects) */
.shard {
  position: absolute; pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,.09), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(8px);
  box-shadow: 0 30px 60px -20px rgba(3,8,20,.6), inset 0 1px 0 rgba(255,255,255,.18);
  animation: shard-float 9s ease-in-out infinite;
}
.shard.ring { border-radius: 50%; background: transparent; box-shadow: inset 0 0 0 1.5px rgba(46,230,168,.35), 0 0 40px -10px rgba(46,230,168,.4); backdrop-filter: none; }
@keyframes shard-float {
  0%,100% { transform: translateY(0) rotate(var(--rot,12deg)); }
  50% { transform: translateY(-22px) rotate(calc(var(--rot,12deg) + 4deg)); }
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden; padding: 1.6rem 0;
  border-top: 1px solid rgba(255,255,255,.07);
  border-bottom: 1px solid rgba(255,255,255,.07);
  background: rgba(255,255,255,.015);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; gap: 4.5rem; width: max-content; animation: marquee 36s linear infinite; }
.marquee-track span {
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
  letter-spacing: .22em; color: var(--text-dim); white-space: nowrap;
  display: flex; align-items: center; gap: 4.5rem;
}
.marquee-track span::after { content: "✦"; color: var(--mint); font-size: .8rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Scroll story ---------- */
.story { position: relative; height: 420vh; background: var(--ink-950); }
.story-sticky {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.story-stage { position: relative; width: min(540px, 88vw); height: min(440px, 60vh); }
.stage-layer {
  position: absolute; inset: 0; display: grid; place-items: center;
  opacity: 0; transform: scale(.9) translateY(30px); filter: blur(6px);
  transition: opacity .8s ease, transform .9s cubic-bezier(.22,1,.36,1), filter .8s ease;
  pointer-events: none;
}
.story[data-chapter="1"] .stage-layer[data-l="1"],
.story[data-chapter="2"] .stage-layer[data-l="2"],
.story[data-chapter="3"] .stage-layer[data-l="3"] { opacity: 1; transform: none; filter: none; }

.story-text {
  position: absolute; bottom: 7vh; left: 50%; transform: translate(-50%, 16px);
  width: min(620px, 88vw); text-align: center; opacity: 0;
  transition: opacity .7s ease, transform .8s cubic-bezier(.22,1,.36,1);
}
.story[data-chapter="1"] .story-text[data-t="1"],
.story[data-chapter="2"] .story-text[data-t="2"],
.story[data-chapter="3"] .story-text[data-t="3"] { opacity: 1; transform: translate(-50%, 0); }
.story-text h3 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: .6rem; }
.story-text p { color: var(--text-dim); font-size: .98rem; max-width: 54ch; margin: 0 auto; }

.story-progress { position: absolute; top: 50%; right: max(3vw, 1.2rem); transform: translateY(-50%); display: flex; flex-direction: column; gap: .7rem; }
.story-progress i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.18); transition: .4s; }
.story[data-chapter="1"] .story-progress i:nth-child(1),
.story[data-chapter="2"] .story-progress i:nth-child(2),
.story[data-chapter="3"] .story-progress i:nth-child(3) { background: var(--mint); box-shadow: 0 0 12px var(--mint); height: 22px; border-radius: 4px; }

.story-kicker { position: absolute; top: 10vh; left: 50%; transform: translateX(-50%); text-align: center; }

/* ---------- Word reveal ---------- */
[data-words] span { opacity: .1; transition: opacity .55s ease; }
[data-words] span.on { opacity: 1; }

/* ---------- Module index (Linear-style list) ---------- */
.module-index { border-top: 1px solid rgba(255,255,255,.09); }
.mi-row {
  display: grid; grid-template-columns: 70px 1fr minmax(200px, 34ch) 56px;
  gap: 2rem; align-items: center;
  padding: 2.1rem 0; border-bottom: 1px solid rgba(255,255,255,.09);
  position: relative; transition: padding .35s ease;
}
.mi-row:hover { padding-left: 1rem; }
.mi-row::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; bottom: -1px; opacity: 0;
  background: linear-gradient(90deg, rgba(46,230,168,.07), transparent 65%);
  transition: opacity .35s; pointer-events: none;
}
.mi-row:hover::before { opacity: 1; }
.mi-num { font-family: ui-monospace, Menlo, monospace; font-size: .75rem; color: var(--text-dim); letter-spacing: .12em; }
.mi-row h3 {
  font-size: clamp(1.5rem, 3.2vw, 2.5rem); font-weight: 600; color: #C4D0E4;
  transition: .35s; letter-spacing: -.02em;
}
.mi-row:hover h3 { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mi-desc { font-size: .88rem; color: var(--text-dim); }
.mi-arrow {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.16); display: grid; place-items: center;
  transition: .35s; color: var(--text-dim);
}
.mi-row:hover .mi-arrow { background: var(--grad-brand); color: #04121C; border-color: transparent; transform: rotate(-45deg); }
.mi-arrow svg { width: 17px; height: 17px; }

/* ---------- Orbit system ---------- */
.orbit-wrap { position: relative; width: min(520px, 88vw); aspect-ratio: 1; margin-inline: auto; }
.orbit-core {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 96px; height: 96px; border-radius: 28px;
  background: var(--grad-brand);
  box-shadow: 0 0 70px -8px rgba(46,230,168,.65), 0 0 140px -20px rgba(77,141,255,.5);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; color: #04121C; font-size: .82rem; letter-spacing: .04em;
  animation: core-pulse 4s ease-in-out infinite;
}
@keyframes core-pulse { 0%,100% { box-shadow: 0 0 70px -8px rgba(46,230,168,.65); } 50% { box-shadow: 0 0 100px -8px rgba(77,141,255,.7); } }
.orbit-ring {
  position: absolute; top: 50%; left: 50%; border-radius: 50%;
  border: 1px dashed rgba(255,255,255,.14);
  transform: translate(-50%,-50%);
  animation: orbit-spin var(--dur, 46s) linear infinite;
}
.orbit-ring.r1 { width: 58%; height: 58%; --dur: 38s; }
.orbit-ring.r2 { width: 86%; height: 86%; --dur: 60s; animation-direction: reverse; }
@keyframes orbit-spin { to { transform: translate(-50%,-50%) rotate(360deg); } }
.orbit-chip {
  position: absolute; padding: .5rem .95rem; border-radius: 999px;
  background: rgba(13,21,40,.85); border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(10px);
  font-family: ui-monospace, Menlo, monospace; font-size: .68rem; font-weight: 600; letter-spacing: .12em; color: var(--text-light);
  box-shadow: 0 12px 30px -10px rgba(3,8,20,.7);
  animation: orbit-counter var(--dur, 46s) linear infinite;
  white-space: nowrap;
}
.orbit-ring.r2 .orbit-chip { animation-direction: reverse; }
@keyframes orbit-counter { to { transform: rotate(-360deg); } }
.orbit-chip b { color: var(--mint); margin-right: .3rem; }
/* chip positions on ring */
.oc-t { top: 0; left: 50%; margin: -16px 0 0 -40px; }
.oc-r { top: 50%; right: 0; margin: -16px -44px 0 0; }
.oc-b { bottom: 0; left: 50%; margin: 0 0 -16px -40px; }
.oc-l { top: 50%; left: 0; margin: -16px 0 0 -44px; }
.section.light .orbit-ring { border-color: rgba(12,20,38,.22); }
.section.light .orbit-chip { box-shadow: 0 12px 30px -12px rgba(12,20,38,.4); }

/* ---------- Slot object (exploded glass stack) ---------- */
.slot-stack { position: relative; width: min(440px, 88vw); height: 420px; margin-inline: auto; perspective: 1100px; }
.slot-layer {
  position: absolute; left: 50%; top: 50%;
  width: 280px; height: 170px; margin: -85px 0 0 -140px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255,255,255,.1), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(6px);
  transform: rotateX(56deg) rotateZ(-38deg) translateZ(var(--z, 0px));
  transition: transform .7s cubic-bezier(.22,1,.36,1), box-shadow .7s;
  box-shadow: 0 30px 50px -28px rgba(3,8,20,.8);
  display: flex; align-items: flex-end; padding: .9rem 1.1rem;
}
.slot-layer .sl-label {
  font-family: ui-monospace, Menlo, monospace; font-size: .64rem; font-weight: 600;
  letter-spacing: .14em; color: var(--text-dim);
  transform: rotateZ(0deg);
}
.slot-layer.core-l { background: linear-gradient(135deg, rgba(46,230,168,.3), rgba(77,141,255,.22)); border-color: rgba(46,230,168,.5); }
.slot-layer.core-l .sl-label { color: #DFFCF1; }
.slot-stack:hover .slot-layer, .slot-stack.spread .slot-layer { transform: rotateX(56deg) rotateZ(-38deg) translateZ(calc(var(--z, 0px) * 1.85)); }
.slot-stack-glow {
  position: absolute; left: 50%; top: 62%; width: 320px; height: 90px; margin-left: -160px;
  background: radial-gradient(ellipse, rgba(46,230,168,.25), transparent 70%);
  filter: blur(24px); pointer-events: none;
}

/* ---------- SVG flow / arcs shared ---------- */
.viz-frame { position: relative; }
.viz-frame svg { width: 100%; height: auto; display: block; }
.draw-line { stroke-dasharray: 1200; stroke-dashoffset: 1200; }
.visible .draw-line, .draw-now .draw-line { animation: draw-in 2.4s cubic-bezier(.22,1,.36,1) forwards; }
@keyframes draw-in { to { stroke-dashoffset: 0; } }

/* ---------- Big statement section ---------- */
.statement { padding: clamp(7rem, 14vw, 12rem) 0; text-align: center; position: relative; overflow: hidden; }
.statement h2 {
  font-size: clamp(2.2rem, 6vw, 5rem); font-weight: 600; letter-spacing: -.03em;
  max-width: 20ch; margin-inline: auto; line-height: 1.08;
}

/* ---------- Responsive for design layer ---------- */
@media (max-width: 900px) {
  .mi-row { grid-template-columns: 1fr 56px; }
  .mi-num, .mi-desc { display: none; }
  .story { height: 360vh; }
  .story-stage { height: min(380px, 48vh); }
  .slot-layer { width: 220px; height: 134px; margin: -67px 0 0 -110px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   METAMINT REFINEMENT — precision infrastructure
   A restrained editorial and operational layer over the
   existing layouts and motion system.
   ============================================================ */

:root {
  --ink-950: #070B0E;
  --ink-900: #0B1115;
  --ink-800: #111A20;
  --ink-700: #18242B;
  --ink-600: #26353D;
  --mist-50: #F1F3EF;
  --mist-100: #E8ECE7;
  --mist-200: #D4DCD7;
  --text-dark: #10191C;
  --text-mid: #536166;
  --text-light: #EDF2EF;
  --text-dim: #A1ADB0;

  --mint: #67D6AE;
  --mint-deep: #188963;
  --azure: #7898D8;
  --violet: #8A80B4;
  --amber: #D8A55F;
  --rose: #D77886;

  --grad-brand: linear-gradient(90deg, #67D6AE 0%, #7898D8 100%);
  --grad-soft: linear-gradient(90deg, rgba(103,214,174,.11), rgba(120,152,216,.08));
  --grad-hero:
    radial-gradient(900px 540px at 84% 10%, rgba(77,110,145,.15), transparent 68%),
    radial-gradient(720px 520px at 8% 92%, rgba(65,135,111,.12), transparent 66%);

  --glass-bg: rgba(15,23,28,.9);
  --glass-stroke: rgba(192,215,207,.15);
  --glass-bg-light: rgba(255,255,255,.84);
  --glass-stroke-light: rgba(16,25,28,.12);

  --radius-lg: 12px;
  --radius-md: 8px;
  --radius-sm: 4px;
  --shadow-deep: 0 30px 80px -42px rgba(0,0,0,.92);
  --shadow-soft: 0 22px 52px -34px rgba(16,25,28,.32);

  --font-display: "IBM Plex Sans Condensed", "Arial Narrow", sans-serif;
  --font-body: "IBM Plex Sans", -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --container: 1160px;
}

body {
  background: var(--ink-950);
  color: var(--text-light);
  font-size: 16px;
  line-height: 1.58;
  letter-spacing: -.006em;
}

h1, h2, h3, h4 {
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.03;
  text-wrap: balance;
}

.display-xl { font-size: clamp(2.55rem, 4.55vw, 3.85rem); }
.display-lg { font-size: clamp(2rem, 3.35vw, 2.85rem); }
.display-md { font-size: clamp(1.5rem, 2.35vw, 2rem); }
.lead { font-size: clamp(1rem, 1.25vw, 1.12rem); line-height: 1.62; }

.grad-text {
  background: none;
  color: var(--mint);
  -webkit-text-fill-color: currentColor;
}

.container,
.nav-inner {
  width: min(var(--container), calc(100vw - 64px));
}

.section { padding: clamp(4.5rem, 7vw, 6.4rem) 0; }
.section-head { max-width: 700px; margin-bottom: clamp(2.25rem, 4vw, 3.5rem); }
.section-head.center { text-align: left; margin-inline: 0; }
.section-head.center .eyebrow { justify-content: flex-start; }
.section-head.center .lead { margin-inline: 0; }

.section.light { background: var(--mist-50); }
.section.deep { background: #0A1014; }

.eyebrow,
.mono-tag,
.panel-title,
.mi-num,
.code-panel,
.cap-face small,
.slot-layer .sl-label {
  font-family: var(--font-mono);
}

.eyebrow {
  gap: .65rem;
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .17em;
  color: #8FDDBF;
}

.eyebrow::before { width: 30px; height: 1px; background: var(--mint); border-radius: 0; }

.mono-tag {
  color: #9BE2C8;
  background: rgba(103,214,174,.045);
  border-color: rgba(103,214,174,.28);
  border-radius: 3px;
  padding: .28rem .55rem;
  letter-spacing: .13em;
}

/* Navigation and brand mark */
.nav {
  background: linear-gradient(to bottom, rgba(7,11,14,.94), rgba(7,11,14,.82));
  border-bottom: 1px solid rgba(192,215,207,.08);
}
.nav.scrolled {
  background: rgba(7,11,14,.94);
  border-bottom-color: rgba(192,215,207,.12);
  box-shadow: 0 14px 40px -34px rgba(0,0,0,.9);
}
.nav-inner { height: 70px; }
.logo { gap: .7rem; font-weight: 600; font-size: 1.08rem; letter-spacing: -.015em; }
.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 5px;
  background: #10251E;
  border: 1px solid rgba(103,214,174,.58);
  box-shadow: none;
}
.logo-mark svg { width: 17px; height: 17px; stroke: var(--mint) !important; }
.logo span em { color: var(--mint); }
.nav-links { gap: 1.65rem; font-size: .86rem; color: #AAB4B6; }
.nav-links a { padding: .45rem 0; }
.nav-links a.active::after { height: 1px; bottom: -1px; background: var(--mint); border-radius: 0; }

/* Buttons should feel like controls, not glowing capsules */
.btn {
  gap: .65rem;
  padding: .78rem 1.25rem;
  border-radius: 6px;
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: -.005em;
}
.btn-primary {
  background: var(--mint);
  color: #07110D;
  box-shadow: none;
}
.btn-primary:hover {
  transform: translateY(-2px);
  background: #7ADDB9;
  box-shadow: 0 14px 28px -22px rgba(103,214,174,.75);
}
.btn-ghost {
  background: transparent;
  border-color: rgba(192,215,207,.2);
  backdrop-filter: none;
}
.btn-ghost:hover { background: rgba(255,255,255,.035); border-color: rgba(192,215,207,.34); }
.btn-dark { background: #10181D; border: 1px solid rgba(16,25,28,.16); }
.btn-sm { padding: .62rem 1rem; font-size: .84rem; }

/* Page heroes: editorial, left aligned, and quieter */
.page-hero {
  padding: 10rem 0 6.2rem;
  min-height: 650px;
  display: flex;
  align-items: center;
  background: var(--ink-950);
}
.page-hero::before { background: var(--grad-hero); }
.page-hero .hero-grid-lines {
  opacity: .34;
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.72), transparent 94%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.72), transparent 94%);
}
.page-hero > .container[style*="text-align:center"] {
  max-width: var(--container) !important;
  text-align: left !important;
}
.page-hero > .container[style*="text-align:center"] h1 { max-width: 19ch; }
.page-hero > .container[style*="text-align:center"] .lead {
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: 54ch;
}
.page-hero > .container[style*="text-align:center"] .btn-row { justify-content: flex-start !important; }
.hero-inner > *, .hero-copy { min-width: 0; }
.hero-copy h1 { max-width: 13ch; }
.hero-copy .lead { max-width: 48ch; }

.orb { opacity: .22; filter: blur(112px); }
.aurora i { opacity: .18; filter: blur(125px); }

/* Cards and panels: precise frames with a calibrated top register */
.glass {
  background: var(--glass-bg);
  border-color: var(--glass-stroke);
  border-radius: var(--radius-lg);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.card {
  padding: 1.65rem;
  border-radius: var(--radius-lg);
}
.card::after {
  content: "";
  position: absolute;
  left: 1.65rem;
  top: -1px;
  width: 56px;
  height: 1px;
  background: var(--mint);
  opacity: .74;
}
.card:hover { transform: translateY(-3px); }
.card.glass:hover {
  border-color: rgba(103,214,174,.28);
  box-shadow: 0 22px 50px -40px rgba(103,214,174,.45);
}
.card-light {
  background: rgba(255,255,255,.88);
  border-color: rgba(16,25,28,.12);
  box-shadow: var(--shadow-soft);
}
.card h3 { font-size: 1.15rem; margin-bottom: .65rem; }
.card p { line-height: 1.58; }
.card-icon {
  width: 34px;
  height: 34px;
  border-radius: 4px;
  margin-bottom: 1.35rem;
  background: transparent;
  border-color: rgba(103,214,174,.26);
}
.card-icon svg { width: 18px; height: 18px; stroke-width: 1.6; }
.section.light .card-icon { background: transparent; }

.float-panel {
  border-radius: 7px;
  background: rgba(13,20,25,.96);
  border-color: rgba(192,215,207,.16);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 28px 70px -46px rgba(0,0,0,.95);
  padding: 1.15rem 1.25rem;
}
.float-panel::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 2px;
  height: 34px;
  background: var(--mint);
}
.panel-title { font-size: .68rem; font-weight: 500; letter-spacing: .12em; }
.panel-title .dot { width: 6px; height: 6px; border-radius: 1px; box-shadow: none; }

/* Operational UI objects */
.cal,
.res-card,
.invoice-mock,
.code-panel {
  border-radius: 8px;
  box-shadow: 0 26px 70px -48px rgba(0,0,0,.95);
}
.cal { background: #0E161B; backdrop-filter: none; }
.cal-head { font-weight: 500; }
.cal-head button { border-radius: 3px; }
.cal-day .slot { border-radius: 2px; }
.res-card { background: #0E161B; backdrop-filter: none; }
.invoice-mock { border: 1px solid rgba(16,25,28,.1); }

.timeline { gap: .8rem; }
.tl-row { grid-template-columns: 112px 1fr; }
.tl-label { font-size: .75rem; font-family: var(--font-mono); font-weight: 500; }
.tl-track { height: 34px; border-radius: 3px; background: rgba(255,255,255,.025); }
.tl-bar { top: 4px; bottom: 4px; border-radius: 2px; font-family: var(--font-mono); font-size: .62rem; font-weight: 500; }

.pill { border-radius: 3px; font-family: var(--font-mono); font-weight: 500; }
.pill .dot { border-radius: 1px; }
.aud-tab { border-radius: 4px; font-weight: 500; }
.aud-tab.active { background: var(--mint); }

.steps { gap: 1rem; }
.step::before,
.stat .num,
.cap-meter b {
  background: none;
  color: var(--mint);
  -webkit-text-fill-color: currentColor;
}
.step::before { font-family: var(--font-mono); font-size: 1.2rem; font-weight: 500; }

.form-field input,
.form-field select,
.form-field textarea {
  border-radius: 5px;
  background: rgba(255,255,255,.025);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { box-shadow: 0 0 0 2px rgba(103,214,174,.12); }

/* Indexes, CTAs, and footer */
.module-index { border-top-color: rgba(192,215,207,.13); }
.mi-row {
  grid-template-columns: 74px 1fr minmax(220px, 36ch) 48px;
  padding: 1.8rem 0;
  border-bottom-color: rgba(192,215,207,.12);
}
.mi-row h3 { font-size: clamp(1.35rem, 2.7vw, 2.15rem); font-weight: 500; color: #CED8D4; }
.mi-row:hover { padding-left: .65rem; }
.mi-row:hover h3 { background: none; color: var(--mint); -webkit-text-fill-color: currentColor; }
.mi-arrow { width: 38px; height: 38px; border-radius: 4px; }
.mi-row:hover .mi-arrow { background: var(--mint); }

.cta-band {
  border-radius: 10px;
  background: #0E171C;
  border-color: rgba(192,215,207,.16);
}
.cta-band::before {
  background:
    linear-gradient(90deg, rgba(103,214,174,.12), transparent 38%),
    linear-gradient(180deg, transparent 68%, rgba(120,152,216,.07));
}
.footer { background: #080D10; border-top-color: rgba(192,215,207,.11); }
.footer h5 { font-family: var(--font-mono); font-weight: 500; }
.footer-bottom { border-top-color: rgba(192,215,207,.1); }

/* SVG typography and line work inherit the refined system */
svg text { font-family: var(--font-body) !important; }
.network-svg path,
.viz-frame path { vector-effect: non-scaling-stroke; }

@media (max-width: 1020px) {
  .page-hero { min-height: auto; }
  .page-hero .hero-inner { gap: 2.5rem; }
  .section-head.center { margin-inline: 0; }
}

@media (max-width: 768px) {
  .container,
  .nav-inner { width: calc(100vw - 32px); }
  .page-hero { padding: 8.8rem 0 4.8rem; }
  .page-hero > .container[style*="text-align:center"] h1,
  .hero-copy h1 { max-width: 16ch; }
  .display-xl { font-size: clamp(2.25rem, 10vw, 3rem); }
  .display-lg { font-size: clamp(1.9rem, 8vw, 2.5rem); }
  .section { padding: 4.5rem 0; }
  .grid-2 > *, .grid-3 > *, .feature-row > *, .hero-inner > * { min-width: 0; }
  .section-head.center { text-align: left; }
  .section-head.center .eyebrow { justify-content: flex-start; }
  .section-head.center .lead { margin-inline: 0; }
  .tl-row { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .nav-cta { display: flex; }
  .nav-cta .btn-primary { display: none; }
  .logo { font-size: 1.02rem; }
  .page-hero { padding-top: 8rem; }
  .hero-copy h1,
  .hero-copy .lead,
  .page-hero h1,
  .page-hero .lead { overflow-wrap: anywhere; }
  .btn-row { gap: .65rem; }
  .btn { width: 100%; justify-content: center; }
  .mi-row { grid-template-columns: 1fr 38px; gap: 1rem; }
}

/* ---------- page-specific object language ---------- */

/* Module and supplier-tool cards get a measured register and
   distinct low-contrast data patterns instead of cloned tiles. */
.page-platform .grid-3,
.page-supplier-tools .grid-3 { counter-reset: module-card; }
.page-platform .grid-3 > .card,
.page-supplier-tools .grid-3 > .card {
  counter-increment: module-card;
  min-height: 278px;
  padding-top: 2rem;
}
.page-platform .grid-3 > .card::before,
.page-supplier-tools .grid-3 > .card::before {
  content: "MM / 0" counter(module-card);
  position: absolute;
  right: 1.5rem;
  top: 1.2rem;
  font-family: var(--font-mono);
  font-size: .5rem;
  letter-spacing: .12em;
  color: #68767A;
}
.page-platform .grid-3 > .card:nth-child(3n+1),
.page-supplier-tools .grid-3 > .card:nth-child(3n+1) {
  background-image: repeating-linear-gradient(90deg, rgba(103,214,174,.05) 0 1px, transparent 1px 18px);
  background-size: 180px 62px;
  background-position: right bottom;
  background-repeat: no-repeat;
}
.page-platform .grid-3 > .card:nth-child(3n+2),
.page-supplier-tools .grid-3 > .card:nth-child(3n+2) {
  background-image:
    linear-gradient(rgba(120,152,216,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,152,216,.045) 1px, transparent 1px);
  background-size: 18px 18px;
  background-position: right bottom;
}
.page-platform .grid-3 > .card:nth-child(3n),
.page-supplier-tools .grid-3 > .card:nth-child(3n) {
  background-image: repeating-linear-gradient(145deg, rgba(192,215,207,.04) 0 1px, transparent 1px 13px);
  background-size: 170px 72px;
  background-position: right bottom;
  background-repeat: no-repeat;
}

/* Orbit diagrams become restrained technical registries while
   retaining their existing rotation. */
.orbit-core {
  width: 86px;
  height: 86px;
  border-radius: 6px;
  background: #102019;
  border: 1px solid rgba(103,214,174,.56);
  box-shadow: 0 24px 56px -42px rgba(103,214,174,.8);
  color: var(--mint);
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: .12em;
}
.orbit-ring { border-style: solid; border-color: rgba(192,215,207,.14); }
.orbit-chip {
  border-radius: 3px;
  background: rgba(13,20,25,.96);
  border-color: rgba(192,215,207,.18);
  box-shadow: none;
  font-family: var(--font-mono);
  font-weight: 500;
}
.section.light .orbit-core { background: #E7ECE7; color: #116646; border-color: rgba(24,137,99,.42); }
.section.light .orbit-chip { background: rgba(246,248,244,.96); color: #263235; }

/* Time Slot folio */
.page-time-slots .slot-stack { counter-reset: slot-layer; height: 390px; }
.page-time-slots .slot-layer {
  counter-increment: slot-layer;
  border-radius: 5px;
  background:
    linear-gradient(90deg, rgba(24,137,99,.04), transparent 32%),
    rgba(250,251,248,.96);
  border-color: rgba(16,25,28,.18);
  box-shadow: 0 28px 48px -34px rgba(16,25,28,.36);
  backdrop-filter: blur(1px);
  padding: 1rem 1.1rem;
}
.page-time-slots .slot-layer::before {
  content: "LAYER / 0" counter(slot-layer);
  position: absolute;
  top: 12px;
  left: 14px;
  font-family: var(--font-mono);
  font-size: .48rem;
  letter-spacing: .12em;
  color: #7A8787;
}
.page-time-slots .slot-layer::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  top: 31px;
  height: 1px;
  background: rgba(16,25,28,.1);
  box-shadow: 0 7px rgba(16,25,28,.04), 0 14px rgba(16,25,28,.04);
}
.page-time-slots .slot-layer .sl-label { color: #536166; font-weight: 500; }
.page-time-slots .slot-layer.core-l {
  background:
    linear-gradient(90deg, rgba(103,214,174,.18), transparent 42%),
    #E7F3EC;
  border-color: rgba(24,137,99,.46);
}
.page-time-slots .slot-layer.core-l .sl-label { color: #145F44; }
.page-time-slots .slot-stack-glow {
  opacity: .42;
  background: radial-gradient(ellipse, rgba(24,137,99,.16), transparent 72%);
}

/* Finance objects */
.page-invoicing .scene { min-height: 400px; }
.page-invoicing .float-panel:first-child { border-left: 2px solid var(--azure); }
.page-invoicing .float-panel:last-child { border-left: 2px solid var(--mint); }
.page-invoicing .invoice-mock {
  position: relative;
  padding-top: 2.2rem;
  background: #F8F9F6;
}
.page-invoicing .invoice-mock::before {
  content: "METAMINT FINANCIAL RECORD  /  CONTROLLED COPY";
  position: absolute;
  left: 1.6rem;
  top: .9rem;
  font-family: var(--font-mono);
  font-size: .48rem;
  letter-spacing: .1em;
  color: #7A8587;
}
.page-invoicing .invoice-mock th { font-family: var(--font-mono); font-weight: 500; }
.page-invoicing .viz-frame,
.page-partners .viz-frame,
.page-about .viz-frame {
  position: relative;
  padding: 22px 18px 8px;
  border: 1px solid rgba(192,215,207,.13);
  border-radius: 5px;
  background-image:
    linear-gradient(rgba(192,215,207,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(192,215,207,.025) 1px, transparent 1px);
  background-size: 38px 38px;
}
.page-invoicing .viz-frame::before,
.page-partners .viz-frame::before,
.page-about .viz-frame::before {
  position: absolute;
  left: 18px;
  top: 10px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: .5rem;
  letter-spacing: .13em;
  color: #6F7D81;
}
.page-invoicing .viz-frame::before { content: "SETTLEMENT REGISTER  /  INV-2034"; }
.page-partners .viz-frame::before { content: "NETWORK TOPOLOGY  /  PARTNER DEPLOYMENT"; }
.page-about .viz-frame::before { content: "INFRASTRUCTURE MODEL  /  OPERATING FOUNDATION"; }
.page-invoicing .viz-frame rect,
.page-partners .viz-frame rect,
.page-about .viz-frame rect { rx: 3px; }
.page-invoicing .viz-frame text,
.page-partners .viz-frame text,
.page-about .viz-frame text { font-family: var(--font-mono) !important; }

/* Partner topology: less presentation-diagram, more control surface */
.page-partners .viz-frame { padding-top: 32px; }
.page-partners .viz-frame svg > path:first-of-type { stroke: rgba(192,215,207,.18); }
.page-partners .viz-frame [stroke-dasharray] { stroke-width: 1; stroke-dasharray: 2 9; }
.page-partners .viz-frame circle.node-pulse { animation-duration: 4.8s; }

/* About and contact receive the same disciplined frame language. */
.page-about .viz-frame { padding-top: 28px; }
.page-contact .page-hero .glass {
  background: rgba(13,20,25,.94);
  border-color: rgba(192,215,207,.15);
  border-radius: 7px !important;
}
.page-contact .page-hero .hero-copy > div .glass { position: relative; }
.page-contact .page-hero .hero-copy > div .glass::after {
  content: "";
  position: absolute;
  left: -1px;
  top: 14px;
  width: 2px;
  height: 28px;
  background: var(--mint);
}
.page-contact #contact-form { min-width: 0; }
.page-contact .page-hero > .container > .glass { min-width: 0; }

@media (max-width: 768px) {
  .page-platform .grid-3 > .card,
  .page-supplier-tools .grid-3 > .card { min-height: auto; }
  .page-time-slots .slot-stack { height: 340px; }
  .page-contact .page-hero .hero-inner { width: calc(100vw - 32px); }
  .page-contact .page-hero .hero-copy,
  .page-contact .page-hero .hero-copy > div,
  .page-contact .page-hero .hero-copy .glass,
  .page-contact .page-hero > .container > .glass { width: 100%; max-width: 100%; min-width: 0; }
}

/* ---------- Member access ---------- */
.page-login { min-height: 100vh; }
.login-shell {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 9rem 0 6rem;
  overflow: hidden;
  background:
    radial-gradient(700px 480px at 78% 35%, rgba(103,214,174,.075), transparent 68%),
    #090F12;
}
.login-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .48;
  background-image:
    linear-gradient(rgba(192,215,207,.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(192,215,207,.026) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(90deg, transparent, #000 42%, #000 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 42%, #000 100%);
}
.login-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 470px);
  gap: clamp(3rem, 8vw, 7.5rem);
  align-items: center;
}
.login-copy { max-width: 540px; }
.login-copy h1 { max-width: 13ch; }
.login-copy .lead { margin-top: 1.35rem; max-width: 44ch; }
.login-access-line {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin-top: 2.2rem;
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #7F8C8E;
}
.login-access-line::before {
  content: "";
  width: 30px;
  height: 1px;
  background: var(--mint);
}
.login-panel {
  position: relative;
  min-width: 0;
  padding: 3.35rem 2.3rem 2.25rem;
  border: 1px solid rgba(192,215,207,.17);
  border-radius: 7px;
  background: rgba(13,20,25,.96);
  box-shadow: 0 32px 90px -58px rgba(0,0,0,.9);
}
.login-panel::before {
  content: "MEMBER GATEWAY  /  SECURE ACCESS";
  position: absolute;
  top: 1rem;
  left: 2.3rem;
  right: 2.3rem;
  padding-bottom: .7rem;
  border-bottom: 1px solid rgba(192,215,207,.09);
  font-family: var(--font-mono);
  font-size: .5rem;
  letter-spacing: .13em;
  color: #718083;
}
.login-panel h2 { font-size: 1.55rem; font-weight: 500; }
.login-panel-intro { margin: .55rem 0 1.65rem; color: var(--text-dim); font-size: .88rem; }
.login-form { display: grid; gap: 1rem; }
.login-form .form-field label { font-family: var(--font-mono); font-size: .65rem; letter-spacing: .07em; text-transform: uppercase; }
.login-form .form-field input { min-height: 50px; }
.login-form .form-field input[aria-invalid="true"] { border-color: rgba(240,91,87,.65); }
.login-submit { width: 100%; justify-content: center; margin-top: .2rem; }
.login-recovery {
  display: block;
  width: 100%;
  margin-top: 1.2rem;
  text-align: center;
  color: #929EA0;
  font-size: .78rem;
}
.login-recovery span { color: var(--mint); border-bottom: 1px solid rgba(103,214,174,.35); }
.login-recovery:hover span { border-bottom-color: var(--mint); }
.login-error[hidden] { display: none; }
.login-error {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .75rem .85rem;
  border: 1px solid rgba(240,91,87,.48);
  border-radius: 4px;
  color: #FFAAA7;
  background: rgba(240,91,87,.075);
  font-size: .8rem;
}
.login-error::before {
  content: "!";
  display: grid;
  place-items: center;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(240,91,87,.7);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: .68rem;
}
.login-error.is-visible { animation: login-error-in .36s cubic-bezier(.22,1,.36,1) both; }
@keyframes login-error-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

.recovery-modal[hidden],
#recovery-request[hidden],
.recovery-success[hidden] { display: none; }
.recovery-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.recovery-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(3,7,9,.78);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
}
.recovery-dialog {
  position: relative;
  z-index: 1;
  width: min(460px, calc(100vw - 32px));
  padding: 2.35rem;
  border: 1px solid rgba(192,215,207,.2);
  border-radius: 7px;
  background: #0E161A;
  box-shadow: 0 40px 110px -45px rgba(0,0,0,.95);
  animation: recovery-dialog-in .38s cubic-bezier(.22,1,.36,1) both;
}
@keyframes recovery-dialog-in {
  from { opacity: 0; transform: translateY(14px) scale(.985); }
  to { opacity: 1; transform: none; }
}
.recovery-close {
  position: absolute;
  top: .85rem;
  right: .9rem;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(192,215,207,.14);
  border-radius: 4px;
  color: #9CA8AA;
  font-size: 1.15rem;
  line-height: 1;
}
.recovery-close:hover { color: #fff; border-color: rgba(192,215,207,.35); }
.recovery-kicker {
  display: block;
  margin-bottom: .8rem;
  font-family: var(--font-mono);
  color: var(--mint);
  font-size: .58rem;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.recovery-dialog h2 { margin-bottom: .65rem; font-size: 1.65rem; font-weight: 500; }
.recovery-dialog p { color: var(--text-dim); font-size: .9rem; }
.recovery-form { display: grid; gap: 1.15rem; margin-top: 1.55rem; }
.recovery-form .form-field label { font-family: var(--font-mono); font-size: .65rem; letter-spacing: .07em; text-transform: uppercase; }
.recovery-form .form-field input { min-height: 50px; }
.recovery-form .btn { width: 100%; justify-content: center; }
.recovery-success { text-align: center; padding: .5rem 0 .15rem; }
.recovery-success-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 1.3rem;
  border: 1px solid rgba(103,214,174,.58);
  border-radius: 50%;
  color: var(--mint);
  background: rgba(103,214,174,.07);
  font-size: 1.25rem;
}
.recovery-success .recovery-kicker { margin-bottom: .7rem; }
.recovery-success p { color: #D5DEDB; font-size: 1rem; }
.recovery-success small { display: block; max-width: 34ch; margin: .65rem auto 1.55rem; color: #7F8B8D; line-height: 1.55; }
.recovery-success .btn { min-width: 120px; justify-content: center; }

@media (max-width: 1020px) {
  .login-grid { grid-template-columns: minmax(0, 1fr) minmax(360px, 430px); gap: 3rem; }
}
@media (max-width: 768px) {
  .login-shell { align-items: flex-start; padding: 8.3rem 0 4.5rem; }
  .login-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .login-copy h1 { max-width: 14ch; }
  .login-panel { padding: 3.2rem 1.35rem 1.6rem; }
  .login-panel::before { left: 1.35rem; right: 1.35rem; }
  .recovery-dialog { padding: 2rem 1.35rem 1.5rem; }
}
