/* ============================================
   SUDERRA - Main Stylesheet
   Complete Redesign - Modern Production Grade
   ============================================ */

/* ============================================
   CSS CUSTOM PROPERTIES
   ============================================ */
:root {
  /* Brand Colors */
  --color-ocean-teal: #0C7B93;
  --color-dark: #004D40;
  --color-navy: #003366;
  --color-coral: #E63946;
  --color-light-teal: #5FB4C9;
  --color-green: #2D8A4E;
  --color-white: #FFFFFF;
  --color-footer: #f5f5f7;

  /* Functional Colors */
  --color-text: #1a1a2e;
  --color-text-secondary: #64748b;
  --color-text-light: #94a3b8;
  --color-bg: #ffffff;
  --color-bg-subtle: #f8fafc;
  --color-bg-muted: #f1f5f9;
  --color-border: #e2e8f0;
  --color-border-light: #f1f5f9;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #0C7B93 0%, #004D40 100%);
  --gradient-hero: linear-gradient(135deg, rgba(0,51,102,0.85) 0%, rgba(4,77,64,0.75) 50%, rgba(12,123,147,0.65) 100%);
  --gradient-card: linear-gradient(135deg, rgba(12,123,147,0.05) 0%, rgba(4,77,64,0.02) 100%);
  --gradient-text: linear-gradient(135deg, #0C7B93, #5FB4C9, #2D8A4E);

  /* Typography */
  --font-primary: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;

  /* Layout */
  --header-height: 80px;
  --max-width: 1400px;
  --border-radius: 12px;
  --border-radius-lg: 20px;
  --border-radius-sm: 8px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0,0,0,0.15);
  --shadow-glow: 0 0 40px rgba(12,123,147,0.15);
  --shadow-glow-hover: 0 0 60px rgba(12,123,147,0.25);

  /* Glass */
  --glass-bg: rgba(255,255,255,0.7);
  --glass-border: rgba(255,255,255,0.3);
  --glass-blur: 20px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Navigation */
  --nav-bg: #003366;
  --nav-text: #fff;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  scroll-snap-type: y proximity;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

/* ============================================
   ACCESSIBILITY - Focus Styles
   ============================================ */
*:focus-visible {
  outline: 2px solid var(--color-ocean-teal);
  outline-offset: 2px;
}

/* Remove focus ring for mouse users, keep for keyboard */
*:focus:not(:focus-visible) {
  outline: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--color-ocean-teal);
  outline-offset: 2px;
  border-radius: 2px;
}

.cta-button:focus-visible,
.btn-submit:focus-visible,
.header-portal-btn:focus-visible {
  outline: 2px solid var(--color-white);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--color-ocean-teal);
}

/* Skip to content link (hidden until focused) */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-navy);
  color: var(--color-white);
  padding: 8px 16px;
  z-index: 10000;
  font-size: 14px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

/* ============================================
   SCROLL SNAP - Section Navigation
   ============================================ */
.section,
.hero-section,
.site-footer {
  scroll-snap-align: start;
  scroll-snap-stop: normal;
}

body {
  font-family: var(--font-primary);
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg-subtle);
}
::-webkit-scrollbar-thumb {
  background: var(--color-light-teal);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-ocean-teal);
}

/* Selection */
::selection {
  background: rgba(12,123,147,0.2);
  color: var(--color-dark);
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-base);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

p {
  color: var(--color-text-secondary);
  margin-bottom: 1em;
}

/* ============================================
   CONTAINER
   ============================================ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 12px 28px;
  border: none;
  border-radius: var(--border-radius-sm);
  font-family: var(--font-primary);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  line-height: 1.5;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--color-white);
  box-shadow: 0 4px 14px rgba(12,123,147,0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(12,123,147,0.45);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline-light {
  background: rgba(255,255,255,0.1);
  color: var(--color-white);
  border: 1.5px solid rgba(255,255,255,0.4);
  backdrop-filter: blur(10px);
}

.btn-outline-light:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.7);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1rem;
}

.btn-icon {
  transition: transform var(--transition-base);
  flex-shrink: 0;
}

.btn:hover .btn-icon {
  transform: translateX(4px);
}

/* ============================================
   HEADER & NAVIGATION (base.html elements)
   ============================================ */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-bottom: 1px solid rgba(26,26,46,0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  border-bottom-color: rgba(26,26,46,0.12);
  box-shadow: 0 4px 30px rgba(0,0,0,0.06);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  padding: 0 var(--space-2xl);
  height: var(--header-height);
  max-width: 1400px;
  margin: 0 auto;
}

/* Logo */
.logo {
  font-size: 1.5em;
  font-weight: 600;
  color: #1a1a2e;
  flex-shrink: 0;
}

.logo a {
  display: flex;
  align-items: center;
  color: #1a1a2e;
  text-decoration: none;
}

.logo img {
  height: 56px;
  width: auto;
  transition: all 0.4s ease;
}

.logo img:hover {
  transform: scale(1.03);
}

/* Navbar Links */
.navbar ul {
  list-style: none;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  gap: 2px;
}

.navbar li {
  position: relative;
}

.navbar li a {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  font-weight: 500;
  font-size: 0.85rem;
  color: rgba(26,26,46,0.7);
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.01em;
  position: relative;
  white-space: nowrap;
}

/* Nav icon */
.nav-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.55;
  transition: all 0.3s ease;
}

.navbar li a:hover .nav-icon,
.navbar li a.nav-active .nav-icon {
  opacity: 1;
  filter: drop-shadow(0 0 4px rgba(95,180,201,0.5));
}

/* Hover & Active states */
.navbar li a:hover {
  color: #1a1a2e;
  background: rgba(26,26,46,0.06);
}

.navbar li a.nav-active {
  color: #1a1a2e;
  background: rgba(12,123,147,0.1);
}

/* Animated underline */
.navbar li a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(95,180,201,0.8), transparent);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(-50%);
}

.navbar li a:hover::after,
.navbar li a.nav-active::after {
  width: 60%;
}

.navbar li a.nav-active::after {
  background: linear-gradient(90deg, transparent, rgba(95,180,201,1), transparent);
  width: 70%;
}

/* Hamburger Menu Toggle */
.menu-toggle {
  display: none;
  cursor: pointer;
  background: rgba(26,26,46,0.04);
  border: 1px solid rgba(26,26,46,0.12);
  color: rgba(26,26,46,0.8);
  padding: 7px;
  border-radius: 8px;
  transition: all 0.3s ease;
  line-height: 0;
}

.menu-toggle:hover {
  background: rgba(26,26,46,0.08);
  border-color: rgba(26,26,46,0.2);
  color: #1a1a2e;
}

.menu-toggle svg {
  display: block;
}

/* Client Portal Button */
.header-portal-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: var(--space-sm);
  padding: 8px 18px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #0c7b93, #044d40);
  border: none;
  border-radius: 8px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  letter-spacing: 0.02em;
  position: relative;
  overflow: hidden;
}

.header-portal-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(95,180,201,0.15), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.header-portal-btn:hover::before {
  opacity: 1;
}

.header-portal-btn:hover {
  color: #fff;
  box-shadow: 0 4px 16px rgba(12,123,147,0.3);
  transform: translateY(-1px);
}

.header-portal-btn svg {
  flex-shrink: 0;
  opacity: 0.75;
  transition: opacity 0.3s ease;
}

.header-portal-btn:hover svg {
  opacity: 1;
}

/* Language Switcher - Dropdown */
.lang-switcher {
  position: relative;
  margin-left: var(--space-sm);
}

