/**
 * Single responsibility: Design tokens (CSS custom properties), modern reset, and base typography.
 */

/* ─── Google Font Import ───────────────────────────────────────────────────── */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap");

/* ─── Design Tokens ────────────────────────────────────────────────────────── */
:root {
  /* Background Colors */
  --color-bg-dark: #040b14;
  --color-bg-section: #060d1a;
  --color-bg-card: #0d1829;
  --color-bg-card-hover: #111f38;
  --color-bg-light: #f0f4f8;

  /* Accent & UI Colors */
  --color-accent: #3b82f6;
  --color-accent-dark: #2563eb;
  --color-accent-light: #60a5fa;
  --color-accent-glow: rgba(59, 130, 246, 0.35);
  --color-green: #10b981;
  --color-white: #ffffff;

  /* Text Colors */
  --color-text-primary: #f1f5f9;
  --color-text-secondary: #cbd5e1;
  --color-text-muted: #94a3b8;

  /* Light Theme Tokens */
  --color-bg-white: #ffffff;
  --color-text-dark: #0f172a;
  --color-text-dark-muted: #475569;
  --color-border-light: rgba(15, 23, 42, 0.08);

  /* Borders */
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-card: rgba(59, 130, 246, 0.18);

  /* Pricing Section */
  --color-pricing-from: #1e3a8a;
  --color-pricing-to: #1d4ed8;

  /* Typography */
  --font-family:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;
  --font-size-hero: clamp(2.4rem, 5.5vw, 4.25rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-3xl: 40px;
  --radius-pill: 100px;

  /* Shadows */
  --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 32px rgba(59, 130, 246, 0.4);
  --shadow-glow-lg: 0 0 60px rgba(59, 130, 246, 0.35);
  --shadow-card:
    0 4px 24px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--color-border-card);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  /* Z-Index Scale */
  --z-base: 0;
  --z-raised: 10;
  --z-nav: 500;
  --z-float: 600;
}

/* ─── Modern CSS Reset ─────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--color-text-primary);
  background-color: var(--color-bg-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ─── Base Typography ──────────────────────────────────────────────────────── */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

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

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

ul,
ol {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

/* ─── Accessibility ─────────────────────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

*:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ─── Gradient Text Utility ─────────────────────────────────────────────────── */
.text-gradient {
  background: linear-gradient(
    135deg,
    var(--color-accent) 0%,
    var(--color-accent-light) 50%,
    #818cf8 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ─── Layout Overflow Fixes ─────────────────────────────────────────────────── */
.value-props-section,
.checkout-section {
  overflow: hidden;
}
