/* Sudio — cinematic dark gaming site */
:root {
  --bg: #05060a;
  --bg-elevated: #0c0e16;
  --bg-panel: rgba(12, 14, 22, 0.78);
  --text: #f2f4f8;
  --text-muted: #9aa3b5;
  --cyan: #3de7ff;
  --violet: #9b6bff;
  --magenta: #ff4fd8;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(61, 231, 255, 0.35);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --display: "Orbitron", "Inter", system-ui, sans-serif;
  --header-h: 72px;
  --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;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

/* Ambient layers */
.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.glow {
  pointer-events: none;
  position: fixed;
  width: 55vw;
  height: 55vw;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.18;
  z-index: 0;
}

.glow-a {
  top: -10%;
  right: -10%;
  background: radial-gradient(circle, var(--cyan), transparent 65%);
}

.glow-b {
  bottom: 10%;
  left: -15%;
  background: radial-gradient(circle, var(--violet), transparent 65%);
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  background: linear-gradient(to bottom, rgba(5, 6, 10, 0.85), rgba(5, 6, 10, 0));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(5, 6, 10, 0.88);
  border-bottom-color: var(--border);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.brand-mark {
  border-radius: 50%;
  box-shadow: 0 0 24px rgba(61, 231, 255, 0.35);
}

.brand-word {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.22em;
  font-size: 0.95rem;
}

.brand-sm .brand-word {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--text);
}

.nav-cta {
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--text) !important;
  background: rgba(61, 231, 255, 0.08);
}

.nav-cta:hover {
  background: rgba(61, 231, 255, 0.16);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: end stretch;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: #000 center / cover no-repeat;
  background-image: url("/assets/hero-poster.jpg");
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* Portrait source video still covers full hero */
@supports (object-fit: cover) {
  .hero-video {
    min-width: 100%;
    min-height: 100%;
  }
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(5, 6, 10, 0.98) 0%, rgba(5, 6, 10, 0.55) 38%, rgba(5, 6, 10, 0.25) 70%, rgba(5, 6, 10, 0.45) 100%),
    linear-gradient(to right, rgba(5, 6, 10, 0.55), transparent 45%);
}

.hero-vignette {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 120px rgba(0, 0, 0, 0.65);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  padding: calc(var(--header-h) + 2rem) clamp(1.25rem, 5vw, 3rem) 4.5rem;
  animation: rise 1s var(--ease) both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
}

h1 {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-wrap: balance;
}

.gradient-text {
  background: linear-gradient(120deg, var(--cyan) 0%, #7cf0ff 35%, var(--violet) 70%, var(--magenta) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede,
.section-copy {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 38rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 0.9rem 1.4rem;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s ease, border-color 0.2s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  color: #041018;
  background: linear-gradient(120deg, var(--cyan), #7af0ff 45%, #b49bff);
  box-shadow: 0 10px 40px rgba(61, 231, 255, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 14px 48px rgba(61, 231, 255, 0.42);
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.07);
}

.btn-block {
  width: 100%;
}

.play-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}

.scroll-hint {
  margin: 2.5rem 0 0;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}

/* Sections */
.section {
  position: relative;
  z-index: 1;
  padding: clamp(4rem, 10vw, 7rem) 0;
}

.container {
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

.section-head h2,
.demo-copy h2 {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: 0.02em;
}

.vision {
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(61, 231, 255, 0.08), transparent 60%),
    linear-gradient(to bottom, var(--bg), #070910 40%, var(--bg));
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.feature-card {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  min-height: 100%;
  transition: border-color 0.25s ease, transform 0.25s var(--ease);
}

.feature-card:hover {
  border-color: rgba(61, 231, 255, 0.28);
  transform: translateY(-3px);
}

.feature-icon {
  font-family: var(--display);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--cyan);
  margin-bottom: 1rem;
}

.feature-card h3 {
  margin: 0 0 0.55rem;
  font-size: 1.1rem;
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Demo */
.demo {
  background:
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(155, 107, 255, 0.12), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(61, 231, 255, 0.08), transparent 50%),
    var(--bg);
}

.demo-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.perk-list {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

.perk-list li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--text-muted);
}

.perk-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  box-shadow: 0 0 12px rgba(61, 231, 255, 0.5);
}

.demo-panel {
  border-radius: calc(var(--radius) + 4px);
  padding: 1.5rem;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  position: relative;
  overflow: hidden;
}

.demo-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(61, 231, 255, 0.45), transparent 35%, transparent 65%, rgba(155, 107, 255, 0.4));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.signup-form {
  display: grid;
  gap: 1rem;
  position: relative;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field span {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
}

.field em {
  font-style: normal;
  opacity: 0.7;
}

.field input,
.field select {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
  padding: 0.85rem 0.95rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input::placeholder {
  color: rgba(154, 163, 181, 0.55);
}

.field input:focus,
.field select:focus {
  border-color: rgba(61, 231, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(61, 231, 255, 0.12);
}

.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%),
    linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 13px) calc(50% - 3px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2rem;
}

.hp {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
  tab-index: -1;
}

.form-note {
  margin: 0;
  font-size: 0.75rem;
  color: rgba(154, 163, 181, 0.75);
  line-height: 1.4;
}

.form-status {
  margin: 0;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
}

.form-status.ok {
  background: rgba(61, 231, 255, 0.1);
  border: 1px solid rgba(61, 231, 255, 0.35);
  color: #b8f7ff;
}

.form-status.err {
  background: rgba(255, 79, 120, 0.1);
  border: 1px solid rgba(255, 79, 120, 0.35);
  color: #ffc2d0;
}

.btn[disabled] {
  opacity: 0.65;
  cursor: wait;
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 1.75rem 0 2.25rem;
  background: #04050a;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.footer-tag,
.footer-copy {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 900px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .demo-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav a:not(.nav-cta) {
    display: none;
  }

  h1 {
    font-size: clamp(2.1rem, 10vw, 2.8rem);
  }

  .hero-content {
    padding-bottom: 3.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-content {
    animation: none;
  }

  .btn,
  .feature-card {
    transition: none;
  }
}