.lang-current {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  background: rgba(26,26,46,0.04);
  border: 1px solid rgba(26,26,46,0.12);
  border-radius: 8px;
  color: rgba(26,26,46,0.8);
  cursor: pointer;
  font-family: var(--font-primary);
  font-size: 0.78rem;
  font-weight: 600;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.lang-current:hover {
  background: rgba(26,26,46,0.08);
  border-color: rgba(26,26,46,0.2);
  color: #1a1a2e;
}

.lang-current.open {
  background: rgba(26,26,46,0.08);
  border-color: rgba(26,26,46,0.2);
  color: #1a1a2e;
}

.lang-globe {
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.lang-current:hover .lang-globe,
.lang-current.open .lang-globe {
  opacity: 1;
}

.lang-chevron {
  opacity: 0.5;
  transition: all 0.3s ease;
}

.lang-current.open .lang-chevron {
  transform: rotate(180deg);
  opacity: 0.8;
}

.lang-code {
  letter-spacing: 0.05em;
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 150px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(26,26,46,0.1);
  border-radius: 10px;
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.97);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
  z-index: 100;
}

.lang-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  color: rgba(26,26,46,0.7);
  font-size: 0.82rem;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.lang-option:hover {
  background: rgba(26,26,46,0.06);
  color: #1a1a2e;
}

.lang-option.active {
  background: rgba(12,123,147,0.12);
  color: #1a1a2e;
}

.lang-option.active::after {
  content: '';
  margin-left: auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-ocean-teal);
  box-shadow: 0 0 6px rgba(12,123,147,0.6);
}

.lang-flag {
  font-size: 1.1em;
  line-height: 1;
}

/* Mobile Nav */
@media (max-width: 768px) {
  .header-container {
    padding: 0 var(--space-md);
  }

  .navbar ul {
    display: none;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    box-shadow: 0 16px 48px rgba(0,0,0,0.08);
    padding: var(--space-md);
    gap: 2px;
    border-bottom-left-radius: var(--border-radius);
    border-bottom-right-radius: var(--border-radius);
    border: 1px solid rgba(26,26,46,0.08);
    border-top: none;
  }

  .navbar ul li a {
    padding: 12px 16px;
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
  }

  .navbar ul li a .nav-icon {
    width: 18px;
    height: 18px;
  }

  .navbar ul li a::after {
    display: none;
  }

  .navbar.open ul {
    display: flex;
  }

  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .header-portal-btn {
    padding: 8px 12px;
    font-size: 0.72rem;
    margin-left: var(--space-xs);
    min-height: 40px;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .header-portal-btn span {
    display: none;
  }

  .header-portal-btn svg {
    opacity: 1;
  }

  .lang-switcher {
    margin-left: var(--space-xs);
  }

  .lang-current .lang-code {
    display: none;
  }

  .lang-current .lang-chevron {
    display: none;
  }

  .lang-dropdown {
    right: -8px;
    min-width: 140px;
  }
}

/* ============================================
   SECTION COMMON STYLES
   ============================================ */
.section {
  padding: var(--space-4xl) 0;
  position: relative;
  overflow: hidden;
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--space-3xl);
}

/* ============================================
   AMBIENT SPARKLES — tiny fish, leaf, drop twinkles
   ============================================ */
.sparkle-ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

/* Tiny fish shape as background-image via CSS */
.sparkle-ambient::before,
.sparkle-ambient::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Layer 1: tiny fish scattered */
.sparkle-ambient::before {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 8' fill='%230C7B93'%3E%3Cpath d='M15 4c2.5-1.5 5-.5 5-.5s-2.5 1-5-.5c0 0-2 2.5-7.5 2.5S0 4 0 4s2.5-1.5 7.5-1.5S15 4 15 4z' opacity='0.6'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='%232D8A4E'%3E%3Cpath d='M7 1C3.5 1 1 5 1 8.5c0 2.5 2 5 6 5 0-2-1-4-2.5-5.5C6 6.5 8.5 5 10.5 5.5 10 4 8.5 3 7.5 3c1.5-.5 3.5.5 4.5 2C11.5 3 9.5 1 7 1z' opacity='0.5'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 14' fill='%230C7B93'%3E%3Cpath d='M5 1C3 4.5 1 7 1 9c0 2.2 1.8 4 4 4s4-1.8 4-4c0-2-2-4.5-4-8z' opacity='0.4'/%3E%3C/svg%3E");
  background-size: 16px 6px, 12px 12px, 8px 11px;
  background-position:
    8% 12%, 72% 28%, 45% 68%,
    25% 82%, 88% 55%, 60% 15%,
    35% 40%, 15% 60%, 92% 85%;
  background-repeat: no-repeat;
  opacity: 0;
  animation: sparkleIn1 8s ease-in-out infinite;
}

/* Layer 2: offset positions */
.sparkle-ambient::after {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 8' fill='%230C7B93'%3E%3Cpath d='M15 4c2.5-1.5 5-.5 5-.5s-2.5 1-5-.5c0 0-2 2.5-7.5 2.5S0 4 0 4s2.5-1.5 7.5-1.5S15 4 15 4z' opacity='0.6'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='%232D8A4E'%3E%3Cpath d='M7 1C3.5 1 1 5 1 8.5c0 2.5 2 5 6 5 0-2-1-4-2.5-5.5C6 6.5 8.5 5 10.5 5.5 10 4 8.5 3 7.5 3c1.5-.5 3.5.5 4.5 2C11.5 3 9.5 1 7 1z' opacity='0.5'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 14' fill='%235FB4C9'%3E%3Cpath d='M5 1C3 4.5 1 7 1 9c0 2.2 1.8 4 4 4s4-1.8 4-4c0-2-2-4.5-4-8z' opacity='0.4'/%3E%3C/svg%3E");
  background-size: 14px 5px, 10px 10px, 7px 10px;
  background-position:
    55% 22%, 18% 45%, 82% 72%,
    40% 90%, 68% 8%, 5% 35%,
    90% 50%, 30% 15%, 75% 92%;
  background-repeat: no-repeat;
  opacity: 0;
  animation: sparkleIn2 8s ease-in-out infinite 4s;
}

/* Twinkle in and out — like stars */
@keyframes sparkleIn1 {
  0%, 100% { opacity: 0; }
  15% { opacity: 0.06; }
  35% { opacity: 0.04; }
  50% { opacity: 0.07; }
  65% { opacity: 0.03; }
  85% { opacity: 0.06; }
}

@keyframes sparkleIn2 {
  0%, 100% { opacity: 0; }
  15% { opacity: 0.05; }
  35% { opacity: 0.07; }
  50% { opacity: 0.03; }
  65% { opacity: 0.06; }
  85% { opacity: 0.04; }
}

/* Disable on mobile for performance */
@media (max-width: 768px) {
  .sparkle-ambient {
    display: none;
  }
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .sparkle-ambient {
    display: none;
  }
}

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(12,123,147,0.08);
  color: var(--color-ocean-teal);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: var(--space-md);
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--space-md);
  color: var(--color-text);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin: 0;
}

/* ============================================
   GLASS CARD
   ============================================ */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  color: #fff;
  padding-top: var(--header-height);
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-hero);
  z-index: 1;
}

/* Animated particles */
.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  animation: particleFloat linear infinite;
}

