/* ==========================================================================
   1. RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body-md);
  line-height: var(--lh-body-md);
  background-color: var(--color-background);
  color: var(--color-on-surface);
  overflow-x: hidden;
}

p {
  margin-bottom: 1rem;
}
h1, h2, h3, h4, h5, h6 {
  margin-bottom: 0.5rem;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

button, input, select, textarea {
  font: inherit;
  border: none;
  background: none;
  outline: none;
}

button {
  cursor: pointer;
}

.hidden {
  display: none !important;
}

/* ==========================================================================
   2. FONTS & TYPOGRAPHY
   ========================================================================== */
.font-display-lg { font-family: var(--font-headline); }
.font-headline-md { font-family: var(--font-headline); }
.font-headline-sm { font-family: var(--font-headline); }
.font-body-lg { font-family: var(--font-body); }
.font-body-md { font-family: var(--font-body); }
.font-label-bold { font-family: var(--font-body); font-weight: 600; }
.font-label-sm { font-family: var(--font-body); font-weight: 500; }
.font-display-lg-mobile { font-family: var(--font-headline); }

/* Text Alignments & Weights */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.font-normal { font-weight: 400; }
.uppercase { text-transform: uppercase; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }
.italic { font-style: italic; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }
.leading-none { line-height: 1; }

/* ==========================================================================
   3. FONT SIZES (UTILITY CLASSES)
   ========================================================================== */
.text-display-lg { font-size: 64px; line-height: 72px; letter-spacing: -0.02em; font-weight: 700; }
.text-display-lg-mobile { font-size: 40px; line-height: 48px; letter-spacing: -0.01em; font-weight: 700; }
.text-headline-md { font-size: 36px; line-height: 44px; letter-spacing: 0em; font-weight: 600; }
.text-headline-sm { font-size: 24px; line-height: 32px; letter-spacing: 0.01em; font-weight: 600; }
.text-body-lg { font-size: 18px; line-height: 28px; font-weight: 400; }
.text-body-md { font-size: 16px; line-height: 24px; font-weight: 400; }
.text-label-bold { font-size: 14px; line-height: 20px; letter-spacing: 0.05em; font-weight: 600; }
.text-label-sm { font-size: 12px; line-height: 16px; font-weight: 500; }

.text-xs { font-size: 12px; }
.text-sm { font-size: 14px; }
.text-lg { font-size: 18px; }
.text-xl { font-size: 20px; }
.text-2xl { font-size: 24px; }
.text-3xl { font-size: 30px; }
.text-4xl { font-size: 36px; }
.text-5xl { font-size: 48px; }
.text-6xl { font-size: 60px; }
.text-7xl { font-size: 72px; }

/* ==========================================================================
   4. COLORS & BACKGROUNDS
   ========================================================================== */
.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-secondary); }
.text-white { color: var(--color-white); }
.text-on-surface { color: var(--color-on-surface); }
.text-on-surface-variant { color: var(--color-on-surface-variant); }
.text-on-primary-container { color: var(--color-on-primary-container); }
.text-on-secondary-container { color: var(--color-on-secondary-container); }
.text-error { color: var(--color-error); }

.bg-background { background-color: var(--color-background); }
.bg-surface { background-color: var(--color-surface); }
.bg-surface-dim { background-color: var(--color-surface-dim); }
.bg-surface-bright { background-color: var(--color-surface-bright); }
.bg-surface-container { background-color: var(--color-surface-container); }
.bg-surface-container-low { background-color: var(--color-surface-container-low); }
.bg-surface-container-high { background-color: var(--color-surface-container-high); }
.bg-surface-container-highest { background-color: var(--color-surface-container-highest); }
.bg-surface-container-lowest { background-color: var(--color-surface-container-lowest); }
.bg-primary { background-color: var(--color-primary); }
.bg-secondary { background-color: var(--color-secondary); }
.bg-primary-container { background-color: var(--color-primary-container); }
.bg-secondary-container { background-color: var(--color-secondary-container); }
.bg-tertiary { background-color: var(--color-tertiary); }
.bg-tertiary-container { background-color: var(--color-tertiary-container); }
.bg-black { background-color: #000000; }
.bg-white { background-color: #ffffff; }
.bg-transparent { background-color: transparent; }

/* ==========================================================================
   5. LAYOUTS, WIDTHS & HEIGHTS
   ========================================================================== */
.max-w-container-max {
  max-width: var(--container-max);
}
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}
.px-margin-mobile {
  padding-left: var(--margin-mobile);
  padding-right: var(--margin-mobile);
}

.download-badge {
    width: 160px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.download-badge:hover {
    transform: scale(1.04);
    opacity: 0.9;
}

.download-badge img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.download-badge img.playstore-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--margin-mobile);
  padding-right: var(--margin-mobile);
}

