/* ==========================================================================
   STREAM · stream.com.ly — platform portal styles
   Dark “deep current” identity · bilingual AR/EN · zero build step
   ========================================================================== */

:root {
  --bg-0: #04070f;
  --bg-1: #070d1a;
  --bg-2: #0a1222;
  --panel: rgba(12, 20, 36, 0.72);
  --panel-solid: #0c1424;
  --line: rgba(148, 190, 226, 0.14);
  --line-strong: rgba(148, 190, 226, 0.26);
  --text: #e9f2ff;
  --text-dim: #9fb2cb;
  --text-faint: #6d8099;
  --teal: #22e4c5;
  --teal-dim: #0fbfa5;
  --violet: #8b5cf6;
  --violet-dim: #6d3fe0;
  --gold: #f5c451;
  --danger: #ff6b8a;
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow-lg: 0 40px 90px -40px rgba(0, 0, 0, 0.85);
  --font-ar: "Cairo", "Segoe UI", Tahoma, sans-serif;
  --font-latin: "Space Grotesk", "Segoe UI", Arial, sans-serif;
  --font-brand: "Orbitron", "Space Grotesk", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-0);
  color: var(--text);
  font-family: var(--font-ar);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

[dir="ltr"] body { font-family: var(--font-latin); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
ul, ol, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; }
p { margin: 0; }

::selection { background: rgba(34, 228, 197, 0.3); color: #fff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--teal-dim), var(--violet-dim));
  border-radius: 20px;
  border: 2px solid var(--bg-0);
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 6px;
}

/* --------------------------------------------------------------------------
   Background layers
   -------------------------------------------------------------------------- */
#fx {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.9;
}

.bg-aurora {
  position: fixed;
  inset: -20%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(38% 38% at 12% 8%, rgba(34, 228, 197, 0.16), transparent 70%),
    radial-gradient(35% 40% at 88% 12%, rgba(139, 92, 246, 0.18), transparent 72%),
    radial-gradient(45% 45% at 50% 105%, rgba(245, 196, 81, 0.08), transparent 70%);
  filter: blur(10px);
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(120, 170, 220, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 170, 220, 0.06) 1px, transparent 1px);
  background-size: 90px 90px;
  mask-image: radial-gradient(75% 65% at 50% 40%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(75% 65% at 50% 40%, #000 30%, transparent 100%);
}

.site-header,
main,
.site-footer { position: relative; z-index: 1; }

.container {
  width: min(1200px, 100% - 48px);
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 14px 0;
  background: linear-gradient(180deg, rgba(4, 7, 15, 0.9), rgba(4, 7, 15, 0.55) 70%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(120, 170, 220, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-mark { width: 38px; height: 38px; }

.brand-text {
  font-family: var(--font-brand);
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: 0.22em;
  background: linear-gradient(100deg, #ffffff, #a9c6ff 45%, var(--teal) 75%, var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-dot { color: var(--teal); -webkit-text-fill-color: var(--teal); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-inline-start: 12px;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  color: var(--text-dim);
}

.main-nav a {
  position: relative;
  padding: 6px 2px;
  transition: color 0.25s var(--ease);
}

.main-nav a::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--teal), var(--violet));
  transition: width 0.3s var(--ease);
}

.main-nav a:hover { color: var(--text); }
.main-nav a:hover::after { width: 100%; }

.header-actions {
  margin-inline-start: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-btn {
  border: 1px solid var(--line);
  background: rgba(148, 190, 226, 0.06);
  color: var(--text-dim);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}

.lang-btn:hover {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(34, 228, 197, 0.09);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
  white-space: nowrap;
}

.btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s var(--ease);
}

.btn:hover svg { transform: translateX(-3px); }
[dir="ltr"] .btn:hover svg { transform: translateX(3px); }

.btn-primary {
  background: linear-gradient(115deg, var(--teal) 0%, #35d9ff 45%, var(--violet) 110%);
  color: #04121a;
  box-shadow: 0 14px 34px -14px rgba(34, 228, 197, 0.65);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 44px -14px rgba(34, 228, 197, 0.8);
}

.btn-ghost {
  background: rgba(148, 190, 226, 0.05);
  border-color: var(--line-strong);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: rgba(34, 228, 197, 0.55);
  background: rgba(34, 228, 197, 0.08);
  transform: translateY(-2px);
}

.btn-sm { padding: 9px 16px; font-size: 0.82rem; }
.btn-lg { padding: 16px 30px; font-size: 1rem; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid rgba(34, 228, 197, 0.28);
  background: rgba(34, 228, 197, 0.06);
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  margin-bottom: 26px;
}

[dir="rtl"] .eyebrow { letter-spacing: 0.04em; font-size: 0.8rem; }

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 0 rgba(34, 228, 197, 0.7);
  animation: pulse-ring 2s infinite;
  flex-shrink: 0;
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(34, 228, 197, 0.65); }
  70% { box-shadow: 0 0 0 10px rgba(34, 228, 197, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 228, 197, 0); }
}

.hero h1 {
  font-size: clamp(2.25rem, 4.6vw, 3.6rem);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}

[dir="ltr"] .hero h1 { letter-spacing: -0.03em; }

.grad-text {
  display: inline-block;
  background: linear-gradient(100deg, var(--teal) 0%, #66c8ff 40%, var(--violet) 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: var(--font-brand);
  letter-spacing: 0.06em;
  padding-inline: 0.06em;
}

.hero-line {
  display: block;
  margin-top: 10px;
  font-size: 0.52em;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0;
}

.hero-desc {
  max-width: 34rem;
  color: var(--text-dim);
  font-size: clamp(1rem, 1.3vw, 1.08rem);
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 38px;
}

.hero-stats {
  display: flex;
  gap: 38px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  max-width: 26rem;
}

.hero-stats div { display: flex; flex-direction: column; gap: 2px; }

.hero-stats dt {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--text-faint);
  text-transform: uppercase;
}

[dir="rtl"] .hero-stats dt { letter-spacing: 0.02em; font-size: 0.78rem; }

.hero-stats dd {
  font-family: var(--font-brand);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--text);
}