.particle-1 {
  width: 300px;
  height: 300px;
  top: 10%;
  left: 10%;
  animation-duration: 20s;
}
.particle-2 {
  width: 200px;
  height: 200px;
  top: 60%;
  left: 60%;
  animation-duration: 25s;
  animation-delay: -5s;
}
.particle-3 {
  width: 150px;
  height: 150px;
  top: 30%;
  left: 70%;
  animation-duration: 18s;
  animation-delay: -10s;
}
.particle-4 {
  width: 250px;
  height: 250px;
  top: 70%;
  left: 20%;
  animation-duration: 22s;
  animation-delay: -3s;
}
.particle-5 {
  width: 100px;
  height: 100px;
  top: 15%;
  left: 80%;
  animation-duration: 15s;
  animation-delay: -7s;
}
.particle-6 {
  width: 180px;
  height: 180px;
  top: 80%;
  left: 50%;
  animation-duration: 28s;
  animation-delay: -12s;
}

@keyframes particleFloat {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.06;
  }
  25% {
    transform: translate(30px, -50px) scale(1.1);
    opacity: 0.1;
  }
  50% {
    transform: translate(-20px, -100px) scale(0.9);
    opacity: 0.04;
  }
  75% {
    transform: translate(50px, -30px) scale(1.05);
    opacity: 0.08;
  }
}

/* Hero content */
.hero-container {
  position: relative;
  z-index: 2;
  padding-top: var(--space-2xl);
  padding-bottom: 120px;
}

.hero-content {
  max-width: 650px;
}


.hero-eyebrow {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: var(--space-md);
  opacity: 0;
  animation: heroFadeIn 0.8s ease 0.2s forwards;
}

.hero-title {
  font-size: clamp(2.5rem, 5.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--space-lg);
  color: #fff;
  letter-spacing: -0.03em;
  opacity: 0;
  animation: heroFadeIn 0.8s ease 0.4s forwards;
}

.hero-title-line {
  display: block;
}

.hero-title-gradient {
  background: linear-gradient(135deg, #5FB4C9, #2D8A4E, #5FB4C9);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: heroFadeIn 0.8s ease 0.4s forwards, gradientShift 6s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

.hero-subtitle {
  font-size: 1.15rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.8);
  margin-bottom: var(--space-xl);
  max-width: 550px;
  opacity: 0;
  animation: heroFadeIn 0.8s ease 0.6s forwards;
}

.hero-cta-group {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  opacity: 0;
  animation: heroFadeIn 0.8s ease 0.8s forwards;
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Stats bar */
.hero-stats {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: var(--space-lg) 0;
  opacity: 0;
  animation: heroFadeIn 0.8s ease 1s forwards;
}

.stats-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xl);
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.stat-plus {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-light-teal);
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  margin-top: 2px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.15);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 100px;
  right: var(--space-2xl);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  opacity: 0;
  animation: heroFadeIn 0.8s ease 1.2s forwards;
}

.scroll-text {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.5);
  writing-mode: vertical-lr;
  transform: rotate(180deg);
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  animation: scrollPulse 2s ease infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.5; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(0.6); }
}

/* ============================================
   TECHNOLOGY SECTION
   ============================================ */
.section-technology {
  background: var(--color-bg);
  padding: var(--space-2xl) 0 var(--space-3xl);
}

.section-bg-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 600px;
  background: radial-gradient(ellipse at 30% 0%, rgba(12,123,147,0.06) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 100%, rgba(45,138,78,0.04) 0%, transparent 60%);
  pointer-events: none;
}

/* Centered intro text */
.tech-intro-centered {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-text-secondary);
  text-align: center;
  max-width: 900px;
  margin: 0 auto var(--space-3xl);
}

.tech-intro-centered strong {
  color: var(--color-text);
  font-weight: 600;
}

/* Three pillar cards — always visible */
.tech-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  margin-bottom: var(--space-3xl);
}

.tech-pillar-card {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: var(--space-2xl) var(--space-xl);
  transition: all 0.4s cubic-bezier(0.34,1.56,0.64,1);
  position: relative;
}

.tech-pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.34,1.56,0.64,1);
}

.tech-pillar-card:hover::before {
  transform: scaleX(1);
}

.tech-pillar-card:hover {
  border-color: rgba(12,123,147,0.2);
  box-shadow: 0 16px 48px rgba(12,123,147,0.1), 0 0 0 1px rgba(12,123,147,0.05);
  transform: translateY(-8px);
}

.tech-pillar-icon-wrap {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(12,123,147,0.06);
  border-radius: 14px;
  color: var(--color-ocean-teal);
  margin-bottom: var(--space-lg);
  transition: all 0.4s ease;
}

.tech-pillar-card:hover .tech-pillar-icon-wrap {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(12,123,147,0.25);
  transform: rotate(-3deg);
}

.tech-pillar-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-ocean-teal);
  margin-bottom: var(--space-xs);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.tech-pillar-card h5 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.tech-pillar-card p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin: 0;
}

/* Full-width dashboard visualization */
.tech-visual-full {
  margin-bottom: var(--space-3xl);
}

.tech-svg-card {
  padding: var(--space-xl);
  background: rgba(255,255,255,0.8);
}

.tech-svg {
  width: 100%;
  height: auto;
  min-height: 300px;
}

/* RAS Cycle */
.ras-cycle-wrapper {
  margin-bottom: var(--space-3xl);
}

.ras-cycle-card {
  padding: var(--space-xl);
  text-align: center;
}

.ras-cycle-title {
  font-size: 1.4rem;
  color: var(--color-dark);
  margin-bottom: var(--space-lg);
}

.ras-cycle-svg {
  width: 100%;
  height: auto;
  max-height: 500px;
}

/* Partner marquee */
.partners-marquee {
  text-align: center;
}

.partners-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-text-light);
  font-weight: 600;
  margin-bottom: var(--space-lg);
}

.marquee-track {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-inner {
  display: flex;
  align-items: center;
  gap: var(--space-3xl);
  animation: marqueeScroll 30s linear infinite;
  width: max-content;
}

.partner-logo {
  height: 50px;
  width: auto;
  opacity: 0.5;
  filter: grayscale(100%);
  transition: all var(--transition-base);
  flex-shrink: 0;
}

.partner-logo:hover {
  opacity: 1;
  filter: grayscale(0%);
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 992px) {
  .tech-pillars-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

@media (max-width: 768px) {
  .tech-intro-centered {
    font-size: 0.95rem;
    text-align: left;
  }
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.section-services {
  background: #f0f7f9;
  padding: var(--space-2xl) 0 var(--space-3xl);
  position: relative;
  overflow: hidden;
}

/* Subtle animated background mesh */
.section-services::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 120%;
  height: 200%;
  background:
    radial-gradient(ellipse 600px 600px at 20% 30%, rgba(12,123,147,0.04) 0%, transparent 70%),
    radial-gradient(ellipse 500px 500px at 80% 70%, rgba(45,138,78,0.03) 0%, transparent 70%);
  pointer-events: none;
  animation: meshDrift 20s ease-in-out infinite alternate;
}

@keyframes meshDrift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-30px, 20px); }
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-3xl);
}

/* ---- Sector Cards (modern glassmorphism) ---- */
.service-card {
  position: relative;
  border-radius: var(--border-radius-lg);
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.5);
  transition: transform 0.45s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.4s ease, border-color 0.3s ease;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.22,1,0.36,1);
}

.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 0%, rgba(12,123,147,0.08) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.service-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(12,123,147,0.12), 0 0 0 1px rgba(12,123,147,0.08);
  border-color: rgba(12,123,147,0.2);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover::after {
  opacity: 1;
}

.service-card-inner {
  padding: var(--space-xl) var(--space-xl) var(--space-lg);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  z-index: 1;
}

.service-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius);
  background: rgba(12,123,147,0.08);
  color: var(--color-ocean-teal);
  margin-bottom: var(--space-lg);
  transition: all 0.4s cubic-bezier(0.34,1.56,0.64,1);
}