/* Grids & Flex Base */
.grid {
  display: grid;
  gap: var(--gutter);
}
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)) !important; }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
.grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)) !important; }

.col-span-12 { grid-column: span 12 / span 12; }
.col-span-8 { grid-column: span 8 / span 8; }
.col-span-6 { grid-column: span 6 / span 6; }
.col-span-4 { grid-column: span 4 / span 4; }

/* Space-y and absolute positions */
.space-y-1 > * + * { margin-top: 4px !important; }
.space-y-2 > * + * { margin-top: 8px !important; }
.space-y-3 > * + * { margin-top: 12px !important; }
.space-y-4 > * + * { margin-top: 16px !important; }
.space-y-6 > * + * { margin-top: 24px !important; }
.space-y-8 > * + * { margin-top: 32px !important; }
.space-y-12 > * + * { margin-top: 48px !important; }

/* Positioning utilities */
.relative { position: relative !important; }
.absolute { position: absolute !important; }
.inset-0 { top: 0 !important; right: 0 !important; bottom: 0 !important; left: 0 !important; }
.-inset-4 { top: -16px !important; right: -16px !important; bottom: -16px !important; left: -16px !important; }
.right-0 { right: 0 !important; }
.top-0 { top: 0 !important; }
.bottom-4 { bottom: 16px !important; }
.left-4 { left: 16px !important; }
.-top-12 { top: -48px !important; }
.-left-12 { left: -48px !important; }
.-bottom-10 { bottom: -40px !important; }
.-right-4 { right: -16px !important; }
.-right-10 { right: -40px !important; }

/* Missing Tailwind Utilities */
.w-1\/2 { width: 50% !important; }
.w-1\/3 { width: 33.333333% !important; }
.w-2\/3 { width: 66.666667% !important; }
.w-1\/4 { width: 25% !important; }
.w-3\/4 { width: 75% !important; }
.w-fit { width: fit-content !important; }
.border-4 { border-width: 4px !important; }
.blur-3xl { filter: blur(64px) !important; }
.bg-primary\/5 { background-color: rgba(0, 35, 55, 0.05) !important; }
.bg-primary\/10 { background-color: rgba(0, 35, 55, 0.1) !important; }
.bg-primary\/90 { background-color: rgba(0, 35, 55, 0.9) !important; }
.bg-secondary\/5 { background-color: rgba(0, 108, 78, 0.05) !important; }
.bg-secondary\/10 { background-color: rgba(0, 108, 78, 0.1) !important; }
.bg-secondary-container\/30 { background-color: rgba(131, 245, 198, 0.3) !important; }
.bg-black\/20 { background-color: rgba(0, 0, 0, 0.2) !important; }
.hover\:bg-primary\/90:hover { background-color: rgba(0, 35, 55, 0.9) !important; }
.border-primary\/20 { border-color: rgba(0, 35, 55, 0.2) !important; }
.border-outline-variant\/30 { border-color: rgba(194, 199, 206, 0.3) !important; }
.grain-overlay {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E") !important;
}



.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-start { justify-content: flex-start; }
.flex-wrap { flex-wrap: wrap; }
.shrink-0 { flex-shrink: 0; }

.footer-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: var(--gutter) !important;
}

/* Active Nav Links styling */
.main-header div.hidden a.active {
  color: var(--color-secondary) !important;
  font-weight: 700 !important;
  border-bottom: 2px solid var(--color-secondary) !important;
  padding-bottom: 4px !important;
}
.mobile-nav-link.active {
  color: var(--color-secondary) !important;
  font-weight: 700 !important;
}
.overflow-hidden { overflow: hidden; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }
.cursor-pointer { cursor: pointer; }

/* Max Width Utilities */
.max-w-xs { max-width: 20rem; }
.max-w-sm { max-width: 24rem; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }

.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  background-color: var(--color-header-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-outline-wash);
  transition: var(--transition-normal);
}

/* Width & Height Utilities */
.w-full { width: 100%; }
.h-full { height: 100%; }
.w-px { width: 1px; }
.h-px { height: 1px; }
.w-0 { width: 2px; }
.h-1 { height: 4px; }
.w-2 { width: 8px; }
.h-2 { height: 8px; }
.w-12 { width: 48px; }
.h-12 { height: 48px; }
.w-16 { width: 64px; }
.h-16 { height: 64px; }
.w-20 { width: 80px; }
.h-20 { height: 80px; }
.w-24 { width: 96px; }
.h-24 { height: 96px; }
.w-32 { width: 128px; }
.h-32 { height: 128px; }
.w-36 { width: 144px; }
.h-36 { height: 144px; }
.w-48 { width: 192px; }
.h-48 { height: 192px; }
.w-64 { width: 256px; }
.h-64 { height: 256px; }
.w-75 { width: 430px; }
.h-75 { height: 256px; }
.h-80 { height: 320px; }
.h-40 { height: 160px; }

/* Logo Styling */
.logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}


/* Gaps */
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }
.gap-12 { gap: 48px; }
.gap-16 { gap: 64px; }
.gap-20 { gap: 80px; }
.gap-gutter { gap: var(--gutter); }

/* ==========================================================================
   6. SPACING & MARGINS/PADDINGS
   ========================================================================== */
/* Margins */
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 4px !important; }
.mt-2 { margin-top: 8px !important; }
.mt-3 { margin-top: 12px !important; }
.mt-4 { margin-top: 16px !important; }
.mt-6 { margin-top: 24px !important; }
.mt-8 { margin-top: 32px !important; }
.mt-10 { margin-top: 40px !important; }
.mt-12 { margin-top: 48px !important; }
.mt-16 { margin-top: 64px !important; }
.mt-20 { margin-top: 80px !important; }
.mt-24 { margin-top: 96px !important; }
.mt-32 { margin-top: 128px !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 4px !important; }
.mb-2 { margin-bottom: 8px !important; }
.mb-3 { margin-bottom: 12px !important; }
.mb-4 { margin-bottom: 16px !important; }
.mb-6 { margin-bottom: 24px !important; }
.mb-8 { margin-bottom: 32px !important; }
.mb-10 { margin-bottom: 40px !important; }
.mb-12 { margin-bottom: 48px !important; }
.mb-16 { margin-bottom: 64px !important; }
.mb-20 { margin-bottom: 80px !important; }
.mb-24 { margin-bottom: 96px !important; }
.mb-32 { margin-bottom: 128px !important; }

.ml-2 { margin-left: 8px !important; }
.ml-4 { margin-left: 16px !important; }
.mr-2 { margin-right: 8px !important; }
.mr-4 { margin-right: 16px !important; }

/* General Padding */
.p-2 { padding: 8px !important; }
.p-3 { padding: 12px !important; }
.p-4 { padding: 16px !important; }
.p-6 { padding: 24px !important; }
.p-8 { padding: 32px !important; }
.p-10 { padding: 40px !important; }
.p-12 { padding: 48px !important; }
.p-16 { padding: 64px !important; }
.p-20 { padding: 80px !important; }
.p-24 { padding: 96px !important; }
.p-32 { padding: 128px !important; }

/* Vertical Padding */
.py-1 { padding-top: 4px !important; padding-bottom: 4px !important; }
.py-1\.5 { padding-top: 6px !important; padding-bottom: 6px !important; }
.py-2 { padding-top: 8px !important; padding-bottom: 8px !important; }
.py-2\.5 { padding-top: 10px !important; padding-bottom: 10px !important; }
.py-3 { padding-top: 12px !important; padding-bottom: 12px !important; }
.py-4 { padding-top: 16px !important; padding-bottom: 16px !important; }
.py-6 { padding-top: 24px !important; padding-bottom: 24px !important; }
.py-8 { padding-top: 32px !important; padding-bottom: 32px !important; }
.py-10 { padding-top: 40px !important; padding-bottom: 40px !important; }
.py-12 { padding-top: 48px !important; padding-bottom: 48px !important; }
.py-16 { padding-top: 64px !important; padding-bottom: 64px !important; }
.py-20 { padding-top: 80px !important; padding-bottom: 80px !important; }
.py-24 { padding-top: 96px !important; padding-bottom: 96px !important; }
.py-32 { padding-top: 128px !important; padding-bottom: 128px !important; }