.hero-stats dd:last-child { font-size: 1.1rem; color: var(--text-dim); padding-top: 4px; }

/* Hero visual / portal */
.hero-visual { display: flex; justify-content: center; }

.portal-frame {
  position: relative;
  width: min(360px, 100%);
  padding: 18px;
  border-radius: 30px;
  background: linear-gradient(160deg, rgba(34, 228, 197, 0.12), rgba(139, 92, 246, 0.1) 55%, rgba(245, 196, 81, 0.06));
  border: 1px solid rgba(148, 190, 226, 0.2);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  animation: float-slow 7s ease-in-out infinite;
}

@keyframes float-slow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.portal-glow {
  position: absolute;
  inset: -16%;
  z-index: -1;
  border-radius: 40px;
  background:
    radial-gradient(55% 55% at 30% 25%, rgba(34, 228, 197, 0.3), transparent 70%),
    radial-gradient(50% 50% at 75% 80%, rgba(139, 92, 246, 0.32), transparent 70%);
  filter: blur(28px);
  animation: glow-breathe 6s ease-in-out infinite;
}

@keyframes glow-breathe {
  0%, 100% { opacity: 0.75; }
  50% { opacity: 1; }
}

.portal-screen {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  aspect-ratio: 9 / 14;
  background: #04070f;
}

.portal-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.portal-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(4, 7, 15, 0.85));
  pointer-events: none;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

[dir="rtl"] .status-pill { letter-spacing: 0.02em; font-size: 0.72rem; }

.status-pill.live {
  position: absolute;
  top: 14px;
  inset-inline-start: 14px;
  background: rgba(34, 228, 197, 0.16);
  border: 1px solid rgba(34, 228, 197, 0.45);
  color: var(--teal);
  z-index: 2;
}

.status-pill.soon {
  position: absolute;
  top: 14px;
  inset-inline-start: 14px;
  background: rgba(245, 196, 81, 0.14);
  border: 1px solid rgba(245, 196, 81, 0.4);
  color: var(--gold);
  z-index: 2;
}

.float-chip {
  position: absolute;
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--text);
  background: rgba(8, 14, 26, 0.82);
  border: 1px solid rgba(148, 190, 226, 0.22);
  box-shadow: 0 16px 34px -20px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  animation: chip-float 6s ease-in-out infinite;
  z-index: 3;
}

