/* ============================================================
   Jon AI Decide — Global Design System
   ============================================================ */

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

/* ── CSS Custom Properties ── */
/* ── CSS Custom Properties ── */
:root {
  /* Backgrounds (Light) */
  --bg-primary:    hsl(0, 0%, 100%);        /* White */
  --bg-secondary:  hsl(210, 20%, 98%);      /* Very light gray/blue */
  --bg-tertiary:   hsl(210, 20%, 95%);      /* Light gray */

  /* Borders */
  --border-subtle: hsla(220, 15%, 85%, 1);
  --border-glow:   hsla(220, 70%, 50%, 0.15);

  /* Text (Dark) */
  --text-primary:   hsl(222, 47%, 10%);     /* Very dark blue/black */
  --text-secondary: hsl(220, 15%, 35%);     /* Medium dark gray */
  --text-muted:     hsl(220, 15%, 50%);     /* Medium gray */

  /* Accents (Slightly darkened for better contrast on light backgrounds) */
  --accent-blue:    hsl(217, 91%, 50%);
  --accent-emerald: hsl(160, 84%, 35%);
  --accent-amber:   hsl(38, 92%, 45%);
  --accent-purple:  hsl(262, 83%, 58%);
  --accent-red:     hsl(0, 84%, 50%);

  /* Gradients */
  --gradient-hero: linear-gradient(135deg, hsl(0,0%,100%) 0%, hsl(210,20%,96%) 50%, hsl(0,0%,100%) 100%);
  --gradient-cta:  linear-gradient(135deg, hsl(217,91%,50%) 0%, hsl(262,83%,58%) 100%);

  /* Layout and Transitions stay exactly the same */
  --max-width: 1280px;
  --section-padding: 6rem 1.5rem;
  --radius-card:   1.5rem;
  --radius-btn:    0.75rem;
  --radius-pill:   9999px;

  --transition-fast:   0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow:   0.6s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-secondary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

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

input, textarea {
  font-family: inherit;
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 900; }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h4 { font-size: 1.25rem; }

p { color: var(--text-secondary); }

/* ── Layout Utilities ── */
.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.section {
  padding: var(--section-padding);
  position: relative;
  overflow: hidden;
}

/* ── Badge / Pill Label ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge-blue    { background: hsla(217,91%,60%,0.1); border: 1px solid hsla(217,91%,60%,0.25); color: var(--accent-blue); }
.badge-emerald { background: hsla(160,84%,39%,0.1); border: 1px solid hsla(160,84%,39%,0.25); color: var(--accent-emerald); }
.badge-amber   { background: hsla(38,92%,50%,0.1);  border: 1px solid hsla(38,92%,50%,0.25);  color: var(--accent-amber); }
.badge-purple  { background: hsla(262,83%,58%,0.1); border: 1px solid hsla(262,83%,58%,0.25); color: var(--accent-purple); }
.badge-red     { background: hsla(0,84%,60%,0.1);   border: 1px solid hsla(0,84%,60%,0.25);   color: var(--accent-red); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius-btn);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--gradient-cta);
  color: #fff;
  box-shadow: 0 4px 24px hsla(217,91%,60%,0.25);
  animation: pulse-glow 3s ease-in-out infinite;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px hsla(217,91%,60%,0.4);
  animation: none;
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn-ghost:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  background: hsla(217,91%,60%,0.05);
}

.btn-lg {
  padding: 1rem 2.4rem;
  font-size: 1.1rem;
}

/* ── Glassmorphism card ── */
.glass-card {
  background: hsla(222, 40%, 8%, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
}

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

/* ── Hover card effect ── */
.hover-card {
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.hover-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-blue);
  box-shadow: 0 20px 60px hsla(217, 91%, 60%, 0.1);
}

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ── Keyframe animations ── */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px hsla(217,91%,60%,0.3), 0 4px 24px hsla(217,91%,60%,0.2); }
  50%       { box-shadow: 0 0 40px hsla(217,91%,60%,0.5), 0 4px 40px hsla(217,91%,60%,0.3); }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-12px); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

@keyframes connecting-lines {
  0%   { stroke-dashoffset: 200; }
  100% { stroke-dashoffset: 0; }
}

/* ── Divider ── */
.divider {
  width: 1px;
  height: 3rem;
  background: var(--border-subtle);
}

/* ── Icon wrapper ── */
.icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  flex-shrink: 0;
}

/* ── Responsive text alignment helpers ── */
.text-center { text-align: center; }
.text-left   { text-align: left; }

/* ── Responsive grid helpers ── */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

  h1 { font-size: clamp(2rem, 8vw, 3rem); }
  h2 { font-size: clamp(1.6rem, 6vw, 2.5rem); }

  .section { padding: 4rem 1.25rem; }

  .btn { padding: 0.75rem 1.4rem; font-size: 0.95rem; }
  .btn-lg { padding: 0.9rem 1.8rem; font-size: 1rem; }
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--bg-tertiary); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-subtle); }

/* ── Focus ring ── */
:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}

/* ============================================================
   Light Mode Overrides for Hardcoded Transparency
   ============================================================ */

/* Global - Glass Card */
.glass-card {
  background: hsla(0, 0%, 100%, 0.7); /* Swapped from dark hsla to white */
}

/* Presentation - Sticky Nav */
#nav.scrolled {
  background: hsla(0, 0%, 100%, 0.92); /* Swapped to white */
}

/* Presentation - Mobile Overlay Menu */
.nav-mobile-overlay {
  background: hsla(0, 0%, 100%, 0.98); /* Swapped to white */
}

/* Presentation - Hero Headline Text Gradient (Needs darker gradient for contrast) */
.hero-headline {
  background: linear-gradient(135deg, var(--text-primary) 0%, hsl(217, 91%, 40%) 100%);
}

/* Presentation - Problem Section Comparison Cards */
.comparison-half.standard {
  background: hsla(210, 20%, 95%, 0.8); /* Swapped to light gray */
}

/* Presentation - Glow Blobs (Optional: Make them slightly less opaque on white) */
.glow-blob {
  opacity: 0.5;
}