/* ============================================
   CEENDESIS DESIGN SYSTEM
   ============================================ */

/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;700&display=swap');

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

/* CSS Variables */
:root {
  --green-primary: #006855;
  --green-light: #0c8a72;
  --dark-text: #171d1c;
  --body-text: #3e4945;
  --muted-text: #6d7a75;
  --card-border: #d4ece6;
  --error-accent: #ba1a1a;
  --bg-white: #ffffff;
  --bg-offwhite: #f5faf8;
  --bg-cream: #f0f5f3;

  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --max-width: 1200px;
  --section-padding: 100px 0;

  /* Standardised radius */
  --radius-sm: 8px;
}

/* ── Section divider accent ── */
.section-divider {
  width: 60px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--green-primary), var(--green-light));
  margin: 0 auto 20px;
  opacity: 0.5;
}

/* ── Animated counter ── */
.stat-number[data-target] {
  transition: none;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body-text);
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--green-primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--green-light);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--dark-text);
  letter-spacing: -1.5px;
  line-height: 1.15;
}

h1 { font-size: clamp(40px, 5vw, 64px); }
h2 { font-size: clamp(32px, 3.5vw, 48px); }
h3 { font-size: clamp(22px, 2.5vw, 28px); }

.eyebrow {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--green-light);
  margin-bottom: 16px;
  display: block;
}

.stat-number {
  font-family: var(--font-mono);
  font-weight: 700;
}

/* ============================================
   LAYOUT
   ============================================ */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  box-sizing: border-box;
}

/* Prevent horizontal overflow without breaking sticky */
.navbar,
.stats-bar,
.footer,
.final-cta,
section {
  max-width: 100vw;
}

section {
  padding: var(--section-padding);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 16px;
  padding: 14px 28px;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--green-primary);
  color: white;
  border-color: var(--green-primary);
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
}

.btn-primary:hover::after {
  width: 300px;
  height: 300px;
}

.btn-primary:hover {
  background: var(--green-light);
  border-color: var(--green-light);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 104, 85, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--green-primary);
  border-color: var(--green-primary);
}

.btn-secondary:hover {
  background: var(--green-primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 104, 85, 0.15);
}

.btn-white {
  background: white;
  color: var(--green-primary);
  border-color: white;
}

.btn-white:hover {
  background: rgba(255,255,255,0.9);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================
   NAVIGATION
   ============================================ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
  padding: 0 24px;
  transition: box-shadow 0.3s;
}

.navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

.navbar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 22px;
  color: var(--dark-text);
  letter-spacing: -0.5px;
  text-decoration: none;
}

.nav-logo svg {
  width: 32px;
  height: 32px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 15px;
  color: var(--body-text);
  padding: 8px 16px;
  border-radius: 6px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a:hover {
  color: var(--green-primary);
  background: var(--bg-cream);
}

/* Dropdown */
.dropdown-trigger {
  cursor: pointer;
}

.dropdown-trigger svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: white;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 8px;
  min-width: 260px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: all 0.2s ease;
}

.nav-links li:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  display: block;
}

.dropdown-menu a:hover {
  background: var(--bg-cream);
}

.dropdown-menu .dropdown-label {
  display: block;
  font-weight: 600;
  color: var(--dark-text);
  margin-bottom: 2px;
}

.dropdown-menu .dropdown-desc {
  font-size: 13px;
  color: var(--muted-text);
  font-weight: 400;
}

.nav-cta {
  margin-left: 8px;
}

.nav-cta .btn {
  padding: 10px 20px;
  font-size: 14px;
}

/* Mobile menu toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark-text);
  margin: 5px 0;
  transition: all 0.3s;
  border-radius: 2px;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  padding: 160px 0 100px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-offwhite) 0%, var(--bg-white) 70%);
  position: relative;
}

/* Subtle decorative circles behind hero */
.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -80px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,104,85,0.03) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -100px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(12,138,114,0.03) 0%, transparent 70%);
  pointer-events: none;
}

.hero .eyebrow {
  margin-bottom: 20px;
}

.hero h1 {
  margin-bottom: 24px;
}

.hero .subtitle {
  font-size: 20px;
  color: var(--body-text);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.hero .btn-group {
  justify-content: center;
  margin-bottom: 60px;
}

.hero-image {
  max-width: 1100px;
  margin: 0 auto;
  perspective: 1200px;
  position: relative;
  z-index: 1;
}

.hero-image .browser-frame {
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.1), 0 1px 3px rgba(0,0,0,0.05);
  overflow: hidden;
  transform: rotateX(2deg);
  transition: transform 0.4s ease;
}

.hero-image .browser-frame:hover {
  transform: rotateX(0deg);
}

.browser-bar {
  background: #f0f0f0;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #e0e0e0;
}

.browser-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ddd;
}