.service-card:hover .service-icon {
  background: var(--gradient-primary);
  color: #fff;
  transform: scale(1.1) rotate(-3deg);
  box-shadow: 0 8px 20px rgba(12,123,147,0.3);
}

.service-card-link {
  display: inline-block;
  margin-top: auto;
  padding-top: var(--space-md);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-ocean-teal);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.service-card-link:hover {
  color: var(--color-dark);
}

.service-icon-green {
  background: rgba(45,138,78,0.08);
  color: var(--color-green);
}
.service-card:hover .service-icon-green {
  background: linear-gradient(135deg, #2D8A4E, #1a6b38);
  color: #fff;
  box-shadow: 0 8px 20px rgba(45,138,78,0.3);
}

.service-icon-coral {
  background: rgba(230,57,70,0.08);
  color: var(--color-coral);
}
.service-card:hover .service-icon-coral {
  background: linear-gradient(135deg, #E63946, #c0313c);
  color: #fff;
  box-shadow: 0 8px 20px rgba(230,57,70,0.3);
}

.service-icon-navy {
  background: rgba(0,51,102,0.08);
  color: var(--color-navy);
}
.service-card:hover .service-icon-navy {
  background: linear-gradient(135deg, #003366, #002244);
  color: #fff;
  box-shadow: 0 8px 20px rgba(0,51,102,0.3);
}

.service-icon-teal {
  background: rgba(95,180,201,0.08);
  color: var(--color-light-teal);
}
.service-card:hover .service-icon-teal {
  background: linear-gradient(135deg, #5FB4C9, #4a9db3);
  color: #fff;
  box-shadow: 0 8px 20px rgba(95,180,201,0.3);
}

.service-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.service-desc {
  font-size: 0.88rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  flex: 1;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-ocean-teal);
  margin-top: var(--space-md);
  transition: all var(--transition-base);
}

.service-link:hover {
  gap: 10px;
  color: var(--color-dark);
}

/* Sector status badges */
.service-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 14px;
  border-radius: 100px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
  width: fit-content;
}

.service-status-live {
  background: rgba(45,138,78,0.1);
  color: var(--color-green);
  box-shadow: inset 0 0 0 1px rgba(45,138,78,0.15);
}

.service-status-live::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-green);
  animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(45,138,78,0.4); }
  50% { opacity: 0.7; box-shadow: 0 0 0 4px rgba(45,138,78,0); }
}

.service-status-beta {
  background: rgba(12,123,147,0.1);
  color: var(--color-ocean-teal);
  box-shadow: inset 0 0 0 1px rgba(12,123,147,0.15);
}

.service-status-upcoming {
  background: rgba(100,116,139,0.08);
  color: var(--color-text-secondary);
  box-shadow: inset 0 0 0 1px rgba(100,116,139,0.12);
}

/* 4-column grid for sectors */
.services-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 992px) {
  .services-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .services-grid-4 {
    grid-template-columns: 1fr;
  }
}

/* ---- Core Promise Banner ---- */
.core-promise {
  margin-top: var(--space-3xl);
  margin-bottom: 0;
}

.core-promise-inner {
  position: relative;
  background: linear-gradient(135deg, #003366 0%, #0C7B93 50%, #004D40 100%);
  border-radius: var(--border-radius-lg);
  padding: var(--space-3xl) var(--space-2xl);
  text-align: center;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,51,102,0.2);
}

/* Animated shimmer overlay */
.core-promise-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
  animation: promiseShimmer 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes promiseShimmer {
  0% { left: -100%; }
  50% { left: 150%; }
  100% { left: 150%; }
}

/* Grid pattern overlay */
.core-promise-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 25% 25%, rgba(255,255,255,0.03) 1px, transparent 1px),
    radial-gradient(circle at 75% 75%, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

/* Three pillar icons layout */
.core-promise-pillars {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  margin-bottom: var(--space-2xl);
}

.core-pillar {
  flex: 1;
  text-align: center;
  padding: 0 var(--space-lg);
  max-width: 280px;
}

.core-pillar-icon {
  width: 88px;
  height: 88px;
  margin: 0 auto var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  color: rgba(255,255,255,0.9);
  transition: all 0.4s cubic-bezier(0.34,1.56,0.64,1);
}

.core-pillar-icon svg {
  width: 48px;
  height: 48px;
}

.core-pillar:hover .core-pillar-icon {
  background: rgba(95,180,201,0.15);
  border-color: rgba(95,180,201,0.35);
  transform: translateY(-6px) scale(1.08);
  box-shadow: 0 12px 32px rgba(12,123,147,0.25), 0 0 0 1px rgba(95,180,201,0.15);
}

.core-pillar-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--space-xs);
  letter-spacing: -0.01em;
}

.core-pillar-desc {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
  margin: 0;
}

/* Divider arrow between pillars */
.core-pillar-divider {
  display: flex;
  align-items: center;
  padding-top: 34px;
  color: rgba(255,255,255,0.25);
  flex-shrink: 0;
  animation: arrowPulse 2.5s ease-in-out infinite;
}

.core-promise-text {
  position: relative;
  z-index: 1;
  font-size: clamp(0.9rem, 1.5vw, 1.02rem);
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
  max-width: 860px;
  margin: 0 auto var(--space-xl);
}

.core-promise-pills {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm) var(--space-md);
}

.core-promise-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 100px;
  padding: 9px 20px;
  font-size: 0.83rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  transition: all 0.3s ease;
}

.core-promise-pill:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(95,180,201,0.35);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(12,123,147,0.15);
}

.core-promise-pill svg {
  color: #5FB4C9;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .core-promise-pillars {
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
  }
  .core-pillar {
    max-width: 320px;
  }
  .core-pillar-divider {
    transform: rotate(90deg);
    padding-top: 0;
  }
}

@media (max-width: 576px) {
  .core-promise-inner {
    padding: var(--space-2xl) var(--space-lg);
  }
  .core-pillar-icon {
    width: 72px;
    height: 72px;
  }
  .core-pillar-icon svg {
    width: 40px;
    height: 40px;
  }
  .core-promise-pills {
    gap: var(--space-xs) var(--space-sm);
  }
  .core-promise-pill {
    font-size: 0.75rem;
    padding: 7px 14px;
  }
}

/* Built features checklist */
.built-features-card {
  padding: var(--space-xl);
  background: #f8fafc;
}

.built-features-title {
  font-size: 1.3rem;
  text-align: center;
  margin-bottom: var(--space-xl);
  color: var(--color-text);
}

.built-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.built-feature-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-secondary);
}

.built-feature-item svg {
  color: var(--color-green);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .built-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .built-features-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   HOW IT WORKS — Modern Horizontal Flow
   ============================================ */
.section-how-it-works {
  background: var(--color-bg);
  padding: var(--space-2xl) 0 var(--space-3xl);
  position: relative;
  overflow: hidden;
}

.how-it-works {
  position: relative;
}

.how-it-works-title {
  text-align: center;
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: var(--color-text);
}

.how-it-works-subtitle {
  text-align: center;
  font-size: 1rem;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-3xl);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* Connecting line behind cards */
.how-it-works-grid {
  display: flex;
  align-items: stretch;
  gap: 0;
  justify-content: center;
  position: relative;
}

.how-it-works-grid::before {
  content: '';
  position: absolute;
  top: 56px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-light-teal), var(--color-ocean-teal), var(--color-green), transparent);
  opacity: 0.3;
  z-index: 0;
}

.how-card {
  flex: 1;
  text-align: center;
  padding: var(--space-3xl) var(--space-xl) var(--space-2xl);
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(226,232,240,0.6);
  border-radius: var(--border-radius-lg);
  transition: all 0.45s cubic-bezier(0.34,1.56,0.64,1);
  position: relative;
  z-index: 1;
  min-width: 220px;
}