.chip-1 { top: 34%; inset-inline-end: -6%; animation-delay: 0s; color: var(--teal); }
.chip-2 { bottom: 24%; inset-inline-start: -10%; animation-delay: 1.4s; color: var(--violet); }
.chip-3 { bottom: 8%; inset-inline-end: 8%; animation-delay: 2.8s; color: var(--gold); }

@keyframes chip-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { padding: clamp(40px, 6vw, 72px) 0; }

section[id] { scroll-margin-top: 96px; }

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.section-kicker {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: var(--teal);
  margin-bottom: 12px;
}

[dir="rtl"] .section-kicker { letter-spacing: 0.04em; font-size: 0.78rem; }

.section-head h2,
.platform-copy h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 900;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.section-head p,
.platform-copy p {
  color: var(--text-dim);
  font-size: 1rem;
  max-width: 42rem;
}

/* --------------------------------------------------------------------------
   Featured card
   -------------------------------------------------------------------------- */
.featured-card {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(150deg, rgba(18, 30, 50, 0.9), rgba(8, 13, 24, 0.94));
  box-shadow: var(--shadow-lg);
  position: relative;
}

.featured-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(60% 80% at 90% 0%, rgba(34, 228, 197, 0.12), transparent 65%);
}

.featured-media {
  position: relative;
  min-height: 460px;
  overflow: hidden;
}

.featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.8s var(--ease);
}

.featured-card:hover .featured-media img { transform: scale(1.04); }

.featured-media-fade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 60%, rgba(8, 13, 24, 0.9) 100%),
    linear-gradient(0deg, rgba(8, 13, 24, 0.5), transparent 45%);
}

[dir="rtl"] .featured-media-fade {
  background:
    linear-gradient(270deg, transparent 60%, rgba(8, 13, 24, 0.9) 100%),
    linear-gradient(0deg, rgba(8, 13, 24, 0.5), transparent 45%);
}

.feature-status { top: 18px; inset-inline-start: 18px; }

.featured-body {
  padding: clamp(26px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}

.featured-title-row h3 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 900;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
}

.ar-inline {
  font-size: 0.62em;
  font-weight: 700;
  color: var(--text-dim);
}

.featured-lead {
  color: var(--text-dim);
  font-size: 1rem;
  max-width: 40rem;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  margin: 4px 0;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.feature-dot {
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--teal), var(--violet));
  flex-shrink: 0;
}

.featured-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

/* --------------------------------------------------------------------------
   Project grid
   -------------------------------------------------------------------------- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.project-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 26px 60px -40px rgba(0, 0, 0, 0.9);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 228, 197, 0.4);
  box-shadow: 0 34px 70px -36px rgba(34, 228, 197, 0.35);
}

.project-live { cursor: pointer; }

.project-thumb {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: #060b14;
}

.project-live .project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transition: transform 0.7s var(--ease);
}

.project-live:hover .project-thumb img { transform: scale(1.06); }

.project-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(6, 11, 20, 0.9));
  pointer-events: none;
}

.locked-art {
  width: 100%;
  height: 100%;
  display: block;
}

.thumb-cta {
  position: absolute;
  bottom: 16px;
  inset-inline-start: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: linear-gradient(115deg, var(--teal), var(--violet));
  color: #04121a;
  font-weight: 800;
  font-size: 0.82rem;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.35s var(--ease);
}

.project-live:hover .thumb-cta,
.project-live:focus-visible .thumb-cta { opacity: 1; transform: translateY(0); }

@media (hover: none) {
  .project-live .thumb-cta { opacity: 1; transform: none; }
}

.thumb-cta svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.project-locked { cursor: not-allowed; }

.project-locked:hover {
  border-color: rgba(245, 196, 81, 0.32);
  transform: translateY(-3px);
  box-shadow: 0 26px 60px -40px rgba(0, 0, 0, 0.9);
}

.lock-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(4, 7, 15, 0.42);
  backdrop-filter: blur(2px);
  color: var(--text-dim);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background 0.3s var(--ease);
}

.project-locked:hover .lock-overlay { background: rgba(4, 7, 15, 0.3); }

.lock-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(8, 14, 26, 0.85);
  border: 1px solid rgba(245, 196, 81, 0.35);
  font-size: 1.35rem;
  box-shadow: 0 14px 30px -16px rgba(0, 0, 0, 0.9);
}

.project-body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
}

.project-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.project-heading h3 { font-size: 1.1rem; font-weight: 800; }

.project-badge {
  font-family: var(--font-brand);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--teal);
  border: 1px solid rgba(34, 228, 197, 0.35);
  background: rgba(34, 228, 197, 0.08);
  white-space: nowrap;
}

.project-badge.soon-badge {
  color: var(--gold);
  border-color: rgba(245, 196, 81, 0.35);
  background: rgba(245, 196, 81, 0.08);
  font-family: var(--font-ar);
  letter-spacing: 0.02em;
  font-size: 0.7rem;
}

.project-body p { color: var(--text-dim); font-size: 0.88rem; }

.project-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }

.project-tags span {
  font-size: 0.68rem;
  color: var(--text-faint);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 10px;
  background: rgba(148, 190, 226, 0.04);
}

/* --------------------------------------------------------------------------
   Platform panel
   -------------------------------------------------------------------------- */
