/* ===========================================================
   Byzantium — V1 stylesheet
   Imperial violet + Byzantine gold on deep space-black
   =========================================================== */

:root {
  --bg: #08060f;
  --bg-2: #0c0a18;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-2: rgba(255, 255, 255, 0.05);
  --border: rgba(183, 139, 255, 0.14);
  --border-soft: rgba(255, 255, 255, 0.08);

  --text: #ece9f5;
  --text-muted: #a39fb8;
  --text-dim: #6f6a83;

  --violet: #b78bff;
  --violet-deep: #7c3aed;
  --gold: #e9b949;
  --gold-deep: #d98a3d;

  --grad: linear-gradient(110deg, #b78bff 0%, #c9a0ff 35%, #e9b949 100%);
  --grad-soft: linear-gradient(135deg, rgba(124, 58, 237, 0.18), rgba(233, 185, 73, 0.12));

  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1180px;
  --shadow: 0 30px 80px -40px rgba(124, 58, 237, 0.55);
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "Space Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Background layers ---------- */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(183, 139, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(183, 139, 255, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  z-index: -2;
  pointer-events: none;
}
.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.5;
  z-index: -1;
  pointer-events: none;
}
.bg-glow--one {
  width: 620px; height: 620px;
  top: -220px; left: -120px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.55), transparent 70%);
}
.bg-glow--two {
  width: 560px; height: 560px;
  top: 320px; right: -160px;
  background: radial-gradient(circle, rgba(233, 185, 73, 0.28), transparent 70%);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}
.btn--lg { padding: 15px 28px; font-size: 1.02rem; }
.btn--primary {
  background: var(--grad);
  color: #1a1030;
  box-shadow: 0 12px 40px -12px rgba(183, 139, 255, 0.6);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 50px -12px rgba(183, 139, 255, 0.8); }
.btn--outline {
  border-color: var(--border);
  color: var(--text);
  background: var(--surface);
}
.btn--outline:hover { border-color: var(--violet); background: var(--surface-2); transform: translateY(-2px); }
.btn--ghost { color: var(--text-muted); background: transparent; }
.btn--ghost:hover { color: var(--text); }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(8, 6, 15, 0.72);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--border-soft);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark { flex-shrink: 0; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

/* ---- Brand wordmark (final logo: gold-foil serif, ن for the "u") ---- */
.wordmark {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.35;
  letter-spacing: 0.005em;
  white-space: nowrap;
  display: inline-flex;
  align-items: baseline;
  background: linear-gradient(
    180deg,
    #fff4cf 0%,
    #f4d886 26%,
    #e8bd54 48%,
    #cf9a36 70%,
    #ad7a29 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.wordmark__n {
  font-family: "Amiri", serif;
  font-weight: 700;
  font-size: 1.06em;
  line-height: 0;
  margin: 0 0.02em;
  -webkit-text-fill-color: #eabf52;
  color: #eabf52;
  filter: drop-shadow(0 1px 6px rgba(233, 185, 73, 0.5));
}
.nav__links { display: flex; gap: 28px; }
.nav__links a {
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
  position: relative;
}
.nav__links a:hover { color: var(--text); }
.nav__actions { display: flex; align-items: center; gap: 12px; }
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav__toggle span {
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: 90px 0 60px; position: relative; isolation: isolate; }
.hero__canvas {
  position: absolute;
  inset: -120px 0 -40px 0;
  z-index: 0;
  pointer-events: none;
}
.hero__canvas canvas { display: block; width: 100% !important; height: 100% !important; }
.hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 46% 40% at 50% 46%, rgba(8, 6, 15, 0.82), rgba(8, 6, 15, 0.28) 58%, transparent 80%),
    linear-gradient(180deg, transparent 60%, var(--bg) 100%);
}
.hero__inner { position: relative; z-index: 2; text-align: center; display: flex; flex-direction: column; align-items: center; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  margin-bottom: 32px;
  transition: border-color 0.25s ease, color 0.25s ease;
}
.pill:hover { border-color: var(--violet); color: var(--text); }
.pill__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px var(--gold);
  animation: pulse 2s infinite;
}
.pill__arrow { color: var(--violet); }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
}
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__sub {
  max-width: 660px;
  font-size: clamp(1.02rem, 2vw, 1.22rem);
  color: var(--text-muted);
  margin-bottom: 38px;
}
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.hero__trust { margin-top: 56px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.hero__trust > span {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.hero__logos { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.logo-chip {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 7px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  background: var(--surface);
}

/* ---------- Stats ---------- */
.stats { padding: 30px 0 70px; }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding: 34px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--grad-soft);
  backdrop-filter: blur(8px);
}
.stat { text-align: center; }
.stat__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.02em;
}
.stat__label { color: var(--text-muted); font-size: 0.92rem; margin-top: 4px; }

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section--alt { position: relative; }
.section--alt::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent, rgba(124, 58, 237, 0.05), transparent);
  z-index: -1;
}
.section__head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.section__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 4.4vw, 2.9rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
}
.section__lead { color: var(--text-muted); font-size: 1.08rem; margin-top: 16px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step {
  padding: 28px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
  background: var(--surface);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.step:hover { transform: translateY(-4px); border-color: var(--border); background: var(--surface-2); }
.step__num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--violet);
  margin-bottom: 16px;
}
.step h3 { font-family: var(--font-display); font-size: 1.18rem; margin-bottom: 10px; }
.step p { color: var(--text-muted); font-size: 0.96rem; }

