@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ============================================================
   RESET & BASE
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:       #2563EB;
  --blue-light: #3B82F6;
  --blue-dark:  #1D4ED8;
  --cyan:       #06B6D4;
  --green:      #10B981;
  --orange:     #F59E0B;
  --red:        #EF4444;
  --purple:     #8B5CF6;
  --dark:       #0A0F1E;
  --dark2:      #111827;
  --dark3:      #1F2937;
  --text:       #E5E7EB;
  --text-muted: #9CA3AF;
  --border:     rgba(255,255,255,0.08);
  --card-bg:    rgba(31,41,55,0.7);
  --radius:     12px;
  --shadow:     0 4px 24px rgba(0,0,0,0.35);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--dark);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

a { color: var(--blue-light); text-decoration: none; }
a:hover { color: var(--cyan); }

img { display: block; max-width: 100%; }

/* ============================================================
   RTL — Arabic
============================================================ */
html[lang="ar"] {
  direction: rtl;
  text-align: right;
}
html[lang="ar"] .topnav__inner,
html[lang="ar"] .nav-content { flex-direction: row-reverse; }
html[lang="ar"] .topnav__links { flex-direction: row-reverse; }
html[lang="ar"] .lang-menu { right: auto; left: 0; }
html[lang="ar"] .lang-option:hover { transform: translateX(-4px); }
html[lang="ar"] .hero__inner { direction: rtl; }
html[lang="ar"] .hero__badge { flex-direction: row-reverse; }
html[lang="ar"] .hero__actions { flex-direction: row-reverse; }
html[lang="ar"] .footer-inner { direction: rtl; }
html[lang="ar"] .module-card { text-align: right; }
html[lang="ar"] .db-card { flex-direction: row-reverse; }

/* ============================================================
   UTILITIES
============================================================ */
.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 5vw, 3rem);
}

.section { padding-block: clamp(4rem, 8vw, 7rem); }
.section--alt { background: var(--dark2); }
.section--dark3 { background: var(--dark3); }

.tag {
  display: inline-block;
  background: rgba(37,99,235,0.18);
  color: var(--blue-light);
  border: 1px solid rgba(37,99,235,0.35);
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .25rem .75rem;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: .75rem;
}

.section-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 700px;
  margin-bottom: 3rem;
}

.text-gradient {
  background: linear-gradient(90deg, var(--blue-light), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all .2s;
  border: none;
  text-decoration: none;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-2px); color: #fff; }
.btn-outline { background: transparent; border: 2px solid var(--blue-light); color: var(--blue-light); }
.btn-outline:hover { background: var(--blue-light); color: #fff; }

/* ============================================================
   TOPNAV
============================================================ */
.topnav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,15,30,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.topnav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 1.5rem;
}
.topnav__logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: 1.35rem;
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
}
.topnav__logo img {
  height: 36px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.topnav__logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* Nav links */
.topnav__links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  flex: 1;
  justify-content: center;
}
.topnav__links a {
  color: var(--text-muted);
  font-size: .88rem;
  font-weight: 500;
  transition: color .2s;
  white-space: nowrap;
}
.topnav__links a:hover { color: #fff; }

/* Nav right side */
.topnav__right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
  transition: all .2s;
  line-height: 1;
}
.mobile-menu-toggle:hover { color: #fff; border-color: rgba(255,255,255,0.2); }

/* ============================================================
   LANGUAGE SWITCHER — Dark theme
============================================================ */
.language-switcher { position: relative; }

.lang-dropdown { position: relative; display: inline-block; }

.lang-current {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  padding: 7px 12px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-muted);
  transition: all .2s;
  outline: none;
  white-space: nowrap;
}
.lang-current:hover {
  background: rgba(37,99,235,0.15);
  border-color: rgba(37,99,235,0.4);
  color: var(--text);
}
.lang-current .flag { font-size: 16px; }
.lang-current .lang-code { font-weight: 600; min-width: 22px; }
.lang-current .arrow { font-size: 9px; transition: transform .3s; }
.lang-dropdown.show .arrow { transform: rotate(180deg); }