/* Horizontal Padding */
.px-1 { padding-left: 4px !important; padding-right: 4px !important; }
.px-1\.5 { padding-left: 6px !important; padding-right: 6px !important; }
.px-2 { padding-left: 8px !important; padding-right: 8px !important; }
.px-2\.5 { padding-left: 10px !important; padding-right: 10px !important; }
.px-3 { padding-left: 12px !important; padding-right: 12px !important; }
.px-4 { padding-left: 16px !important; padding-right: 16px !important; }
.px-6 { padding-left: 24px !important; padding-right: 24px !important; }
.px-8 { padding-left: 32px !important; padding-right: 32px !important; }
.px-10 { padding-left: 40px !important; padding-right: 40px !important; }
.px-12 { padding-left: 48px !important; padding-right: 48px !important; }

/* Individual Sides Padding */
.pt-1 { padding-top: 4px !important; }
.pt-2 { padding-top: 8px !important; }
.pt-3 { padding-top: 12px !important; }
.pt-4 { padding-top: 16px !important; }
.pt-6 { padding-top: 24px !important; }
.pt-8 { padding-top: 32px !important; }
.pt-10 { padding-top: 40px !important; }
.pt-12 { padding-top: 48px !important; }
.pt-16 { padding-top: 64px !important; }
.pt-20 { padding-top: 80px !important; }
.pt-24 { padding-top: 96px !important; }
.pt-32 { padding-top: 128px !important; }
.pt-40 { padding-top: 160px !important; }

.pb-1 { padding-bottom: 4px !important; }
.pb-2 { padding-bottom: 8px !important; }
.pb-3 { padding-bottom: 12px !important; }
.pb-4 { padding-bottom: 16px !important; }
.pb-6 { padding-bottom: 24px !important; }
.pb-8 { padding-bottom: 32px !important; }
.pb-10 { padding-bottom: 40px !important; }
.pb-12 { padding-bottom: 48px !important; }
.pb-16 { padding-bottom: 64px !important; }
.pb-20 { padding-bottom: 80px !important; }
.pb-24 { padding-bottom: 96px !important; }
.pb-32 { padding-bottom: 128px !important; }

/* ==========================================================================
   7. COMPONENTS & BORDERS
   ========================================================================== */
.border { border-width: 1px !important; border-style: solid; }
.border-2 { border-width: 2px !important; border-style: solid; }
.border-t-4 { border-top-width: 4px !important; border-top-style: solid; }
.border-b-2 { border-bottom-width: 2px !important; border-bottom-style: solid; }

.border-white { border-color: #ffffff !important; }
.border-white\/10 { border-color: rgba(255, 255, 255, 0.1) !important; }
.border-white\/20 { border-color: rgba(255, 255, 255, 0.2) !important; }
.border-white\/30 { border-color: rgba(255, 255, 255, 0.3) !important; }
.border-primary { border-color: var(--color-primary) !important; }
.border-secondary { border-color: var(--color-secondary) !important; }
.border-outline { border-color: var(--color-outline) !important; }
.border-outline-variant { border-color: var(--color-outline-variant) !important; }
.border-outline-variant\/30 { border-color: rgba(194, 199, 206, 0.3) !important; }

.rounded-sm { border-radius: 4px !important; }
.rounded-md { border-radius: 6px !important; }
.rounded-lg { border-radius: 8px !important; }
.rounded-xl { border-radius: 12px !important; }
.rounded-2xl { border-radius: 16px !important; }
.rounded-3xl { border-radius: 24px !important; }
.rounded-full { border-radius: 9999px !important; }

/* Buttons */
button, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: var(--fs-label-bold);
  font-weight: 600;
  transition: var(--transition-fast);
  text-align: center;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  line-height: var(--lh-label-bold);
  padding: 12px 24px;
}
.btn-cta {
  background-color: var(--color-secondary);
  border-color: var(--color-secondary);
  color: #ffffff;
}
.btn-cta:hover { filter: brightness(1.1); }
.btn-secondary {
  background-color: transparent;
  border-color: var(--color-outline-variant);
  color: var(--color-on-surface);
}
.btn-secondary:hover { border-color: var(--color-secondary); color: var(--color-secondary); }

