:root {
  --bg: #0d131f;
  --deep: #080e19;
  --low: #161c27;
  --card: #1a202b;
  --high: #242a36;
  --highest: #2f3541;
  --bright: #333946;
  --text: #dde2f3;
  --muted: #c3c6d5;
  --faint: #8d909e;
  --line: #434653;
  --blue: #b0c6ff;
  --blue-deep: #0f52ba;
  --blue-ink: #002c6f;
  --blue-soft: #bcceff;
  --blue-fixed: #d9e2ff;
  --peach: #ffb59d;
  --peach-deep: #b83900;
  --peach-soft: #ffddd2;
  --slate: #b9c7e4;
  --white: #ffffff;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  --header: 5rem;
  --wrap: 80rem;
  --sans: "Vazirmatn", "Plus Jakarta Sans", Tahoma, sans-serif;
  --mono: "JetBrains Mono", "Vazirmatn", monospace;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.7;
  overflow-x: hidden;
  overscroll-behavior-x: none;
}

body.modal-open { overflow: hidden; }

img { max-width: 100%; display: block; }

button, input, select, textarea {
  font-family: inherit;
  color: inherit;
}

button { cursor: pointer; background: none; border: none; color: inherit; }
::placeholder { color: var(--faint); }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, p { margin: 0; }

::selection {
  background: var(--blue-deep);
  color: var(--blue-soft);
}

::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: var(--deep); }
::-webkit-scrollbar-thumb { background: var(--highest); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--blue-deep); }