.platform-panel {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 4vw, 56px);
  padding: clamp(26px, 4vw, 48px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(70% 100% at 100% 0%, rgba(139, 92, 246, 0.14), transparent 60%),
    radial-gradient(60% 100% at 0% 100%, rgba(34, 228, 197, 0.1), transparent 60%),
    rgba(10, 17, 30, 0.8);
  align-items: center;
}

.platform-copy p { margin-bottom: 22px; }

.platform-chips { display: flex; flex-wrap: wrap; gap: 10px; }

.glass-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(148, 190, 226, 0.05);
  font-size: 0.82rem;
  color: var(--text-dim);
}

.chip-soon {
  font-size: 0.62rem;
  color: var(--gold);
  border: 1px solid rgba(245, 196, 81, 0.3);
  background: rgba(245, 196, 81, 0.08);
  border-radius: 999px;
  padding: 1px 7px;
}

.platform-diagram {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}

.platform-diagram::before {
  content: "";
  position: absolute;
  inset-inline-start: 18px;
  top: 20px;
  bottom: 20px;
  width: 1px;
  background: linear-gradient(180deg, var(--teal), rgba(139, 92, 246, 0.6), transparent);
  opacity: 0.5;
}

.node {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(8, 14, 26, 0.72);
  font-size: 0.85rem;
  color: var(--text-dim);
  position: relative;
  z-index: 1;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.node:hover { border-color: var(--line-strong); transform: translateX(-3px); }
[dir="ltr"] .node:hover { transform: translateX(3px); }

.node strong { margin-inline-start: auto; color: var(--text); font-size: 0.86rem; font-weight: 700; }
.node > span:first-child { display: inline-flex; align-items: center; gap: 6px; }

.node-live { border-color: rgba(34, 228, 197, 0.35); background: rgba(34, 228, 197, 0.06); }
.node-live strong { color: var(--teal); }

.node-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.node-dot.live { background: var(--teal); box-shadow: 0 0 12px var(--teal); }
.node-dot.soon { background: var(--gold); box-shadow: 0 0 10px rgba(245, 196, 81, 0.7); }
.node-dot.future { background: var(--violet); box-shadow: 0 0 10px rgba(139, 92, 246, 0.7); }

.node-more { border-style: dashed; opacity: 0.8; }

/* --------------------------------------------------------------------------
   Timeline
   -------------------------------------------------------------------------- */
.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  counter-reset: step;
}

.timeline-item {
  position: relative;
  padding: 26px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(10, 17, 30, 0.68);
  overflow: hidden;
}

.timeline-item::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--violet));
  opacity: 0.25;
}

.timeline-item.done::before { opacity: 0.9; }
.timeline-item.current::before { background: linear-gradient(90deg, var(--gold), var(--teal)); opacity: 1; }

.timeline-item.done { border-color: rgba(34, 228, 197, 0.3); }
.timeline-item.current { border-color: rgba(245, 196, 81, 0.35); }

.timeline-year {
  display: inline-block;
  font-family: var(--font-brand);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--teal);
  margin-bottom: 12px;
}

.timeline-item.current .timeline-year { color: var(--gold); }

.timeline-item h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 8px; }
.timeline-item p { color: var(--text-dim); font-size: 0.88rem; }

