:root {
  --bg: #020202;
  --panel: rgba(18, 18, 18, 0.8);
  --card: rgba(25, 25, 25, 0.88);
  --line: rgba(255, 255, 255, 0.08);
  --text: #f7f7f7;
  --muted: #b2b2b2;
  --red: #ff2a2a;
  --soft-red: #ff6a6a;
  --white: #f5f5f5;
  --shadow: 0 0 25px rgba(255, 0, 0, 0.25);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #000;
  color: var(--text);
  cursor: none;
  min-height: 100vh;
  overflow-x: hidden;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 0, 0, 0.14), transparent 14%),
    radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.08), transparent 12%),
    linear-gradient(135deg, #000, #080808 60%, #010101);
  z-index: -2;
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.1;
  z-index: -1;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  backdrop-filter: blur(18px);
  background: rgba(0, 0, 0, 0.78);
  border-bottom: 1px solid var(--line);
}
.brand {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.brand span { color: var(--red); }
.nav-links { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.nav-links a,
.button,
.cta,
.plan-card button,
.cart-btn,
.nav-ghost {
  text-decoration: none;
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.03);
  padding: 10px 14px;
  border-radius: 999px;
  transition: all 0.2s ease;
}
.nav-links a:hover,
.button:hover,
.cta:hover,
.plan-card button:hover,
.cart-btn:hover,
.nav-ghost:hover,
button:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.nav-ghost { color: #fff; background: linear-gradient(120deg, #1b1b1b, #220909); }

.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.hero {
  min-height: 78vh;
  display: grid;
  align-items: center;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  padding: 54px 0 32px;
}
.hero-card,
.panel,
.plan-card,
.store-card,
.support-card,
.chat-shell,
.form-shell,
.cart-shell {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 18px 60px rgba(0,0,0,0.45);
}
.hero-card {
  padding: 34px;
  position: relative;
  overflow: hidden;
}
.hero-card::before {
  content: '';
  position: absolute;
  inset: auto -10% -25% auto;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(255,0,0,0.24), transparent 60%);
  pointer-events: none;
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  margin: 0 0 12px;
  line-height: 1; letter-spacing: 0.04em;
}
.hero p { color: var(--muted); font-size: 1.05rem; line-height: 1.8; }
.hero-actions { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.primary { background: linear-gradient(135deg, #ff2a2a, #771111); border: none; }
.secondary { background: transparent; }
.hero-preview {
  min-height: 420px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(0,0,0,0.4), rgba(0,0,0,0.7)), url('hero-bg.jpg') center/cover no-repeat;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
  position: relative;
}
.hero-preview::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(255,255,255,0.05), transparent 50%);
}

.section-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 30px 0 12px; }
.section-header h2 { margin: 0; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.panel, .store-card, .plan-card, .support-card, .chat-shell, .form-shell { padding: 20px; }
.muted { color: var(--muted); }

.chat-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 18px;
  margin: 20px 0 28px;
}
.sidebar { display: grid; gap: 14px; }
.model-chip { display: flex; align-items: center; gap: 8px; }
.model-chip button { flex: 1; }
.chat-output {
  min-height: 340px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.message {
  max-width: 78%;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  line-height: 1.6;
}
.message.user { margin-left: auto; background: rgba(255,42,42,0.15); }
.chat-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 12px; }
input, textarea, select {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text);
  padding: 12px 14px;
  border-radius: 12px;
  outline: none;
}
textarea { min-height: 100px; }
button {
  font: inherit;
  cursor: none;
  color: var(--text);
  border: none;
  border-radius: 12px;
  padding: 11px 14px;
  background: linear-gradient(135deg, #262626, #111);
}
button.primary-btn { background: linear-gradient(135deg, #ff2a2a, #691212); }
button.secondary-btn { background: transparent; border: 1px solid var(--line); }

.store-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px,1fr)); gap: 16px; }
.store-card .price { color: #ff6b6b; font-weight: 800; }
.cart-shell { position: sticky; top: 82px; }
.cart-items { display: grid; gap: 10px; }
.cart-item { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.qty { display: inline-flex; gap: 6px; align-items: center; }
.qty button { padding: 4px 8px; }

.file-upload-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 12px; }
.badge { display: inline-block; padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,0.06); font-size: 0.82rem; }

.cursor,
.cursor-ring,
.cursor-smoke {
  position: fixed;
  pointer-events: none;
  z-index: 80;
}
.cursor {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.92) 0%, rgba(255,42,42,0.95) 50%, rgba(255,42,42,0.25) 70%, transparent 72%);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 18px rgba(255,255,255,0.4), 0 0 32px rgba(255,0,0,0.6);
  animation: flicker 1.2s infinite alternate;
}
.cursor-ring {
  width: 48px;
  height: 48px;
  border: 2px solid rgba(255,255,255,0.85);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: ringPulse 1.65s infinite ease-in-out;
}
.cursor-smoke {
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(255,255,255,0.28), rgba(112,112,112,0.14), transparent 70%);
  filter: blur(12px);
  transform: translate(-50%, -50%);
  opacity: 0.9;
}
.cursor.active .cursor-ring {
  border-color: #ff8e8e;
  border-width: 3px;
  box-shadow: 0 0 12px rgba(255, 42, 42, 0.65);
}
.cursor.active { width: 22px; height: 22px; }

#crow {
  position: fixed;
  inset: auto auto 10vh 12vw;
  width: min(420px, 40vw);
  opacity: 0.66;
  filter: drop-shadow(0 0 14px rgba(255,255,255,0.18));
  z-index: 0;
}
#crow svg {
  width: 100%;
  height: auto;
}

.audio-dock {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 60;
}
.audio-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(10, 10, 10, 0.88);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 8px 12px;
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.45);
  backdrop-filter: blur(12px);
}
.audio-toggle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff2a2a, #6a0f0f);
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
  border: none;
  box-shadow: 0 0 18px rgba(255, 42, 42, 0.4);
  cursor: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  animation: audioPulse 1.8s infinite ease-in-out;
}
.audio-toggle:hover {
  transform: scale(1.08) translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 0 22px rgba(255, 42, 42, 0.65);
}
.audio-pill:hover {
  transform: translateY(-2px);
}
.audio-label {
  font-size: 0.84rem;
  color: #f5f5f5;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.audio-dock audio {
  display: none;
}

footer {
  padding: 24px 0 40px;
  color: var(--muted);
  text-align: center;
}

@keyframes ringPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(0.94); opacity: 0.72; }
  50% { transform: translate(-50%, -50%) scale(1.12); opacity: 1; }
}
@keyframes flicker {
  0% { box-shadow: 0 0 14px rgba(255,255,255,0.35), 0 0 22px rgba(255,0,0,0.4); }
  100% { box-shadow: 0 0 20px rgba(255,255,255,0.85), 0 0 38px rgba(255,0,0,0.8); }
}

@keyframes audioPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 12px rgba(255, 42, 42, 0.42); }
  50% { transform: scale(1.06); box-shadow: 0 0 24px rgba(255, 42, 42, 0.72); }
}

@media (max-width: 900px) {
  .hero, .chat-layout { grid-template-columns: 1fr; }
  #crow { width: min(280px, 54vw); left: 8vw; }
}
