:root {
  --bg: #0a0a0c;
  --text: #fafafa;
  --text-secondary: rgba(250, 250, 250, 0.6);
  --text-muted: rgba(250, 250, 250, 0.4);
  --border: rgba(255, 255, 255, 0.06);
  --surface: rgba(255, 255, 255, 0.03);
  --accent: #e63946;
  --accent-soft: rgba(230, 57, 70, 0.15);
  --success: #22c55e;
  --warning: #eab308;
  --error: #ef4444;
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: "Sora", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: hidden;
}

/* Noise overlay - static, no animation */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.02;
  background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAElBMVEUAAAD8/vz08teleaseaaseZW4aAAAAA3RSTlMAARXhPvWJAAAAr0lEQVQ4y2MgFjAqMBEBMEqBARYJxgJGBWYFhgYUCSYFRgVmBSYFRgUWBUYFZgUmBeYGFgVGBWYFJgXmBlYFRgVmBSYF5gY2BUYFZgUmBeYGdgVGBWYFJgXmBg4FRgVmBSYF5gZOBUYFZgUmBQb2AE4BRgVmBSYFZgEmBmYFRgVGBeYANgVmBWYGZgVGBUYFZgVmBWYFRgVmBkYFRgBmBRYF5iL2AjYFJgWWBiYBBYIAAB2pL+0sxN7qAAAAAElFTkSuQmCC");
  z-index: 9999;
  contain: strict;
}

/* Orbs - static gradients, no blur filter (GPU optimized) */
.orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  opacity: 0.6;
  contain: strict;
  will-change: transform;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(230, 57, 70, 0.2) 0%, rgba(230, 57, 70, 0.05) 40%, transparent 70%);
  top: -200px;
  left: -200px;
  animation: drift 45s linear infinite;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(99, 102, 241, 0.04) 40%, transparent 70%);
  bottom: -150px;
  right: -150px;
  animation: drift 50s linear infinite reverse;
}

.orb-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.12) 0%, rgba(34, 197, 94, 0.03) 40%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: none;
  opacity: 0.4;
}

@keyframes drift {
  from {
    transform: rotate(0deg) translateX(30px) rotate(0deg);
  }

  to {
    transform: rotate(360deg) translateX(30px) rotate(-360deg);
  }
}

.page {
  position: relative;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  z-index: 1;
  overflow: hidden;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  flex-shrink: 0;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.logo-text {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: border-color 200ms ease;
}

.status:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.status-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--warning);
  box-shadow: 0 0 12px var(--warning);
  animation: breathe 3s ease-in-out infinite;
}

.status-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: inherit;
  opacity: 0.25;
}

.status-dot.online {
  background: var(--success);
  box-shadow: 0 0 20px var(--success);
}

.status-dot.offline {
  background: var(--error);
  box-shadow: 0 0 16px var(--error);
  animation: none;
}

.status-dot.offline::after {
  animation: none;
}

/* Status change animation */
.status-changed {
  animation: statusPulse 0.6s ease;
}

@keyframes statusPulse {
  0% {
    transform: scale(1);
  }

  30% {
    transform: scale(1.05);
  }

  60% {
    transform: scale(0.98);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes breathe {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.7;
    transform: scale(0.9);
  }
}

@keyframes breatheGlow {

  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }

  50% {
    opacity: 0.2;
    transform: scale(1.4);
  }
}

.main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px 20px;
  min-height: 0;
}

.hero {
  text-align: center;
  max-width: 540px;
}

.badge {
  display: inline-block;
  padding: 8px 16px;
  background: var(--accent-soft);
  border: 1px solid rgba(230, 57, 70, 0.3);
  border-radius: 100px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeIn 0.4s ease 0.05s forwards;
}

.title {
  margin-bottom: 16px;
}

.title-line {
  display: block;
  font-size: clamp(40px, 11vw, 72px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  opacity: 0;
}

.title-line:first-child {
  animation: fadeIn 0.4s ease 0.1s forwards;
}

.title-line.accent {
  color: var(--accent);
  animation: fadeIn 0.4s ease 0.2s forwards;
}

.lead {
  font-size: 15px;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeIn 0.4s ease 0.25s forwards;
}

.card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  margin-bottom: 24px;
  overflow: hidden;
  opacity: 0;
  animation: fadeIn 0.4s ease 0.3s forwards;
}

