:root {
      --bg-primary: #FFFFFF;
      --bg-secondary: #F8FAFC;
      --accent-primary: #2563EB;
      --accent-secondary: #1D4ED8;
      --accent-glow: rgba(37, 99, 235, 0.08);
      --highlight-gold: #D97706;
      --gold-glow: rgba(217, 119, 6, 0.1);
      --text-primary: #0F172A;
      --text-secondary: #475569;
      --card-bg: rgba(255, 255, 255, 0.8);
      --glass-border: rgba(15, 23, 42, 0.08);
      --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.04), 0 1px 8px rgba(15, 23, 42, 0.02);
      --shadow-hover: 0 20px 40px rgba(37, 99, 235, 0.12);
      /* Old mappings mapped to new ones to prevent breaking */
      --navy: var(--bg-primary);
      --navy-mid: var(--bg-secondary);
      --navy-light: #E2E8F0;
      --teal: var(--accent-primary);
      --teal-dim: var(--accent-secondary);
      --teal-glow: var(--accent-glow);
      --amber: var(--highlight-gold);
      --white: var(--text-primary);
      --slate: var(--text-secondary);
      --slate-light: #64748B;
      --glass: rgba(15, 23, 42, 0.03);
      --card-bg: var(--bg-primary);
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      background: var(--navy);
      color: var(--white);
      font-family: 'Inter', sans-serif;
      overflow-x: hidden;
    }

    /* ── NAV ── */

    nav {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 100;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 5%;
      height: 72px;
      background: rgba(255, 255, 255, 0.85);
      backdrop-filter: blur(16px);
      border-bottom: 1px solid var(--glass-border);
    }

    .nav-logo {
      display: flex;
      align-items: center;
      gap: 10px;
      font-family: 'Space Grotesk', sans-serif;
      font-size: 1.35rem;
      font-weight: 700;
      letter-spacing: -0.02em;
      color: var(--white);
      text-decoration: none;
    }

    .nav-logo span {
      color: var(--teal);
    }

    .nav-logo .logo-text {
      color: inherit;
    }

    .nav-logo .logo-tamil {
      font-family: 'Noto Sans Tamil', sans-serif;
      font-size: 1.1rem;
      font-weight: 500;
      color: var(--teal);
      margin-left: 6px;
    }

    .logo-pulse {
      width: 32px;
      height: 32px;
      background: var(--teal-glow);
      border: 1.5px solid var(--teal);
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .logo-pulse svg {
      width: 18px;
      height: 18px;
    }

    .nav-links {
      display: flex;
      align-items: center;
      gap: 32px;
      list-style: none;
    }

    .nav-links a {
      color: var(--slate-light);
      text-decoration: none;
      font-size: 0.875rem;
      font-weight: 500;
      transition: color 0.2s;
    }

    .nav-links a:hover {
      color: var(--teal);
    }

    .nav-cta {
      display: flex;
      gap: 12px;
      align-items: center;
    }

    .btn-outline {
      padding: 8px 20px;
      border-radius: 8px;
      border: 1px solid var(--teal);
      color: var(--teal);
      background: transparent;
      font-size: 0.875rem;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.2s;
      font-family: 'Inter', sans-serif;
      text-decoration: none;
    }

    .btn-outline:hover {
      background: var(--teal-glow);
    }

    .btn-solid {
      padding: 8px 20px;
      border-radius: 8px;
      background: var(--teal);
      color: var(--navy);
      border: none;
      font-size: 0.875rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s;
      font-family: 'Inter', sans-serif;
      text-decoration: none;
    }

    .btn-solid:hover {
      background: #D32F2F;
      transform: translateY(-1px);
    }

    /* ── HERO ── */

    #hero {
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      justify-content: center;
      padding: 120px 5% 80px;
      position: relative;
      overflow: hidden;
    }

    .hero-bg-video {
      position: absolute;
      top: 50%;
      right: 6%;
      left: auto;
      transform: translateY(-50%);
      width: 30%;
      max-width: 360px;
      height: 70%;
      object-fit: contain;
      z-index: 0;
      pointer-events: none;
      opacity: 0.65;
    }

    .hero-bg-video.mobile-video {
      display: none;
    }

    @media (max-width: 768px) {
      .hero-bg-video.desktop-video {
        display: none;
      }

      .hero-bg-video.mobile-video {
        display: block;
      }

    }

    .hero-canvas {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      pointer-events: none;
      z-index: 0;
    }

    .hero-content {
      position: relative;
      z-index: 1;
    }

    .hero-radial {
      position: absolute;
      top: -20%;
      right: -10%;
      width: 800px;
      height: 800px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(229, 57, 53, 0.04) 0%, transparent 70%);
      pointer-events: none;
    }

    /* ECG Line — the signature element */

    .ecg-container {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      height: 80px;
      overflow: hidden;
      opacity: 0.4;
    }

    .ecg-line {
      stroke: var(--teal);
      stroke-width: 2;
      fill: none;
      stroke-dasharray: 2000;
      stroke-dashoffset: 2000;
      animation: ecg-draw 3s ease forwards 0.5s, ecg-pulse 4s ease-in-out infinite 3.5s;
    }

    @keyframes ecg-draw {
      to {
        stroke-dashoffset: 0;
      }

    }

    @keyframes ecg-pulse {
      0%,
      100% {
        opacity: 0.4;
      }

      50% {
        opacity: 0.7;
      }

    }

    .hero-eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: var(--teal-glow);
      border: 1px solid rgba(59, 130, 246, 0.3);
      padding: 6px 14px;
      border-radius: 20px;
      font-size: 0.78rem;
      font-weight: 600;
      letter-spacing: 0.08em;
      color: var(--teal);
      text-transform: uppercase;
      margin-bottom: 28px;
      width: fit-content;
    }

    .eyebrow-dot {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: var(--teal);
      animation: blink 1.5s ease-in-out infinite;
    }

    @keyframes blink {
      0%,
      100% {
        opacity: 1
      }

      50% {
        opacity: 0.2
      }

    }

    .hero-headline {
      font-family: 'Space Grotesk', sans-serif;
      font-size: clamp(2.4rem, 5.5vw, 4.2rem);
      font-weight: 700;
      line-height: 1.1;
      letter-spacing: -0.03em;
      max-width: 820px;
      margin-bottom: 24px;
    }

    .hero-headline .accent {
      color: var(--teal);
      text-shadow: 0 0 30px rgba(59, 130, 246, 0.45);
      display: inline-block;
    }

    .hero-headline .underline-amber {
      border-bottom: 3px solid var(--amber);
      padding-bottom: 2px;
      position: relative;
      display: inline-block;
    }

    .stagger-line {
      display: inline-block;
      overflow: hidden;
      vertical-align: bottom;
    }

    .stagger-line-inner {
      display: inline-block;
    }

    .hero-sub {
      font-size: 1.1rem;
      color: var(--slate-light);
      max-width: 560px;
      line-height: 1.7;
      margin-bottom: 44px;
    }

    .hero-actions {
      display: flex;
      gap: 14px;
      align-items: center;
      flex-wrap: wrap;
      margin-bottom: 72px;
    }

    .btn-hero {
      padding: 14px 32px;
      border-radius: 10px;
      background: var(--teal);
      color: var(--navy);
      font-size: 1rem;
      font-weight: 700;
      border: none;
      cursor: pointer;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      font-family: 'Inter', sans-serif;
      display: flex;
      align-items: center;
      gap: 8px;
      text-decoration: none;
      position: relative;
      z-index: 1;
      overflow: hidden;
    }

    .btn-hero::before {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0));
      transform: translateX(-100%);
      transition: transform 0.5s ease;
      z-index: -1;
    }

    .btn-hero:hover::before {
      transform: translateX(100%);
    }

    .btn-hero:hover {
      background: #D32F2F;
      transform: translateY(-3px);
      box-shadow: 0 12px 28px rgba(229, 57, 53, 0.3);
    }

    .btn-hero-ghost {
      padding: 14px 32px;
      border-radius: 10px;
      background: transparent;
      color: var(--white);
      font-size: 1rem;
      font-weight: 500;
      border: 1px solid var(--glass-border); box-shadow: var(--shadow-soft);
      cursor: pointer;
      transition: all 0.25s;
      font-family: 'Inter', sans-serif;
      text-decoration: none;
    }

    .btn-hero-ghost:hover {
      border-color: var(--teal);
      color: var(--teal);
    }

    .hero-stats {
      display: flex;
      gap: 48px;
      flex-wrap: wrap;
    }

    .stat-item {
      display: flex;
      flex-direction: column;
      gap: 4px;
    }

    .stat-number {
      font-family: 'Space Grotesk', sans-serif;
      font-size: 2rem;
      font-weight: 700;
      color: var(--teal);
      letter-spacing: -0.03em;
    }

    .stat-label {
      font-size: 0.78rem;
      color: var(--slate);
      font-weight: 500;
      letter-spacing: 0.05em;
      text-transform: uppercase;
    }

    /* ── SECTION SHARED ── */

    section {
      padding: 100px 5%;
    }

    .section-label {
      font-size: 0.75rem;
      font-weight: 600;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--teal);
      margin-bottom: 16px;
    }

    .section-title {
      font-family: 'Space Grotesk', sans-serif;
      font-size: clamp(1.8rem, 3.5vw, 2.8rem);
      font-weight: 700;
      letter-spacing: -0.02em;
      line-height: 1.2;
      margin-bottom: 16px;
    }

    .section-sub {
      font-size: 1rem;
      color: var(--slate-light);
      line-height: 1.7;
      max-width: 560px;
      margin-bottom: 56px;
    }

    /* ── HOW IT WORKS ── */

    #how {
      background: var(--navy-mid);
      text-align: center;
      padding-left: 48px;
      padding-right: 48px;
    }

    #how .section-sub {
      margin-left: auto;
      margin-right: auto;
    }

    .how-grid {
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: 40px;
      border: none;
      box-shadow: none;
      border-radius: 0;
      overflow: visible;
      justify-items: stretch;
      width: 100%;
    }

    .how-card {
      background: var(--card-bg);
      padding: 40px 32px;
      position: relative;
      overflow: hidden;
      transition: background 0.3s, transform 0.3s;
      text-align: center;
    }

    .how-card:hover {
      background: rgba(59, 130, 246, 0.06);
      transform: translateY(-5px);
      z-index: 2;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }

    .how-card::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 2px;
      background: var(--accent-primary);
      transform: scaleX(0);
      transform-origin: center;
      transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .how-card:hover::before {
      transform: scaleX(1);
    }

    .how-card.active-flow {
      background: rgba(229, 57, 53, 0.04);
    }

    .how-card.active-flow::before {
      transform: scaleX(1);
    }

    .how-icon {
      width: 48px;
      height: 48px;
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 20px;
      font-size: 1.4rem;
    }

    .how-step {
      font-family: 'Space Grotesk', sans-serif;
      font-size: 0.7rem;
      font-weight: 700;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--slate);
      margin-bottom: 8px;
    }

    .how-title {
      font-family: 'Space Grotesk', sans-serif;
      font-size: 1.15rem;
      font-weight: 600;
      margin-bottom: 10px;
    }

    .how-desc {
      font-size: 0.9rem;
      color: var(--slate-light);
      line-height: 1.6;
    }

    /* ── PORTALS / LOGIN ── */

    #portals {
      background: var(--navy);
    }

    .portals-intro {
      max-width: 700px;
      margin: 0 auto 64px;
      text-align: center;
    }

    .portals-grid {
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: 20px;
      max-width: 1440px;
      margin: 0 auto;
    }

    .portal-card {
      background: var(--card-bg);
      border: 1px solid var(--glass-border); box-shadow: var(--shadow-soft);
      border-radius: 16px;
      padding: 36px 30px;
      display: flex;
      flex-direction: column;
      cursor: pointer;
      transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
      position: relative;
      overflow: hidden;
      text-decoration: none;
      color: inherit;
      z-index: 1;
    }

    .portal-card::before {
      content: '';
      position: absolute;
      top: 0;
      right: 0;
      width: 100px;
      height: 80px;
      background:
        linear-gradient(90deg, var(--teal) 15px, transparent 15px) 10px 20px / 100% 4px no-repeat,
        linear-gradient(90deg, var(--teal-dim) 40px, transparent 40px) 10px 30px / 100% 4px no-repeat,
        linear-gradient(90deg, var(--amber) 25px, transparent 25px) 10px 40px / 100% 4px no-repeat;
      opacity: 0;
      transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
      transform: translate(20px, -20px) scale(0.8);
      pointer-events: none;
      border-radius: 0 16px 0 0;
    }

    .portal-card::after {
      content: '';
      position: absolute;
      inset: 0;
      border-radius: 16px;
      padding: 2px;
      background: linear-gradient(135deg, var(--teal), transparent, var(--amber));
      -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
      mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
      -webkit-mask-composite: xor;
      mask-composite: exclude;
      opacity: 0;
      transition: opacity 0.4s ease;
      pointer-events: none;
    }

    .portal-card:hover {
      transform: translateY(-8px) scale(1.02);
      box-shadow: 0 20px 40px rgba(212, 175, 55, 0.2);
      background: var(--bg-primary);
      border-color: var(--highlight-gold);
    }

    .portal-card:hover::after {
      opacity: 1;
    }

    .portal-card:hover::before {
      opacity: 0.15;
      transform: translate(0, 0) scale(1);
    }

    .portal-icon {
      width: 56px;
      height: 56px;
      border-radius: 14px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.6rem;
      margin-bottom: 20px;
      transition: transform 0.4s ease;
    }

    .portal-card:hover .portal-icon {
      transform: scale(1.15) rotate(5deg);
    }

    .portal-tag {
      display: inline-block;
      padding: 3px 10px;
      border-radius: 12px;
      font-size: 0.7rem;
      font-weight: 600;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      margin-bottom: 12px;
      width: fit-content;
    }

    .portal-name {
      font-family: 'Space Grotesk', sans-serif;
      font-size: 1.3rem;
      font-weight: 700;
      margin-bottom: 10px;
    }

    .portal-desc {
      font-size: 0.88rem;
      color: var(--slate-light);
      line-height: 1.6;
      margin-bottom: 24px;
      flex: 1;
    }

    .portal-features {
      list-style: none;
      margin-bottom: 28px;
    }

    .portal-features li {
      font-size: 0.82rem;
      color: var(--slate-light);
      padding: 5px 0;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .portal-features li::before {
      content: '→';
      color: var(--teal);
      font-size: 0.75rem;
    }

    .portal-btn {
      width: 100%;
      padding: 12px;
      border-radius: 8px;
      border: 1px solid var(--teal);
      color: var(--teal);
      background: transparent;
      font-size: 0.875rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s;
      font-family: 'Inter', sans-serif;
    }

    .portal-btn:hover {
      background: var(--teal);
      color: var(--navy);
    }

    /* Portal color themes */

    .portal-patient .portal-icon {
      background: rgba(59, 130, 246, 0.1);
    }

    .portal-patient .portal-tag {
      background: rgba(59, 130, 246, 0.1);
      color: var(--teal);
    }

    .portal-card.portal-patient {
      background: #EFF6FF !important;
      border-color: rgba(59, 130, 246, 0.4) !important;
    }
    .portal-card.portal-patient:hover {
      background: #DBEAFE !important;
      border-color: var(--teal) !important;
      box-shadow: 0 12px 30px rgba(59, 130, 246, 0.15) !important;
    }

    .portal-doctor .portal-icon {
      background: rgba(99, 102, 241, 0.1);
    }

    .portal-doctor .portal-tag {
      background: rgba(99, 102, 241, 0.1);
      color: #818cf8;
    }

    .portal-doctor .portal-features li::before {
      color: #818cf8;
    }

    .portal-doctor .portal-btn {
      border-color: #818cf8;
      color: #818cf8;
    }

    .portal-doctor .portal-btn:hover {
      background: #818cf8;
      color: white;
    }

    .portal-card.portal-doctor {
      background: #ECEFFE !important;
      border-color: rgba(99, 102, 241, 0.4) !important;
    }
    .portal-card.portal-doctor:hover {
      background: #D3DAFD !important;
      border-color: #818cf8 !important;
      box-shadow: 0 12px 30px rgba(99, 102, 241, 0.15) !important;
    }

    .portal-hospital .portal-icon {
      background: rgba(245, 166, 35, 0.1);
    }

    .portal-hospital .portal-tag {
      background: rgba(245, 166, 35, 0.1);
      color: var(--amber);
    }

    .portal-hospital .portal-features li::before {
      color: var(--amber);
    }

    .portal-hospital .portal-btn {
      border-color: var(--amber);
      color: var(--amber);
    }

    .portal-hospital .portal-btn:hover {
      background: var(--amber);
      color: var(--navy);
    }

    .portal-card.portal-hospital {
      background: #FEF6EC !important;
      border-color: rgba(245, 166, 35, 0.4) !important;
    }
    .portal-card.portal-hospital:hover {
      background: #FCEAD2 !important;
      border-color: var(--amber) !important;
      box-shadow: 0 12px 30px rgba(245, 166, 35, 0.15) !important;
    }

    .portal-pharma .portal-icon {
      background: rgba(244, 114, 182, 0.1);
    }

    .portal-pharma .portal-tag {
      background: rgba(244, 114, 182, 0.1);
      color: #f472b6;
    }

    .portal-pharma .portal-features li::before {
      color: #f472b6;
    }

    .portal-pharma .portal-btn {
      border-color: #f472b6;
      color: #f472b6;
    }

    .portal-pharma .portal-btn:hover {
      background: #f472b6;
      color: white;
    }

    .portal-card.portal-pharma {
      background: #FDF2F7 !important;
      border-color: rgba(244, 114, 182, 0.4) !important;
    }
    .portal-card.portal-pharma:hover {
      background: #FCE1EE !important;
      border-color: #f472b6 !important;
      box-shadow: 0 12px 30px rgba(244, 114, 182, 0.15) !important;
    }

    .portal-rnd .portal-icon {
      background: rgba(59, 130, 246, 0.1);
    }

    .portal-rnd .portal-tag {
      background: rgba(59, 130, 246, 0.1);
      color: #3B82F6;
    }

    .portal-rnd .portal-features li::before {
      color: #3B82F6;
    }

    .portal-rnd .portal-btn {
      border-color: #3B82F6;
      color: #3B82F6;
    }

    .portal-rnd .portal-btn:hover {
      background: #3B82F6;
      color: white;
    }

    .portal-card.portal-rnd {
      background: #EFF6FF !important;
      border-color: rgba(59, 130, 246, 0.4) !important;
    }
    .portal-card.portal-rnd:hover {
      background: #DBEAFE !important;
      border-color: #3B82F6 !important;
      box-shadow: 0 12px 30px rgba(59, 130, 246, 0.15) !important;
    }

    /* ── PHARMACY REALTIME ── */

    #pharmacy-intel {
      background: linear-gradient(135deg, var(--navy-mid) 0%, var(--navy) 100%);
    }

    .intel-layout {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 80px;
      align-items: center;
    }

    .intel-visual {
      background: var(--card-bg);
      border: 1px solid var(--glass-border); box-shadow: var(--shadow-soft);
      border-radius: 20px;
      padding: 28px;
      position: relative;
    }

    .dashboard-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 24px;
    }

    .dashboard-title {
      font-family: 'Space Grotesk', sans-serif;
      font-size: 0.9rem;
      font-weight: 600;
      color: var(--white);
    }

    .live-badge {
      display: flex;
      align-items: center;
      gap: 6px;
      padding: 4px 10px;
      border-radius: 20px;
      background: rgba(59, 130, 246, 0.1);
      border: 1px solid rgba(59, 130, 246, 0.3);
      font-size: 0.7rem;
      font-weight: 600;
      color: var(--teal);
      letter-spacing: 0.05em;
    }

    .live-dot {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: var(--teal);
      animation: blink 1.5s infinite;
    }

    .drug-bars {
      display: flex;
      flex-direction: column;
      gap: 12px;
      margin-bottom: 20px;
    }

    .drug-bar-item {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .drug-name {
      font-size: 0.78rem;
      color: var(--slate-light);
      width: 100px;
      flex-shrink: 0;
    }

    .bar-track {
      flex: 1;
      background: rgba(255, 255, 255, 0.05);
      border-radius: 4px;
      height: 8px;
      overflow: hidden;
    }

    .bar-fill {
      height: 100%;
      border-radius: 4px;
      background: linear-gradient(90deg, var(--teal), #00e5cd);
      width: 0;
    }

    .bar-pct {
      font-size: 0.75rem;
      color: var(--teal);
      font-weight: 600;
      width: 36px;
      text-align: right;
    }

    .mini-metrics {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 12px;
      margin-top: 20px;
    }

    .mini-metric {
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid var(--glass-border); box-shadow: var(--shadow-soft);
      border-radius: 10px;
      padding: 14px 12px;
    }

    .mini-metric-val {
      font-family: 'Space Grotesk', sans-serif;
      font-size: 1.3rem;
      font-weight: 700;
      color: var(--teal);
      margin-bottom: 4px;
    }

    .mini-metric-lbl {
      font-size: 0.68rem;
      color: var(--slate);
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }

    .intel-content .section-sub {
      margin-bottom: 32px;
    }

    .feature-list {
      list-style: none;
    }

    .feature-list li {
      padding: 14px 0;
      border-bottom: 1px solid var(--glass-border);
      display: flex;
      align-items: flex-start;
      gap: 14px;
      font-size: 0.9rem;
    }

    .feature-list li:last-child {
      border-bottom: none;
    }

    .feature-check {
      width: 20px;
      height: 20px;
      border-radius: 50%;
      background: var(--teal-glow);
      border: 1px solid var(--teal);
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      font-size: 0.65rem;
      color: var(--teal);
    }

    .feature-list li strong {
      color: var(--white);
    }

    .feature-list li span {
      color: var(--slate-light);
    }

    /* ── DATA INTELLIGENCE ── */

    #data-intel {
      background: var(--navy-mid);
      text-align: center;
    }

    #data-intel .section-sub {
      margin-left: auto;
      margin-right: auto;
      text-align: center;
    }

    .data-pipeline {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0;
      flex-wrap: nowrap;
      margin: 56px auto 0;
      max-width: 1100px;
    }

    .pipeline-node {
      background: var(--card-bg);
      border: 1px solid var(--glass-border); box-shadow: var(--shadow-soft);
      border-radius: 14px;
      padding: 24px;
      flex: 1 1 0;
      height: 250px;
      width: 100%;
      max-width: 220px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      text-align: center;
      transition: all 0.3s;
      position: relative;
      overflow: hidden;
    }

    .pipeline-node::after {
      content: '';
      position: absolute;
      inset: 0;
      box-shadow: inset 0 0 20px var(--teal-glow);
      opacity: 0;
      transition: opacity 0.3s;
    }

    .pipeline-node.active-node {
      border-color: var(--teal);
      transform: scale(1.05);
      z-index: 2;
    }

    .pipeline-node.active-node::after {
      opacity: 1;
    }

    .pipeline-node:hover {
      border-color: var(--teal);
      background: rgba(59, 130, 246, 0.05);
      transform: translateY(-4px);
    }

    .node-icon {
      font-size: 2rem;
      margin-bottom: 12px;
      transition: transform 0.3s;
    }

    .pipeline-node.active-node .node-icon {
      transform: scale(1.2);
    }

    .node-title {
      font-family: 'Space Grotesk', sans-serif;
      font-size: 0.95rem;
      font-weight: 600;
      margin-bottom: 6px;
    }

    .node-desc {
      font-size: 0.78rem;
      color: var(--slate-light);
      line-height: 1.5;
      margin: 0;
    }

    .pipeline-arrow {
      color: var(--teal);
      font-size: 1.4rem;
      padding: 0 4px;
      flex-shrink: 0;
      position: relative;
      animation: arrowPulse 1.5s infinite;
      display: flex;
      justify-content: center;
      align-items: center;
    }

    .pipeline-arrow::after {
      content: '→';
    }

    @keyframes arrowPulse {
      0% {
        transform: translateX(0);
        opacity: 0.5;
      }

      50% {
        transform: translateX(5px);
        opacity: 1;
      }

      100% {
        transform: translateX(0);
        opacity: 0.5;
      }

    }

    @keyframes arrowPulseMobile {
      0% {
        transform: translateY(0);
        opacity: 0.5;
      }

      50% {
        transform: translateY(8px);
        opacity: 1;
      }

      100% {
        transform: translateY(0);
        opacity: 0.5;
      }

    }

    /* ── TRUST & COMPLIANCE ── */

    #trust {
      background: var(--navy);
    }

    .trust-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 20px;
      margin-top: 48px;
    }

    .trust-card {
      background: var(--card-bg);
      border: 1px solid var(--glass-border); box-shadow: var(--shadow-soft);
      border-radius: 14px;
      padding: 28px 24px;
      text-align: center;
      transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
      position: relative;
      overflow: hidden;
    }

    .trust-card::before {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(135deg, transparent, rgba(59, 130, 246, 0.1), transparent);
      transform: translateY(100%);
      transition: transform 0.4s ease;
      z-index: 0;
      pointer-events: none;
    }

    .trust-card:hover {
      transform: translateY(-6px);
      border-color: var(--teal);
      box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
    }

    .trust-card:hover::before {
      transform: translateY(0);
    }

    .trust-card>* {
      position: relative;
      z-index: 1;
    }

    .trust-badge {
      width: 60px;
      height: 60px;
      border-radius: 16px;
      margin: 0 auto 16px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.6rem;
    }

    .trust-title {
      font-family: 'Space Grotesk', sans-serif;
      font-size: 1rem;
      font-weight: 600;
      margin-bottom: 8px;
    }

    .trust-desc {
      font-size: 0.83rem;
      color: var(--slate-light);
      line-height: 1.6;
    }

    /* ── R&D SECTION ── */

    #rnd {
      background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
      position: relative;
      overflow: hidden;
    }

    #rnd::before {
      content: '';
      position: absolute;
      top: -50%;
      right: -20%;
      width: 600px;
      height: 600px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(59, 130, 246, 0.06) 0%, transparent 70%);
    }

    #rnd::after {
      content: '';
      position: absolute;
      inset: 0;
      background-image: radial-gradient(rgba(59, 130, 246, 0.15) 1px, transparent 1px);
      background-size: 40px 40px;
      opacity: 0.3;
      animation: floatRnd 20s linear infinite;
      pointer-events: none;
    }

    @keyframes floatRnd {
      0% {
        background-position: 0 0;
      }

      100% {
        background-position: 40px 40px;
      }

    }

    .rnd-layout {
      display: grid;
      grid-template-columns: 1fr 1.2fr;
      gap: 80px;
      align-items: center;
    }

    .rnd-cards {
      display: flex;
      flex-direction: column;
      gap: 16px;
    }

    .rnd-card {
      background: var(--card-bg);
      border: 1px solid var(--glass-border); box-shadow: var(--shadow-soft);
      border-radius: 12px;
      padding: 20px 24px;
      display: flex;
      align-items: flex-start;
      gap: 16px;
      transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    .rnd-card:hover {
      border-color: rgba(59, 130, 246, 0.4);
      background: rgba(59, 130, 246, 0.04);
      transform: translateX(10px);
    }

    .rnd-icon-wrap {
      width: 44px;
      height: 44px;
      border-radius: 10px;
      background: rgba(59, 130, 246, 0.1);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.2rem;
      flex-shrink: 0;
    }

    .rnd-card-title {
      font-family: 'Space Grotesk', sans-serif;
      font-size: 0.95rem;
      font-weight: 600;
      margin-bottom: 4px;
    }

    .rnd-card-desc {
      font-size: 0.82rem;
      color: var(--slate-light);
      line-height: 1.5;
    }

    /* ── CTA ── */

    #cta {
      background: linear-gradient(135deg, var(--navy-mid) 0%, var(--navy-light) 100%);
      text-align: center;
      position: relative;
      overflow: hidden;
    }

    #cta::before {
      content: '';
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 600px;
      height: 400px;
      border-radius: 50%;
      background: radial-gradient(ellipse, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
      pointer-events: none;
    }

    #cta .section-title {
      max-width: 600px;
      margin: 0 auto 16px;
    }

    #cta .section-sub {
      max-width: 480px;
      margin: 0 auto 40px;
    }

    .cta-actions {
      display: flex;
      gap: 14px;
      justify-content: center;
      flex-wrap: wrap;
    }

    /* ── FOOTER ── */

    footer {
      background: var(--bg-secondary);
      border-top: 1px solid var(--glass-border);
      padding: 60px 5% 32px;
    }

    .footer-grid {
      display: grid;
      grid-template-columns: 2fr repeat(4, 1fr);
      gap: 40px;
      margin-bottom: 48px;
    }

    .footer-brand p {
      color: var(--slate);
      font-size: 0.875rem;
      line-height: 1.7;
      margin-top: 14px;
      max-width: 260px;
    }

    .footer-col h4 {
      font-family: 'Space Grotesk', sans-serif;
      font-size: 0.85rem;
      font-weight: 600;
      margin-bottom: 16px;
      color: var(--white);
    }

    .footer-col ul {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .footer-col a {
      color: var(--slate);
      font-size: 0.82rem;
      text-decoration: none;
      transition: color 0.2s;
    }

    .footer-col a:hover {
      color: var(--teal);
    }

    .footer-bottom {
      border-top: 1px solid var(--glass-border);
      padding-top: 28px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 16px;
    }

    .footer-bottom p {
      color: var(--slate);
      font-size: 0.8rem;
    }

    .footer-badges {
      display: flex;
      gap: 10px;
    }

    .footer-badge {
      padding: 4px 10px;
      border-radius: 6px;
      border: 1px solid var(--glass-border); box-shadow: var(--shadow-soft);
      color: var(--slate);
      font-size: 0.7rem;
      font-weight: 500;
      letter-spacing: 0.04em;
    }

    /* ── MODAL ── */

    .modal-overlay {
      position: fixed;
      inset: 0;
      z-index: 1000;
      background: rgba(0, 0, 0, 0.75);
      backdrop-filter: blur(8px);
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 20px;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.3s;
    }

    .modal-overlay.active {
      opacity: 1;
      pointer-events: auto;
    }

    .modal {
      background: var(--bg-primary);
      border: 1px solid var(--glass-border); box-shadow: var(--shadow-soft);
      border-radius: 20px;
      padding: 40px;
      max-width: 480px;
      width: 100%;
      transform: translateY(20px);
      transition: transform 0.3s;
    }

    .modal-overlay.active .modal {
      transform: translateY(0);
    }

    .modal-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      margin-bottom: 28px;
    }

    .modal-title {
      font-family: 'Space Grotesk', sans-serif;
      font-size: 1.4rem;
      font-weight: 700;
    }

    .modal-close {
      background: none;
      border: none;
      color: var(--slate);
      font-size: 1.4rem;
      cursor: pointer;
      padding: 4px;
    }

    .modal-close:hover {
      color: var(--white);
    }

    .form-group {
      margin-bottom: 18px;
    }

    .form-group label {
      display: block;
      font-size: 0.82rem;
      font-weight: 500;
      color: var(--slate-light);
      margin-bottom: 6px;
    }

    .form-group input,

    .form-group select {
      width: 100%;
      padding: 12px 16px;
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid var(--glass-border); box-shadow: var(--shadow-soft);
      border-radius: 8px;
      color: var(--white);
      font-size: 0.9rem;
      font-family: 'Inter', sans-serif;
      transition: border-color 0.2s;
      outline: none;
    }

    .form-group input:focus,

    .form-group select:focus {
      border-color: var(--teal);
    }

    .form-group select option {
      background: var(--bg-primary);
    }

    .modal-submit {
      width: 100%;
      padding: 14px;
      background: var(--teal);
      color: var(--navy);
      border: none;
      border-radius: 10px;
      font-size: 0.95rem;
      font-weight: 700;
      cursor: pointer;
      font-family: 'Inter', sans-serif;
      margin-top: 8px;
      transition: all 0.2s;
    }

    .modal-submit:hover {
      background: #D32F2F;
    }

    .modal-switch {
      text-align: center;
      margin-top: 16px;
      font-size: 0.82rem;
      color: var(--slate);
    }

    .modal-switch a {
      color: var(--teal);
      text-decoration: none;
    }

    /* ── ANNOUNCE BANNER ── */

    .announce-banner {
      background: linear-gradient(90deg, rgba(59, 130, 246, 0.15), rgba(59, 130, 246, 0.05), rgba(59, 130, 246, 0.15));
      border-bottom: 1px solid rgba(59, 130, 246, 0.2);
      padding: 10px 5%;
      text-align: center;
      font-size: 0.82rem;
      color: var(--slate-light);
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      position: relative;
      z-index: 99;
    }

    .announce-banner strong {
      color: var(--teal);
    }

    .mobile-menu-btn {
      display: none;
      background: none;
      border: none;
      color: var(--white);
      cursor: pointer;
      z-index: 101;
    }

    .mobile-menu-btn svg {
      width: 28px;
      height: 28px;
      stroke: currentColor;
      stroke-width: 2;
    }

    .mobile-nav-overlay {
      position: fixed;
      inset: 0;
      background: rgba(255, 255, 255, 0.98);
      backdrop-filter: blur(12px);
      z-index: 98;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      gap: 32px;
      opacity: 0;
      visibility: hidden;
      transition: all 0.3s ease;
    }

    .mobile-nav-overlay.active {
      opacity: 1;
      visibility: visible;
    }

    .mobile-nav-overlay a {
      color: var(--white);
      text-decoration: none;
      font-size: 1.5rem;
      font-weight: 600;
      font-family: 'Space Grotesk', sans-serif;
    }

    .mobile-nav-overlay .btn-solid {
      margin-top: 16px;
      font-size: 1.2rem;
    }

    /* ── RESPONSIVE ── */

    @media (max-width: 900px) {
      .intel-layout,
      .rnd-layout {
        grid-template-columns: 1fr;
      }

      .footer-grid {
        grid-template-columns: 1fr 1fr;
      }

      .nav-links, .nav-cta {
        display: none;
      }

      .mobile-menu-btn {
        display: block;
      }

      .data-pipeline {
        gap: 12px;
        flex-direction: column;
      }

      .pipeline-node {
        flex: none;
        width: 100%;
        max-width: 280px;
        height: auto;
        min-height: 180px;
        padding: 20px;
      }

      .pipeline-arrow {
        animation: arrowPulseMobile 1.5s infinite;
        padding: 12px 0;
        transform: none;
      }

      .pipeline-arrow::after {
        content: '↓';
      }

      .hero-image-wrapper {
        opacity: 0.50 !important;
        right: -20% !important;
        width: 120% !important;
      }

    }

    @media (max-width: 600px) {
      .hero-stats {
        gap: 28px;
      }

      .footer-grid {
        grid-template-columns: 1fr;
      }

      .portals-grid {
        grid-template-columns: 1fr;
      }

    }

    /* ── STAKEHOLDER FILTER TABS ── */

    .how-filter-bar {
      display: flex;
      justify-content: center;
      gap: 10px;
      margin-bottom: 48px;
      flex-wrap: wrap;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
      padding-bottom: 4px;
    }

    .how-filter-bar::-webkit-scrollbar { display: none; }

    .how-filter-btn {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 10px 24px;
      border-radius: 50px;
      border: 1.5px solid var(--glass-border);
      background: var(--card-bg);
      color: var(--slate-light);
      font-family: 'Inter', sans-serif;
      font-size: 0.875rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      white-space: nowrap;
      flex-shrink: 0;
      letter-spacing: 0.02em;
      outline: none;
    }

    .how-filter-btn:hover {
      border-color: var(--accent-primary);
      color: var(--accent-primary);
      background: rgba(229, 57, 53, 0.05);
      transform: translateY(-2px);
    }

    .how-filter-btn.active {
      background: var(--accent-primary);
      border-color: var(--accent-primary);
      color: #fff;
      box-shadow: 0 6px 20px rgba(229, 57, 53, 0.3);
      transform: translateY(-2px);
    }

    .how-filter-btn .filter-icon {
      font-size: 1rem;
    }

    /* Grid transition wrapper */

    .how-grid-wrapper {
      position: relative;
      min-height: 200px;
      max-width: 1440px;
      margin: 0 auto;
      width: 100%;
    }

    .how-grid {
      transition: opacity 0.35s ease, transform 0.35s ease;
    }

    .how-grid.how-fade-out {
      opacity: 0;
      transform: translateY(16px);
      pointer-events: none;
    }

    .how-grid.how-fade-in {
      opacity: 1;
      transform: translateY(0);
    }

    @media (max-width: 768px) {
      .how-filter-bar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 14px;
        padding: 0 16px;
        margin-left: auto;
        margin-right: auto;
        max-width: 360px;
      }

      .how-filter-btn {
        width: 100%;
        min-height: 44px;
        padding: 10px 12px;
        font-size: 0.85rem;
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
      }

      /* Intelligence Engine 3-button filter bar explicitly kept as single row */

      #pipeline-filter-bar {
        display: flex;
        flex-wrap: nowrap;
        justify-content: center;
        align-items: center;
        gap: 12px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
      }

      #pipeline-filter-bar::-webkit-scrollbar {
        display: none;
      }

      #pipeline-filter-bar .how-filter-btn {
        flex-shrink: 0;
        width: auto;
      }

    }

    /* ── SCROLL REVEAL ── */

    /* ── SCROLL REVEAL ── */

    /* ── GSAP & ANIMATION BASE ── */

    .gsap-reveal {
      opacity: 0;
      visibility: hidden;
    }

    /* GSAP Transition Conflict Fix */

    .reveal:not(.gsap-ready),

    .portal-card:not(.gsap-ready),

    .rnd-card:not(.gsap-ready),

    .how-card:not(.gsap-ready),

    .intel-card:not(.gsap-ready),

    .trust-item:not(.gsap-ready) {
      transition: none !important;
    }

    @media (prefers-reduced-motion: reduce) {
      *,
      ::before,
      ::after {
        animation-delay: -1ms !important;
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        background-attachment: initial !important;
        scroll-behavior: auto !important;
        transition-duration: 0s !important;
        transition-delay: 0s !important;
      }

    }

    /* ── HERO IMAGE RESPONSIVE ── */

    .hero-image-wrapper {
      position: absolute;
      right: 0%;
      top: 45%;
      transform: translateY(-50%);
      width: 45%;
      max-width: 600px;
      z-index: 0;
      pointer-events: none;
    }

    .hero-image-wrapper img {
      width: 100%;
      height: auto;
      object-fit: contain;
      filter: drop-shadow(0 0 30px rgba(212, 175, 55, 0.4));
      opacity: 1;
    }

    @media (max-width: 1024px) {
      .hero-image-wrapper {
        right: auto;
        left: 50%;
        top: 45%;
        transform: translate(-50%, -50%);
        width: 55%;
      }

      .hero-image-wrapper img {
        opacity: 1;
      }

    }

    @media (max-width: 767px) {
      .hero-image-wrapper {
        width: 70%;
        top: 35%;
      }

      .hero-image-wrapper img {
        opacity: 1;
      }

    }

    /* Premium Card Design for Built for every stakeholder */

    .how-card.new-card-style {
      background: transparent !important;
      padding: 0 !important;
      border: none !important;
      box-shadow: none !important;
      text-align: left !important;
      overflow: visible !important;
      display: flex;
      flex-direction: column;
      position: relative;
      width: 100%;
      height: 100%;
      transition: transform 0.5s ease, opacity 0.5s ease !important;
    }

    .how-card.new-card-style:hover {
      background: transparent !important;
      box-shadow: none !important;
      transform: translateY(-8px) scale(1.02) !important;
    }

    .how-card.new-card-style::before,

    .how-card.new-card-style:hover::before,

    .how-card.new-card-style.active-flow::before {
      display: none !important;
    }

    .card-glow-bg {
      position: absolute;
      inset: -10px;
      opacity: 0.45;
      filter: blur(80px);
      z-index: 0;
      background: linear-gradient(135deg, #ff5ca8 0%, #ff9f43 25%, #5ad1ff 65%, #a66cff 100%);
      transition: opacity 0.5s ease;
      pointer-events: none;
    }

    .card-fg {
      position: relative;
      width: 100%;
      height: 100%;
      border-radius: 36px;
      z-index: 10;
      overflow: hidden;
      border: 4px solid transparent;
      background: linear-gradient(#FFFFFF, #FFFFFF) padding-box,
                  linear-gradient(135deg, #ff5ca8 0%, #ff9f43 25%, #5ad1ff 65%, #a66cff 100%) border-box;
      transition: filter 0.5s ease;
    }

    .how-card.new-card-style:hover .card-fg {
      filter: brightness(0.97);
    }

    .card-content-inner {
      width: 100%;
      height: 100%;
      padding: 20px;
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
      align-items: flex-start;
      border-radius: 32px;
    }

    .card-header-row {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 12px;
      width: 100%;
    }

    .card-icon-badge {
      width: 40px;
      height: 40px;
      border-radius: 12px;
      background: rgba(15, 23, 42, 0.05);
      border: 1px solid rgba(15, 23, 42, 0.1);
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--text-primary);
      transition: background 0.5s ease;
      flex-shrink: 0;
    }

    .card-icon-badge svg {
      width: 20px;
      height: 20px;
      stroke-width: 2.25;
    }

    .how-card.new-card-style:hover .card-icon-badge {
      background: rgba(15, 23, 42, 0.08);
    }

    /* -- Category Specific backgrounds for how-cards -- */
    .how-card.new-card-style .card-glow-bg {
      display: none !important;
    }
    
    .how-card.new-card-style .card-fg {
      border: 2px solid var(--border) !important;
      transition: all 0.3s ease !important;
    }

    .how-card-patient .card-fg {
      background: #EFF6FF !important;
      border-color: rgba(59, 130, 246, 0.4) !important;
    }
    .how-card-patient:hover .card-fg {
      background: #DBEAFE !important;
      border-color: #3B82F6 !important;
      box-shadow: 0 12px 30px rgba(59, 130, 246, 0.15) !important;
    }

    .how-card-doctor .card-fg {
      background: #ECEFFE !important;
      border-color: rgba(99, 102, 241, 0.4) !important;
    }
    .how-card-doctor:hover .card-fg {
      background: #D3DAFD !important;
      border-color: #818CF8 !important;
      box-shadow: 0 12px 30px rgba(99, 102, 241, 0.15) !important;
    }

    .how-card-pharmacy .card-fg {
      background: #FDF2F7 !important;
      border-color: rgba(244, 114, 182, 0.4) !important;
    }
    .how-card-pharmacy:hover .card-fg {
      background: #FCE1EE !important;
      border-color: #F472B6 !important;
      box-shadow: 0 12px 30px rgba(244, 114, 182, 0.15) !important;
    }

    .how-card-research .card-fg {
      background: #EFF6FF !important;
      border-color: rgba(59, 130, 246, 0.4) !important;
    }
    .how-card-research:hover .card-fg {
      background: #DBEAFE !important;
      border-color: #3B82F6 !important;
      box-shadow: 0 12px 30px rgba(59, 130, 246, 0.15) !important;
    }

    .card-title-text {
      color: var(--text-primary);
      font-weight: 700;
      font-size: 17px;
      letter-spacing: -0.015em;
      line-height: 1.3;
      text-align: left;
    }

    .card-desc-text {
      color: var(--text-secondary);
      font-size: 15px;
      line-height: 26px;
      font-weight: 400;
      margin: 0;
      text-align: left;
    }

    .card-desc-text::selection {
      background: rgba(255, 255, 255, 0.2);
    }

    /* Responsive Breakpoints for Platform Flow */

    @media (max-width: 1439px) {
      #how {
        padding-left: 32px;
        padding-right: 32px;
      }

      .how-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
      }

      .portals-grid {
        grid-template-columns: repeat(3, 1fr);
      }

    }

    @media (max-width: 1023px) {
      #how {
        padding-left: 24px;
        padding-right: 24px;
      }

      .how-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
      }

      .portals-grid {
        grid-template-columns: repeat(2, 1fr);
      }

    }

    @media (max-width: 767px) {
      * {
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        background-attachment: initial !important;
        scroll-behavior: auto !important;
        transition-duration: 0s !important;
        transition-delay: 0s !important;
      }
    }

    /* ── HERO IMAGE RESPONSIVE ── */

    .hero-image-wrapper {
      position: absolute;
      right: 0%;
      top: 45%;
      transform: translateY(-50%);
      width: 45%;
      max-width: 600px;
      z-index: 0;
      pointer-events: none;
    }

    .hero-image-wrapper img {
      width: 100%;
      height: auto;
      object-fit: contain;
      filter: drop-shadow(0 0 30px rgba(212, 175, 55, 0.4));
      opacity: 1;
    }

    @media (max-width: 1024px) {
      .hero-image-wrapper {
        right: auto;
        left: 50%;
        top: 45%;
        transform: translate(-50%, -50%);
        width: 55%;
      }

      .hero-image-wrapper img {
        opacity: 1;
      }

    }

    @media (max-width: 767px) {
      .hero-image-wrapper {
        width: 70%;
        top: 35%;
      }

      .hero-image-wrapper img {
        opacity: 1;
      }

    }

    /* Responsive Breakpoints for Platform Flow */

    @media (max-width: 1439px) {
      #how {
        padding-left: 32px;
        padding-right: 32px;
      }

      .how-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
      }

      .portals-grid {
        grid-template-columns: repeat(3, 1fr);
      }

    }

    @media (max-width: 1023px) {
      #how {
        padding-left: 24px;
        padding-right: 24px;
      }

      .how-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
      }

      .portals-grid {
        grid-template-columns: repeat(2, 1fr);
      }

    }

    @media (max-width: 767px) {
      #how {
        padding-left: 16px;
        padding-right: 16px;
      }

      .how-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
      }

      .portals-grid {
        grid-template-columns: 1fr !important;
      }

    }

    @media (max-width: 768px) {
      /* Force no horizontal overflow and ensure full-width layout */
      html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100vw !important;
      }

      /* Ensure sections and containers fit properly without pushing bounds */

      section, header, footer, nav, .mobile-nav-overlay, div {
        box-sizing: border-box !important;
        max-width: 100vw !important;
      }

      /* Adjust section padding to remove extra side spacing and keep content centered */

      section {
        padding-left: 20px !important;
        padding-right: 20px !important;
      }

      /* Allow text to break if it's too long */

      p, h1, h2, h3, h4, h5, h6, a, span {
        word-wrap: break-word;
        overflow-wrap: break-word;
      }

      /* Proportional scaling for images and media */

      img, video, iframe, canvas {
        max-width: 100%;
        height: auto;
      }

      /* Specific override for hero background image on mobile devices */

      #hero {
        min-height: auto !important;
        height: auto !important;
        padding-top: 110px !important;
        padding-bottom: 70px !important;
        background: radial-gradient(circle at center, rgba(255, 255, 255, 0.75) 0%, #FFFFFF 100%) !important;
      }

      .hero-bg-video {
        max-width: 45% !important;
        max-height: 30% !important;
        width: auto !important;
        height: auto !important;
        object-fit: contain !important;
        top: 60% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        opacity: 0.25 !important;
        position: absolute !important;
        z-index: 0 !important;
      }

      .hero-content {
        position: relative !important;
        z-index: 1 !important;
      }

      .hero-headline {
        font-size: clamp(1.8rem, 7vw, 2.5rem) !important;
        line-height: 1.2 !important;
        margin-bottom: 16px !important;
      }

      .hero-sub {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
        margin-bottom: 28px !important;
      }

      .hero-actions {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
        margin-bottom: 48px !important;
      }

      .btn-hero, .btn-hero-ghost {
        width: 100% !important;
        text-align: center !important;
        justify-content: center !important;
      }

      .hero-stats {
        gap: 20px 16px !important;
        justify-content: space-between !important;
      }

      .stat-item {
        flex: 1 1 45% !important;
        align-items: center !important;
        text-align: center !important;
      }

      /* Reset any hardcoded widths that exceed mobile viewport */

      .section-title, .section-sub, .hero-content, .form-container, [style*="width"] {
        max-width: 100% !important;
      }

    }