/* ---------- Feature grid ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  padding: 30px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
  background: var(--surface);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.card::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(183, 139, 255, 0.12), transparent 60%);
  opacity: 0; transition: opacity 0.3s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--border); }
.card:hover::after { opacity: 1; }
.card__icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  font-size: 1.5rem;
  border-radius: 14px;
  background: var(--grad-soft);
  border: 1px solid var(--border);
  margin-bottom: 18px;
}
.card h3 { font-family: var(--font-display); font-size: 1.22rem; margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 0.97rem; }

/* ---------- Network ---------- */
.net { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 60px; align-items: center; }
.net__copy .section__title { margin-bottom: 0; }
.net__list { list-style: none; margin: 24px 0 30px; display: flex; flex-direction: column; gap: 12px; }
.net__list li { color: var(--text-muted); padding-left: 26px; position: relative; }
.net__list li::before {
  content: "◆";
  position: absolute; left: 0; top: 0;
  color: var(--gold);
  font-size: 0.8rem;
}
.net__list strong { color: var(--text); }
.net__cta { display: flex; gap: 14px; flex-wrap: wrap; }

.net__viz { display: grid; place-items: center; }
.orbit {
  position: relative;
  width: 360px; height: 360px;
  display: grid; place-items: center;
}
.orbit__core {
  width: 110px; height: 110px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 3rem;
  line-height: 1;
  color: #1a1030;
  background: var(--grad);
  box-shadow: 0 0 60px rgba(183, 139, 255, 0.5), inset 0 0 20px rgba(255,255,255,0.3);
  z-index: 3;
}
.orbit__ring {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed var(--border);
}
.orbit__ring--1 { width: 200px; height: 200px; animation: spin 26s linear infinite; }
.orbit__ring--2 { width: 290px; height: 290px; animation: spin 40s linear infinite reverse; }
.orbit__ring--3 { width: 360px; height: 360px; border-style: solid; border-color: var(--border-soft); }
@keyframes spin { to { transform: rotate(360deg); } }

.node {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 6px 11px;
  border-radius: 9px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: 0 8px 24px -12px rgba(124, 58, 237, 0.7);
  white-space: nowrap;
  z-index: 2;
}
.node--1 { top: 4%; left: 50%; transform: translateX(-50%); }
.node--2 { top: 30%; right: -4%; }
.node--3 { bottom: 22%; right: 2%; }
.node--4 { bottom: 2%; left: 50%; transform: translateX(-50%); }
.node--5 { bottom: 28%; left: -2%; }
.node--6 { top: 28%; left: -2%; }

