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

:root {
  --color-accent: #ed109c;
  --color-accent-2: #dbe60a;
  --color-accent-3: #0be79e;
  --color-accent-warm: #e59109;
  --color-accent-soft: #f1e3ec;
  --color-accent-2-soft: #f1f2e3;
  --color-accent-3-soft: #e3f2ed;
  --color-accent-warm-soft: #f2ece3;

  --color-bg: #f4f6f9;
  --color-bg-2: #e9edf3;
  --color-bg-white: #ffffff;
  --color-bg-rgb: 244, 246, 249;
  --color-bg-white-rgb: 255, 255, 255;

  --color-text: #0f172a;
  --color-text-secondary: #334155;
  --color-text-muted: #64748b;

  --color-border: #d8dee8;
  --color-border-light: #e8ecf2;

  --color-footer-bg: #0f172a;
  --color-footer-text: #f1f5f9;
  --color-footer-muted: #94a3b8;
  --color-footer-link: #cbd5e1;
  --color-footer-border: rgba(255,255,255,0.08);
  --color-footer-social-bg: rgba(56,189,248,0.12);
  --color-footer-social-border: rgba(56,189,248,0.25);

  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

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

  --shadow-sm: 0 1px 3px rgba(15,23,42,0.06), 0 1px 2px rgba(15,23,42,0.04);
  --shadow-md: 0 6px 16px rgba(15,23,42,0.07);
  --shadow-lg: 0 14px 30px rgba(15,23,42,0.10);
  --shadow-xl: 0 24px 48px rgba(15,23,42,0.14);
}

body {
  letter-spacing: -0.005em;
}

.announcement-bar {
  background: #0f172a;
  color: #f1f5f9;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  font-size: 11px;
}
.announcement-bar strong { color: var(--color-accent); }

.site-header {
  border-bottom: 1px solid rgba(15,23,42,0.08);
  background: rgba(255,255,255,0.94);
}

.logo-text {
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #0f172a;
}

.nav-link.active {
  color: var(--color-accent);
  background: var(--color-accent-soft);
}