.how-card:hover {
  border-color: rgba(12,123,147,0.25);
  box-shadow: 0 20px 50px rgba(12,123,147,0.15), 0 0 0 1px rgba(12,123,147,0.08);
  transform: translateY(-12px) scale(1.08);
  z-index: 10;
}

/* Glow ring on hover */
.how-card:hover::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(12,123,147,0.15), rgba(45,138,78,0.1), transparent);
  z-index: -1;
  filter: blur(12px);
  opacity: 0.6;
}

/* Step badge — bigger, animated */
.how-card-step {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 16px rgba(12,123,147,0.35);
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s ease;
  z-index: 2;
  border: 2px solid rgba(255,255,255,0.9);
}

.how-card:hover .how-card-step {
  transform: translateX(-50%) scale(1.18);
  box-shadow: 0 6px 24px rgba(12,123,147,0.5);
}

.how-card-icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(12,123,147,0.06);
  color: var(--color-ocean-teal);
  border-radius: 50%;
  margin: 0 auto var(--space-lg);
}

.how-card-illustration {
  width: 100%;
  margin: 0 auto var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s ease;
}

.how-card:hover .how-card-illustration {
  transform: scale(1.05);
}

.how-card-illustration svg {
  width: 100%;
  max-width: 240px;
  height: auto;
}

.how-card h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.how-card p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin: 0;
}

/* Arrow connectors */
.how-card-arrow {
  display: flex;
  align-items: center;
  padding: 0 var(--space-sm);
  flex-shrink: 0;
  margin-top: var(--space-4xl);
  z-index: 1;
  position: relative;
}

.how-card-arrow svg {
  color: var(--color-ocean-teal);
  opacity: 0.5;
  animation: arrowPulse 2s ease-in-out infinite;
  width: 22px;
  height: 22px;
}

@keyframes arrowPulse {
  0%, 100% { transform: translateX(0); opacity: 0.4; }
  50% { transform: translateX(4px); opacity: 0.8; }
}

/* Responsive */
@media (max-width: 992px) {
  .how-it-works-grid {
    flex-wrap: wrap;
    gap: var(--space-lg);
  }
  .how-it-works-grid::before {
    display: none;
  }
  .how-card {
    flex: 1 1 calc(50% - var(--space-lg));
    min-width: 220px;
  }
  .how-card-arrow {
    display: none;
  }
}

@media (max-width: 576px) {
  .how-card {
    flex: 1 1 100%;
  }
}

/* Dashboard preview */
.dashboard-preview {
  /* Contained in reveal-up */
}

.dashboard-card {
  padding: var(--space-xl);
  background: rgba(255,255,255,0.8);
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
  gap: var(--space-md);
}

.dashboard-header h3 {
  font-size: 1.3rem;
  color: var(--color-dark);
  margin: 0;
}

.dashboard-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 6px 14px;
  background: rgba(45,138,78,0.08);
  color: var(--color-green);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-green);
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.dashboard-svg {
  width: 100%;
  height: auto;
  min-height: 300px;
}

.dashboard-cta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border-light);
}

.dashboard-cta .btn {
  flex-shrink: 0;
}

.dashboard-cta-note {
  font-size: 0.8rem;
  color: var(--color-text-light);
  font-style: italic;
}

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

@media (max-width: 576px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.section-about {
  background: var(--color-bg);
  padding: var(--space-2xl) 0 var(--space-3xl);
}

/* Before/After comparison slider */
.comparison-section {
  margin-bottom: var(--space-3xl);
  text-align: center;
}

.comparison-title {
  font-size: 1.4rem;
  color: var(--color-dark);
  margin-bottom: var(--space-lg);
}

.comparison-slider {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  cursor: col-resize;
  aspect-ratio: 16/10;
  background: var(--color-bg-muted);
}

.comparison-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.comparison-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comparison-before {
  z-index: 1;
  clip-path: inset(0 50% 0 0);
}

.comparison-after {
  z-index: 0;
}

.comparison-label {
  position: absolute;
  top: var(--space-md);
  padding: 6px 16px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 100px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  z-index: 3;
}

.comparison-label-before {
  left: var(--space-md);
}

.comparison-label-after {
  right: var(--space-md);
}

.comparison-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: col-resize;
  touch-action: none;
}

.comparison-handle-line {
  flex: 1;
  width: 2px;
  background: #fff;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.comparison-handle-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-ocean-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  flex-shrink: 0;
}

/* About intro text */
.about-intro-text {
  max-width: 960px;
  margin: 0 auto var(--space-3xl);
  text-align: center;
}

.about-intro-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--color-text-secondary);
}

/* Subsidiary cards */
.subsidiary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-3xl);
}

.subsidiary-card {
  position: relative;
  border-radius: var(--border-radius);
  background: var(--color-bg);
  overflow: hidden;
  transition: all var(--transition-slow);
}

.subsidiary-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--border-radius);
  padding: 2px;
  background: var(--gradient-primary);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.subsidiary-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.subsidiary-card:hover::before {
  opacity: 1;
}

.subsidiary-card-inner {
  padding: var(--space-xl);
  position: relative;
  z-index: 1;
}

.subsidiary-number {
  font-size: 3rem;
  font-weight: 800;
  color: rgba(12,123,147,0.08);
  line-height: 1;
  margin-bottom: var(--space-md);
}

.subsidiary-name {
  font-size: 1.3rem;
  color: var(--color-dark);
  margin-bottom: var(--space-xs);
}

.subsidiary-role {
  font-size: 0.85rem;
  color: var(--color-ocean-teal);
  font-weight: 600;
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.subsidiary-desc {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin: 0;
}

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

@media (max-width: 576px) {
  .subsidiary-grid {
    grid-template-columns: 1fr;
  }
}

/* Aquaponics cycle */
.aquaponics-wrapper {
  margin-bottom: var(--space-3xl);
}

.aquaponics-card {
  padding: var(--space-xl);
  text-align: center;
  background: rgba(255,255,255,0.8);
}

.aquaponics-card h3 {
  font-size: 1.3rem;
  color: var(--color-dark);
  margin-bottom: var(--space-lg);
}

.aquaponics-svg {
  width: 100%;
  height: auto;
  max-height: 500px;
}

/* Milestones / Timeline */
.milestones {
  max-width: 960px;
  margin: 0 auto;
}

.milestones-title {
  text-align: center;
  font-size: 1.4rem;
  color: var(--color-dark);
  margin-bottom: var(--space-2xl);
}

.timeline {
  position: relative;
  padding-left: var(--space-2xl);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-ocean-teal), var(--color-green));
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  padding-bottom: var(--space-xl);
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: calc(-1 * var(--space-2xl) + 2px);
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-ocean-teal);
  border: 3px solid var(--color-bg-subtle);
  box-shadow: 0 0 0 2px var(--color-ocean-teal);
}

.timeline-content {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: var(--space-lg);
  transition: all var(--transition-base);
}

.timeline-content:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(12,123,147,0.2);
}

.timeline-year {
  display: inline-block;
  padding: 3px 12px;
  background: rgba(12,123,147,0.08);
  color: var(--color-ocean-teal);
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 100px;
  margin-bottom: var(--space-sm);
}

.timeline-content h4 {
  font-size: 1.05rem;
  color: var(--color-text);
  margin-bottom: var(--space-xs);
}

.timeline-content p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.section-contact {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafb 100%);
  padding: var(--space-xl) 0 var(--space-4xl);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

/* Contact info card */
.contact-info-card {
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: var(--space-xl);
}

/* Office blocks (two-office layout) */
.office-block {
  padding: var(--space-md) 0;
}

