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

:root {
  --bg-0: #050816;
  --bg-1: #070b1f;
  --bg-2: #0b1026;
  --surface: rgba(15, 23, 42, 0.72);
  --surface-strong: rgba(15, 23, 42, 0.92);
  --surface-soft: rgba(30, 41, 59, 0.42);
  --line: rgba(148, 163, 184, 0.18);
  --line-strong: rgba(34, 211, 238, 0.45);
  --text: #f8fafc;
  --text-soft: #cbd5e1;
  --text-muted: #64748b;
  --blue: #3b82f6;
  --cyan: #22d3ee;
  --violet: #8b5cf6;
  --green: #22c55e;
  --amber: #f59e0b;
  --red: #ef4444;
  --font-sans: 'Vazirmatn', 'IRANYekan', Tahoma, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-xl: 0 30px 90px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg-0);
  color-scheme: dark;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow: hidden;
  background: var(--bg-0);
  color: var(--text);
  font-family: var(--font-sans);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button,
a,
input {
  font: inherit;
}

button {
  border: 0;
  color: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

p,
h1,
h2,
h3,
ul,
ol,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

.presentation {
  position: relative;
  display: grid;
  min-height: 100svh;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 12%, rgba(59, 130, 246, 0.13), transparent 30%),
    radial-gradient(circle at 80% 84%, rgba(139, 92, 246, 0.14), transparent 32%),
    linear-gradient(135deg, var(--bg-0), var(--bg-1) 48%, var(--bg-2));
}

.ambient,
.noise-layer {
  position: absolute;
  pointer-events: none;
}

.ambient {
  z-index: -2;
  width: 42vw;
  height: 42vw;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.28;
  transform: translate3d(var(--pointer-x, 0), var(--pointer-y, 0), 0);
  transition: transform 1.8s var(--ease-out);
}

.ambient-blue {
  top: -22vw;
  right: -12vw;
  background: rgba(37, 99, 235, 0.6);
}

.ambient-violet {
  bottom: -28vw;
  left: -12vw;
  background: rgba(124, 58, 237, 0.55);
}

.ambient-cyan {
  top: 34%;
  left: 38%;
  width: 20vw;
  height: 20vw;
  background: rgba(6, 182, 212, 0.18);
  filter: blur(110px);
}

.noise-layer {
  z-index: 3;
  inset: 0;
  opacity: 0.04;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.deck-stage {
  position: relative;
  width: min(94vw, 1800px);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 28px;
  background: rgba(5, 8, 22, 0.76);
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255, 255, 255, 0.025) inset;
  transform: translateZ(0);
}

.deck-stage::before,
.deck-stage::after {
  position: absolute;
  z-index: 1;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 18px var(--cyan);
  content: '';
}

.deck-stage::before {
  top: 18px;
  left: 22px;
}

.deck-stage::after {
  right: 22px;
  bottom: 18px;
  background: var(--violet);
  box-shadow: 0 0 18px var(--violet);
}

.deck-stage:fullscreen {
  width: 100vw;
  max-width: none;
  height: 100vh;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
}

.stage-grid {
  position: absolute;
  z-index: 0;
  inset: 0;
  opacity: 0.3;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}

.stage-scanline {
  position: absolute;
  z-index: 0;
  inset: 0;
  opacity: 0.12;
  background: repeating-linear-gradient(0deg, transparent 0 4px, rgba(255, 255, 255, 0.018) 5px);
  pointer-events: none;
}

.mono,
[dir='ltr'] {
  font-family: var(--font-mono);
}

::selection {
  background: rgba(34, 211, 238, 0.3);
  color: var(--text);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
