:root {
  /* Colors - Cyberpunk / Tech Noir Palette */
  --bg-deep: #000000;
  --bg-card: #0d0d0d;
  --accent-primary: #00f2ff;
  --accent-secondary: #7000ff;
  --text-main: #e0e0e0;
  --text-dim: #888888;
  --border-color: rgba(255, 255, 255, 0.1);
  --glow-primary: rgba(0, 242, 255, 0.3);
  
  /* Specific UI Colors */
  --accent-green: #7dc143;
  --accent-orange: #ff7e33;
  --bubble-bg: #7dc143;
  --bubble-text: #ffffff;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 48px;
  --space-2xl: 80px;

  /* Typography */
  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

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

body {
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Typography Overrides */
h1, h2, h3, .nav-logo {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Layout Components */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
}

section {
  margin-top: var(--space-2xl);
  position: relative;
}

main > :first-child {
  margin-top: 0;
}

/* Navigation */
.nav {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  background: rgba(5, 5, 5, 0.8);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--accent-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-links {
  display: flex;
  gap: var(--space-xl);
}

.nav-link {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
  font-weight: 500;
}

.nav-link:hover {
  color: var(--accent-primary);
}

/* Hero Section */
.hero {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: radial-gradient(circle at center, rgba(112, 0, 255, 0.15) 0%, transparent 70%);
  position: relative;
  overflow: hidden;
}

.hero-visual {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: conic-gradient(from 180deg at 50% 50%, var(--accent-secondary) 0deg, var(--accent-primary) 180deg, var(--accent-secondary) 360deg);
  filter: blur(150px);
  opacity: 0.2;
  z-index: -1;
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.hero-title {
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 0.9;
  margin-bottom: var(--space-lg);
  background: linear-gradient(to bottom, #fff 40%, var(--text-dim));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-dim);
  max-width: 600px;
  margin-bottom: var(--space-xl);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 16px 32px;
  border-radius: 4px;
  font-family: var(--font-display);
  font-size: 0.875rem;
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent-primary);
  color: #000;
  box-shadow: 0 0 20px var(--glow-primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px var(--accent-primary);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid var(--border-color);
  margin-left: var(--space-md);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--text-dim);
}

/* Features/Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: var(--space-xl);
  transition: border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card:hover {
  border-color: var(--accent-primary);
}

.card-icon {
  width: 48px;
  height: 48px;
  color: var(--accent-primary);
  margin-bottom: var(--space-lg);
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: var(--space-md);
}

.card-text {
  color: var(--text-dim);
  font-size: 0.95rem;
}

/* Stats Section */
.stats {
  padding: var(--space-2xl) 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.02);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  text-align: center;
}

.stat-item h3 {
  font-size: 2.5rem;
  color: var(--accent-primary);
  margin-bottom: var(--space-xs);
}

.stat-item p {
  color: var(--text-dim);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 2px;
}

/* Footer */
footer {
  margin-top: var(--space-2xl);
  padding: var(--space-2xl) 0 var(--space-xl);
  border-top: 1px solid var(--border-color);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-info {
  max-width: 300px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2xl);
}

.footer-column h4 {
  margin-bottom: var(--space-lg);
  font-size: 0.8rem;
  color: #fff;
}

.footer-column a {
  display: block;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: var(--space-sm);
}

.footer-column a:hover {
  color: var(--accent-primary);
}

/* Helper Classes */
.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.text-center { text-align: center; }
.text-dim { color: var(--text-dim); }
.mt-xl { margin-top: var(--space-xl); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }

.section-title {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
}

.section-subtitle {
  color: var(--text-dim);
  max-width: 600px;
  margin: 0 auto;
}

.feature-cta {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: var(--space-2xl);
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-dot.active {
  background: var(--accent-primary);
  box-shadow: 0 0 8px var(--accent-primary);
}

.status-dot.dim {
  background: var(--text-dim);
}

.footer-bottom {
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cta-banner {
  text-align: center;
  background: linear-gradient(to bottom, rgba(112, 0, 255, 0.05), transparent);
  padding: var(--space-2xl) 0;
  border: 1px solid var(--border-color);
  border-radius: 4px;
}

/* Placeholders */
.placeholder-image {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(45deg, #0d0d0d, #1a1a1a);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.placeholder-image::after {
  content: attr(data-label);
  color: var(--text-dim);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-content { flex-direction: column; gap: var(--space-2xl); }
}

/* --- INTRO SCREEN COMPONENTS --- */

.intro-screen {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: #000;
  z-index: 2000;
  overflow: hidden;
}

.top-nav-intro {
  position: absolute;
  top: 2rem;
  right: 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  z-index: 100;
}

.audio-toggle {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  opacity: 0.7;
}

.skip-intro {
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  opacity: 0.7;
}

.intro-container {
  display: flex;
  align-items: center;
  gap: 4rem;
  max-width: 1200px;
  width: 100%;
  justify-content: center;
}

.avatar-wrapper {
  position: relative;
  width: 400px;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dots-background {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle, var(--accent-green) 2px, transparent 2px);
  background-size: 24px 24px;
  mask-image: radial-gradient(circle, black 40%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle, black 40%, transparent 70%);
  opacity: 0.4;
  animation: rotate-slow 60s linear infinite;
}

@keyframes rotate-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.avatar-image-container {
  position: relative;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  z-index: 2;
}

.avatar-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.1);
}

.chat-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 450px;
  width: 100%;
  position: relative;
  min-height: 400px;
}

.chat-bubble {
  background-color: var(--bubble-bg);
  color: var(--bubble-text);
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(125, 193, 67, 0.2);
  opacity: 0;
  transform: translateY(20px);
  animation: bubble-in 0.5s ease forwards;
}

.chat-bubble.delay-1 { animation-delay: 2s; }
.chat-bubble.delay-2 { animation-delay: 4.5s; }
.chat-bubble.delay-3 { animation-delay: 7.5s; }

@keyframes bubble-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  width: fit-content;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  opacity: 0;
  pointer-events: none;
}

.typing-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-green);
  border-radius: 50%;
  animation: typing-dot-anim 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing-dot-anim {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1.0); }
}

.typing-1 { animation: show-hide 1.5s ease forwards 0.5s; }
.typing-2 { animation: show-hide 1.5s ease forwards 3s; }
.typing-3 { animation: show-hide 2s ease forwards 5.5s; }

@keyframes show-hide {
  0% { opacity: 0; transform: translate(-50%, -40%); }
  10% { opacity: 1; transform: translate(-50%, -50%); }
  90% { opacity: 1; transform: translate(-50%, -50%); }
  100% { opacity: 0; transform: translate(-50%, -60%); }
}

.cta-button-intro {
  display: block;
  width: 100%;
  background: linear-gradient(90deg, #ff7e33, #ff9e66);
  color: white;
  text-align: center;
  padding: 1.25rem;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  margin-top: 1rem;
  box-shadow: 0 10px 20px rgba(255, 126, 51, 0.3);
  opacity: 0;
  animation: bubble-in 0.5s ease forwards 10s;
  border: none;
}

.footer-credit {
  position: absolute;
  bottom: 2rem;
  width: 100%;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-dim);
}

@media (max-width: 900px) {
  .intro-container {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }
  .avatar-wrapper {
    width: 300px;
    height: 300px;
  }
  .avatar-image-container {
    width: 160px;
    height: 160px;
  }
}
