@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Spectral:wght@500;600;700&display=swap');

:root {
  /* Soft tonal background anchored on cool blue-grey */
  --color-bg: #f6f8fc;
  --color-bg-2: #eef2f9;
  --color-bg-white: #ffffff;
  --color-bg-rgb: 246, 248, 252;
  --color-bg-white-rgb: 255, 255, 255;
  --color-surface: rgba(30, 64, 175, 0.02);
  --color-surface-hover: rgba(30, 64, 175, 0.05);

  --color-text: #14213d;
  --color-text-secondary: #4b5773;
  --color-text-muted: #97a0b8;

  --color-border: #e2e7f1;
  --color-border-light: #eef1f8;

  /* Mandatory palette — 4 distinct hues, used exactly */
  --color-accent: #b428e8;        /* Primary — violet */
  --color-accent-2: #e18748;      /* Secondary — amber-orange */
  --color-accent-3: #1ceb22;      /* Tertiary — green */
  --color-accent-warm: #e76d0b;   /* Warm — orange */
  --color-accent-soft: #ede3f1;
  --color-accent-2-soft: #f0e9e4;
  --color-accent-3-soft: #e3f1e4;
  --color-accent-warm-soft: #f1e9e3;

  --color-star: #e76d0b;
  --color-success: #1a9e2a;
  --color-badge: #b428e8;
  --color-info: #1e40af;

  /* Cool precise techy footer */
  --color-footer-bg: #101a33;
  --color-footer-text: #e7ebf5;
  --color-footer-muted: #8b96b3;
  --color-footer-link: #c3cbdf;
  --color-footer-border: rgba(255,255,255,0.08);
  --color-footer-social-bg: rgba(255,255,255,0.06);
  --color-footer-social-border: rgba(255,255,255,0.12);

  --font-heading: 'Spectral', 'Georgia', serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-xs: 0 1px 2px rgba(20, 33, 61, 0.05);
  --shadow-sm: 0 1px 3px rgba(20, 33, 61, 0.07), 0 1px 2px rgba(20, 33, 61, 0.04);
  --shadow-md: 0 4px 10px rgba(20, 33, 61, 0.08), 0 2px 4px rgba(20, 33, 61, 0.04);
  --shadow-lg: 0 12px 28px rgba(20, 33, 61, 0.10), 0 4px 10px rgba(20, 33, 61, 0.05);
  --shadow-xl: 0 22px 46px rgba(20, 33, 61, 0.12), 0 8px 18px rgba(20, 33, 61, 0.06);
}

/* ── Hero — gentle tonal gradient, centered stack ─────────────────────────── */
.hero {
  text-align: center;
  background: linear-gradient(170deg, #ffffff 0%, #eef2f9 55%, #e7ecf6 100%);
}
.hero-content { text-align: center; }
.hero-actions { justify-content: center; }
.hero-subtitle { max-width: 520px; margin-left: auto; margin-right: auto; }

.hero::before {
  content: '';
  position: absolute;
  top: -40%; left: -20%;
  width: 140%; height: 130%;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(180, 40, 232, 0.08) 0%, transparent 55%),
    radial-gradient(ellipse at 75% 30%, rgba(30, 64, 175, 0.07) 0%, transparent 55%);
  pointer-events: none;
}

/* Precise techy dot-grid overlay behind the centered stack */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(20, 33, 61, 0.06) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, transparent 70%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero--split.hero::after { content: none; }

.hero-badge {
  background: var(--color-accent-soft);
  color: var(--color-accent);
  border: 1px solid rgba(180, 40, 232, 0.22);
}

.hero-title {
  background: linear-gradient(120deg, #14213d 0%, #1e40af 60%, #b428e8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── Buttons — medium-weight with a light lift ────────────────────────────── */
.btn-primary {
  background: var(--color-accent);
  box-shadow: 0 4px 14px rgba(180, 40, 232, 0.22);
  font-weight: 600;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(180, 40, 232, 0.30);
  filter: brightness(1.02);
}
.btn-cta {
  background: var(--color-accent);
  box-shadow: 0 2px 8px rgba(180, 40, 232, 0.20);
  font-weight: 600;
}
.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(180, 40, 232, 0.28);
  filter: brightness(1.02);
}

/* ── Product cards — rounded 16px, soft lift on hover ─────────────────────── */
.product-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-bg-white);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(180, 40, 232, 0.35);
}
.card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-body .btn-cta { margin-top: auto; }
.card-brand { color: var(--color-accent); }

/* Category cards */
.category-card:hover { border-color: var(--color-accent-2); }
.category-icon { background: var(--color-accent-2-soft); color: var(--color-accent-2); }

/* ── Section title accent underline (decorative) ──────────────────────────── */
.section-header .section-title { position: relative; }
.section-header .section-title::after {
  content: '';
  display: block;
  width: 52px;
  height: 3px;
  margin: 14px auto 0;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-warm));
}

/* ── Stats bar — cool techy gradient ──────────────────────────────────────── */
.stats-section {
  background: linear-gradient(135deg, #1e40af 0%, var(--color-accent) 100%);
}

/* ── New widgets ──────────────────────────────────────────────────────────── */
.price-history-section {
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-accent);
  background: var(--color-bg-white);
}
.chart-bar {
  background: linear-gradient(180deg, var(--color-accent-soft) 0%, var(--color-accent) 100%);
}
.chart-bar-current {
  background: linear-gradient(180deg, #7bf07f 0%, var(--color-accent-3) 100%);
  box-shadow: 0 0 12px rgba(28, 235, 34, 0.30);
}

.user-reviews-section {
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-accent-2);
  background: var(--color-bg-white);
}
.review-avatar { background: var(--color-accent); }
.review-bar-fill { background: var(--color-star); }

.pros-cons-widget {
  background: var(--color-bg-2);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-accent-3);
}

.delivery-widget {
  background: var(--color-bg-2);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-accent-warm);
}
.delivery-item svg { color: var(--color-accent); }

.social-proof-popup {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}
.social-proof-popup .popup-icon { background: var(--color-accent-3); }

/* ── Footer social hover ──────────────────────────────────────────────────── */
.social-links a:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

/* ── FAQ / Guide / Testimonials accent alignment ──────────────────────────── */
.guide-number { background: var(--color-accent-warm); }
.top-pick-rank { color: var(--color-accent-warm); }

@media (max-width: 768px) {
  .hero::after { display: none; }
}