.browser-dot:nth-child(1) { background: #ff5f57; }
.browser-dot:nth-child(2) { background: #febc2e; }
.browser-dot:nth-child(3) { background: #28c840; }

.browser-url {
  flex: 1;
  margin-left: 8px;
  background: white;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12px;
  color: var(--muted-text);
  font-family: var(--font-body);
}

.browser-content {
  padding: 32px;
  background: var(--bg-offwhite);
  min-height: 400px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  overflow-x: auto;
}

.dashboard-preview {
  flex: 1;
  background: white;
  border-radius: 8px;
  border: 0.5px solid var(--card-border);
  padding: 20px;
  min-height: 340px;
  box-shadow: 0 12px 32px -4px rgba(6,27,22,.04);
}

.dashboard-preview h4 {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--dark-text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 0.5px solid var(--card-border);
}

/* Mini dashboard elements */
.mini-stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.mini-stat {
  flex: 1 1 80px;
  min-width: 80px;
  background: var(--bg-white);
  border: 0.5px solid var(--card-border);
  border-radius: 8px;
  padding: 18px 14px;
  text-align: center;
  box-shadow: 0 12px 32px -4px rgba(6,27,22,.04);
  transition: box-shadow 0.15s, transform 0.15s;
}

.mini-stat:hover {
  box-shadow: 0 20px 48px -8px rgba(6,27,22,.12), 0 4px 12px -2px rgba(6,27,22,.06);
  transform: translateY(-1px);
}

.mini-stat .value {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--dark-text);
}

.mini-stat .label {
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 700;
  color: rgba(62,73,69,.6);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-top: 8px;
}

.mini-table {
  width: 100%;
  font-size: 12px;
}

.mini-table th {
  text-align: left;
  padding: 10px 8px;
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 700;
  color: rgba(62,73,69,.7);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  background: var(--bg-cream);
  border-bottom: 0.5px solid var(--card-border);
  white-space: nowrap;
}

.mini-table td {
  padding: 11px 8px;
  border-bottom: 0.5px solid var(--card-border);
  color: var(--dark-text);
  font-size: 13px;
}

.mini-table tr:last-child td {
  border-bottom: none;
}

.mini-table tr:hover td {
  background: rgba(12,138,114,.03);
}

.badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.badge-healthy { background: #d0e8e2; color: #005142; }
.badge-low { background: #fff8ec; color: #92400e; }
.badge-stockout { background: #ffdad6; color: #ba1a1a; }
.badge-active { background: #d0e8e2; color: #005142; }
.badge-pending { background: #fff8ec; color: #92400e; }

/* ============================================
   PRODUCT CARDS SECTION
   ============================================ */

.product-cards {
  padding: var(--section-padding);
  background: var(--bg-white);
  position: relative;
}

.product-cards::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--green-primary), var(--green-light));
  opacity: 0.3;
}

.product-cards .section-header {
  text-align: center;
  margin-bottom: 60px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  background: white;
  border: 0.5px solid var(--card-border);
  border-radius: 8px;
  padding: 32px;
  box-shadow: 0 12px 32px -4px rgba(6,27,22,.04);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  box-shadow: 0 20px 48px -8px rgba(6,27,22,.12), 0 4px 12px -2px rgba(6,27,22,.06);
  transform: translateY(-4px);
}

.product-card:hover .card-image {
  transform: scale(1.02);
}

.product-card:hover .card-cta {
  gap: 12px;
  color: var(--green-light);
}

.product-card .card-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #d0e8e2, #f0f5f3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: background 0.3s;
}

.product-card:hover .card-icon {
  background: linear-gradient(135deg, var(--green-primary), var(--green-light));
}

.product-card:hover .card-icon svg {
  color: white;
}

.product-card .card-icon svg {
  width: 24px;
  height: 24px;
  color: var(--green-primary);
}

.product-card h3 {
  margin-bottom: 12px;
  font-size: 22px;
  letter-spacing: -0.5px;
}

.product-card p {
  color: var(--body-text);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}

.product-card .card-image {
  background: var(--bg-offwhite);
  border: 0.5px solid var(--card-border);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 24px;
  min-height: 140px;
  transition: transform 0.3s ease;
  overflow: hidden;
}

.card-cta {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  color: var(--green-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}

.card-cta:hover {
  gap: 10px;
}

/* ============================================
   STATS BAR
   ============================================ */

.stats-bar {
  background: linear-gradient(135deg, #006855 0%, #0c8a72 100%);
  padding: 56px 0;
  position: relative;
  overflow: hidden;
}

.stats-bar::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -40px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  pointer-events: none;
}

.stats-bar::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: 100px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
  pointer-events: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-item .stat-number {
  font-size: clamp(36px, 4vw, 48px);
  color: white;
  display: block;
  margin-bottom: 8px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.stat-item .stat-label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.7);
}

/* ============================================
   SOCIAL PROOF / TESTIMONIALS
   ============================================ */

.social-proof {
  padding: var(--section-padding);
  background: var(--bg-offwhite);
  position: relative;
}

.social-proof::before {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--green-primary), var(--green-light));
  margin: 0 auto 60px;
  opacity: 0.4;
}

.social-proof .section-header {
  text-align: center;
  margin-bottom: 60px;
}

.social-proof .section-header h2 {
  max-width: 700px;
  margin: 0 auto;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: white;
  border: 0.5px solid var(--card-border);
  border-radius: 8px;
  padding: 32px;
  box-shadow: 0 12px 32px -4px rgba(6,27,22,.04);
  border-top: 3px solid transparent;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  border-top-color: var(--green-primary);
  box-shadow: 0 20px 48px -8px rgba(6,27,22,.12), 0 4px 12px -2px rgba(6,27,22,.06);
  transform: translateY(-2px);
}

.testimonial-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 16px;
}

