/* ==========================================================================
   CASS — Community Automated Service System
   Master Landing Page Stylesheet (UI/UX Pro Max Certified)
   ========================================================================== */

:root {
  /* Core Brand Colors */
  --color-primary: #2563eb;
  --color-primary-hover: #1d4ed8;
  --color-primary-light: rgba(37, 99, 235, 0.08);
  --color-primary-glow: rgba(37, 99, 235, 0.25);

  --color-secondary: #0284c7;
  --color-secondary-hover: #0369a1;
  --color-secondary-light: rgba(2, 132, 199, 0.08);

  --color-accent: #0284c7;
  --color-accent-hover: #0369a1;
  --color-accent-light: rgba(2, 132, 199, 0.1);

  --color-success: #16a34a;
  --color-success-light: rgba(22, 163, 74, 0.1);

  --color-warning: #d97706;
  --color-warning-light: rgba(217, 119, 6, 0.1);

  /* Light Theme Surfaces & Text (Crisp Water Utility Default) */
  --bg-page: #f8fafc;
  --bg-page-alt: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-subtle: #f8fafc;
  --bg-card-hover: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.88);
  --bg-badge: rgba(37, 99, 235, 0.08);

  --border-card: rgba(226, 232, 240, 0.85);
  --border-card-hover: rgba(37, 99, 235, 0.3);
  --border-subtle: #e2e8f0;

  --text-headline: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-subtle: #94a3b8;
  --text-on-primary: #ffffff;

  /* Elevation Shadows */
  --shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.06), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-card: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
  --shadow-card-hover: 0 12px 30px -4px rgba(37, 99, 235, 0.12);

  /* Layout & Geometry */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --max-width: 1280px;
  --header-height: 72px;

  /* Font Families */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* Optional Dark Mode (Applied only when .dark class is explicitly added to html) */
html.dark {
  --bg-page: #0b132b;
  --bg-page-alt: #0f172a;
  --bg-card: rgba(30, 41, 59, 0.75);
  --bg-card-subtle: rgba(15, 23, 42, 0.6);
  --bg-card-hover: rgba(30, 41, 59, 0.95);
  --bg-glass: rgba(11, 19, 43, 0.85);
  --bg-badge: rgba(59, 130, 246, 0.15);

  --border-card: rgba(255, 255, 255, 0.08);
  --border-card-hover: rgba(96, 165, 250, 0.4);
  --border-subtle: rgba(255, 255, 255, 0.1);

  --text-headline: #f8fafc;
  --text-body: #cbd5e1;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;

  --shadow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.4);
  --shadow-card-hover: 0 12px 30px -4px rgba(37, 99, 235, 0.3);
}

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

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-page);
  color: var(--text-body);
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
  background-image: 
    radial-gradient(at 0% 0%, rgba(37, 99, 235, 0.08) 0px, transparent 50%),
    radial-gradient(at 100% 20%, rgba(2, 132, 199, 0.06) 0px, transparent 40%),
    radial-gradient(at 50% 100%, rgba(2, 132, 199, 0.04) 0px, transparent 50%);
  background-attachment: fixed;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

button, input, select {
  font: inherit;
}

/* Accessibility Focus States */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* Skip Link for Keyboard Users */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--color-primary);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  z-index: 9999;
  font-weight: 600;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 16px;
}

/* Container Utility */
.cass-container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

@media (min-width: 768px) {
  .cass-container {
    padding-left: 32px;
    padding-right: 32px;
  }
}

/* Section Header Typography */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--bg-badge);
  border: 1px solid rgba(37, 99, 235, 0.15);
  border-radius: var(--radius-full);
  color: var(--color-primary);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: var(--text-headline);
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-desc {
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  color: var(--text-muted);
  max-width: 680px;
  line-height: 1.65;
}

/* ==========================================================================
   Header & Sticky Navigation
   ========================================================================== */
.cass-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-card);
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cass-header.scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, 0.92);
}
html.dark .cass-header.scrolled {
  background: rgba(11, 19, 43, 0.94);
}

.cass-header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cass-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text-headline);
  letter-spacing: -0.02em;
}

.cass-brand img {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.cass-brand-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  background: var(--bg-badge);
  color: var(--color-primary);
  border-radius: var(--radius-full);
  border: 1px solid rgba(37, 99, 235, 0.15);
  display: none;
}
@media (min-width: 640px) {
  .cass-brand-badge {
    display: inline-block;
  }
}

