@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&display=swap');
@import url('./variables.css');

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

html {
  font-family: var(--font-main);
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--bg-dark-base);
  color: var(--text-light-primary);
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

img, svg, picture, video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
}

button {
  cursor: pointer;
}

ul, ol {
  list-style: none;
}

/* ==========================================================================
   CONTAINER & LAYOUT
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(16px, 4vw, 36px);
  padding-right: clamp(16px, 4vw, 36px);
}

.container-narrow {
  max-width: var(--container-narrow);
}

/* ==========================================================================
   SECTION THEMING (DARK / LIGHT RHYTHM)
   ========================================================================== */
.section {
  position: relative;
  padding: clamp(64px, 8vw, 110px) 0;
  overflow: hidden;
}

/* Dark Section */
.section-dark {
  background-color: var(--bg-dark-base);
  color: var(--text-light-primary);
}

.section-dark-deep {
  background-color: var(--bg-dark-deep);
  color: var(--text-light-primary);
}

.section-dark-surface {
  background-color: var(--bg-dark-surface);
  color: var(--text-light-primary);
}

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

.section-dark .section-lead {
  color: var(--text-light-secondary);
}

.section-dark .section-eyebrow {
  color: var(--lavender-300);
}

/* Light Section */
.section-light {
  background-color: var(--bg-light-base);
  color: var(--text-dark-primary);
}

.section-light-white {
  background-color: var(--bg-light-surface);
  color: var(--text-dark-primary);
}

.section-light .section-heading {
  color: var(--text-dark-primary);
}

.section-light .section-lead {
  color: var(--text-dark-secondary);
}

.section-light .section-eyebrow {
  color: var(--purple-primary);
}

/* ==========================================================================
   TYPOGRAPHY HIERARCHY
   ========================================================================== */
.hero-title {
  font-size: clamp(40px, 5.8vw, 76px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--text-white);
  margin-bottom: 24px;
}

.hero-lead {
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-light-secondary);
  max-width: 660px;
  margin-bottom: 36px;
}

.section-header {
  margin-bottom: clamp(40px, 5vw, 64px);
}

.section-header.text-center {
  text-align: center;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}

.section-heading {
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
}

.section-lead {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.65;
  font-weight: 400;
  max-width: 680px;
}

/* ==========================================================================
   BUTTONS & CTAs
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  transition: all var(--transition-normal);
  white-space: nowrap;
  position: relative;
  user-select: none;
}

.btn-primary {
  background: var(--purple-gradient);
  color: var(--text-white);
  box-shadow: 0 4px 18px rgba(112, 64, 245, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(112, 64, 245, 0.5);
  background: linear-gradient(135deg, #7A4DFF 0%, #A855F7 100%);
}

.btn-secondary-dark {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-white);
  border: 1px solid var(--border-dark);
  backdrop-filter: blur(12px);
}

.btn-secondary-dark:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-secondary-light {
  background: #FFFFFF;
  color: var(--text-dark-primary);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.btn-secondary-light:hover {
  border-color: var(--purple-primary);
  color: var(--purple-primary);
  transform: translateY(-2px);
}

.btn-icon {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-fast);
}

.btn:hover .btn-icon-arrow {
  transform: translateX(4px);
}

/* Pill Badges */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.badge-purple {
  background: rgba(112, 64, 245, 0.16);
  color: var(--lavender-300);
  border: 1px solid rgba(112, 64, 245, 0.3);
}

.badge-purple-solid {
  background: var(--purple-primary);
  color: var(--text-white);
}

.badge-new {
  background: #10B981;
  color: #FFFFFF;
  font-size: 0.6875rem;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

/* Radial Glow Accents */
.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}

.glow-purple {
  background: radial-gradient(circle, rgba(112, 64, 245, 0.28) 0%, rgba(112, 64, 245, 0) 70%);
}

.glow-lavender {
  background: radial-gradient(circle, rgba(199, 185, 255, 0.15) 0%, rgba(199, 185, 255, 0) 70%);
}

/* Grid Background */
.bg-grid-subtle {
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