.testimonial-stars svg {
  width: 18px;
  height: 18px;
  fill: #f5a623;
}

.testimonial-card blockquote {
  font-size: 15px;
  line-height: 1.65;
  color: var(--body-text);
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-primary), var(--green-light));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.testimonial-avatar svg {
  width: 22px;
  height: 22px;
  color: white;
}

.testimonial-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  color: var(--dark-text);
}

.testimonial-role {
  font-size: 13px;
  color: var(--muted-text);
}

/* ============================================
   FINAL CTA
   ============================================ */

.final-cta {
  padding: var(--section-padding);
  background: var(--bg-white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,104,85,0.04) 0%, transparent 60%);
  pointer-events: none;
}

.final-cta h2 {
  margin-bottom: 16px;
}

.final-cta p {
  max-width: 600px;
  margin: 0 auto 40px;
  font-size: 17px;
  line-height: 1.65;
}

.final-cta .btn-group {
  justify-content: center;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: var(--dark-text);
  color: rgba(255,255,255,0.7);
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 48px;
  margin-bottom: 60px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.6;
  margin-top: 16px;
  max-width: 280px;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  color: white;
  letter-spacing: 0;
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.footer-bottom .address {
  color: rgba(255,255,255,0.4);
}

/* ============================================
   COOKIE BANNER
   ============================================ */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid var(--card-border);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
  padding: 20px 24px;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-banner p {
  font-size: 14px;
  color: var(--body-text);
  max-width: 600px;
}

.cookie-banner .btn {
  padding: 10px 20px;
  font-size: 13px;
  white-space: nowrap;
}

/* ============================================
   RESPONSIVE
   ============================================ */

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

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 64px 0;
  }

  .hero {
    padding: 120px 0 64px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero .subtitle {
    font-size: 17px;
  }

  h2 {
    font-size: 28px;
  }

  .browser-content {
    padding: 16px;
    min-height: auto;
  }

  .browser-frame {
    border-radius: 8px;
  }

  .dashboard-preview {
    min-height: auto;
    padding: 16px;
  }

  .hero-image {
    max-width: 100%;
  }

  .hero-image .browser-frame {
    transform: none;
  }

  .showcase-row {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  .showcase-row > div[style*="order:2"] {
    order: 1 !important;
  }

  .showcase-row > div[style*="order:1"] {
    order: 2 !important;
  }

  /* Inline section padding override */
  section[style*="padding:80px"] {
    padding: 48px 0 !important;
  }

  /* Hero fan — stack on mobile */
  .hero-fan {
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    margin-top: 32px !important;
    max-width: 100% !important;
  }

  .hero-fan .hero-fan-card {
    position: static !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Fan card inner containers */
  .hero-fan .hero-fan-card > div {
    border-radius: 10px !important;
  }

  /* IMS card metrics grid — 3 cols is fine on mobile, but shrink text */
  .hero-fan .hero-fan-card div[style*="grid-template-columns:repeat(3"] {
    gap: 4px !important;
  }

  .showcase-row {
    gap: 24px !important;
  }

  /* Showcase dashboard previews — prevent overflow */
  .showcase-row > div:not([style*="order"]) {
    overflow: hidden;
  }

  /* Inline grid 1fr 1fr inside showcase dashboards */
  .showcase-row div[style*="grid-template-columns:repeat(3"] {
    gap: 4px !important;
  }

  /* Dropdown menu on mobile */
  .dropdown-menu {
    min-width: 0 !important;
  }

  /* Subtitle size on mobile */
  .subtitle {
    font-size: 16px !important;
  }

  .nav-links {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  /* Mobile menu */
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid var(--card-border);
    padding: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  }

  .nav-links.open .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding-left: 16px;
    display: none;
  }

  .nav-links.open .dropdown-trigger svg {
    transition: transform 0.2s;
  }

  .cards-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-image .browser-content {
    flex-direction: column;
  }

  .btn-group {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-group .btn {
    justify-content: center;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .cookie-banner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 120px 0 48px;
  }

  .hero h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 24px;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .cards-grid {
    gap: 16px;
  }

  .product-card {
    padding: 24px;
  }

  .container {
    padding: 0 16px;
  }

  .btn {
    padding: 12px 20px;
    font-size: 14px;
  }

  /* Hero fan cards — even smaller on tiny screens */
  .hero-fan {
    gap: 10px !important;
    margin-top: 24px !important;
  }

  .hero-fan .hero-fan-card div[style*="padding:16px 18px"],
  .hero-fan .hero-fan-card div[style*="padding:10px 14px"] {
    padding: 10px 12px !important;
  }

  /* Showcase section */
  .showcase-row {
    gap: 20px !important;
    margin-bottom: 48px !important;
  }

  .showcase-row ul {
    font-size: 13px !important;
  }

  /* Who we serve cards */
  .cards-grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }
}