/* ---------- Split panels ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.panel {
  padding: 42px 38px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  position: relative;
}
.panel h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.02em;
  margin: 12px 0 14px;
  line-height: 1.12;
}
.panel p { color: var(--text-muted); margin-bottom: 22px; }
.ticks { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.ticks li { padding-left: 30px; position: relative; color: var(--text); }
.ticks li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  width: 20px; height: 20px;
  display: grid; place-items: center;
  font-size: 0.72rem;
  color: var(--gold);
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface-2);
}

/* ---------- CTA ---------- */
.cta { padding: 30px 0 100px; position: relative; isolation: isolate; }
.cta__canvas {
  position: absolute;
  inset: -40px 0 -40px 0;
  z-index: 0;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 72% 82% at 50% 50%, #000 45%, transparent 84%);
  -webkit-mask-image: radial-gradient(ellipse 72% 82% at 50% 50%, #000 45%, transparent 84%);
}
.cta__canvas canvas { display: block; width: 100% !important; height: 100% !important; }
.cta__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 64px 32px;
  border-radius: 26px;
  border: 1px solid var(--border);
  background: var(--grad-soft);
  position: relative;
  overflow: hidden;
}
.cta__inner::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(600px circle at 50% -20%, rgba(183, 139, 255, 0.25), transparent 60%);
  pointer-events: none;
}
.cta__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
  max-width: 760px;
  margin: 0 auto 14px;
}
.cta__sub { color: var(--text-muted); font-size: 1.1rem; max-width: 560px; margin: 0 auto 30px; }
.cta__form {
  display: flex;
  gap: 12px;
  max-width: 500px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}
.cta__input {
  flex: 1;
  min-width: 240px;
  padding: 15px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(8, 6, 15, 0.6);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
}
.cta__input::placeholder { color: var(--text-dim); }
.cta__input:focus { outline: none; border-color: var(--violet); }
.cta__fine { margin-top: 16px; font-size: 0.85rem; color: var(--text-dim); }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq__item {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 4px 22px;
  transition: border-color 0.25s ease;
}
.faq__item[open] { border-color: var(--border); }
.faq__item summary {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 18px 0;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--violet);
  transition: transform 0.25s ease;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { color: var(--text-muted); padding-bottom: 20px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border-soft); padding-top: 60px; }
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer__brand p { color: var(--text-muted); margin-top: 14px; max-width: 320px; font-size: 0.95rem; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer__col h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  margin-bottom: 14px;
  color: var(--text);
}
.footer__col a {
  display: block;
  color: var(--text-muted);
  font-size: 0.92rem;
  padding: 5px 0;
  transition: color 0.2s ease;
}
.footer__col a:hover { color: var(--violet); }
.footer__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  border-top: 1px solid var(--border-soft);
  color: var(--text-dim);
  font-size: 0.86rem;
  flex-wrap: wrap;
  gap: 10px;
}
.footer__legal { display: flex; gap: 20px; }
.footer__legal a:hover { color: var(--text); }

/* ---------- Coming soon ---------- */
.coming {
  min-height: 100vh;
  display: grid;
  place-items: center;
  position: relative;
  isolation: isolate;
  padding: 56px 0;
  text-align: center;
  overflow: hidden;
}
.coming__canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.coming__canvas canvas { display: block; width: 100% !important; height: 100% !important; }
.coming__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 46% 36% at 50% 48%, rgba(8, 6, 15, 0.6), transparent 72%),
    linear-gradient(180deg, rgba(8, 6, 15, 0.5) 0%, transparent 26%, transparent 80%, var(--bg) 100%);
}
.coming__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.coming__brand { margin-top: -28px; margin-bottom: 26px; }
.coming__brand .wordmark { font-size: 4.25rem; }
.coming__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 6.5vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  max-width: 16ch;
  margin: 18px 0 22px;
}
.coming__sub {
  max-width: 560px;
  font-size: clamp(1rem, 2vw, 1.18rem);
  color: var(--text-muted);
  margin-bottom: 34px;
}
.coming__logos { margin-top: 48px; }
.coming__back {
  margin-top: 30px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
}
.coming__back:hover { color: var(--violet); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .net { grid-template-columns: 1fr; gap: 40px; }
  .net__viz { order: -1; }
  .split { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav__links, .nav__actions { display: none; }
  .nav__toggle { display: flex; }
  .nav.is-open .nav__links {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 4px;
    padding: 16px 24px 22px;
    background: rgba(8, 6, 15, 0.96);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-soft);
  }
  .nav.is-open .nav__actions {
    display: flex;
    position: absolute;
    top: calc(100% + 168px); left: 0; right: 0;
    padding: 0 24px 20px;
    background: rgba(8, 6, 15, 0.96);
  }
  .nav.is-open .nav__actions .btn { flex: 1; }
}

@media (max-width: 560px) {
  .feature-grid, .steps { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .orbit { width: 290px; height: 290px; }
  .orbit__ring--3 { width: 290px; height: 290px; }
  .orbit__ring--2 { width: 235px; height: 235px; }
  .orbit__ring--1 { width: 165px; height: 165px; }
  .cta__inner { padding: 44px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