/* Nav links desktop */
.cass-nav-menu {
  display: none;
  align-items: center;
  gap: 28px;
}
@media (min-width: 1024px) {
  .cass-nav-menu {
    display: flex;
  }
}

.cass-nav-link {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.15s ease;
  position: relative;
  padding: 6px 0;
}
.cass-nav-link:hover {
  color: var(--color-primary);
}

.cass-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

@media (max-width: 520px) {
  .cass-header-actions .btn-outline {
    display: none;
  }
}

.cass-live-pill {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(22, 163, 74, 0.1);
  border: 1px solid rgba(22, 163, 74, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-success);
}
@media (min-width: 840px) {
  .cass-live-pill {
    display: flex;
  }
}

.live-dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-success);
  border-radius: 50%;
  position: relative;
}
.live-dot::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 50%;
  border: 2px solid var(--color-success);
  animation: pulse-ring 1.8s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.8); opacity: 0.8; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* Button Component Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
  min-height: 44px; /* Touch target minimum */
  min-width: 44px;
}

.btn-primary {
  background-color: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}
.btn-primary:hover {
  background-color: var(--color-primary-hover);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  transform: translateY(-1px);
}

.btn-accent {
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.28);
}
.btn-accent:hover {
  background: linear-gradient(135deg, #0369a1 0%, #1d4ed8 100%);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.38);
  transform: translateY(-1px);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-headline);
  border-color: var(--border-subtle);
}
.btn-outline:hover {
  background-color: var(--bg-card-subtle);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}
.btn-ghost:hover {
  color: var(--text-headline);
  background: var(--bg-card-subtle);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.8125rem;
  min-height: 36px;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.0625rem;
  border-radius: var(--radius-lg);
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-headline);
  cursor: pointer;
}
@media (min-width: 1024px) {
  .mobile-toggle {
    display: none;
  }
}

/* Mobile Navigation Drawer */
.cass-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1010;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.cass-drawer-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.cass-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(340px, 85vw);
  background: var(--bg-card);
  border-left: 1px solid var(--border-card);
  z-index: 1020;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}
.cass-drawer.active {
  transform: translateX(0);
}

.cass-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.cass-drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cass-drawer-link {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-headline);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 12px;
}
.cass-drawer-link:hover {
  background: var(--bg-card-subtle);
  color: var(--color-primary);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.cass-hero {
  padding-top: calc(var(--header-height) + 40px);
  padding-bottom: 70px;
  position: relative;
}

@media (min-width: 1024px) {
  .cass-hero {
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 90px;
  }
}

.cass-hero-split-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 50px;
}

@media (min-width: 1024px) {
  .cass-hero-split-grid {
    grid-template-columns: 1.15fr 0.95fr;
    gap: 48px;
    align-items: center;
  }
}

.cass-hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.cass-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  background: var(--bg-badge);
  border: 1px solid rgba(37, 99, 235, 0.15);
  border-radius: var(--radius-full);
  color: var(--color-primary);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.cass-hero-badge .live-dot {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseLiveDot 2s infinite;
}

@keyframes pulseLiveDot {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.cass-hero-title {
  font-size: clamp(2.25rem, 4.2vw, 3.75rem);
  font-weight: 800;
  color: var(--text-headline);
  letter-spacing: -0.04em;
  line-height: 1.12;
  margin-bottom: 20px;
  text-align: left;
}

.cass-hero-title-highlight {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cass-hero-subtitle {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 32px;
  max-width: 620px;
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}

.cass-hero-cta-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: flex-start;
  align-items: stretch;
  width: 100%;
  margin-bottom: 28px;
}

@media (min-width: 640px) {
  .cass-hero-cta-group {
    flex-direction: row;
    align-items: center;
    width: auto;
  }
}

.cass-hero-trust-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}

.hero-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
}

.cass-hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 100%;
}

.hero-tank-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.hero-tank-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.28) 0%, rgba(37, 99, 235, 0.12) 50%, transparent 70%);
  filter: blur(40px);
  z-index: 1;
  border-radius: 50%;
  pointer-events: none;
}

.hero-tank-img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  max-width: 480px;
  filter: drop-shadow(0 20px 35px rgba(14, 165, 233, 0.18));
  animation: tankFloat 6s ease-in-out infinite;
  user-select: none;
}

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

.hero-float-card {
  position: absolute;
  z-index: 3;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 14px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 16px 32px -8px rgba(15, 23, 42, 0.12), 0 4px 6px -2px rgba(15, 23, 42, 0.04);
}