.office-block:first-child {
  padding-top: 0;
}

.office-title {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-md);
  letter-spacing: -0.01em;
}

.office-title svg {
  color: var(--color-ocean-teal);
  flex-shrink: 0;
}

.office-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border), transparent);
  margin: var(--space-sm) 0;
}

.contact-detail {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-border-light);
}

.contact-detail:last-of-type {
  border-bottom: none;
}

.contact-detail-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(12,123,147,0.08);
  color: var(--color-ocean-teal);
  border-radius: 10px;
  flex-shrink: 0;
}

.contact-detail h4 {
  font-size: 0.9rem;
  color: var(--color-text);
  margin-bottom: 2px;
}

.contact-detail p {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  margin: 0;
}

.contact-detail a {
  color: var(--color-ocean-teal);
}

.contact-detail a:hover {
  color: var(--color-dark);
}

.map-container {
  margin-top: var(--space-lg);
  border-radius: var(--border-radius);
  overflow: hidden;
  height: 220px;
  border: 1px solid var(--color-border);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Trust badges */
.trust-badges {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-lg);
  flex-wrap: wrap;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 8px 14px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text-secondary);
}

.trust-badge svg {
  color: var(--color-ocean-teal);
  flex-shrink: 0;
}

/* Contact form card */
.contact-form-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-lg);
}

.contact-form-card h3 {
  font-size: 1.5rem;
  color: var(--color-text);
  margin-bottom: var(--space-xs);
}

.form-subtitle {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xl);
}

/* Floating label form groups */
.form-group {
  position: relative;
  margin-bottom: var(--space-lg);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 16px 16px 8px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--border-radius-sm);
  font-family: var(--font-primary);
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-bg);
  outline: none;
  transition: all var(--transition-base);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-ocean-teal);
  box-shadow: 0 0 0 3px rgba(12,123,147,0.1);
}

.form-group label {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
  color: var(--color-text-light);
  pointer-events: none;
  transition: all var(--transition-base);
  background: transparent;
  padding: 0;
}

.form-group textarea ~ label {
  top: 18px;
  transform: none;
}

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label {
  top: 6px;
  transform: none;
  font-size: 0.7rem;
  color: var(--color-ocean-teal);
  font-weight: 600;
  letter-spacing: 0.03em;
}

.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
  top: 4px;
  font-size: 0.7rem;
  color: var(--color-ocean-teal);
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* Form feedback */
.form-feedback {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 12px 16px;
  border-radius: var(--border-radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: var(--space-md);
  animation: tabFadeIn 0.3s ease;
}

.form-feedback.error {
  background: rgba(230,57,70,0.08);
  color: var(--color-coral);
  border: 1px solid rgba(230,57,70,0.2);
}

.form-feedback.success {
  background: rgba(45,138,78,0.08);
  color: var(--color-green);
  border: 1px solid rgba(45,138,78,0.2);
}

/* Submit button */
.btn-submit {
  width: 100%;
  justify-content: center;
  padding: 16px;
  font-size: 1rem;
}

.btn-submit .spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-ocean-teal);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-base);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--color-dark);
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

/* ============================================
   MULTI-COLUMN FOOTER
   ============================================ */
.site-footer {
  background: var(--color-footer);
  color: rgba(26,26,46,0.8);
  padding: var(--space-3xl) 0 var(--space-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-col-brand {
  padding-right: var(--space-xl);
}

.footer-logo {
  display: inline-block;
  margin-bottom: var(--space-md);
}

.footer-logo img {
  opacity: 0.9;
  transition: opacity var(--transition-base);
}

.footer-logo:hover img {
  opacity: 1;
}

.footer-brand-desc {
  font-size: 0.85rem;
  color: rgba(26,26,46,0.55);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

.footer-social {
  display: flex;
  gap: var(--space-sm);
}

.social-link {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(26,26,46,0.08);
  color: rgba(26,26,46,0.6);
  transition: all var(--transition-base);
}

.social-link:hover {
  background: var(--color-ocean-teal);
  color: #fff;
  transform: translateY(-2px);
}

.footer-col-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #1a1a2e;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-lg);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: var(--space-sm);
}

.footer-links a {
  font-size: 0.9rem;
  color: rgba(26,26,46,0.55);
  transition: all var(--transition-base);
  display: inline-block;
}

.footer-links a:hover {
  color: #1a1a2e;
  transform: translateX(4px);
}

.footer-contact-links li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.85rem;
  color: rgba(26,26,46,0.55);
  margin-bottom: var(--space-md);
}

.footer-contact-links svg {
  flex-shrink: 0;
  color: var(--color-ocean-teal);
}

.footer-contact-links a {
  color: rgba(26,26,46,0.55);
}

.footer-contact-links a:hover {
  color: #1a1a2e;
  transform: none;
}

/* Newsletter */
.newsletter {
  margin-top: var(--space-xl);
}

.newsletter-form {
  display: flex;
  gap: 0;
  margin-top: var(--space-sm);
}

.newsletter-input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid rgba(26,26,46,0.15);
  border-right: none;
  border-radius: var(--border-radius-sm) 0 0 var(--border-radius-sm);
  background: rgba(255,255,255,0.7);
  color: #1a1a2e;
  font-size: 0.85rem;
  font-family: var(--font-primary);
  outline: none;
  transition: border-color var(--transition-base);
}

.newsletter-input::placeholder {
  color: rgba(26,26,46,0.35);
}

.newsletter-input:focus {
  border-color: var(--color-ocean-teal);
}

.newsletter-btn {
  padding: 10px 14px;
  background: var(--color-ocean-teal);
  color: #fff;
  border: none;
  border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
  cursor: pointer;
  transition: background var(--transition-base);
  display: flex;
  align-items: center;
}

.newsletter-btn:hover {
  background: var(--color-dark);
}

.newsletter-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.newsletter-feedback {
  margin-top: 8px;
  font-size: 0.8em;
  line-height: 1.4;
}

.newsletter-feedback.success {
  color: #16a34a;
}

.newsletter-feedback.error {
  color: #dc2626;
}

.footer-bottom {
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(26,26,46,0.1);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(26,26,46,0.4);
  margin: 0;
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }
}

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .footer-col-brand {
    padding-right: 0;
  }
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up {
  transform: translateY(40px);
  transition-delay: var(--reveal-delay, 0s);
}

.reveal-left {
  transform: translateX(-40px);
}

.reveal-right {
  transform: translateX(40px);
}

.reveal-up.revealed,
.reveal-left.revealed,
.reveal-right.revealed {
  opacity: 1;
  transform: translate(0, 0);
}

/* ============================================
   PARALLAX
   ============================================ */
