/* ==========================================================================
   Vend with Style - Design System: Main Tokens, Reset & Base Typography
   ========================================================================== */

:root {
  /* Brand Primary & Accents */
  --color-primary: #10b981;          /* Emerald Green - vibrant refreshment */
  --color-primary-hover: #059669;
  --color-primary-light: rgba(16, 185, 129, 0.15);
  --color-accent: #06b6d4;           /* Cyan / Electric Blue - modern tech */
  --color-accent-glow: rgba(6, 182, 212, 0.25);
  --color-gold: #f59e0b;             /* Warm Amber - highlights & ratings */
  --color-danger: #ef4444;
  --color-success: #10b981;

  /* Neutral & Dark Theme Base (Obsidian Slate) */
  --bg-main: #0b0f17;                /* Ultra-deep obsidian */
  --bg-surface-1: #131b2a;           /* Card / container base */
  --bg-surface-2: #1b253b;           /* Elevated surface */
  --bg-surface-glass: rgba(19, 27, 42, 0.75);
  --bg-input: rgba(11, 15, 23, 0.85);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-hover: rgba(16, 185, 129, 0.35);

  /* Typography Colors */
  --text-main: #f8fafc;              /* Slate 50 */
  --text-muted: #94a3b8;             /* Slate 400 */
  --text-dim: #64748b;               /* Slate 500 */
  --text-inverse: #0b0f17;

  /* Typography Families */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Elevation & Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 30px rgba(16, 185, 129, 0.25);
  --shadow-glow-cyan: 0 0 30px rgba(6, 182, 212, 0.25);

  /* Border Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 9999px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);

  /* Max Widths */
  --container-max: 1280px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

/* Background Atmospheric Glows */
body::before {
  content: '';
  position: fixed;
  top: -200px;
  left: 20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, rgba(11, 15, 23, 0) 70%);
  z-index: -1;
  pointer-events: none;
}

body::after {
  content: '';
  position: fixed;
  bottom: 10%;
  right: 10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.06) 0%, rgba(11, 15, 23, 0) 70%);
  z-index: -1;
  pointer-events: none;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.35rem, 5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.35rem, 2vw, 1.6rem);
  font-weight: 600;
}

h4 {
  font-size: 1.2rem;
  font-weight: 600;
}

p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

p.lead {
  font-size: 1.2rem;
  line-height: 1.65;
  color: var(--text-main);
}

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

a:hover {
  color: var(--color-accent);
}

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

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.container-narrow {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.site-main {
  flex: 1;
}

.section {
  padding: 5rem 0;
  position: relative;
}

.section-hero {
  padding: 6.5rem 0 4.5rem;
}

.section-dark {
  background-color: var(--bg-surface-1);
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-gradient {
  background: linear-gradient(135deg, #ffffff 40%, var(--color-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-cyan {
  background: linear-gradient(135deg, #38bdf8 0%, var(--color-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.eyebrow-badge {
  background: var(--color-primary-light);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
}

.grid {
  display: grid;
  gap: 1.75rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-col {
  flex-direction: column;
}

.gap-sm { gap: 0.75rem; }
.gap-md { gap: 1.25rem; }
.gap-lg { gap: 2rem; }

/* Responsive adjustments */
@media (max-width: 768px) {
  .section {
    padding: 3.5rem 0;
  }
  .section-hero {
    padding: 4.5rem 0 3rem;
  }
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
}