/* Background Utilities */
.bg-primary { background-color: var(--color-primary) !important; }
.bg-secondary { background-color: var(--color-secondary) !important; }
.bg-primary-container { background-color: var(--color-primary-container) !important; }
.bg-secondary-container { background-color: var(--color-secondary-container) !important; }
.bg-surface { background-color: var(--color-surface) !important; }
.bg-surface-container { background-color: var(--color-surface-container) !important; }
.bg-surface-container-low { background-color: var(--color-surface-container-low) !important; }
.bg-surface-container-high { background-color: var(--color-surface-container-high) !important; }
.bg-surface-container-highest { background-color: var(--color-surface-container-highest) !important; }
.bg-surface-container-lowest { background-color: var(--color-surface-container-lowest) !important; }
.bg-white { background-color: #ffffff !important; }
.bg-black { background-color: #000000 !important; }
.bg-transparent { background-color: transparent !important; }
.bg-white\/5 { background-color: rgba(255, 255, 255, 0.05) !important; }
.bg-white\/10 { background-color: rgba(255, 255, 255, 0.1) !important; }
.bg-white\/20 { background-color: rgba(255, 255, 255, 0.2) !important; }

/* Text Color Utilities */
.text-primary { color: var(--color-primary) !important; }
.text-secondary { color: var(--color-secondary) !important; }
.text-white { color: #ffffff !important; }
.text-on-primary { color: #ffffff !important; }
.text-on-secondary { color: #ffffff !important; }
.text-on-surface { color: var(--color-on-surface) !important; }
.text-on-surface-variant { color: var(--color-on-surface-variant) !important; }
.text-on-primary-container { color: var(--color-on-primary-container) !important; }
.text-on-secondary-container { color: var(--color-on-secondary-container) !important; }
.text-secondary-fixed { color: var(--color-secondary-fixed) !important; }
.text-primary-fixed { color: var(--color-primary-fixed) !important; }
.text-on-secondary-fixed-variant { color: var(--color-on-secondary-fixed-variant) !important; }
.text-on-primary-fixed-variant { color: var(--color-on-primary-fixed-variant) !important; }
.text-on-tertiary-fixed-variant { color: var(--color-on-tertiary-fixed-variant) !important; }
.text-on-secondary-fixed { color: var(--color-on-secondary-fixed) !important; }
.text-on-primary-fixed { color: var(--color-on-primary-fixed) !important; }
.text-on-tertiary-fixed { color: var(--color-on-tertiary-fixed) !important; }
.text-outline-variant { color: var(--color-outline-variant) !important; }

/* Hover & Active Utilities */
.hover\:bg-primary:hover { background-color: var(--color-primary) !important; }
.hover\:bg-secondary:hover { background-color: var(--color-secondary) !important; }
.hover\:bg-primary-container:hover { background-color: var(--color-primary-container) !important; }
.hover\:bg-secondary-container:hover { background-color: var(--color-secondary-container) !important; }
.hover\:bg-surface-container:hover { background-color: var(--color-surface-container) !important; }
.hover\:bg-surface-container-low:hover { background-color: var(--color-surface-container-low) !important; }
.hover\:bg-surface-container-high:hover { background-color: var(--color-surface-container-high) !important; }
.hover\:bg-surface-container-highest:hover { background-color: var(--color-surface-container-highest) !important; }
.hover\:bg-secondary\/5:hover { background-color: rgba(0, 108, 78, 0.05) !important; }
.hover\:bg-white\/10:hover { background-color: rgba(255, 255, 255, 0.1) !important; }
.hover\:bg-white\/20:hover { background-color: rgba(255, 255, 255, 0.2) !important; }
.hover\:bg-zinc-800:hover { background-color: #27272a !important; }
.hover\:opacity-90:hover { opacity: 0.9 !important; }
.hover\:scale-105:hover { transform: scale(1.05) !important; }
.hover\:scale-110:hover { transform: scale(1.10) !important; }
.hover\:shadow-xl:hover { box-shadow: var(--shadow-lg) !important; }
.hover\:shadow-2xl:hover { box-shadow: var(--shadow-xl) !important; }
.hover\:text-primary:hover { color: var(--color-primary) !important; }
.hover\:text-secondary:hover { color: var(--color-secondary) !important; }

.active\:scale-95:active { transform: scale(0.95) !important; }
.transition-all { transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important; }
.transition-colors { transition: color 0.2s, background-color 0.2s, border-color 0.2s !important; }
.duration-200 { transition-duration: 200ms !important; }
.duration-300 { transition-duration: 300ms !important; }
.duration-500 { transition-duration: 500ms !important; }

/* Cards & Panels */
.card {
  background-color: var(--color-white);
  border: 1px solid var(--color-outline-variant);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition-normal);
}

.maritime-shadow {
  box-shadow: 0 10px 30px -5px rgba(11, 57, 84, 0.12);
}

.glass-panel {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.6);
}

.zebra-accent { border-left: 8px solid var(--color-primary); }

/* Form Elements */
.form-group { margin-bottom: 20px; }
.form-control {
  width: 100%;
  background-color: var(--color-white);
  border: 1px solid var(--color-outline-variant);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: var(--fs-body-md);
  color: var(--color-on-surface);
  outline: none;
  transition: var(--transition-fast);
}
.form-control:focus {
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(0, 108, 78, 0.15);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: var(--fs-label-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge-primary {
  background-color: rgba(0, 35, 55, 0.1);
  color: var(--color-primary);
  border: 1px solid rgba(0, 35, 55, 0.2);
}
.badge-secondary {
  background-color: rgba(0, 108, 78, 0.1);
  color: var(--color-secondary);
  border: 1px solid rgba(0, 108, 78, 0.2);
}

/* Icons */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  display: inline-block;
  vertical-align: middle;
}
.material-fill { font-variation-settings: 'FILL' 1; }

/* Mobile Menu Navigation Overlay & Scroll Reveal animations */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--color-overlay-bg) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 40;
  display: flex;
  flex-direction: column;
  padding: 100px var(--margin-mobile) 40px;
  transform: translateY(-100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}
.mobile-nav-overlay.open { transform: translateY(0); }
.mobile-nav-links { display: flex; flex-direction: column; gap: 24px; margin-bottom: 40px; }
.mobile-nav-link {
  font-family: var(--font-headline);
  font-size: var(--fs-headline-sm);
  font-weight: 600;
  color: var(--color-primary);
  padding: 8px 0;
  border-bottom: 1px solid var(--color-surface-container);
}
.mobile-nav-link:hover { color: var(--color-secondary); padding-left: 8px; }
.mobile-nav-actions { display: flex; flex-direction: column; gap: 16px; }

/* Dark/Light Mode Toggle */
.theme-toggle {
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background-color: var(--color-surface-container);
  transition: var(--transition-fast);
}
.theme-toggle:hover { background-color: var(--color-surface-container-high); }
.theme-toggle-mobile {
  display: flex;
  width: auto;
  height: auto;
  justify-content: flex-start;
  gap: 12px;
  padding: 12px 4px;
  margin-bottom: 24px;
  color: var(--color-primary);
  background-color: transparent;
  border-bottom: 1px solid var(--color-surface-container);
  border-radius: 0;
}
.theme-toggle-mobile:hover { background-color: transparent; }

/* ==========================================================================
   8. RESPONSIVE MEDIA QUERIES (SEPARATED)
   ========================================================================== */

/* Small screens and Up (min-width: 640px) */
@media (min-width: 640px) {
  .sm\:hidden { display: none !important; }
  .sm\:flex { display: flex !important; }
  .sm\:block { display: block !important; }
  .sm\:flex-row { flex-direction: row !important; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .sm\:text-display-lg-mobile { font-size: 40px; line-height: 48px; letter-spacing: -0.01em; font-weight: 700; }
}

/* Tablets and Up (min-width: 768px) */
@media (min-width: 768px) {
  .nav-links { display: flex; }
  .menu-toggle { display: none; }

  .md\:hidden { display: none !important; }
  .md\:flex { display: flex !important; }
  .md\:block { display: block !important; }

  .md\:px-margin-desktop {
    padding-left: var(--margin-desktop);
    padding-right: var(--margin-desktop);
  }

  .container {
    padding-left: var(--margin-desktop);
    padding-right: var(--margin-desktop);
  }

  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }

  .md\:col-span-12 { grid-column: span 12 / span 12; }
  .md\:col-span-8 { grid-column: span 8 / span 8; }
  .md\:col-span-6 { grid-column: span 6 / span 6; }
  .md\:col-span-4 { grid-column: span 4 / span 4; }
  .md\:col-span-2 { grid-column: span 2 / span 2; }
  .md\:flex-row { flex-direction: row !important; }
  .md\:text-left { text-align: left !important; }
  .md\:text-display-lg { font-size: 64px; line-height: 72px; letter-spacing: -0.02em; font-weight: 700; }
  .md\:text-headline-md { font-size: 36px; line-height: 44px; letter-spacing: 0em; font-weight: 600; }
  .md\:p-10 { padding: 40px !important; }
  .md\:pr-8 { padding-right: 32px !important; }
  .md\:px-0 { padding-left: 0 !important; padding-right: 0 !important; }
  .md\:mx-0 { margin-left: 0 !important; margin-right: 0 !important; }
  .md\:py-32 { padding-top: 128px !important; padding-bottom: 128px !important; }

  .footer-grid {

    grid-template-columns: 2fr repeat(3, 1fr);
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .md\:pt-24 { padding-top: 96px !important; }
  .md\:pb-32 { padding-bottom: 128px !important; }
  .md\:-right-10 { right: -40px !important; }
}

/* Laptops / Desktops and Up (min-width: 1024px) */
@media (min-width: 1024px) {
  .lg\:hidden { display: none !important; }
  .lg\:flex { display: flex !important; }
  .lg\:block { display: block !important; }

  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
  .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)) !important; }

  .lg\:col-span-12 { grid-column: span 12 / span 12; }
  .lg\:col-span-9 { grid-column: span 9 / span 9; }
  .lg\:col-span-8 { grid-column: span 8 / span 8; }
  .lg\:col-span-7 { grid-column: span 7 / span 7; }
  .lg\:col-span-6 { grid-column: span 6 / span 6; }
  .lg\:col-span-5 { grid-column: span 5 / span 5; }
  .lg\:col-span-4 { grid-column: span 4 / span 4; }
  .lg\:col-span-3 { grid-column: span 3 / span 3; }
  .lg\:flex-row { flex-direction: row !important; }
  .lg\:w-1\/2 { width: 50% !important; }
  .lg\:text-left { text-align: left !important; }
  .lg\:justify-start { justify-content: flex-start !important; }
  .lg\:mx-0 { margin-left: 0 !important; margin-right: 0 !important; }
  .lg\:pl-12 { padding-left: 48px !important; }
}

/* Mobile-only / Collapsed states (max-width: 767px) */
@media (max-width: 767px) {
  .text-display-lg {
    font-size: 40px;
    line-height: 48px;
  }
  .text-headline-md {
    font-size: 28px;
    line-height: 36px;
  }
  .text-headline-sm {
    font-size: 20px;
    line-height: 28px;
  }
  .text-6xl { font-size: 40px; }
  .text-7xl { font-size: 48px; }
}

/* Added utilities */
.flex-1 { flex: 1 1 0% !important; }
.rounded-t-sm { border-top-left-radius: 4px !important; border-top-right-radius: 4px !important; }
.inline-flex { display: inline-flex !important; }
.block { display: block !important; }
.inline-block { display: inline-block !important; }
.flex-shrink-0 { flex-shrink: 0 !important; }
.self-start { align-self: flex-start !important; }
.sticky { position: sticky !important; }
.top-32 { top: 128px !important; }

/* Text decoration & focus/outline */
.underline { text-decoration: underline !important; }
.hover\:underline:hover { text-decoration: underline !important; }
.outline-none { outline: none !important; }
.text-base { font-size: 16px; }
.text-outline { color: var(--color-outline) !important; }
.text-on-background { color: var(--color-on-background, var(--color-on-surface)) !important; }
.hover\:text-white:hover { color: #ffffff !important; }

/* Opacity */
.opacity-10 { opacity: 0.1 !important; }
.opacity-20 { opacity: 0.2 !important; }
.opacity-30 { opacity: 0.3 !important; }
.opacity-80 { opacity: 0.8 !important; }
.opacity-90 { opacity: 0.9 !important; }
.pointer-events-none { pointer-events: none !important; }

/* Shadows (base, non-hover) */
.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.shadow-md { box-shadow: var(--shadow-md) !important; }
.shadow-lg { box-shadow: var(--shadow-lg) !important; }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.08) !important; }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important; }
.drop-shadow-2xl { filter: drop-shadow(0 25px 25px rgba(0, 0, 0, 0.15)) !important; }