.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--dark3);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
  min-width: 180px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all .25s;
  overflow: hidden;
}
.lang-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  text-decoration: none;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  transition: all .15s;
  border-bottom: 1px solid var(--border);
}
.lang-option:last-child { border-bottom: none; }
.lang-option:hover {
  background: rgba(37,99,235,0.12);
  color: var(--text);
  transform: translateX(3px);
}
.lang-option.active {
  background: rgba(37,99,235,0.18);
  color: var(--blue-light);
  font-weight: 600;
}
.lang-option .flag { font-size: 16px; }
.lang-option .lang-name { flex: 1; }

/* ============================================================
   HERO
============================================================ */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(37,99,235,0.25) 0%, transparent 70%),
              linear-gradient(180deg, #0A0F1E 0%, #070B16 100%);
}
/* Animated grid canvas replaces static ::after pattern */
.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { display: none; }
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(37,99,235,0.15);
  border: 1px solid rgba(37,99,235,0.4);
  border-radius: 999px;
  padding: .35rem 1rem;
  font-size: .8rem;
  font-weight: 700;
  color: var(--blue-light);
  letter-spacing: .06em;
  margin-bottom: 1.5rem;
}
.hero__badge span { color: var(--cyan); }
.hero__title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.02em;
  margin-bottom: 1.5rem;
}
.hero__desc {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 2.5rem;
}
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Floating stat cards */
.hero__visual {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.stat-card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow);
  animation: float 6s ease-in-out infinite;
}
.stat-card:nth-child(2) { animation-delay: -2s; }
.stat-card:nth-child(3) { animation-delay: -4s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.stat-icon--blue { background: rgba(37,99,235,0.2); }
.stat-icon--cyan { background: rgba(6,182,212,0.2); }
.stat-icon--green { background: rgba(16,185,129,0.2); }
.stat-num {
  font-size: 1.6rem;
  font-weight: 900;
  color: #fff;
}
.stat-label { font-size: .85rem; color: var(--text-muted); }

/* ============================================================
   STATS BAND
============================================================ */
.stats-band {
  background: var(--dark2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-band__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
}
.stats-band__item {
  padding: 2rem 1.5rem;
  text-align: center;
  border-right: 1px solid var(--border);
}
.stats-band__item:last-child { border-right: none; }
.stats-band__num {
  font-size: 2.4rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--blue-light), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: transform .3s;
}
.stats-band__item:hover .stats-band__num {
  transform: scale(1.08);
}
.stats-band__label { font-size: .85rem; color: var(--text-muted); margin-top: .25rem; }

/* ============================================================
   MODULES GRID
============================================================ */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.module-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform .25s, border-color .25s;
}
.module-card:hover {
  transform: translateY(-4px);
  border-color: rgba(37,99,235,0.45);
  box-shadow: 0 8px 32px rgba(37,99,235,0.08);
}
.module-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}
.module-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: .5rem;
  color: #fff;
}
.module-card__desc {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.65;
}
.module-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: 1.25rem;
}
.chip {
  font-size: .72rem;
  padding: .2rem .6rem;
  border-radius: 6px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-muted);
}

/* ============================================================
   PROTOCOLS
============================================================ */
.protocol-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}
.protocol-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  transition: all .2s;
}
.protocol-card:hover {
  border-color: rgba(6,182,212,0.5);
  background: rgba(6,182,212,0.07);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(6,182,212,0.06);
}
.protocol-card__icon { width: 32px; height: 32px; margin: 0 auto .6rem; }
.protocol-card__logo { width: 100%; height: 100%; object-fit: contain; }
.protocol-card__name {
  font-size: .85rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: .25rem;
}
.protocol-card__desc { font-size: .72rem; color: var(--text-muted); }

/* ============================================================
   DATABASE SECTION
============================================================ */
.db-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}
.db-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all .2s;
}
.db-card:hover { border-color: rgba(16,185,129,0.5); transform: translateX(4px); }
.db-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: rgba(255,255,255,0.06);
}
.db-card__logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.db-card__name { font-weight: 700; font-size: .95rem; margin-bottom: .2rem; color: #fff; }
.db-card__type { font-size: .78rem; color: var(--text-muted); }

/* ============================================================
   BENTO GRID
============================================================ */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 1.5rem;
}
@media (max-width: 900px) { .bento-grid { grid-template-columns: 1fr; } }
@media (min-width: 901px) and (max-width: 1100px) { .bento-grid { grid-template-columns: repeat(2, 1fr); } }