.hero-float-card.card-top {
  top: 8%;
  right: -8px;
  animation: floatCardOne 5s ease-in-out infinite;
}

.hero-float-card.card-bottom {
  bottom: 12%;
  left: -8px;
  animation: floatCardTwo 6s ease-in-out 1s infinite;
}

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

@keyframes floatCardTwo {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(6px);
  }
}

.float-card-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10b981;
}

.float-card-dot.pulse {
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseLiveDot 2s infinite;
}

.float-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(2, 132, 199, 0.1);
  color: var(--color-secondary);
}

.float-card-text {
  display: flex;
  flex-direction: column;
}

.float-card-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--text-muted);
}

.float-card-val {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-headline);
}

@media (max-width: 640px) {
  .hero-float-card {
    padding: 8px 12px;
  }
  .hero-float-card.card-top {
    top: 4%;
    right: 0px;
  }
  .hero-float-card.card-bottom {
    bottom: 4%;
    left: 0px;
  }
  .float-card-val {
    font-size: 0.8125rem;
  }
}

html.dark .hero-float-card {
  background: rgba(15, 23, 42, 0.88);
  border-color: rgba(51, 65, 85, 0.8);
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   Hero Telemetry Stat Bar (UI/UX Pro Max Certified)
   ========================================================================== */
.cass-hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 0 auto 50px auto;
  width: 100%;
  max-width: var(--max-width);
  padding: 16px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 20px;
  box-shadow: 0 20px 45px -15px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .cass-hero-stats {
    grid-template-columns: repeat(4, 1fr);
    padding: 22px 28px;
    gap: 0;
  }
}

.hero-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px 12px;
  position: relative;
  border-radius: 14px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-stat-item:hover {
  background: rgba(37, 99, 235, 0.04);
  transform: translateY(-2px);
}

@media (min-width: 768px) {
  .hero-stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(226, 232, 240, 0.9), transparent);
  }
}

.hero-stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.08);
  color: #2563eb;
  margin-bottom: 10px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.hero-stat-item:hover .hero-stat-icon {
  transform: scale(1.1);
  background: rgba(37, 99, 235, 0.14);
}

.hero-stat-value {
  font-family: 'Plus Jakarta Sans', var(--font-sans);
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  margin-bottom: 6px;
  background: linear-gradient(180deg, #0f172a 30%, #2563eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-stat-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}



html.dark .cass-hero-stats {
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(56, 189, 248, 0.22);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7), 0 0 35px -5px rgba(56, 189, 248, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

html.dark .hero-stat-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

@media (min-width: 768px) {
  html.dark .hero-stat-item:not(:last-child)::after {
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  }
}

html.dark .hero-stat-icon {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.2);
}

html.dark .hero-stat-item:hover .hero-stat-icon {
  background: rgba(56, 189, 248, 0.2);
}

html.dark .hero-stat-value {
  background: linear-gradient(180deg, #ffffff 30%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 10px rgba(56, 189, 248, 0.35));
}

html.dark .hero-stat-label {
  color: #94a3b8;
}


/* Floating Mockup Showcase in Hero */
.cass-hero-mockup-wrapper {
  margin-top: 50px;
  position: relative;
  border-radius: var(--radius-xl);
  padding: 8px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.2) 0%, rgba(2, 132, 199, 0.1) 50%, rgba(234, 88, 12, 0.1) 100%);
  box-shadow: var(--shadow-xl), 0 0 60px rgba(37, 99, 235, 0.15);
}

.cass-hero-mockup-inner {
  background: var(--bg-card);
  border-radius: calc(var(--radius-xl) - 4px);
  overflow: hidden;
  position: relative;
}

.mockup-browser-chrome {
  height: 38px;
  background: var(--bg-card-subtle);
  border-bottom: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 8px;
}

.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.mockup-address-bar {
  flex: 1;
  max-width: 480px;
  margin: 0 auto;
  height: 22px;
  background: var(--bg-card);
  border-radius: var(--radius-full);
  border: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.mockup-screen-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 16px;
}
@media (min-width: 900px) {
  .mockup-screen-grid {
    grid-template-columns: 2fr 1fr;
    padding: 24px;
    gap: 24px;
  }
}

.mockup-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-md);
  object-fit: cover;
}

/* ==========================================================================
   Live Interactive Price & Delivery Calculator
   ========================================================================== */
