/* ==========================================================================
   Maximus AI Marketing Site — Roman Imperial Dark Theme
   Colors: Imperial Gold #D4AF37, Roman Purple #7B2D8E, Obsidian #0A0A0F
   ========================================================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --gold: #D4AF37;
  --gold-light: #E5C766;
  --gold-dark: #B8960C;
  --purple: #7B2D8E;
  --purple-light: #9B4DB0;
  --purple-dark: #5E1A6E;
  --obsidian: #0A0A0F;
  --surface: #12121A;
  --surface-light: #1A1A26;
  --surface-lighter: #242432;
  --text: #E8E6E3;
  --text-muted: #9E9A93;
  --text-dim: #6B6760;
  --border: #2A2A36;
  --white: #FFFFFF;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.5);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Cinzel', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--obsidian);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* --- Container --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--obsidian);
  border-color: var(--gold);
  font-weight: 700;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  border-color: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold-dark);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold-light);
  background: rgba(212, 175, 55, 0.08);
  transform: translateY(-1px);
}

.btn-block {
  width: 100%;
  padding: 14px 24px;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--gold), var(--purple));
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--white);
  font-family: 'Cinzel', serif;
}

.logo-text {
  color: var(--gold);
  font-family: 'Cinzel', serif;
  letter-spacing: 0.06em;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
  font-family: 'Inter', sans-serif;
}

.nav-links a:hover {
  color: var(--gold);
}

.nav-actions {
  display: flex;
  gap: 12px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: all 0.3s;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 24px;
  flex-direction: column;
  gap: 16px;
  z-index: 99;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  font-size: 1rem;
  color: var(--text-muted);
  padding: 8px 0;
  font-family: 'Inter', sans-serif;
}

/* --- Hero --- */
.hero {
  padding: 160px 0 100px;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(212, 175, 55, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 70% 20%, rgba(123, 45, 142, 0.06) 0%, transparent 60%);
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 24px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: 'Inter', sans-serif;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
  font-family: 'Cinzel', serif;
}

.hero h1 .gold {
  color: var(--gold);
}

.hero-tagline {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  color: var(--gold);
  font-family: 'Cinzel', serif;
  margin-bottom: 24px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.7;
  font-family: 'Inter', sans-serif;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.app-badges {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.app-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.app-badge:hover {
  border-color: var(--gold-dark);
  background: var(--surface-light);
  transform: translateY(-2px);
}

.app-badge svg {
  width: 24px;
  height: 24px;
  fill: var(--text);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--gold);
  font-family: 'Cinzel', serif;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
  font-family: 'Inter', sans-serif;
}

/* --- Section Header --- */
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: 0.01em;
  font-family: 'Cinzel', serif;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.6;
  font-family: 'Inter', sans-serif;
}

/* --- Features --- */
.features {
  padding: 100px 0;
}

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

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all 0.3s ease;
}

.feature-card:hover {
  border-color: rgba(212, 175, 55, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(212, 175, 55, 0.06);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(212, 175, 55, 0.1);
  border-radius: 10px;
  color: var(--gold);
  margin-bottom: 20px;
}

.feature-icon--purple {
  background: rgba(123, 45, 142, 0.12);
  color: var(--purple-light);
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
  font-family: 'Cinzel', serif;
}

.feature-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
  font-family: 'Inter', sans-serif;
}

/* --- Voice Packs --- */
.voice-packs {
  padding: 100px 0;
  background: var(--surface);
}

.voice-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.voice-card {
  background: var(--surface-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  transition: all 0.3s ease;
}

.voice-card:hover {
  border-color: rgba(212, 175, 55, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(212, 175, 55, 0.06);
}

.voice-avatar {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  font-family: 'Cinzel', serif;
}

.voice-avatar--commander {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--obsidian);
}

.voice-avatar--oracle {
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  color: var(--white);
}

.voice-avatar--centurion {
  background: linear-gradient(135deg, #8B4513, #654321);
  color: var(--gold);
}

.voice-avatar--senator {
  background: linear-gradient(135deg, #4A5568, #2D3748);
  color: var(--text);
}

.voice-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
  font-family: 'Cinzel', serif;
}

.voice-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  font-family: 'Inter', sans-serif;
}

.voice-tag {
  display: inline-block;
  margin-top: 12px;
  padding: 3px 10px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 12px;
  font-size: 0.7rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}

/* --- Pricing --- */
.pricing {
  padding: 100px 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: start;
}

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  position: relative;
  transition: all 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.pricing-card--featured {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.05), var(--surface));
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--obsidian);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: 'Inter', sans-serif;
}

