/* ==========================================================================
   SPL1CE AI - CLEAN DISCORD DARK THEME
   High-Contrast, Laser Red Accents, Perfectly Aligned Typography
   ========================================================================== */

:root {
  /* Clean Dark Palette */
  --bg-darkest: #0a0b0d;
  --bg-page: #101216;
  --bg-surface: #181a1f;
  --bg-card: #202329;
  --bg-card-hover: #282b33;

  /* Laser Red Accents */
  --laser-red: #ff1744;
  --laser-red-hover: #ff3366;
  --laser-red-glow: rgba(255, 23, 68, 0.4);
  --laser-red-subtle: rgba(255, 23, 68, 0.1);
  --border-laser: rgba(255, 23, 68, 0.35);

  /* Discord Blurple */
  --discord-blurple: #5865f2;
  --discord-blurple-hover: #4752c4;

  /* Typography Colors - High Contrast */
  --text-white: #ffffff;
  --text-body: #e3e5e8;
  --text-muted: #949ba4;
  --text-dim: #6d727a;

  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.08);

  /* Geometry */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --max-width: 1160px;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-page);
  color: var(--text-body);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

body {
  min-height: 100vh;
  background-color: var(--bg-page);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(255, 23, 68, 0.08) 0%, transparent 60%),
    linear-gradient(to bottom, var(--bg-darkest) 0%, var(--bg-page) 100%);
  overflow-x: hidden;
  position: relative;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  color: var(--text-white);
  font-weight: 700;
  line-height: 1.25;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

code {
  font-family: 'JetBrains Mono', 'Consolas', monospace;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.88em;
  color: #ff8099;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 11, 13, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-avatar-mini {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 8px var(--laser-red-glow));
}

.brand-avatar-mini img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: contain;
  display: block;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.app-pill {
  background-color: var(--discord-blurple);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
}

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

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

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-laser {
  background: var(--laser-red);
  color: #ffffff;
  box-shadow: 0 0 16px var(--laser-red-glow);
}

.btn-laser:hover {
  background: var(--laser-red-hover);
  box-shadow: 0 0 24px rgba(255, 23, 68, 0.7);
  transform: translateY(-1px);
}

.btn-slate {
  background: var(--bg-card);
  color: var(--text-white);
  border-color: var(--border-subtle);
}

.btn-slate:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  padding: 80px 0 60px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--laser-red-subtle);
  border: 1px solid var(--border-laser);
  color: var(--laser-red);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-tag-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--laser-red);
  box-shadow: 0 0 8px var(--laser-red);
}

.hero-title {
  font-size: 3.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  line-height: 1.15;
  color: #ffffff;
}

.hero-title .laser-text {
  color: var(--laser-red);
  text-shadow: 0 0 24px var(--laser-red-glow);
}

.hero-subhead {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 32px;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ==========================================================================
   HERO AVATAR - SHERLOCK LASER
   Clean, Contained, Centered, and Punchy
   ========================================================================== */
.hero-avatar-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.avatar-halo {
  position: relative;
  width: 310px;
  height: 310px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 35px var(--laser-red-glow));
  transition: transform 0.3s ease;
}

.avatar-halo:hover {
  transform: scale(1.03);
}

.avatar-img-circle {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
}

.avatar-img-circle img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* ==========================================================================
   AI PROVIDERS STRIP
   ========================================================================== */
.providers-section {
  padding: 40px 0 60px;
}

.providers-label {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.providers-flex {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.provider-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 10px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-white);
  transition: all 0.2s ease;
}

.provider-badge:hover {
  border-color: var(--laser-red);
  box-shadow: 0 0 14px var(--laser-red-subtle);
  transform: translateY(-2px);
}

.provider-badge.featured {
  border-color: rgba(255, 23, 68, 0.4);
  background: linear-gradient(180deg, #24171a 0%, var(--bg-card) 100%);
}

.provider-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--laser-red);
  box-shadow: 0 0 8px var(--laser-red);
}

/* ==========================================================================
   FEATURE CARDS GRID
   ========================================================================== */
.features-section {
  padding: 60px 0 80px;
  border-top: 1px solid var(--border-subtle);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 50px;
}

.section-tag {
  color: var(--laser-red);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  display: block;
}

.section-title {
  font-size: 2.3rem;
  margin-bottom: 14px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-laser);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 20px var(--laser-red-subtle);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--laser-red-subtle);
  border: 1px solid var(--border-laser);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--laser-red);
  margin-bottom: 22px;
}

.feature-title {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: #ffffff;
}

.feature-body {
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

/* ==========================================================================
   DASHBOARD / SETTINGS PREVIEW
   ========================================================================== */
.dashboard-section {
  padding: 60px 0 90px;
  border-top: 1px solid var(--border-subtle);
}

.dashboard-card-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-laser);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  max-width: 860px;
  margin: 0 auto;
}

.dashboard-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
}

.dash-badge {
  background: var(--laser-red);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.step-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 30px;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #181a1f;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.step-num {
  background: var(--laser-red);
  color: #ffffff;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.82rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.step-text {
  color: var(--text-body);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--bg-darkest);
  border-top: 1px solid var(--border-subtle);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-copy {
  color: var(--text-dim);
  font-size: 0.9rem;
}

.footer-copy a {
  color: var(--text-muted);
  text-decoration: underline;
}

.footer-copy a:hover {
  color: var(--text-white);
}

/* ==========================================================================
   MODAL - HIDDEN BY DEFAULT (NO LEAKING)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 11, 13, 0.88);
  backdrop-filter: blur(10px);
  z-index: 9999;
  display: none !important;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex !important;
}

.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border-laser);
  border-radius: var(--radius-lg);
  max-width: 560px;
  width: 100%;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9), 0 0 30px var(--laser-red-glow);
  padding: 32px;
  position: relative;
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-close-btn:hover {
  color: #ffffff;
}

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero-subhead {
    margin: 0 auto 32px;
  }
  .hero-actions {
    justify-content: center;
  }
  .nav-links {
    display: none;
  }
  .hero-title {
    font-size: 2.6rem;
  }
}