/* Borders */
.border-t { border-top-width: 1px !important; border-top-style: solid; }
.border-b { border-bottom-width: 1px !important; border-bottom-style: solid; }
.border-l { border-left-width: 1px !important; border-left-style: solid; }
.border-l-4 { border-left-width: 4px !important; border-left-style: solid; }
.border-y { border-top-width: 1px !important; border-bottom-width: 1px !important; border-style: solid; }

/* Grid column spans (extra sizes referenced across pages) */
.col-span-1 { grid-column: span 1 / span 1; }
.col-span-2 { grid-column: span 2 / span 2; }
.col-span-3 { grid-column: span 3 / span 3; }

/* Sizes */
.w-10 { width: 40px; }
.h-10 { height: 40px; }
.w-72 { width: 288px; }
.h-72 { height: 288px; }
.w-96 { width: 384px; }
.h-96 { height: 384px; }
.max-w-full { max-width: 100%; }

/* Extra spacing */
.gap-1 { gap: 4px; }
.pl-4 { padding-left: 16px !important; }
.pl-6 { padding-left: 24px !important; }
.pr-4 { padding-right: 16px !important; }
.mt-auto { margin-top: auto !important; }
.m-0 { margin: 0 !important; }

/* Object fit */
.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }

/* Hover brightness (used on primary/secondary CTAs) */
.hover\:brightness-110:hover { filter: brightness(1.1) !important; }