/* --------------------------------------------------------------------------
   CTA
   -------------------------------------------------------------------------- */
.cta-section { padding-bottom: clamp(56px, 8vw, 100px); }

.cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  flex-wrap: wrap;
  padding: clamp(28px, 4.5vw, 48px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(34, 228, 197, 0.28);
  background:
    radial-gradient(80% 120% at 0% 0%, rgba(34, 228, 197, 0.16), transparent 60%),
    radial-gradient(80% 120% at 100% 100%, rgba(139, 92, 246, 0.2), transparent 60%),
    rgba(8, 14, 26, 0.92);
  box-shadow: 0 40px 90px -50px rgba(34, 228, 197, 0.4);
}

.cta-card h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); font-weight: 900; margin-bottom: 8px; }
.cta-card p { color: var(--text-dim); max-width: 40rem; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(4, 7, 15, 0.4), rgba(4, 7, 15, 0.96));
  padding-top: 48px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1.8fr;
  gap: 36px;
  padding-bottom: 38px;
}

.footer-brand p { color: var(--text-faint); font-size: 0.9rem; margin-top: 10px; max-width: 22rem; }

.footer-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }

.footer-links h4 {
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 14px;
}

[dir="rtl"] .footer-links h4 { letter-spacing: 0.02em; font-size: 0.85rem; }

.footer-links a {
  display: block;
  color: var(--text-dim);
  font-size: 0.88rem;
  padding: 4px 0;
  transition: color 0.2s var(--ease);
}

.footer-links a:hover { color: var(--teal); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 20px 0 26px;
  border-top: 1px solid var(--line);
  color: var(--text-faint);
  font-size: 0.82rem;
}

.footer-note { color: var(--text-faint); }

/* --------------------------------------------------------------------------
   Toast
   -------------------------------------------------------------------------- */
.toast {
  position: fixed;
  bottom: 24px;
  inset-inline-start: 50%;
  transform: translate(-50%, 120%);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: 14px;
  border: 1px solid rgba(245, 196, 81, 0.4);
  background: rgba(8, 14, 26, 0.95);
  color: var(--text);
  font-size: 0.88rem;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(14px);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}

[dir="rtl"] .toast { transform: translate(50%, 120%); }

.toast.show { transform: translate(-50%, 0); opacity: 1; }
[dir="rtl"] .toast.show { transform: translate(50%, 0); }

.toast-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px rgba(245, 196, 81, 0.8);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Reveal animation (JS adds .is-visible)
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-copy { text-align: center; }
  .hero-desc { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { margin-inline: auto; justify-content: center; gap: 30px; }
  .hero-visual { order: -1; }
  .portal-frame { width: min(320px, 82vw); }
  .featured-card { grid-template-columns: 1fr; }
  .featured-media { min-height: 320px; max-height: 420px; }
  .featured-media-fade {
    background:
      linear-gradient(0deg, rgba(8, 13, 24, 0.95) 0%, transparent 45%),
      linear-gradient(180deg, transparent 60%, rgba(8, 13, 24, 0.6));
  }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .platform-panel { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .container { width: min(1200px, 100% - 32px); }
  .main-nav { display: none; }
  .lang-btn { padding: 7px 13px; font-size: 0.78rem; }
  .btn-sm { padding: 8px 13px; font-size: 0.78rem; }
  .hero { padding-top: 36px; }
  .hero-stats { gap: 22px; }
  .hero-stat dd { font-size: 1.3rem; }
  .feature-list { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr; }
  .featured-media { min-height: 260px; }
  .footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .float-chip { display: none; }
  .featured-title-row h3 { font-size: 1.5rem; }
  .section-head h2, .platform-copy h2 { font-size: 1.5rem; }
  .cta-card { flex-direction: column; align-items: flex-start; }
  .cta-card .btn { width: 100%; }
  .toast { width: calc(100% - 32px); justify-content: center; }
}

@media (max-width: 460px) {
  .header-inner { gap: 12px; }
  .brand-mark { width: 32px; height: 32px; }
  .brand-text { font-size: 1rem; letter-spacing: 0.16em; }
  .hero-actions .btn { width: 100%; }
  .hero-stats { width: 100%; justify-content: space-between; gap: 12px; }
  .portal-frame { width: 88vw; padding: 12px; border-radius: 24px; }
}

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