/* sbay-dev · Edge Console — landing page */
:root {
  --bg: #07090f;
  --bg-2: #0a0e1a;
  --surface: rgba(18, 24, 40, 0.55);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #e7ecf5;
  --text-dim: #95a0b8;
  --text-mute: #6b7794;
  --accent: #7af6ff;
  --accent-2: #7c5cff;
  --accent-3: #ff7ab8;
  --ok: #4ade80;
  --warn: #fbbf24;
  --grad: linear-gradient(135deg, #7af6ff 0%, #7c5cff 55%, #ff7ab8 100%);
  --grad-soft: linear-gradient(135deg, rgba(122,246,255,.18), rgba(124,92,255,.18) 55%, rgba(255,122,184,.18));
  --shadow-lg: 0 30px 80px -20px rgba(124,92,255,.35), 0 10px 30px -10px rgba(0,0,0,.6);
  --radius: 16px;
  --radius-lg: 24px;
  --font-ar: 'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-en: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ar);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html[data-lang="en"] body { font-family: var(--font-en); }
html[data-lang="en"] { direction: ltr; }
html[data-lang="ar"] { direction: rtl; }

a { color: inherit; text-decoration: none; }
code, pre { font-family: var(--font-mono); }
code {
  font-size: 0.9em;
  padding: 0.1em 0.45em;
  background: rgba(122, 246, 255, 0.08);
  border: 1px solid rgba(122, 246, 255, 0.18);
  border-radius: 6px;
  color: #b8f3ff;
}

#bg-grid {
  position: fixed; inset: 0; width: 100vw; height: 100vh;
  z-index: -2; pointer-events: none; opacity: 0.55;
}
.aurora {
  position: fixed; inset: -20vh -20vw auto -20vw;
  height: 80vh; z-index: -1; pointer-events: none;
  background:
    radial-gradient(50% 50% at 20% 30%, rgba(124,92,255,.35), transparent 60%),
    radial-gradient(40% 40% at 80% 20%, rgba(122,246,255,.25), transparent 60%),
    radial-gradient(45% 45% at 60% 80%, rgba(255,122,184,.18), transparent 60%);
  filter: blur(40px) saturate(120%);
  animation: drift 22s ease-in-out infinite alternate;
}
@keyframes drift {
  0% { transform: translate3d(-3%, -2%, 0) scale(1.05); }
  100% { transform: translate3d(4%, 3%, 0) scale(1.15); }
}

.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
}

.nav {
  position: sticky; top: 12px;
  margin: 12px auto 0;
  max-width: 1180px; width: calc(100% - 24px);
  z-index: 50;
  display: flex; align-items: center; gap: 16px;
  padding: 10px 14px;
  border-radius: 999px;
  box-shadow: 0 6px 30px -10px rgba(0,0,0,.6);
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 15px; letter-spacing: 0.2px; }
.brand-text em { font-style: normal; font-size: 11px; color: var(--text-mute); }
.nav-links { display: flex; gap: 4px; margin-inline-start: auto; font-size: 14px; color: var(--text-dim); }
.nav-links a { padding: 8px 12px; border-radius: 999px; transition: .2s; }
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,.05); }
.nav-actions { display: flex; gap: 8px; align-items: center; }
@media (max-width: 720px) { .nav-links { display: none; } }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; font: inherit; font-size: 13px; font-weight: 500;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text); cursor: pointer; transition: .2s;
}
.chip:hover { background: rgba(255,255,255,.08); border-color: var(--border-strong); }
.chip.primary { background: var(--grad); color: #0a0e1a; border-color: transparent; font-weight: 600; }
.chip.primary:hover { filter: brightness(1.1); }
#lang-toggle .lang-en { display: none; }
html[data-lang="en"] #lang-toggle .lang-en { display: inline; }
html[data-lang="en"] #lang-toggle .lang-ar { display: none; }

.hero {
  max-width: 1180px;
  margin: 60px auto 0;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px; align-items: center;
}
@media (max-width: 940px) { .hero { grid-template-columns: 1fr; gap: 36px; margin-top: 36px; } }

.badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 500;
  background: linear-gradient(135deg, rgba(74,222,128,.14), rgba(122,246,255,.10));
  border: 1px solid rgba(74,222,128,.25);
  color: #c5f4d6;
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); animation: pulse 1.8s ease-in-out infinite; }
.badge.soft { background: rgba(255,255,255,.04); border-color: var(--border); color: var(--text-dim); }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1);} 50% { opacity: .55; transform: scale(.85);} }