.card-content {
  padding: 16px 24px;
}

.card-content p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.card-content p.muted {
  margin-top: 6px;
  font-style: italic;
  color: var(--text-muted);
  font-size: 13px;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

.card-footer svg {
  opacity: 0.6;
}

.cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 40px;
  background: linear-gradient(135deg, var(--accent) 0%, #c92a36 100%);
  color: #fff;
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 6px 20px rgba(230, 57, 70, 0.35),
    0 12px 40px rgba(230, 57, 70, 0.2);
  transition: transform 200ms ease, box-shadow 200ms ease;
  opacity: 0;
  animation: fadeIn 0.4s ease 0.35s forwards;
  z-index: 1;
}

.cta:hover {
  transform: translateY(-3px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.15) inset,
    0 10px 28px rgba(230, 57, 70, 0.45),
    0 18px 50px rgba(230, 57, 70, 0.25);
}

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

.cta-icon {
  display: flex;
  transition: transform 200ms ease;
}

.cta-icon svg {
  width: 20px;
  height: 20px;
}

.cta:hover .cta-icon {
  transform: translateX(4px);
}

/* Ready state: when live session is available */
.cta.ready {
  background: linear-gradient(135deg, var(--success) 0%, #16a34a 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 6px 20px rgba(34, 197, 94, 0.4),
    0 12px 40px rgba(34, 197, 94, 0.25);
}

.cta.ready:hover {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.15) inset,
    0 10px 28px rgba(34, 197, 94, 0.5),
    0 18px 50px rgba(34, 197, 94, 0.3);
}

.hint {
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-muted);
  opacity: 0;
  animation: fadeIn 0.4s ease 0.4s forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  flex-shrink: 0;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
}

.modal-content {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: #111114;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 40px 32px;
  text-align: center;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(16px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  border: 1px solid rgba(230, 57, 70, 0.2);
  border-radius: 50%;
  color: var(--accent);
}

.modal-icon svg {
  width: 36px;
  height: 36px;
}

.modal-title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.modal-text {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.modal-text.muted {
  margin-top: 10px;
  font-style: italic;
  color: var(--text-muted);
  font-size: 15px;
}

.modal-btn {
  margin-top: 32px;
  padding: 16px 48px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 200ms ease, border-color 200ms ease, transform 200ms ease;
}

.modal-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.modal-btn:active {
  transform: translateY(0);
}

@media (max-width: 640px) {
  .header {
    padding: 16px 20px;
  }

  .logo-text {
    display: none;
  }

  .logo {
    width: 40px;
    height: 40px;
  }

  .main {
    padding: 32px 20px 48px;
  }

  .hero {
    max-width: 100%;
  }

  .badge {
    padding: 8px 16px;
    font-size: 10px;
    margin-bottom: 28px;
  }

  .title-line {
    font-size: clamp(40px, 12vw, 72px);
  }

  .lead {
    font-size: 16px;
    margin-bottom: 28px;
  }

  .card {
    margin-bottom: 32px;
  }

  .card-content {
    padding: 20px 24px;
  }

  .card-content p {
    font-size: 15px;
  }

  .cta {
    width: 100%;
    justify-content: center;
    padding: 22px 40px;
    font-size: 18px;
    border-radius: 16px;
  }

  .cta-icon svg {
    width: 22px;
    height: 22px;
  }

  .orb-1,
  .orb-2,
  .orb-3 {
    opacity: 0.25;
  }
}

@media (prefers-reduced-motion: reduce) {

  .orb-1,
  .orb-2,
  .orb-3,
  .status-dot,
  .status-dot::after,
  .card-footer svg {
    animation: none;
  }

  .badge,
  .title-line,
  .lead,
  .card,
  .cta,
  .hint {
    opacity: 1;
    animation: none;
  }

  .cta::before {
    opacity: 0;
  }

  .cta,
  .cta-icon,
  .modal-btn,
  .badge,
  .card,
  .status {
    transition: none;
  }

  .modal-content {
    animation: none;
  }
}