.icon {
  width: 1.15rem;
  height: 1.15rem;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.icon-lg { width: 1.45rem; height: 1.45rem; }
.icon-sm { width: 0.95rem; height: 0.95rem; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1rem;
}

[id] { scroll-margin-top: 6.2rem; }
button.card, a.card, button.hover-card, a.hover-card, button.monolith, a.monolith {
  width: 100%;
  text-align: right;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
button.card, a.card, button.hover-card, a.hover-card { display: flex; flex-direction: column; }
a.nav-btn, a.btn-quiet, a.linkish { display: inline-block; }
.frame { position: relative; height: 11rem; border-radius: 0.75rem; overflow: hidden; border: 1px solid rgba(67, 70, 83, 0.4); }
.frame img, .photo img { width: 100%; height: 100%; object-fit: cover; }

.mono { font-family: var(--mono); }
.ltr { direction: ltr; }
.nums { font-variant-numeric: tabular-nums; }
.right { text-align: right; }
.center { text-align: center; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.blue { color: var(--blue); }
.peach { color: var(--peach); }
.slate { color: var(--slate); }
.soft { color: var(--blue-soft); }
.white { color: var(--white); }
.bold { font-weight: 700; }
.semibold { font-weight: 600; }
.small { font-size: 0.75rem; }
.tiny { font-size: 0.68rem; }
.xs { font-size: 0.8rem; }
.sm { font-size: 0.875rem; }
.lead { font-size: 1rem; color: var(--muted); line-height: 1.85; }
.max { max-width: 42rem; }
.max-lg { max-width: 48rem; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 600;
}

.display {
  font-size: 2rem;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.title {
  font-size: 1.55rem;
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.grad {
  background: linear-gradient(to left, #b0c6ff, #d9e2ff, #ffb59d);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.grad-blue {
  background: linear-gradient(to left, #b0c6ff, #d9e2ff, #dde2f3);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stack { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.wrap-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.end { align-items: flex-end; }
.grow { flex: 1; }
.gap-1 { gap: 0.35rem; }
.gap-2 { gap: 0.6rem; }
.gap-3 { gap: 0.9rem; }
.gap-4 { gap: 1.15rem; }
.gap-5 { gap: 1.5rem; }
.gap-6 { gap: 2rem; }
.mt-1 { margin-top: 0.35rem; }
.mt-2 { margin-top: 0.7rem; }
.mt-3 { margin-top: 1rem; }
.mb-2 { margin-bottom: 0.6rem; }
.mb-4 { margin-bottom: 1.25rem; }
.pt-line { padding-top: 1rem; border-top: 1px solid rgba(67, 70, 83, 0.45); }

.section { padding: 4rem 0; }
.section-sm { padding: 2.5rem 0; }
.bg-deep { background: var(--deep); }
.bg-bg { background: var(--bg); }
.bg-low { background: var(--low); }
.bg-high { background: var(--high); }
.border-y { border-top: 1px solid rgba(67, 70, 83, 0.35); border-bottom: 1px solid rgba(67, 70, 83, 0.35); }
.border-t { border-top: 1px solid rgba(67, 70, 83, 0.35); }
.border-b { border-bottom: 1px solid rgba(36, 42, 54, 1); }

.cols, .cols-2, .cols-3, .cols-4, .cols-5 { display: grid; gap: 1.25rem; }
.cols-2, .cols-3, .cols-4, .cols-5, .split { grid-template-columns: 1fr; }

.card {
  background: var(--card);
  border: 1px solid rgba(67, 70, 83, 0.4);
  border-radius: 1rem;
  padding: 1.5rem;
}

.card-low {
  background: var(--low);
  border: 1px solid rgba(67, 70, 83, 0.4);
  border-radius: 1rem;
  padding: 1.35rem;
}

.card-high {
  background: var(--high);
  border: 1px solid rgba(67, 70, 83, 0.35);
  border-radius: 0.85rem;
  padding: 0.9rem 1rem;
}

.hover-card {
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.hover-card:hover {
  background: var(--high);
  border-color: rgba(176, 198, 255, 0.45);
}

.panel {
  background: var(--low);
  border: 1px solid rgba(67, 70, 83, 0.35);
  border-radius: 1.15rem;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.icon-box {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(15, 82, 186, 0.22);
  color: var(--blue);
}
.icon-box.peach { background: rgba(184, 57, 0, 0.28); color: var(--peach); }
.icon-box.slate { background: rgba(74, 88, 113, 0.4); color: var(--slate); }
.icon-box.solid { background: var(--blue-deep); color: var(--blue-soft); }
.icon-box.flat { background: var(--highest); color: var(--blue); }
.icon-box.glass { background: rgba(255, 255, 255, 0.1); color: var(--blue-soft); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 0;
  border-radius: 0.75rem;
  padding: 0.75rem 1.15rem;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}
.btn .icon { transition: transform 0.2s ease; }
.btn:hover .nudge { transform: translateX(-4px); }
.btn-primary { background: var(--blue-deep); color: var(--blue-soft); box-shadow: 0 8px 24px -4px rgba(15, 82, 186, 0.45); }
.btn-primary:hover { background: var(--blue); color: var(--blue-ink); }
.btn-light { background: var(--blue); color: var(--blue-ink); }
.btn-light:hover { background: var(--blue-deep); color: var(--blue-soft); }
.btn-ghost {
  background: rgba(36, 42, 54, 0.9);
  color: var(--text);
  border: 1px solid rgba(67, 70, 83, 0.5);
}
.btn-ghost:hover { background: var(--highest); }
.btn-quiet { background: transparent; color: var(--blue); padding: 0; border-radius: 0; }
.btn-quiet:hover { text-decoration: underline; }
.btn-block { width: 100%; }
.btn-lg { padding: 0.95rem 1.35rem; }
.linkish { background: none; border: 0; padding: 0; color: var(--muted); text-align: right; font-size: 0.82rem; }
.linkish:hover { color: var(--blue); }

.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field span, .label { font-size: 0.75rem; color: var(--muted); }
input, select, textarea {
  width: 100%;
  background: var(--deep);
  border: 1px solid rgba(67, 70, 83, 0.55);
  border-radius: 0.75rem;
  padding: 0.7rem 0.9rem;
  font-size: 0.875rem;
  outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--blue); }
textarea { resize: vertical; min-height: 5.5rem; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: left 0.9rem top 1.05rem, left 1.25rem top 1.05rem; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
input[type="checkbox"] { width: 1rem; height: 1rem; accent-color: var(--blue-deep); margin-top: 0.15rem; }

.check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.7;
}

.drop {
  border: 2px dashed rgba(67, 70, 83, 0.7);
  border-radius: 0.9rem;
  padding: 1.4rem;
  text-align: center;
  background: rgba(8, 14, 25, 0.65);
  cursor: pointer;
}
.drop.is-drag { border-color: var(--blue); background: rgba(15, 82, 186, 0.15); }
.drop input { display: none; }

.progress {
  height: 0.5rem;
  background: var(--deep);
  border-radius: 999px;
  overflow: hidden;
}
.progress > span { display: block; height: 100%; border-radius: 999px; }
.bar-blue { background: var(--blue); }
.bar-peach { background: var(--peach); }
.bar-slate { background: var(--slate); }
.bar-deep { background: var(--blue-deep); }
.bar-burn { background: var(--peach-deep); }

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  border-radius: 0.45rem;
  background: var(--high);
  color: var(--slate);
  font-size: 0.68rem;
  font-weight: 600;
}

.pill {
  border: 0;
  border-radius: 0.65rem;
  padding: 0.5rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--high);
  color: var(--muted);
}
.pill.is-on { background: var(--blue); color: var(--blue-ink); }
.pill.is-blue { background: var(--blue-deep); color: var(--blue-soft); }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  height: auto;
  background: rgba(8, 14, 25, 0.86);
  border-bottom: 1px solid rgba(67, 70, 83, 0.3);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(18px);
}

.header-inner {
  height: var(--header);
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: none;
  border: 0;
  padding: 0;
  text-align: right;
}
.brand-logo {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.65rem;
  background: var(--high);
  border: 1px solid rgba(67, 70, 83, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-btn:hover .brand-logo { border-color: rgba(176, 198, 255, 0.5); }
.brand-name { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.brand-sub { display: none; font-size: 0.68rem; color: rgba(195, 198, 213, 0.8); }

.desktop-nav { display: none; align-items: center; gap: 0.2rem; }
.nav-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
  border-radius: 0.65rem;
  padding: 0.45rem 0.7rem;
  font-size: 0.8rem;
  white-space: nowrap;
}
.nav-btn:hover { color: var(--text); background: var(--card); }
.nav-btn.is-active {
  color: var(--blue);
  font-weight: 700;
  background: rgba(15, 82, 186, 0.2);
  border-color: rgba(176, 198, 255, 0.25);
}

.header-actions { display: flex; align-items: center; gap: 0.55rem; }
.header-actions .btn { padding: 0.5rem 0.8rem; font-size: 0.8rem; }
.hide-sm { display: none; }
.hide-md { display: none; }

.menu-toggle {
  display: inline-flex;
  padding: 0.55rem;
  border-radius: 0.65rem;
  background: var(--card);
  border: 1px solid rgba(67, 70, 83, 0.5);
  color: var(--text);
}

.mobile-nav {
  display: none;
  background: var(--bg);
  border-top: 1px solid rgba(67, 70, 83, 0.4);
  padding: 0.9rem 1rem 1.1rem;
}
.mobile-nav.is-open { display: block; }
.mobile-nav .nav-btn { display: block; width: 100%; text-align: right; margin-bottom: 0.35rem; padding: 0.65rem 0.9rem; }
.mobile-actions { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.7rem; padding-top: 0.8rem; border-top: 1px solid rgba(67, 70, 83, 0.4); }

main { padding-top: var(--header); min-height: 70vh; }

.hero {
  position: relative;
  overflow: hidden;
  background: var(--deep);
  margin-top: calc(var(--header) * -1);
  padding: 8.5rem 0 5rem;
}
.hero-media, .media-fill {
  position: absolute;
  inset: 0;
}
.hero-media img, .media-fill img, .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-media img { opacity: 0.3; filter: grayscale(0.35); }
.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(8, 14, 25, 0.82), rgba(13, 19, 31, 0.9), #0d131f);
}
.arch-grid {
  position: absolute;
  inset: 0;
  background-size: 64px 64px;
  background-image:
    linear-gradient(to right, rgba(176, 198, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(176, 198, 255, 0.05) 1px, transparent 1px);
  opacity: 0.55;
}
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}
.glow-a { width: 34rem; height: 34rem; background: rgba(176, 198, 255, 0.16); top: -8rem; right: 18%; }
.glow-b { width: 28rem; height: 28rem; background: rgba(255, 181, 157, 0.1); top: 30%; left: -8rem; }
.glow-c { width: 22rem; height: 22rem; background: rgba(15, 82, 186, 0.28); top: 20%; right: -6rem; }
.glow-d { width: 18rem; height: 18rem; background: rgba(184, 57, 0, 0.16); bottom: 2rem; left: 2rem; }

.hero-content { position: relative; z-index: 2; }
.hero-grid { display: grid; gap: 1.5rem; align-items: end; }
.cta-col { display: flex; flex-direction: column; gap: 0.75rem; }
.cta-col .btn { justify-content: space-between; }

.metric-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2.2rem;
  padding: 1.25rem;
  background: rgba(26, 32, 43, 0.86);
  border: 1px solid rgba(67, 70, 83, 0.4);
  border-radius: 0.9rem;
  backdrop-filter: blur(16px);
}
.metric-num { font-size: 1.55rem; font-weight: 800; line-height: 1; }

.overlap {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.2rem;
  margin-bottom: 0;
  position: relative;
  z-index: 3;
}
.hero:has(.overlap) {
  overflow: visible;
  padding-bottom: 0;
}
.hero:has(.overlap) .hero-media {
  overflow: hidden;
}
.hero:has(.overlap) + .spacer {
  height: 1.25rem;
  background: transparent;
}
.monolith {
  text-align: right;
  background: rgba(36, 42, 54, 0.96);
  border: 1px solid rgba(67, 70, 83, 0.45);
  border-radius: 0.95rem;
  padding: 1.6rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.2rem;
  min-height: 100%;
  color: inherit;
}
.monolith:hover { background: var(--highest); border-color: rgba(176, 198, 255, 0.5); }
.monolith.lift {
  background: var(--highest);
  border-color: rgba(255, 181, 157, 0.45);
}
.monolith.lift:hover { background: var(--bright); border-color: rgba(255, 181, 157, 0.7); }
.monolith h3 { font-size: 1.15rem; margin: 0.4rem 0; }
.spacer { height: 6.5rem; background: var(--bg); }

.photo { position: relative; overflow: hidden; height: 15rem; background: var(--deep); }
.photo.tall { height: 18rem; }
.photo .cap {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(8, 14, 25, 0.85);
  backdrop-filter: blur(8px);
  padding: 0.25rem 0.65rem;
  border-radius: 0.45rem;
  font-size: 0.68rem;
}
.photo .fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--card), transparent 55%);
}
.photo-card { overflow: hidden; padding: 0; display: flex; flex-direction: column; }
.photo-card .body { padding: 1.35rem; display: flex; flex-direction: column; gap: 1rem; flex: 1; }

.fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(15, 82, 186, 0.3), var(--low), var(--deep));
  color: rgba(176, 198, 255, 0.45);
  position: relative;
}

.code-badge {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-weight: 700;
  background: var(--highest);
  color: var(--blue);
}
.code-badge.secondary { background: rgba(184, 57, 0, 0.22); color: var(--peach); border: 1px solid rgba(255, 181, 157, 0.3); }
.code-badge.tertiary { background: var(--high); color: var(--slate); border: 1px solid rgba(185, 199, 228, 0.3); }
.code-badge.primary { background: rgba(15, 82, 186, 0.25); color: var(--blue); border: 1px solid rgba(176, 198, 255, 0.3); }
.code-badge.lg { width: 3.4rem; height: 3.4rem; font-size: 1.15rem; border-radius: 0.85rem; }

.stat-foot {
  background: var(--low);
  border-radius: 0.7rem;
  padding: 0.7rem 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.core {
  background: var(--blue-deep);
  color: var(--blue-soft);
  border-color: rgba(176, 198, 255, 0.35);
}
.core h4, .core .white { color: var(--white); }

.featured {
  background: var(--high);
  border-color: rgba(176, 198, 255, 0.5);
  box-shadow: 0 12px 32px rgba(15, 82, 186, 0.22);
}
.blue-slab {
  background: var(--blue-deep);
  color: var(--blue-soft);
  border: 0;
  box-shadow: 0 16px 40px rgba(15, 82, 186, 0.3);
}
.blue-slab h3, .blue-slab .white { color: #fff; }

.obs {
  background: rgba(26, 32, 43, 0.9);
  border: 1px solid rgba(176, 198, 255, 0.16);
  border-radius: 0.95rem;
  padding: 1.15rem;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.success {
  background: var(--low);
  border: 1px solid rgba(176, 198, 255, 0.35);
  border-radius: 0.9rem;
  padding: 1.5rem;
  text-align: center;
}

.faq-item { background: var(--card); border: 1px solid rgba(67, 70, 83, 0.35); border-radius: 0.85rem; overflow: hidden; }
.faq-q {
  width: 100%;
  background: none;
  border: 0;
  color: var(--text);
  text-align: right;
  padding: 1.1rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.92rem;
  font-weight: 600;
}
.faq-q:hover { color: var(--blue); }
.faq-a { display: none; padding: 0 1.2rem 1.1rem; color: var(--muted); font-size: 0.85rem; line-height: 1.85; }
.faq-item.is-open .faq-a { display: block; }
.faq-item.is-open .chev { transform: rotate(180deg); color: var(--blue); }
.chev { transition: transform 0.2s ease; color: var(--faint); }

.choice {
  border: 1px solid rgba(67, 70, 83, 0.4);
  background: var(--low);
  color: var(--text);
  border-radius: 0.85rem;
  padding: 0.9rem;
  text-align: center;
}
.choice.is-on { background: var(--blue-deep); color: var(--blue-soft); border-color: rgba(176, 198, 255, 0.4); }

.site-footer {
  background: var(--deep);
  border-top: 1px solid rgba(67, 70, 83, 0.3);
  color: var(--muted);
  padding: 3.2rem 0 1.5rem;
}
.footer-grid { display: grid; gap: 1.8rem; }
.news-form {
  display: flex;
  align-items: center;
  background: var(--card);
  border: 1px solid rgba(67, 70, 83, 0.45);
  border-radius: 0.7rem;
  padding: 0.2rem;
}
.news-form input { border: 0; background: transparent; padding: 0.45rem 0.6rem; }
.news-form .btn { padding: 0.4rem 0.7rem; font-size: 0.75rem; border-radius: 0.45rem; }
.legal {
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(67, 70, 83, 0.3);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  font-size: 0.82rem;
}
.legal button, .legal a { background: none; border: 0; color: inherit; padding: 0; }
.legal button:hover, .legal a:hover { color: var(--text); }

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-backdrop.is-open { display: flex; }
.modal {
  position: relative;
  width: 100%;
  max-width: 34rem;
  max-height: 90vh;
  overflow: auto;
  background: var(--card);
  border: 1px solid rgba(67, 70, 83, 0.6);
  border-radius: 1.1rem;
  padding: 1.6rem;
  box-shadow: var(--shadow);
}
.modal.wide { max-width: 42rem; }
.modal-x {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: transparent;
  border: 0;
  color: var(--faint);
  padding: 0.35rem;
  border-radius: 0.5rem;
}
.modal-x:hover { color: var(--text); background: var(--high); }

.toast {
  position: fixed;
  bottom: 1.25rem;
  left: 1.25rem;
  z-index: 60;
  width: min(24rem, calc(100vw - 2.5rem));
  background: var(--low);
  border: 1px solid rgba(176, 198, 255, 0.4);
  border-radius: 0.85rem;
  padding: 0.9rem;
  display: none;
  gap: 0.7rem;
  align-items: flex-start;
  box-shadow: var(--shadow);
}
.toast.is-on { display: flex; }
.toast button { background: none; border: 0; color: var(--faint); padding: 0; }
.toast button:hover { color: var(--text); }

.back-top {
  position: fixed;
  bottom: 1.4rem;
  right: 1.4rem;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 0.8rem;
  border-radius: 0.85rem;
  background: rgba(22, 28, 39, 0.95);
  border: 1px solid rgba(176, 198, 255, 0.35);
  color: var(--text);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease;
}
.back-top.is-on { opacity: 1; transform: none; pointer-events: auto; }
.back-top:hover { background: var(--blue-deep); color: #fff; }
.back-label { display: none; }

.brandword {
  display: inline-flex;
  align-items: center;
  direction: ltr;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}
.orb { width: 1.15rem; height: 1.15rem; margin: 0 0.12rem; }
.orb-lg { width: 1.7rem; height: 1.7rem; }
.brandword.lg { font-size: 1.7rem; }
.brandword.sm { font-size: 1rem; }

.step-num { font-family: var(--mono); font-size: 1.45rem; font-weight: 800; color: var(--blue); }
.hidden { display: none !important; }
.rel { position: relative; }
.z2 { position: relative; z-index: 2; }

.gauge { position: relative; width: 5rem; height: 5rem; flex-shrink: 0; }
.gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
}

.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; text-align: center; background: var(--low); border-radius: 0.8rem; padding: 0.8rem; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.grid-12 { display: grid; gap: 1.25rem; }
.head-row { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.6rem; }
.list-check { display: flex; gap: 0.55rem; align-items: flex-start; background: var(--high); border-radius: 0.65rem; padding: 0.7rem 0.8rem; font-size: 0.78rem; }
.note { background: var(--high); border: 1px solid rgba(67, 70, 83, 0.35); border-radius: 0.85rem; padding: 0.9rem 1rem; }
.soft-box { background: rgba(47, 53, 65, 0.55); border-radius: 0.75rem; padding: 0.8rem; }
.dark-box { background: rgba(0, 0, 0, 0.25); border-radius: 0.7rem; padding: 0.75rem; }

@media (min-width: 640px) {
  .wrap { padding: 0 1.5rem; }
  .display { font-size: 2.7rem; }
  .title { font-size: 2rem; }
  .brand-sub { display: block; }
  .hide-sm { display: inline-flex; }
  .back-label { display: inline; }
  .lead { font-size: 1.05rem; }
  .metric-num { font-size: 1.85rem; }
}

@media (min-width: 768px) {
  .cols-2, .md-2 { grid-template-columns: 1fr 1fr; }
  .cols-3 { grid-template-columns: 1fr 1fr; }
  .cols-4 { grid-template-columns: repeat(4, 1fr); }
  .md-3 { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .legal { flex-direction: row; align-items: center; justify-content: space-between; }
  .metric-bar { grid-template-columns: repeat(4, 1fr); }
  .monolith.lift { transform: translateY(-1rem); }
  .hide-md { display: inline-flex; }
  .split-form { grid-template-columns: 5fr 7fr; }
  .head-row { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .ticks > :not(:first-child) { border-right: 1px solid #242a36; padding-right: 1.4rem; }
}

@media (min-width: 1024px) {
  .wrap { padding: 0 2rem; }
  .display { font-size: 3.15rem; }
  .desktop-nav { display: flex; }
  .menu-toggle, .mobile-nav { display: none !important; }
  .cols-3, .lg-3 { grid-template-columns: repeat(3, 1fr); }
  .cols-4 { grid-template-columns: repeat(4, 1fr); }
  .cols-5 { grid-template-columns: repeat(5, 1fr); }
  .lg-2 { grid-template-columns: 1fr 1fr; }
  .hero-grid, .split { grid-template-columns: 8fr 4fr; }
  .split-7 { grid-template-columns: 7fr 5fr; }
  .split-5 { grid-template-columns: 5fr 7fr; }
  .span-7 { grid-column: span 7; }
  .span-5 { grid-column: span 5; }
  .span-8 { grid-column: span 8; }
  .span-6 { grid-column: span 6; }
  .span-4 { grid-column: span 4; }
  .wide-2 { grid-column: span 2; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.15fr; }
  .featured { margin-top: -0.8rem; }
  .blue-slab.lift { margin-top: -1rem; }
  .cta-col { align-items: stretch; }
  .grid-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
}

.otp-modal { max-width: 24rem; }
.otp-code {
  letter-spacing: 0.42em;
  text-align: center;
  font-family: var(--mono);
  font-size: 1.35rem;
  padding-left: 0.4rem;
}
.otp-clock { color: var(--blue); }
.btn:disabled { opacity: 0.45; cursor: default; }
.btn:disabled:hover { background: var(--blue-deep); color: var(--blue-soft); }
.btn-ghost:disabled:hover { background: rgba(36, 42, 54, 0.9); color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