.bento-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  transition: transform .25s;
}
.bento-card:hover { transform: translateY(-3px); }
.bento-card--wide { grid-column: span 2; }
.bento-card--tall { grid-row: span 2; }
@media (max-width: 1100px) {
  .bento-card--wide,
  .bento-card--tall { grid-column: span 1; grid-row: span 1; }
}
.bento-card__icon { font-size: 2rem; margin-bottom: 1rem; }
.bento-card__title { font-size: 1.1rem; font-weight: 800; color: #fff; margin-bottom: .5rem; }
.bento-card__text { font-size: .9rem; color: var(--text-muted); line-height: 1.65; }
.bento-card__list {
  list-style: none;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.bento-card__list li {
  font-size: .85rem;
  color: var(--text-muted);
  display: flex;
  gap: .5rem;
  align-items: flex-start;
}
.bento-card__list li::before {
  content: '✓';
  color: var(--green);
  flex-shrink: 0;
  font-weight: 700;
}

/* ============================================================
   PLATFORM SECTION
============================================================ */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}
.platform-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  text-align: center;
  transition: all .2s;
}
.platform-card:hover {
  border-color: rgba(37,99,235,0.5);
  transform: translateY(-3px);
}
.platform-card__icon { width: 36px; height: 36px; margin: 0 auto .6rem; line-height: 1; }
.platform-card__logo { width: 100%; height: 100%; object-fit: contain; }
.platform-card__name { font-size: .9rem; font-weight: 700; color: #fff; }

/* ============================================================
   AI SECTION
============================================================ */
.ai-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.ai-card {
  background: linear-gradient(135deg, rgba(139,92,246,0.12), rgba(37,99,235,0.08));
  border: 1px solid rgba(139,92,246,0.25);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: all .2s;
}
.ai-card:hover { border-color: rgba(139,92,246,0.55); transform: translateY(-3px); }
.ai-card__icon { width: 36px; height: 36px; margin: 0 auto .6rem; }
.ai-card__logo { width: 100%; height: 100%; object-fit: contain; }
.ai-card__name { font-weight: 700; color: #fff; margin-bottom: .25rem; }
.ai-card__desc { font-size: .78rem; color: var(--text-muted); }

/* ============================================================
   USE CASES
============================================================ */
.usecase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.usecase-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s;
}
.usecase-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.25); }
.usecase-card__header {
  padding: 1.5rem;
  font-size: 2.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.usecase-card__body { padding: 1.5rem; border-top: 1px solid var(--border); }
.usecase-card__title { font-weight: 800; font-size: 1rem; color: #fff; margin-bottom: .5rem; }
.usecase-card__text { font-size: .85rem; color: var(--text-muted); line-height: 1.65; }

/* ============================================================
   CTA SECTION
============================================================ */
.cta {
  background: linear-gradient(135deg, rgba(37,99,235,0.25), rgba(6,182,212,0.15));
  border-top: 1px solid rgba(37,99,235,0.3);
  border-bottom: 1px solid rgba(37,99,235,0.3);
  text-align: center;
  padding-block: 5rem;
}
.cta__title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  margin-bottom: 1rem;
}
.cta__sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-inline: auto;
}
.cta__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   FOOTER
============================================================ */
footer {
  background: #070B16;
  border-top: 1px solid var(--border);
  padding-block: 3rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}