.parallax-bg {
  will-change: transform;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .section {
    padding: var(--space-2xl) 0;
  }

  .section-technology,
  .section-services,
  .section-how-it-works,
  .section-about {
    padding-top: var(--space-lg);
  }

  .section-header {
    margin-bottom: var(--space-2xl);
  }

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

  .hero-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .stats-grid {
    gap: var(--space-lg);
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .stat-divider {
    display: none;
  }

  .scroll-indicator {
    display: none;
  }

  .comparison-slider {
    aspect-ratio: 4/3;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
  }

  .stat-divider {
    display: none;
  }

  .hero-cta-group {
    flex-direction: column;
  }

  .hero-cta-group .btn {
    text-align: center;
    justify-content: center;
  }
}

/* ============================================
   GDPR COOKIE CONSENT BANNER (preserved)
   ============================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  background: rgba(0, 51, 102, 0.97);
  color: #fff;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.cookie-banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  width: 100%;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-banner-text {
  margin: 0;
  font-size: 0.9em;
  color: #fff;
  line-height: 1.5;
  flex: 1;
  min-width: 200px;
}

.cookie-learn-more {
  color: var(--color-light-teal);
  text-decoration: underline;
  font-weight: 600;
}

.cookie-learn-more:hover {
  color: #fff;
}

.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 8px 20px;
  border: none;
  border-radius: 6px;
  font-size: 0.9em;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  font-family: var(--font-primary);
}

.cookie-btn:hover {
  transform: translateY(-1px);
}

.cookie-btn-accept {
  background: var(--color-ocean-teal);
  color: #fff;
}

.cookie-btn-accept:hover {
  background: #0a6a80;
}

.cookie-btn-decline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.cookie-btn-decline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

@media (max-width: 768px) {
  .cookie-banner {
    padding: 12px 16px;
  }

  .cookie-banner-content {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .cookie-banner-actions {
    justify-content: center;
    width: 100%;
  }

  .cookie-btn {
    flex: 1;
    max-width: 140px;
  }
}

/* ============================================
   404 ERROR PAGE (preserved)
   ============================================ */
.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  text-align: center;
  padding: 40px 20px;
  margin-top: var(--header-height);
}

.error-page h1 {
  font-size: 8em;
  color: var(--color-ocean-teal);
  margin: 0;
  line-height: 1;
}

.error-page h2 {
  font-size: 1.8em;
  color: var(--color-text);
  margin-bottom: 0.5em;
}

.error-page p {
  font-size: 1.1em;
  max-width: 500px;
  margin: 0 auto 1.5em;
}

.error-page .cta-button {
  display: inline-block;
  background: var(--color-ocean-teal);
  color: #fff;
  padding: 12px 30px;
  text-decoration: none;
  font-weight: 600;
  border-radius: var(--border-radius-sm);
  transition: background var(--transition-base);
}

.error-page .cta-button:hover {
  background: var(--color-dark);
}

/* ============================================
   SECTION NAVIGATION DOTS
   ============================================ */
.section-dots {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px 6px;
  border-radius: 20px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: opacity var(--transition-base);
}

.section-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid rgba(12,123,147,0.4);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: all var(--transition-base);
  position: relative;
}

.section-dot:hover {
  border-color: var(--color-ocean-teal);
  background: rgba(12,123,147,0.15);
  transform: scale(1.3);
}

.section-dot.active {
  background: var(--color-ocean-teal);
  border-color: var(--color-ocean-teal);
  transform: scale(1.2);
  box-shadow: 0 0 8px rgba(12,123,147,0.4);
}

/* Hide dots on mobile */
@media (max-width: 768px) {
  .section-dots {
    display: none;
  }
}

/* ============================================
   MOBILE & TABLET — COMPREHENSIVE FIX
   iPhone SE (375px), iPhone 14 (390px),
   iPhone Pro Max (430px), iPad Mini (768px),
   iPad Air (820px), iPad Pro (1024px)
   ============================================ */

/* --- TABLET (769px – 1024px) --- */
@media (max-width: 1024px) {
  .container {
    padding: 0 var(--space-lg);
  }

  .hero-container {
    padding-bottom: 80px;
  }

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

  .section-header {
    max-width: 100%;
  }

  /* Touch-friendly nav links */
  .navbar ul li a {
    padding: 10px 14px;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  /* Touch-friendly buttons */
  .btn, .btn-lg {
    min-height: 44px;
    padding: 12px 24px;
  }

  .header-portal-btn {
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Contact grid stacks on small tablets */
  .contact-grid {
    gap: var(--space-xl);
  }
}

/* --- MOBILE (max 768px) --- */
@media (max-width: 768px) {
  /* === HERO === */
  .hero-section {
    min-height: 100svh;
  }

  .hero-container {
    padding-top: var(--space-lg);
    padding-bottom: 60px;
  }

  .hero-eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    max-width: 100%;
  }

  /* Disable hero particles on mobile for performance */
  .hero-particles {
    display: none;
  }

  /* === SECTIONS === */
  .section-tag {
    font-size: 0.75rem;
    padding: 5px 12px;
  }

  .section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .section-subtitle {
    font-size: 0.95rem;
  }

  .section-header {
    margin-bottom: var(--space-xl);
  }

  /* === TECHNOLOGY === */
  .tech-intro-centered {
    font-size: 0.9rem;
    margin-bottom: var(--space-xl);
  }

  .tech-pillars-grid {
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
  }

  .tech-pillar-card {
    padding: var(--space-lg);
  }

  .built-features-grid {
    gap: var(--space-sm) var(--space-md);
  }

  .built-feature-item {
    font-size: 0.85rem;
  }

  /* === HOW IT WORKS === */
  .how-card {
    padding: var(--space-xl) var(--space-md) var(--space-lg);
  }

  .how-card-illustration svg {
    max-height: 100px;
  }

  .how-card h4 {
    font-size: 0.95rem;
  }

  .how-card p {
    font-size: 0.85rem;
  }

  /* === SERVICES === */
  .service-card-inner {
    padding: var(--space-lg) var(--space-md);
  }

  /* === CORE PROMISE === */
  .core-promise-text {
    font-size: 0.9rem;
  }

  .core-promise-pills {
    gap: var(--space-sm);
  }

  .core-promise-pill {
    font-size: 0.78rem;
    padding: 6px 12px;
  }

  /* === ABOUT === */
  .about-intro-text p {
    font-size: 0.9rem;
  }

  .subsidiary-grid {
    gap: var(--space-md);
  }

  /* === CONTACT === */
  .section-contact {
    padding: var(--space-2xl) 0;
  }

  .contact-info-card,
  .contact-form-card {
    padding: var(--space-lg);
  }

  .form-group input,
  .form-group textarea {
    font-size: 16px; /* Prevents iOS zoom on focus */
    padding: 14px 14px 8px;
    min-height: 48px;
  }

  .form-group textarea {
    min-height: 100px;
  }

  .btn-submit {
    width: 100%;
    min-height: 48px;
    font-size: 1rem;
  }

  /* === FOOTER === */
  .site-footer {
    padding: var(--space-xl) 0;
  }

  .footer-col h4 {
    font-size: 0.95rem;
  }

  .footer-col li a {
    padding: 6px 0;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  /* === BACK TO TOP === */
  .back-to-top {
    bottom: var(--space-md);
    right: var(--space-md);
    width: 44px;
    height: 44px;
  }

  /* === COOKIE BANNER === */
  .cookie-btn {
    min-height: 44px;
    padding: 10px 20px;
  }
}

/* --- SMALL MOBILE (max 480px) — iPhone SE, small Android --- */
@media (max-width: 480px) {
  :root {
    --header-height: 60px;
  }

  .container {
    padding: 0 var(--space-md);
  }

  /* Hero tighter */
  .hero-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }

  .hero-subtitle {
    font-size: 0.88rem;
    line-height: 1.6;
  }

  .hero-eyebrow {
    font-size: 0.7rem;
  }

  /* CTA buttons full-width stack */
  .hero-cta-group {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .hero-cta-group .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  /* Section spacing even tighter */
  .section-technology,
  .section-services,
  .section-how-it-works,
  .section-about {
    padding-top: var(--space-md);
  }

  .section-title {
    font-size: clamp(1.3rem, 5.5vw, 1.8rem);
  }

  .section-subtitle {
    font-size: 0.88rem;
  }

  /* Stats grid: 2 per row */
  .stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
  }

  .stat-number {
    font-size: 1.2rem;
  }

  .stat-label {
    font-size: 0.7rem;
  }

  /* How It Works cards full stack */
  .how-it-works-grid {
    flex-direction: column;
    gap: var(--space-md);
  }

  .how-card-arrow {
    display: none;
  }

  .how-card {
    padding: var(--space-lg) var(--space-md);
  }

  /* Core promise pillars stack */
  .core-promise-pillars {
    flex-direction: column;
    gap: var(--space-lg);
  }

  .core-pillar-divider {
    display: none;
  }

  .core-promise-inner {
    padding: var(--space-lg) var(--space-md);
  }

  /* Contact form full width */
  .contact-form-card,
  .contact-info-card {
    padding: var(--space-md);
  }

  .office-detail {
    font-size: 0.82rem;
  }

  /* Footer single column */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  /* Comparison slider */
  .comparison-slider {
    aspect-ratio: 3/4;
  }

  /* Language switcher */
  .lang-dropdown {
    right: -16px;
    min-width: 130px;
  }

  /* Header portal icon only — larger touch area */
  .header-portal-btn {
    padding: 8px;
    min-width: 44px;
    min-height: 44px;
  }
}

/* --- EXTRA SMALL (max 360px) — iPhone SE 1st gen, old Android --- */
@media (max-width: 360px) {
  .container {
    padding: 0 12px;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 1.25rem;
  }

  .tech-pillar-card h4,
  .service-card-inner h3 {
    font-size: 1rem;
  }

  .built-features-grid {
    grid-template-columns: 1fr;
  }

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

/* --- iOS SAFE AREA (notch, home indicator) --- */
@supports (padding: env(safe-area-inset-bottom)) {
  .site-header {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }

  .cookie-banner {
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
  }

  .back-to-top {
    bottom: calc(var(--space-md) + env(safe-area-inset-bottom));
  }

  .site-footer {
    padding-bottom: calc(var(--space-xl) + env(safe-area-inset-bottom));
  }
}

/* --- LANDSCAPE PHONE --- */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-section {
    min-height: auto;
    padding: var(--space-xl) 0;
  }

  .hero-container {
    padding-bottom: var(--space-xl);
  }

  .scroll-indicator {
    display: none;
  }

  .hero-particles {
    display: none;
  }

  .stats-grid {
    flex-wrap: nowrap;
  }
}

/* --- HOVER / TOUCH DEVICE DETECTION --- */
@media (hover: none) and (pointer: coarse) {
  /* Remove hover effects on touch devices */
  .tech-pillar-card:hover,
  .service-card:hover,
  .how-card:hover,
  .subsidiary-card:hover {
    transform: none;
  }

  /* Larger touch targets */
  .social-link {
    min-width: 44px;
    min-height: 44px;
  }

  .partner-logo {
    min-height: 40px;
  }

  /* Disable backdrop-filter on low-end devices for performance */
  .glass-card,
  .how-card,
  .cookie-banner {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* --- 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;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal-up,
  .reveal-left,
  .reveal-right {
    opacity: 1;
    transform: none;
  }
}


/* ============================================= */
/* FEATURE PAGES                                 */
/* ============================================= */

/* Breadcrumb */
.feature-breadcrumb {
  padding: calc(var(--header-height) + var(--space-lg)) 0 var(--space-md);
  background: var(--color-white);
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.875rem;
  color: #64748b;
}

.breadcrumb-list a {
  color: var(--color-ocean-teal);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.breadcrumb-list a:hover {
  color: var(--color-dark);
}

.breadcrumb-separator {
  display: flex;
  align-items: center;
  color: #94a3b8;
}

.breadcrumb-list li[aria-current="page"] {
  color: var(--color-dark);
  font-weight: 600;
}

/* Feature Hero */
.feature-hero {
  position: relative;
  padding: var(--space-3xl) 0 var(--space-2xl);
  background: linear-gradient(135deg, #003366 0%, #004D40 50%, #0C7B93 100%);
  color: var(--color-white);
  overflow: hidden;
}

.feature-hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(95,180,201,0.15) 0%, transparent 60%),
              radial-gradient(circle at 70% 80%, rgba(45,138,78,0.1) 0%, transparent 50%);
}

.feature-hero-content {
  position: relative;
  max-width: 720px;
}

.feature-hero-tag {
  display: inline-block;
  padding: var(--space-xs) var(--space-md);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--space-lg);
}

.feature-hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 var(--space-lg);
}

