/* CSS Variables & Design Tokens */
:root {
  /* Colors */
  --primary: #7f19e6;
  --primary-hover: #7216cf;
  --bg-light: #f7f6f8;
  --bg-dark: #191121;

  --text-slate-900: #0f172a;
  --text-slate-600: #475569;
  --text-slate-500: #64748b;
  --text-slate-400: #94a3b8;
  --text-slate-300: #cbd5e1;
  --text-white: #ffffff;

  --border-light: #e2e8f0;

  /* Fonts */
  --font-display: 'Inter', sans-serif;

  /* Transitions */
  --transition-fast: 0.15s ease-in-out;
  --transition-normal: 0.3s ease-in-out;
}

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

body {
  font-family: var(--font-display);
  background-color: var(--bg-light);
  color: var(--text-slate-900);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Dark Mode (Class-based, assuming we stick to the hardcoded 'dark' class on HTML for now like the template) */
.dark body.theme-aware {
  background-color: var(--bg-dark);
  color: var(--text-white);
}

.material-symbols-outlined {
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Layout */
.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
}

.main-content {
  flex: 1;
}

/* Common Text Utilities */
.text-primary {
  color: var(--primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  height: 2.5rem;
  padding: 0 1.25rem;
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  text-decoration: none;
  letter-spacing: 0.025em;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
}

.dark .btn-primary:hover {
  background-color: rgba(127, 25, 230, 0.9);
}

/* Header */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-light);
  padding: 1rem 1.5rem;
  white-space: nowrap;
}

.dark .header {
  border-bottom-color: rgba(127, 25, 230, 0.2);
}

@media (min-width: 1024px) {
  .header {
    padding: 1rem 5rem;
  }
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary);
  color: white;
  padding: 0.5rem;
  border-radius: 0.5rem;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-slate-900);
  text-transform: uppercase;
}

.dark .logo-text {
  color: var(--text-white);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Hero Section */
.hero-section {
  padding: 3rem 1.5rem;
}

@media (min-width: 1024px) {
  .hero-section {
    padding: 6rem 5rem;
  }
}

.hero-gradient {
  background: radial-gradient(circle at top right, rgba(127, 25, 230, 0.15), transparent),
    radial-gradient(circle at bottom left, rgba(127, 25, 230, 0.1), transparent);
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 56rem;
  margin: 0 auto;
  gap: 2rem;
}

.hero-title {
  color: var(--text-slate-900);
  font-size: 2.25rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.dark .hero-title {
  color: white;
}

@media (min-width: 480px) {
  .hero-title {
    font-size: 3.75rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 4.5rem;
  }
}

.hero-subtitle {
  color: var(--text-slate-600);
  font-size: 1.125rem;
  max-width: 42rem;
  line-height: 1.625;
}

.dark .hero-subtitle {
  color: var(--text-slate-300);
}

@media (min-width: 480px) {
  .hero-subtitle {
    font-size: 1.25rem;
  }
}

/* Image Section */
.hero-image-wrapper {
  margin-top: 5rem;
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  aspect-ratio: 16/9;
  border: 1px solid var(--border-light);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.dark .hero-image-wrapper {
  border-color: rgba(127, 25, 230, 0.2);
}

@media (min-width: 1024px) {
  .hero-image-wrapper {
    aspect-ratio: 21/9;
  }
}

.hero-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom right, rgba(127, 25, 230, 0.2), rgba(25, 17, 33, 0.8));
  z-index: 10;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  opacity: 0.5;
  display: block;
}

.stats-container {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stats-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .stats-grid {
    gap: 4rem;
  }
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.stat-value {
  font-size: 1.875rem;
  line-height: 2.25rem;
  font-weight: 900;
  color: white;
}

.stat-label {
  font-size: 0.75rem;
  line-height: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-slate-400);
}

/* Features Section */
.features-section {
  padding: 5rem 1.5rem;
}

@media (min-width: 1024px) {
  .features-section {
    padding: 5rem 5rem;
  }
}

.features-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 42rem;
  margin-bottom: 3rem;
}

.section-kicker {
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.section-title {
  color: var(--text-slate-900);
  font-size: 1.875rem;
  font-weight: 700;
}

.dark .section-title {
  color: white;
}

@media (min-width: 480px) {
  .section-title {
    font-size: 2.25rem;
  }
}

.section-subtitle {
  color: var(--text-slate-600);
  font-size: 1.125rem;
}

.dark .section-subtitle {
  color: var(--text-slate-400);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.feature-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  border-radius: 1rem;
  border: 1px solid var(--border-light);
  background-color: white;
  padding: 2rem;
  transition: border-color var(--transition-normal);
}

.feature-card:hover {
  border-color: rgba(127, 25, 230, 0.4);
}

.dark .feature-card {
  border-color: rgba(127, 25, 230, 0.1);
  background-color: rgba(127, 25, 230, 0.05);
}

.feature-icon {
  display: flex;
  height: 3rem;
  width: 3rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background-color: var(--primary);
  color: white;
}

.feature-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.feature-title {
  color: var(--text-slate-900);
  font-size: 1.25rem;
  font-weight: 700;
}

.dark .feature-title {
  color: white;
}

.feature-text {
  color: var(--text-slate-600);
  line-height: 1.625;
}

.dark .feature-text {
  color: var(--text-slate-400);
}

/* Footer */
.footer {
  margin-top: auto;
  border-top: 1px solid var(--border-light);
  padding: 3rem 1.5rem;
}

.dark .footer {
  border-top-color: rgba(127, 25, 230, 0.2);
}

@media (min-width: 1024px) {
  .footer {
    padding: 3rem 5rem;
  }
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.25rem;
  background-color: rgba(127, 25, 230, 0.2);
  padding: 0.375rem;
  color: var(--primary);
}

.footer-logo-text {
  color: var(--text-slate-900);
  font-size: 1.125rem;
  font-weight: 700;
}

.dark .footer-logo-text {
  color: var(--text-white);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.footer-link {
  color: var(--text-slate-500);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

.footer-copyright {
  color: var(--text-slate-500);
  font-size: 0.875rem;
}