@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;900&display=swap');

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

:root {
  --bg: #05060a;
  --surface: #12141a;
  --border: #1e2130;
  --accent: #5865F2;
  --accent2: #7289da;
  --text: #e8eaf0;
  --muted: #6b7280;
  --green: #57F287;
}

html, body {
  height: 100%;
  font-family: 'Tajawal', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

/* ── Background Effects ─────────────────────────────── */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(88,101,242,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(88,101,242,.025) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
}

.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  animation: drift 12s ease-in-out infinite;
}
.orb1 { width: 500px; height: 500px; background: rgba(88,101,242,.06); top: -150px; right: -100px; }
.orb2 { width: 350px; height: 350px; background: rgba(87,242,135,.03); bottom: 0; left: -80px; animation-delay: -4s; }
.orb3 { width: 300px; height: 300px; background: rgba(235,69,158,.03); top: 50%; left: 40%; animation-delay: -8s; }

@keyframes drift {
  0%,100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(30px,-20px) scale(1.05); }
  66%      { transform: translate(-20px,15px) scale(.95); }
}

/* ── Layout ─────────────────────────────────────────── */
.top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  height: 72px;
  padding: 0 40px;
}
.stage {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 48px;
  padding: 40px 64px 80px;
}
.copy { max-width: 560px; }
.eyebrow {
  color: #7289da;
  font-size: .92rem;
  font-weight: 700;
  margin-bottom: 14px;
}
.preview { display: flex; justify-content: center; }
.window {
  width: min(520px, 100%);
  background: #1e1f22;
  border: 1px solid #2b2d31;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
}
.window-bar {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  background: #111214;
  direction: ltr;
}
.window-bar span { width: 10px; height: 10px; border-radius: 50%; background: #3f4147; }
.window-bar em { margin-left: 8px; font-style: normal; color: #949ba4; font-size: .82rem; }
.window-body { display: flex; height: 340px; direction: ltr; }
.rail {
  width: 64px;
  background: #111214;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding-top: 14px;
}
.rail i { width: 40px; height: 40px; border-radius: 50%; background: #2b2d31; display: block; }
.rail i.on { border-radius: 14px; background: #5865F2; }
.rooms { width: 180px; background: #2b2d31; padding: 14px 10px; }
.rooms strong { display: block; color: #f2f3f5; font-size: .92rem; margin-bottom: 14px; }
.rooms b { display: block; color: #949ba4; font-size: .68rem; letter-spacing: .04em; margin: 12px 8px 6px; }
.rooms p { color: #949ba4; font-size: .88rem; padding: 6px 8px; border-radius: 4px; margin: 1px 0; }
.rooms p.on { background: #404249; color: #f2f3f5; }
.rooms p.voice::before { content: "🔊 "; font-size: .75rem; }
.pane { flex: 1; background: #313338; padding: 16px; }
.pane-head { color: #f2f3f5; font-weight: 700; margin-bottom: 18px; }
.line { height: 10px; border-radius: 6px; background: #3f4147; margin-bottom: 10px; }
.line.short { width: 60%; }

@media (max-width: 900px) {
  .stage { grid-template-columns: 1fr; padding: 10px 24px 90px; }
  .preview { order: -1; }
}

/* ── Logo ───────────────────────────────────────────── */
.logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  animation: fadeDown .6s ease both;
}
.logo-icon { width: 42px; height: 42px; border-radius: 12px; display: block; }
.logo-text {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #f2f3f5;
}

/* ── Headline ───────────────────────────────────────── */
.headline {
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -1px;
  margin-bottom: 18px;
}
.accent {
  background: linear-gradient(135deg, var(--accent), var(--accent2), #eb459e);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── Subtext with hidden button ─────────────────────── */
.subtext {
  font-size: 1.08rem;
  line-height: 1.9;
  color: #9aa0ad;
  max-width: 460px;
}

/* THE HIDDEN TRIGGER — blends into the text as a period */
#hidden-trigger {
  display: inline;
  color: inherit;
  text-decoration: none;
  font-size: inherit;
  cursor: default;
  user-select: none;
}
#hidden-trigger:hover { cursor: default; }

/* ── Features ───────────────────────────────────────── */
.features {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeUp .8s .3s ease both;
}

.feat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 120px;
  transition: border-color .2s, transform .2s;
}
.feat:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}
.feat-icon { font-size: 1.8rem; }
.feat-label { font-size: .9rem; color: var(--muted); white-space: nowrap; }

/* ── Stats ──────────────────────────────────────────── */
.stats {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 20px 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  animation: fadeUp .9s .4s ease both;
}
.stat { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.stat-n { font-size: 1.6rem; font-weight: 900; color: var(--accent); }
.stat-l { font-size: .8rem; color: var(--muted); white-space: nowrap; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* ── Footer ─────────────────────────────────────────── */
.footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  text-align: center;
  padding: 16px;
  font-size: .8rem;
  color: var(--muted);
  background: linear-gradient(transparent, rgba(10,11,15,.9));
  z-index: 10;
}

/* ── Toast ──────────────────────────────────────────── */
.toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #2d1b1b;
  border: 1px solid #7f1d1d;
  color: #fca5a5;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: .95rem;
  z-index: 100;
  animation: slideDown .3s ease;
}
.toast.hidden { display: none; }

/* ── Animations ─────────────────────────────────────── */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideDown {
  from { opacity: 0; transform: translateX(-50%) translateY(-12px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@media (max-width: 500px) {
  .stats { flex-direction: column; gap: 12px; }
  .stat-divider { width: 60px; height: 1px; }
}
