:root {
  --bg: #010206;
  --text-main: #FFFFFF;
  --text-muted: #8E9BAE;
  --brand: #3B82F6;
  --font-heading: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

body {
  background-color: var(--bg);
  color: var(--text-main);
  font-family: var(--font-body);
  margin: 0;
  padding: 0;
  height: 100vh;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: rgba(59, 130, 246, 0.4);
  color: white;
}

#canvas-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: auto;
}

.ui-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: radial-gradient(circle at center, transparent 30%, rgba(1, 2, 6, 0.8) 120%);
}

.topbar {
  padding: 40px 48px;
  display: flex;
  justify-content: flex-start;
  pointer-events: auto;
}

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

.logo img {
  object-fit: contain;
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  color: #fff;
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
  pointer-events: none;
}

.title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  margin-bottom: 20px;
  background: linear-gradient(180deg, #FFFFFF 0%, rgba(255,255,255,0.6) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-right: 0.05em;
  text-shadow: 0 4px 60px rgba(0,0,0,0.8);
}

.subtitle {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--text-muted);
  font-weight: 400;
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.6;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  animation: revealUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

@media (max-width: 600px) {
  .topbar { 
    padding: 24px 16px; 
    justify-content: center; 
  }
  .logo-text { 
    font-size: 1.25rem; 
  }
  .logo img { 
    width: 28px; 
    height: 28px; 
  }
  .hero {
    padding: 0 16px;
  }
  .title {
    font-size: clamp(2.2rem, 10vw, 3.5rem);
    margin-bottom: 16px;
    letter-spacing: -0.04em;
  }
  .subtitle {
    font-size: clamp(0.95rem, 4vw, 1.1rem);
    max-width: 100%;
    padding: 0 8px;
    line-height: 1.5;
  }
}

@media (max-width: 380px) {
  .title {
    font-size: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; transform: none; }
}