@media (max-width: 768px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-brand p { font-size: .85rem; color: var(--text-muted); margin-top: .75rem; max-width: 280px; }
.footer-col h4 {
  font-size: .85rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.footer-col li { font-size: .85rem; color: var(--text-muted); }
.footer-col a { color: var(--text-muted); transition: color .2s; }
.footer-col a:hover { color: var(--blue-light); }
.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .8rem;
  color: var(--text-muted);
}

/* ============================================================
   HERO ANIMATED CANVAS
============================================================ */
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* ============================================================
   FADE-IN ANIMATION
============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.modules-grid .fade-in:nth-child(2) { transition-delay: .08s; }
.modules-grid .fade-in:nth-child(3) { transition-delay: .16s; }
.modules-grid .fade-in:nth-child(4) { transition-delay: .24s; }
.modules-grid .fade-in:nth-child(5) { transition-delay: .32s; }
.modules-grid .fade-in:nth-child(6) { transition-delay: .4s; }
.modules-grid .fade-in:nth-child(7) { transition-delay: .48s; }
.modules-grid .fade-in:nth-child(8) { transition-delay: .56s; }
.modules-grid .fade-in:nth-child(9) { transition-delay: .64s; }

.protocol-grid .fade-in:nth-child(2) { transition-delay: .06s; }
.protocol-grid .fade-in:nth-child(3) { transition-delay: .12s; }
.protocol-grid .fade-in:nth-child(4) { transition-delay: .18s; }
.protocol-grid .fade-in:nth-child(5) { transition-delay: .24s; }
.protocol-grid .fade-in:nth-child(6) { transition-delay: .3s; }
.protocol-grid .fade-in:nth-child(7) { transition-delay: .36s; }
.protocol-grid .fade-in:nth-child(8) { transition-delay: .42s; }
.protocol-grid .fade-in:nth-child(9) { transition-delay: .48s; }

/* ============================================================
   UNS SECTION
============================================================ */
.uns-architecture {
  display: flex;
  justify-content: center;
  margin-bottom: 3.5rem;
}

.uns-hub {
  position: relative;
  width: 280px;
  height: 280px;
}

.uns-hub__core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140px;
  height: 140px;
  background: linear-gradient(135deg, rgba(6,182,212,0.15), rgba(37,99,235,0.15));
  border: 2px solid rgba(6,182,212,0.4);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .2rem;
  z-index: 2;
  animation: unsPulse 3s ease-in-out infinite;
}

@keyframes unsPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(6,182,212,0.2); }
  50% { box-shadow: 0 0 30px 10px rgba(6,182,212,0.15); }
}

.uns-hub__icon { font-size: 1.8rem; }
.uns-hub__label {
  font-size: .7rem;
  font-weight: 800;
  color: var(--cyan);
  text-align: center;
  line-height: 1.2;
}
.uns-hub__sublabel {
  font-size: .6rem;
  color: var(--text-muted);
}

.uns-spokes {
  position: absolute;
  inset: 0;
}

.uns-spoke {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(37,99,235,0.12);
  border: 1px solid rgba(37,99,235,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}
.uns-spoke span {
  font-size: .65rem;
  font-weight: 800;
  color: var(--blue-light);
}

.uns-spoke--1 { top: 0; left: 50%; transform: translateX(-50%); animation: unsOrbit1 8s linear infinite; }
.uns-spoke--2 { top: 15%; right: 0; animation: unsOrbit2 8s linear infinite; }
.uns-spoke--3 { bottom: 15%; right: 0; animation: unsOrbit3 8s linear infinite; }
.uns-spoke--4 { bottom: 0; left: 50%; transform: translateX(-50%); animation: unsOrbit4 8s linear infinite; }
.uns-spoke--5 { bottom: 15%; left: 0; animation: unsOrbit5 8s linear infinite; }
.uns-spoke--6 { top: 15%; left: 0; animation: unsOrbit6 8s linear infinite; }

@keyframes unsOrbit1 { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-6px); } }
@keyframes unsOrbit2 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px) translateX(4px); } }
@keyframes unsOrbit3 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px) translateX(4px); } }
@keyframes unsOrbit4 { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(6px); } }
@keyframes unsOrbit5 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px) translateX(-4px); } }
@keyframes unsOrbit6 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px) translateX(-4px); } }

.uns-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 900px) { .uns-grid { grid-template-columns: 1fr; } }
@media (min-width: 901px) and (max-width: 1100px) { .uns-grid { grid-template-columns: repeat(2, 1fr); } }