/* Group-hover (pair with a `.group` ancestor) */
.group:hover .group-hover\:scale-105 { transform: scale(1.05) !important; }
.group:hover .group-hover\:scale-110 { transform: scale(1.10) !important; }

/* Focus rings (form inputs) */
.focus\:ring-2:focus { box-shadow: 0 0 0 2px var(--color-secondary) !important; }
.focus\:ring-secondary:focus { box-shadow: 0 0 0 2px var(--color-secondary) !important; }
.focus\:border-transparent:focus { border-color: transparent !important; }

/* One-off literal sizes used in markup (kept explicit rather than a generic arbitrary-value engine) */
.text-\[10px\] { font-size: 10px; }
.text-\[16px\] { font-size: 16px; }
.text-\[18px\] { font-size: 18px; }
.text-\[20px\] { font-size: 20px; }
.max-w-\[280px\] { max-width: 280px; }
.max-w-\[800px\] { max-width: 800px; }
.rounded-\[2rem\] { border-radius: 2rem !important; }

/* Avatar Group */
.avatar-group {
  display: flex;
  align-items: center;
}
.avatar-group img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid white;
  margin-left: -12px;
}
.avatar-group img:first-child {
  margin-left: 0;
}

/* ==========================================================================
   9. ORIENTATION, ACCESSIBILITY & PRINT QUERIES
   ========================================================================== */

/* Landscape orientation */
@media (orientation: landscape) {
  .mobile-nav-overlay {
    padding-top: 60px; /* Reduce top padding on landscape mobile */
  }
}

/* Portrait orientation */
@media (orientation: portrait) {
  /* Default styles usually cover portrait well */
}

/* High-resolution / Retina screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Placeholders for retina-specific tweaks, e.g., higher resolution background images */
}

/* Print styles */
@media print {
  body {
    background-color: white !important;
    color: black !important;
  }
  .main-header,
  .mobile-nav-overlay,
  .footer-bottom,
  footer,
  .btn-cta,
  .btn-secondary {
    display: none !important;
  }
  .container,
  .max-w-container-max {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  * {
    box-shadow: none !important;
    text-shadow: none !important;
  }
  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.9em;
  }
  a[href^="#"]::after, a[href^="javascript:"]::after {
    content: "";
  }
  
  /* Reset background colors and ensure text is readable */
  .bg-surface-container-low,
  .bg-primary,
  .bg-secondary,
  .bg-surface {
    background-color: transparent !important;
    color: black !important;
  }
  
  .text-primary,
  .text-on-surface-variant,
  .text-white {
    color: black !important;
  }
}

/* Reduced motion (accessibility) */
@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;
  }
}