.hero-title { font-size: clamp(36px, 6vw, 64px); line-height: 1.05; margin: 0 0 20px; font-weight: 700; letter-spacing: -0.02em; }
.hero-title span { display: block; }
.hero-line-2 { font-weight: 800; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-sub { font-size: 17px; color: var(--text-dim); max-width: 560px; margin: 0 0 28px; }
.hero-sub b { color: var(--text); font-weight: 600; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 12px;
  font-weight: 600; font-size: 15px;
  cursor: pointer; transition: .25s; border: 1px solid transparent;
  font-family: inherit;
}
.btn.primary { background: var(--grad); color: #0a0e1a; box-shadow: 0 10px 30px -10px rgba(124,92,255,.55); }
.btn.primary:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn.ghost { background: rgba(255,255,255,.04); color: var(--text); border-color: var(--border-strong); }
.btn.ghost:hover { background: rgba(255,255,255,.08); }
html[dir="rtl"] .btn .arr { transform: scaleX(-1); }

.hero-meta {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px;
  margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--border);
}
.hero-meta div { display: flex; flex-direction: column; }
.hero-meta strong { font-size: 24px; font-family: var(--font-mono); font-weight: 700;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-meta span { font-size: 12px; color: var(--text-mute); }
@media (max-width: 560px) { .hero-meta { grid-template-columns: repeat(2,1fr); gap: 16px 4px; } }

.hero-window { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); position: relative; }
.hero-window::before { content: ''; position: absolute; inset: 0; background: var(--grad-soft); opacity: .35; pointer-events: none; }
.window-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: rgba(0,0,0,.35); position: relative; }
.window-bar .dot { width: 11px; height: 11px; border-radius: 50%; background: #555; }
.window-bar .dot.red { background: #ff5f56; } .window-bar .dot.yellow { background: #ffbd2e; } .window-bar .dot.green { background: #27c93f; }
.window-bar em { font-style: normal; font-size: 11px; color: var(--text-mute); margin-inline-start: auto; font-family: var(--font-mono); }
.window-body { padding: 22px 18px; min-height: 280px; }
.codetype { margin: 0; white-space: pre-wrap; line-height: 1.65; font-size: 13.5px; color: #cdd5e4; direction: ltr; text-align: left; }

.section { max-width: 1180px; margin: 120px auto 0; padding: 0 24px; }
@media (max-width: 700px) { .section { margin-top: 80px; } }

.section-head { text-align: center; margin: 0 auto 48px; max-width: 720px; }
.eyebrow {
  display: inline-block;
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 14px; font-weight: 700; letter-spacing: -0.01em; }
.section-head p { color: var(--text-dim); margin: 0; font-size: 16px; }

.grid { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 940px) { .grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; } }

.card { position: relative; padding: 24px; border-radius: var(--radius); background: rgba(255,255,255,.025); border: 1px solid var(--border); transition: .3s; overflow: hidden; }
.card::before { content: ''; position: absolute; inset: 0; background: var(--grad-soft); opacity: 0; transition: .3s; pointer-events: none; }
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.card:hover::before { opacity: 1; }
.card.highlight { border-color: rgba(124,92,255,.35); }
.card.highlight::before { opacity: .5; }

.card-icon { width: 48px; height: 48px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 18px; background: var(--grad-soft); border: 1px solid var(--border-strong); color: var(--accent); }
.card h3 { margin: 0 0 8px; font-size: 18px; font-weight: 600; position: relative; }
.card p { margin: 0 0 14px; color: var(--text-dim); font-size: 14.5px; position: relative; }

.tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; position: relative; }
.tag.ok { background: rgba(74,222,128,.12); color: #86efac; border: 1px solid rgba(74,222,128,.3); }
.tag.soon { background: rgba(124,92,255,.14); color: #c4b5fd; border: 1px solid rgba(124,92,255,.35); }
.tag.wip { background: rgba(251,191,36,.10); color: #fcd34d; border: 1px solid rgba(251,191,36,.28); }

.arch { border-radius: var(--radius-lg); padding: 32px; display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 18px; align-items: center; }
@media (max-width: 860px) { .arch { grid-template-columns: 1fr; } .arch-conn { transform: rotate(90deg); margin: 4px auto; } }
.arch-col { padding: 20px; border-radius: var(--radius); background: rgba(0,0,0,.25); border: 1px solid var(--border); }
.arch-col.mid { background: var(--grad-soft); border-color: rgba(124,92,255,.35); }
.arch-tag { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; font-weight: 600; }
.arch-col ul { list-style: none; padding: 0; margin: 0; font-size: 14px; }
.arch-col li { padding: 6px 0; color: var(--text-dim); border-bottom: 1px dashed var(--border); }
.arch-col li:last-child { border-bottom: 0; }
.arch-conn { text-align: center; }
.arch-conn span { display: block; height: 2px; width: 60px; background: var(--grad); border-radius: 2px; margin: 0 auto 6px; }
.arch-conn em { font-style: normal; font-size: 11px; color: var(--text-mute); font-family: var(--font-mono); }

.timeline { list-style: none; padding: 0; margin: 0 auto; max-width: 760px; position: relative; }
.timeline::before { content: ''; position: absolute; inset-inline-start: 14px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(to bottom, var(--accent-2), transparent); opacity: .4; }
.timeline li { position: relative; padding-inline-start: 44px; padding-bottom: 28px; }
.t-dot { position: absolute; inset-inline-start: 6px; top: 6px; width: 18px; height: 18px; border-radius: 50%; background: rgba(255,255,255,.06); border: 2px solid var(--border-strong); }
.timeline li.done .t-dot { background: var(--grad); border-color: transparent; box-shadow: 0 0 16px rgba(122,246,255,.45); }
.timeline li.next .t-dot { background: var(--accent-2); border-color: var(--accent-2); animation: pulse 2s ease-in-out infinite; }
.timeline h4 { margin: 0 0 6px; font-size: 17px; }
.timeline p { margin: 0; color: var(--text-dim); font-size: 14.5px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.step { padding: 24px; border-radius: var(--radius); position: relative; }
.step .num { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--grad); color: #0a0e1a; font-weight: 700; font-family: var(--font-mono); margin-bottom: 14px; }
.step h4 { margin: 0 0 8px; font-size: 17px; }
.step p { margin: 0; color: var(--text-dim); font-size: 14.5px; }

.cta-band { max-width: 1180px; margin: 120px auto 0; padding: 0 24px; }
.cta-inner { border-radius: var(--radius-lg); padding: 56px 32px; text-align: center; position: relative; overflow: hidden; }
.cta-inner::before { content: ''; position: absolute; inset: 0; background: var(--grad-soft); opacity: .8; pointer-events: none; }
.cta-inner > * { position: relative; }
.cta-inner h2 { margin: 0 0 12px; font-size: clamp(24px, 3.4vw, 36px); }
.cta-inner p { margin: 0 0 24px; color: var(--text-dim); }
.cta-actions { display: inline-flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.footer { margin-top: 80px; padding: 32px 24px 48px; border-top: 1px solid var(--border); }
.footer-inner { max-width: 1180px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; font-size: 13px; color: var(--text-mute); }
.foot-brand strong { color: var(--text); }
.foot-links { display: flex; gap: 16px; flex-wrap: wrap; }
.foot-links a:hover { color: var(--text); }

/* legal pages */
.legal { max-width: 820px; margin: 60px auto 0; padding: 0 24px; }
.legal h1 { font-size: clamp(32px, 5vw, 48px); margin: 0 0 8px; font-weight: 700; letter-spacing: -0.01em; }
.legal h1 .grad { display: inline; }
.legal .updated { color: var(--text-mute); font-size: 13px; margin-bottom: 36px; }
.legal h2 { font-size: 22px; margin: 36px 0 12px; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.legal h3 { font-size: 16px; margin: 20px 0 8px; }
.legal p, .legal li { color: var(--text-dim); font-size: 15.5px; line-height: 1.85; }
.legal ul { padding-inline-start: 22px; }
.legal a.link { color: var(--accent); border-bottom: 1px dashed rgba(122,246,255,.4); }
.legal a.link:hover { color: #fff; }
.legal .toc { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px; border-radius: var(--radius); margin: 24px 0 32px; }
.legal .toc a { font-size: 13px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); color: var(--text-dim); background: rgba(255,255,255,.03); }
.legal .toc a:hover { color: var(--text); border-color: var(--border-strong); }

::selection { background: rgba(122,246,255,.35); color: #fff; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.2); }