/* ── HERO — lighthouse beam ─────────────────────────────────────────────── */
.hero {
  background: linear-gradient(180deg, #ffffff 0%, #eef2f7 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero,
.hero-content { text-align: center; }
.hero-actions { justify-content: center; }
.hero-subtitle { margin-left: auto; margin-right: auto; }

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  width: 140%;
  height: 180%;
  background:
    radial-gradient(ellipse 50% 40% at 50% 30%, rgba(56,189,248,0.16) 0%, transparent 60%),
    conic-gradient(from 270deg at 50% 0%, transparent 0deg, rgba(56,189,248,0.10) 8deg, transparent 18deg, transparent 342deg, rgba(56,189,248,0.10) 352deg, transparent 360deg);
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 0;
}
.hero-content { position: relative; z-index: 1; }

.hero-title {
  font-weight: 800;
  letter-spacing: -1.5px;
  color: #0f172a;
}

.hero-badge {
  background: #0f172a;
  color: #38bdf8;
  border: 1px solid rgba(56,189,248,0.3);
  letter-spacing: 2px;
}

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn-primary {
  background: #0f172a;
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(15,23,42,0.25);
}
.btn-primary:hover {
  background: #1e293b;
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(15,23,42,0.30);
  filter: none;
}

.btn-outline {
  border: 1.5px solid #0f172a;
  color: #0f172a;
  background: transparent;
}
.btn-outline:hover {
  background: #0f172a;
  color: #ffffff;
}

.btn-cta {
  background: var(--color-accent);
  box-shadow: 0 4px 14px rgba(237,16,156,0.25);
}

/* ── Sections — lighthouse vertical rhythm ─────────────────────────────── */
.section { padding: 80px 0; }
.section-title {
  font-weight: 800;
  letter-spacing: -0.6px;
}
.section-header { position: relative; }
.section-header::after {
  content: '';
  display: block;
  width: 56px;
  height: 3px;
  background: linear-gradient(90deg, #0f172a 0%, #38bdf8 100%);
  border-radius: 2px;
  margin: 16px auto 0;
}

/* ── Staggered product columns ─────────────────────────────────────────── */
.product-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
}
.product-grid > .product-card-link,
.product-grid > .product-card {
  flex: 1 1 270px;
  min-width: 260px;
  max-width: calc(25% - 18px);
}
.product-grid > .product-card-link:nth-child(4n+2),
.product-grid > .product-card:nth-child(4n+2) { transform: translateY(24px); }
.product-grid > .product-card-link:nth-child(4n+3),
.product-grid > .product-card:nth-child(4n+3) { transform: translateY(-12px); }
.product-grid > .product-card-link:nth-child(4n),
.product-grid > .product-card:nth-child(4n) { transform: translateY(36px); }

@media (max-width: 1100px) {
  .product-grid > .product-card-link,
  .product-grid > .product-card { max-width: calc(33.333% - 16px); }
}
@media (max-width: 768px) {
  .product-grid > .product-card-link,
  .product-grid > .product-card {
    max-width: calc(50% - 7px);
    min-width: 0;
    transform: none !important;
  }
}
@media (max-width: 480px) {
  .product-grid > .product-card-link,
  .product-grid > .product-card { max-width: 100%; }
}

.product-card {
  border: 1px solid #dbe2ec;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.product-card:hover {
  border-color: #38bdf8;
  box-shadow: 0 18px 40px rgba(15,23,42,0.10);
}
.card-image-wrapper { background: #eef2f7; }
.card-brand {
  color: var(--color-accent);
  letter-spacing: 1.6px;
}

/* ── Categories ────────────────────────────────────────────────────────── */
.category-card:hover {
  border-color: #38bdf8;
  box-shadow: 0 12px 28px rgba(15,23,42,0.08);
}
.category-icon {
  background: linear-gradient(135deg, #0f172a 0%, #38bdf8 100%);
  color: #ffffff;
}

/* ── Newsletter ────────────────────────────────────────────────────────── */
.newsletter-section {
  background: #0f172a;
  border-top: none;
  border-bottom: none;
}
.newsletter-text h3 { color: #ffffff; }
.newsletter-text p { color: #94a3b8; }
.newsletter-form input {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
  color: #ffffff;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.4); }
.newsletter-form input:focus { border-color: #38bdf8; }
.newsletter-form button {
  background: #38bdf8;
  color: #0f172a;
}
.newsletter-form button:hover { background: #7dd3fc; }

/* ── FAQ ───────────────────────────────────────────────────────────────── */
.faq-section { background: #f4f6f9; }
.faq-item[open] { border-color: var(--color-accent-2); }
.faq-item[open] .faq-question::after { color: #0f172a; }

/* ── Stats — navy + sky ─────────────────────────────────────────────────── */
.stats-section {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #38bdf8 100%);
  position: relative;
  overflow: hidden;
}
.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, transparent 0 22px, rgba(255,255,255,0.04) 22px 24px);
  pointer-events: none;
}
.stats-grid { position: relative; z-index: 1; }

/* ── Top Picks ─────────────────────────────────────────────────────────── */
.top-picks-section { background: var(--color-accent-warm-soft); }
.top-pick-rank { color: var(--color-accent-warm); }

/* ── Testimonials ──────────────────────────────────────────────────────── */
.testimonials-section { background: var(--color-accent-3-soft); }

/* ── Trust ─────────────────────────────────────────────────────────────── */
.trust-item svg { color: #38bdf8; }

/* ── New widgets ───────────────────────────────────────────────────────── */
.price-history-section,
.user-reviews-section {
  border: 1px solid #dbe2ec;
  background: #ffffff;
}
.price-history-section { border-left: 4px solid #38bdf8; }
.user-reviews-section { border-left: 4px solid var(--color-accent); }
.chart-bar {
  background: linear-gradient(180deg, rgba(56,189,248,0.25) 0%, #38bdf8 100%);
}
.chart-bar-current {
  background: linear-gradient(180deg, var(--color-accent-3) 0%, #059669 100%);
}

.pros-cons-widget {
  background: #f4f6f9;
  border-color: #dbe2ec;
}

.delivery-widget {
  background: #f4f6f9;
  border: 1px solid #dbe2ec;
  border-left: 3px solid #38bdf8;
}
.delivery-item svg { color: #38bdf8; }

.social-proof-popup {
  border-left: 3px solid var(--color-accent);
}
.popup-icon { background: var(--color-accent-3); }

.review-avatar {
  background: linear-gradient(135deg, #0f172a 0%, #38bdf8 100%);
}

/* ── Brand showcase ────────────────────────────────────────────────────── */
.brand-initial {
  background: linear-gradient(135deg, #0f172a 0%, #38bdf8 100%);
}

/* ── Trending ──────────────────────────────────────────────────────────── */
.trending-rank { color: var(--color-accent); }

/* ── Footer — maritime stripes ─────────────────────────────────────────── */
.site-footer {
  background: #0f172a;
  position: relative;
  padding-top: 80px;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 12px;
  background: repeating-linear-gradient(
    90deg,
    #38bdf8 0 40px,
    #ffffff 40px 80px,
    var(--color-accent) 80px 120px,
    #ffffff 120px 160px,
    #0f172a 160px 200px
  );
}
.site-footer::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    #38bdf8 0 24px,
    transparent 24px 48px
  );
  opacity: 0.5;
}
.footer-logo { color: #ffffff; }
.social-links a:hover {
  background: #38bdf8;
  border-color: #38bdf8;
  color: #0f172a;
}

/* ── Subtle beam animation ─────────────────────────────────────────────── */
@keyframes lighthouse-pulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}
.hero-badge {
  animation: lighthouse-pulse 4s ease-in-out infinite;
}

/* ── Mobile guards ─────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero::before { opacity: 0.5; }
  .section { padding: 56px 0; }
}

/* ── Layout guards ─────────────────────────────────────────────────────── */
.product-card { display: flex; flex-direction: column; }
.card-body { flex: 1; display: flex; flex-direction: column; }
.card-body .btn-cta { margin-top: auto; }