.cass-calculator-section {
  padding: 80px 0;
  background: var(--bg-page-alt);
  border-top: 1px solid var(--border-card);
  border-bottom: 1px solid var(--border-card);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 40px;
}
@media (min-width: 960px) {
  .calc-grid {
    grid-template-columns: 1.4fr 1fr;
    gap: 40px;
    align-items: center;
  }
}

.calc-card-controls {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-card);
}

.calc-group {
  margin-bottom: 28px;
}

.calc-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.calc-label {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-headline);
}

.calc-display-badge {
  font-family: var(--font-mono);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-primary);
  background: var(--bg-badge);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(37, 99, 235, 0.15);
}

/* Custom Volume Slider */
.calc-slider {
  width: 100%;
  height: 8px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--border-subtle);
  border-radius: var(--radius-full);
  outline: none;
  cursor: pointer;
  transition: background 0.2s;
}

.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-primary);
  cursor: pointer;
  border: 3px solid #ffffff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.calc-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.6);
}

.calc-slider-ticks {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* Priority Tier Selection Cards */
.calc-priority-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.priority-option-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 10px;
  background: var(--bg-card-subtle);
  border: 2px solid var(--border-card);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}
.priority-option-btn:hover {
  border-color: var(--color-primary);
  background: var(--bg-card);
}
.priority-option-btn.active {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
}

.priority-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-headline);
  margin-bottom: 4px;
}

.priority-surcharge-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}
.priority-option-btn.active .priority-surcharge-badge {
  color: var(--color-primary);
  font-weight: 700;
}

/* Live Quote Receipt Card */
.calc-receipt-card {
  background: linear-gradient(145deg, var(--bg-card) 0%, var(--bg-card-subtle) 100%);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.calc-receipt-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary), var(--color-accent));
}

.receipt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px dashed var(--border-card);
  margin-bottom: 24px;
}

.receipt-title {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--text-headline);
}

.receipt-breakdown {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.receipt-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9375rem;
}
.receipt-row-label {
  color: var(--text-muted);
}
.receipt-row-value {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-headline);
}

.receipt-total-row {
  padding-top: 18px;
  border-top: 1px solid var(--border-card);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
}

.receipt-total-label {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--text-headline);
}

.receipt-total-price {
  font-family: var(--font-mono);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
}

/* ==========================================================================
   Bento Grid 2.0: 4-Portal Ecosystem Showcase
   ========================================================================== */
.cass-bento-section {
  padding: 90px 0;
}

.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 48px;
}
@media (min-width: 768px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(280px, auto);
  }
}

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.bento-card:hover {
  border-color: var(--border-card-hover);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

/* Bento Span Modifiers on Desktop */
@media (min-width: 1024px) {
  .bento-card-span-7 {
    grid-column: span 7;
  }
  .bento-card-span-5 {
    grid-column: span 5;
  }
  .bento-card-span-6 {
    grid-column: span 6;
  }
}

.bento-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  background: var(--color-primary-light);
  color: var(--color-primary);
}

.bento-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  color: var(--color-primary);
}

.bento-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-headline);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.bento-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.bento-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.bento-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-body);
}

.bento-check-icon {
  width: 18px;
  height: 18px;
  color: var(--color-success);
  flex-shrink: 0;
}

.bento-preview-img {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-card);
  margin-top: 16px;
  object-fit: cover;
  max-height: 180px;
}

/* ==========================================================================
   4-Step Logistics Pipeline
   ========================================================================== */
.cass-pipeline-section {
  padding: 80px 0;
  background: var(--bg-page-alt);
  border-top: 1px solid var(--border-card);
  border-bottom: 1px solid var(--border-card);
}

.pipeline-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 48px;
  position: relative;
}
@media (min-width: 640px) {
  .pipeline-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .pipeline-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.pipeline-step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.pipeline-step-card:hover {
  transform: translateY(-2px);
  border-color: var(--color-primary);
}

.pipeline-number {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 800;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-badge);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.pipeline-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-headline);
  margin-bottom: 10px;
}

.pipeline-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ==========================================================================
   15-Layer Security Architecture Matrix
   ========================================================================== */
.cass-security-section {
  padding: 90px 0;
  position: relative;
}