.feature-hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.7;
  opacity: 0.9;
  margin: 0;
}

/* Feature Sections */
.feature-section {
  padding: var(--space-3xl) 0;
}

.feature-section:nth-child(even) {
  background: #f8fafc;
}

.feature-section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--color-dark);
  margin: 0 0 var(--space-2xl);
  text-align: center;
}

/* Feature Overview */
.feature-overview p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #374151;
  max-width: 800px;
  margin: 0 auto var(--space-lg);
}

/* Feature Cards Grid */
.feature-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
}

.feature-card {
  background: var(--color-white);
  border: 1px solid #e2e8f0;
  border-radius: var(--border-radius-lg);
  padding: var(--space-xl);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(12,123,147,0.1), rgba(4,77,64,0.05));
  border-radius: var(--border-radius);
  margin-bottom: var(--space-md);
  color: var(--color-ocean-teal);
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-dark);
  margin: 0 0 var(--space-sm);
}

.feature-card p {
  font-size: 0.925rem;
  line-height: 1.65;
  color: #64748b;
  margin: 0;
}

/* Benefits */
.feature-benefits .benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-xl);
}

.benefit-item {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.benefit-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(45,138,78,0.1);
  border-radius: 50%;
  color: var(--color-green);
}

.benefit-item h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-dark);
  margin: 0 0 var(--space-xs);
}

.benefit-item p {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

/* FAQ Accordion */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid #e2e8f0;
  border-radius: var(--border-radius);
  margin-bottom: var(--space-md);
  overflow: hidden;
  background: var(--color-white);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) var(--space-xl);
  cursor: pointer;
  font-weight: 600;
  color: var(--color-dark);
  font-size: 1rem;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
}

.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--color-ocean-teal);
  transition: transform var(--transition-base);
  flex-shrink: 0;
  margin-left: var(--space-md);
}

.faq-item.open .faq-question::after {
  content: '−';
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 var(--space-xl);
}

.faq-item.open .faq-answer {
  max-height: 500px;
  padding: 0 var(--space-xl) var(--space-lg);
}

.faq-answer p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #4b5563;
  margin: 0;
}

/* Feature CTA */
.feature-cta {
  padding: var(--space-3xl) 0;
  background: linear-gradient(135deg, #003366 0%, #004D40 100%);
  color: var(--color-white);
  text-align: center;
}

.feature-cta-inner {
  max-width: 600px;
  margin: 0 auto;
}

.feature-cta h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  margin: 0 0 var(--space-md);
}

.feature-cta p {
  font-size: 1.05rem;
  opacity: 0.9;
  margin: 0 0 var(--space-xl);
}

/* Related Feature Pages */
.feature-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-lg);
}

.feature-related-card {
  display: block;
  padding: var(--space-lg);
  background: var(--color-white);
  border: 1px solid #e2e8f0;
  border-radius: var(--border-radius);
  text-decoration: none;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.feature-related-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-ocean-teal);
}

.feature-related-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-dark);
  margin: 0 0 var(--space-xs);
}

.feature-related-card p {
  font-size: 0.85rem;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

/* Feature Page Responsive */
@media (max-width: 768px) {
  .feature-hero {
    padding: var(--space-2xl) 0 var(--space-xl);
  }

  .feature-section {
    padding: var(--space-2xl) 0;
  }

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

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

@media (max-width: 480px) {
  .feature-related-grid {
    grid-template-columns: 1fr;
  }
}