.pricing-tier {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
  font-family: 'Cinzel', serif;
}

.pricing-price {
  margin-bottom: 16px;
}

.price-amount {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
  font-family: 'Inter', sans-serif;
}

.price-period {
  font-size: 0.9rem;
  color: var(--text-dim);
  font-family: 'Inter', sans-serif;
}

.pricing-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.5;
  font-family: 'Inter', sans-serif;
}

.pricing-features {
  margin-bottom: 28px;
}

.pricing-features li {
  padding: 7px 0;
  font-size: 0.85rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  position: relative;
  padding-left: 24px;
  font-family: 'Inter', sans-serif;
}

.pricing-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background: rgba(212, 175, 55, 0.15);
  border-radius: 50%;
}

.pricing-features li::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 50%;
  width: 8px;
  height: 4px;
  border-left: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: translateY(-60%) rotate(-45deg);
}

/* --- CTA --- */
.cta {
  padding: 100px 0;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 60% at 50% 100%, rgba(212, 175, 55, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 30% 80%, rgba(123, 45, 142, 0.04) 0%, transparent 60%);
}

.cta h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
  font-family: 'Cinzel', serif;
}

.cta > .container > p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  font-family: 'Inter', sans-serif;
}

.cta-form {
  display: flex;
  gap: 12px;
  max-width: 500px;
  margin: 0 auto 16px;
}

.cta-form input[type="email"] {
  flex: 1;
  padding: 14px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.2s;
}

.cta-form input[type="email"]::placeholder {
  color: var(--text-dim);
}

.cta-form input[type="email"]:focus {
  border-color: var(--gold);
}

.cta-note {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-family: 'Inter', sans-serif;
}

/* --- Footer --- */
.footer {
  padding: 64px 0 32px;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--text-dim);
  max-width: 280px;
  line-height: 1.6;
  font-family: 'Inter', sans-serif;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
  font-family: 'Cinzel', serif;
}

.footer-col a {
  display: block;
  font-size: 0.9rem;
  color: var(--text-dim);
  padding: 6px 0;
  transition: color 0.2s;
  font-family: 'Inter', sans-serif;
}

.footer-col a:hover {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-family: 'Inter', sans-serif;
}

.footer-bottom a {
  color: var(--gold);
}

.footer-bottom a:hover {
  text-decoration: underline;
}

/* --- Page template (for sub-pages) --- */
.page-header {
  padding: 140px 0 60px;
  text-align: center;
  background:
    radial-gradient(ellipse 50% 50% at 50% 0%, rgba(212, 175, 55, 0.06) 0%, transparent 70%);
}

.page-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
  font-family: 'Cinzel', serif;
}

.page-header p {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
}

.page-content {
  padding: 60px 0 100px;
}

.page-content .container {
  max-width: 800px;
}

.page-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin: 40px 0 16px;
  font-family: 'Cinzel', serif;
}

.page-content h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--white);
  margin: 28px 0 12px;
  font-family: 'Cinzel', serif;
}

.page-content p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 16px;
  font-family: 'Inter', sans-serif;
}

.page-content ul, .page-content ol {
  margin: 0 0 16px 24px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
  font-family: 'Inter', sans-serif;
}

.page-content ul {
  list-style: disc;
}

.page-content ol {
  list-style: decimal;
}

.page-content a {
  color: var(--gold);
}

.page-content a:hover {
  text-decoration: underline;
}

/* --- 404 page --- */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
}

.error-page h1 {
  font-size: 8rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--gold), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 16px;
  font-family: 'Cinzel', serif;
}

.error-page h2 {
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 12px;
  font-family: 'Cinzel', serif;
}

.error-page p {
  color: var(--text-muted);
  margin-bottom: 32px;
  font-family: 'Inter', sans-serif;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .voice-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .nav-links,
  .nav-actions {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding: 120px 0 80px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .voice-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .cta-form {
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-stats {
    gap: 32px;
  }
}

@media (max-width: 480px) {
  .voice-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    flex-direction: column;
    gap: 24px;
  }

  .app-badges {
    flex-direction: column;
    align-items: center;
  }
}