.uns-feature {
  background: linear-gradient(135deg, rgba(6,182,212,0.06), rgba(37,99,235,0.04));
  border: 1px solid rgba(6,182,212,0.15);
  border-radius: 16px;
  padding: 1.75rem;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.uns-feature:hover {
  transform: translateY(-4px);
  border-color: rgba(6,182,212,0.45);
  box-shadow: 0 8px 32px rgba(6,182,212,0.08);
}
.uns-feature__icon { font-size: 1.8rem; margin-bottom: .75rem; }
.uns-feature__title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: .5rem;
}
.uns-feature__text {
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ============================================================
   SCROLLBAR
============================================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--dark3); border-radius: 999px; }

/* ============================================================
   COLOR HELPERS
============================================================ */
.bg-blue   { background: rgba(37,99,235,0.18); }
.bg-cyan   { background: rgba(6,182,212,0.18); }
.bg-green  { background: rgba(16,185,129,0.18); }
.bg-orange { background: rgba(245,158,11,0.18); }
.bg-red    { background: rgba(239,68,68,0.18); }
.bg-purple { background: rgba(139,92,246,0.18); }

.dot-blue   { background: var(--blue-light); }
.dot-cyan   { background: var(--cyan); }
.dot-green  { background: var(--green); }
.dot-orange { background: var(--orange); }
.dot-red    { background: var(--red); }
.dot-purple { background: var(--purple); }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1024px) {
  .topnav__links { gap: 1rem; }
  .topnav__links a { font-size: .82rem; }
}

@media (max-width: 768px) {
  .mobile-menu-toggle { display: block; }

  .topnav__links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(10,15,30,0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1.25rem;
    gap: .75rem;
    z-index: 99;
  }
  .topnav__links.show { display: flex; }
  .topnav__links li { text-align: center; }
  .topnav__links a { font-size: 1rem; }

  .topnav { position: relative; }
  .topnav__inner { position: relative; }

  .hero { min-height: auto; padding-block: 4rem; }
  .stats-band__inner { grid-template-columns: repeat(2, 1fr); }
  .stats-band__item:nth-child(2n) { border-right: none; }
  .modules-grid { grid-template-columns: 1fr; }
  .protocol-grid { grid-template-columns: repeat(2, 1fr); }
  .db-grid { grid-template-columns: 1fr; }
  .bento-grid { grid-template-columns: 1fr; }
  .ai-grid { grid-template-columns: repeat(2, 1fr); }
  .platform-grid { grid-template-columns: repeat(3, 1fr); }
  .usecase-grid { grid-template-columns: 1fr; }
  .cta { padding-block: 3rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .stats-band__inner { grid-template-columns: 1fr; }
  .stats-band__item { border-right: none; border-bottom: 1px solid var(--border); }
  .ai-grid { grid-template-columns: 1fr; }
  .platform-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; }
  .cta__actions { flex-direction: column; align-items: center; }
  .modal { width: 95%; padding: 1.5rem; }
}

/* ============================================================
   DEMO MODAL
============================================================ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
}
.modal-overlay.active { display: flex; }

.modal {
  position: relative;
  width: min(480px, 92vw);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  animation: modalIn .25s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(24px) scale(.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal__close {
  position: absolute;
  top: .8rem;
  right: 1rem;
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  transition: color .2s;
}
.modal__close:hover { color: #fff; }

.modal__title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: .4rem;
}
.modal__desc {
  font-size: .85rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 1.5rem;
}

.modal__field { margin-bottom: 1rem; }
.modal__field label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  margin-bottom: .3rem;
}
.modal__field input,
.modal__field textarea {
  width: 100%;
  padding: .6rem .8rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: #fff;
  font-size: .9rem;
  font-family: inherit;
  outline: none;
  transition: border-color .2s;
}
.modal__field input:focus,
.modal__field textarea:focus {
  border-color: var(--accent);
}

.modal__submit {
  width: 100%;
  margin-top: .5rem;
}
.modal__submit:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.modal__status {
  text-align: center;
  margin-top: .8rem;
  font-size: .85rem;
  min-height: 1.2em;
}
.modal__status--ok { color: #10b981; }
.modal__status--err { color: #ef4444; }