.security-matrix {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 48px;
}
@media (min-width: 640px) {
  .security-matrix {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .security-matrix {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

.security-tile {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.security-tile:hover {
  border-color: var(--color-primary);
  box-shadow: 0 12px 28px -6px rgba(37, 99, 235, 0.12);
  transform: translateY(-2px);
}

.security-tile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.security-tile-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.security-badge-id {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--color-primary);
  background: var(--bg-badge);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(37, 99, 235, 0.18);
  flex-shrink: 0;
}

.security-badge-category {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  background: var(--bg-card-subtle);
  padding: 4px 9px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-card);
}

.security-tile-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.security-tile:hover .security-tile-icon {
  transform: scale(1.08);
}

.security-tile-content {
  flex: 1;
}

.security-tile-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-headline);
  margin-bottom: 8px;
  line-height: 1.35;
}

.security-tile-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.security-tile-desc code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 2px 5px;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  color: var(--color-primary);
}

/* ==========================================================================
   Interactive Leaflet Map & Coverage Section
   ========================================================================== */
.cass-map-section {
  padding: 80px 0;
  background: var(--bg-page-alt);
  border-top: 1px solid var(--border-card);
  border-bottom: 1px solid var(--border-card);
}

.map-wrapper-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-top: 40px;
}

.map-header-bar {
  padding: 16px 24px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.map-legend {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.map-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-pin {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.pin-depot { background: #2563eb; }
.pin-active { background: #16a34a; }
.pin-zone { background: #f97316; }

#cass-landing-map {
  width: 100%;
  height: 420px;
  z-index: 10;
}

/* ==========================================================================
   Testimonials & Trust Badges
   ========================================================================== */
.cass-testimonials-section {
  padding: 90px 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 48px;
}
@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.testimonial-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-card-hover);
}

.testimonial-stars {
  display: flex;
  gap: 4px;
  color: #f59e0b;
  margin-bottom: 16px;
}

.testimonial-quote {
  font-size: 0.9375rem;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 20px;
  font-style: italic;
}

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

.author-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--color-primary-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.author-name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-headline);
}

.author-role {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   FAQ Accordion (Split 2-Column Grid Aligned with Nav)
   ========================================================================== */
.cass-faq-section {
  padding: 90px 0;
  background: var(--bg-page-alt);
  border-top: 1px solid var(--border-card);
  border-bottom: 1px solid var(--border-card);
}

.faq-layout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}
@media (min-width: 1024px) {
  .faq-layout-grid {
    grid-template-columns: 1fr 1.55fr;
    gap: 64px;
  }
}

.faq-sidebar {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}
@media (min-width: 1024px) {
  .faq-sidebar {
    position: sticky;
    top: calc(var(--header-height) + 32px);
  }
}

.faq-sidebar .section-tag {
  margin-bottom: 16px;
}

.faq-sidebar .section-title {
  margin-bottom: 16px;
  line-height: 1.15;
}

.faq-sidebar .section-desc {
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 24px;
}

.faq-support-card {
  width: 100%;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.faq-support-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

.faq-support-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq-support-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-headline);
  margin-bottom: 4px;
}

.faq-support-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 14px;
}

.faq-container {
  width: 100%;
  max-width: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.faq-item.active {
  border-color: var(--color-primary);
}

.faq-trigger {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-headline);
  gap: 16px;
}

.faq-chevron {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
.faq-item.active .faq-chevron {
  transform: rotate(180deg);
  color: var(--color-primary);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 24px;
}
.faq-item.active .faq-content {
  padding-bottom: 20px;
}

.faq-content p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   Bottom Conversion Banner
   ========================================================================== */
.cass-bottom-cta {
  padding: 90px 0;
}

.cta-banner-card {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #2563eb 100%);
  border-radius: var(--radius-xl);
  padding: 60px 32px;
  text-align: center;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
@media (min-width: 768px) {
  .cta-banner-card {
    padding: 80px 48px;
  }
}

.cta-banner-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  color: #ffffff;
}

.cta-banner-desc {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: rgba(255, 255, 255, 0.85);
  max-width: 620px;
  margin: 0 auto 36px auto;
  line-height: 1.6;
}

.cta-banner-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
  align-items: center;
}
@media (min-width: 640px) {
  .cta-banner-actions {
    flex-direction: row;
    gap: 16px;
  }
}

/* ==========================================================================
   Modern Footer
   ========================================================================== */
.cass-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border-card);
  padding: 70px 0 30px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 60px;
}
@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
  }
}

.footer-brand-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 320px;
}

.footer-col-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-headline);
  margin-bottom: 18px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.15s ease;
}
.footer-link:hover {
  color: var(--color-primary);
}

.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid var(--border-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.8125rem;
  color: var(--text-subtle);
}
@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}

/* Micro-animations & Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