/* -- Skip to Content Link -- */

.skip-link {
  position: absolute;
  top: -100px;
  left: 5%;
  background: var(--accent-primary);
  color: var(--navy);
  padding: 10px 20px;
  z-index: 1100;
  transition: top 0.2s;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 8px 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.875rem;
}

.skip-link:focus {
  top: 0;
}

/* -- Form Error Message Styling -- */

.error-msg {
  color: #FF4D4D;
  font-size: 0.8rem;
  margin-top: 4px;
  display: none;
}

/* -- SVG Flow Animation Styles -- */

.svg-flow-wrapper {
  overflow-x: auto;
  width: 100%;
  scrollbar-width: none;
  margin: 56px auto 0;
  border-radius: 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft);
  padding: 40px 20px;
}

.svg-flow-wrapper::-webkit-scrollbar {
  display: none;
}

.svg-flow-container {
  min-width: 900px;
  margin: 0 auto;
}

.flow-node {
  cursor: pointer;
}

.flow-node circle,

.flow-node foreignObject {
  transition: transform 0.3s ease;
  transform-box: fill-box;
  transform-origin: center;
}

.flow-node:hover circle,

.flow-node:hover foreignObject {
  transform: scale(1.08);
}

/* -- Showcase & Mockup Styles -- */

#showcase-img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  object-fit: contain;
}

/* -- Lucide Icon Alignment -- */

.filter-icon i, .portal-icon i, .rnd-icon-wrap i, .trust-badge i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}

.portal-icon i {
  width: 24px;
  height: 24px;
}

/* -- Carousel Nav Button Styles -- */
.carousel-nav-btn {
  color: var(--text-primary) !important;
}
.carousel-nav-btn svg {
  stroke: var(--text-primary) !important;
  width: 20px !important;
  height: 20px !important;
  display: block;
}
.carousel-nav-btn:hover {
  background: #FFFFFF !important;
  color: var(--teal) !important;
  transform: translateY(-50%) scale(1.08) !important;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.15) !important;
}
.carousel-nav-btn:hover svg {
  stroke: var(--teal) !important;
}
.carousel-nav-btn:active {
  transform: translateY(-50%) scale(0.95) !important;
}

/* -- Focus States for Keyboard Accessibility -- */

a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible {
  outline: 2px solid var(--accent-primary) !important;
  outline-offset: 2px !important;
}