:root {
    --blue-50: #E6F1FB;
    --blue-100: #B5D4F4;
    --blue-200: #85B7EB;
    --blue-400: #378ADD;
    --blue-600: #185FA5;
    --blue-800: #0C447C;
    --blue-900: #042C53;
    --white: #ffffff;
    --off-white: #F7FAFD;
    --light-gray: #EEF3F8;
    --text-dark: #0a1628;
    --text-mid: #3a4a60;
    --text-light: #7a8ea8;
    --border: rgba(23,95,165,0.12);
    --radius: 16px;
    --radius-sm: 8px;
  }

  *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

  html { scroll-behavior: smooth; }

  body {
    font-family: 'DM Sans', sans-serif;
    color: var(--text-dark);
    background: var(--white);
    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 6vw; height: 68px;
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow 0.3s;
  }
  nav.scrolled { box-shadow: 0 4px 32px rgba(23,95,165,0.10); }

  .nav-logo {
    font-family: 'Syne', sans-serif;
    font-weight: 800; font-size: 1.5rem;
    color: var(--blue-800); letter-spacing: -0.02em;
    text-decoration: none;
  }
  .nav-logo span { color: var(--blue-400); }

  .nav-links { display: flex; gap: 2rem; list-style: none; }
  .nav-links a {
    font-size: 0.9rem; font-weight: 500; color: var(--text-mid);
    text-decoration: none; letter-spacing: 0.02em;
    transition: color 0.2s;
  }
  .nav-links a:hover { color: var(--blue-600); }

  .nav-cta {
    background: var(--blue-600); color: #fff;
    padding: 0.55rem 1.4rem; border-radius: 100px;
    font-size: 0.875rem; font-weight: 500;
    text-decoration: none; transition: background 0.2s, transform 0.15s;
  }
  .nav-cta:hover { background: var(--blue-800); transform: translateY(-1px); }

  .lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-left: 1rem;
  }
  .lang-btn {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.65rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: none;
    color: var(--text-light);
    transition: background 0.2s, color 0.2s, transform 0.15s;
    border: 1px solid transparent;
  }
  .lang-btn:hover {
    color: var(--blue-600);
    background: var(--blue-50);
    border-color: var(--blue-100);
    transform: translateY(-1px);
  }
  .lang-btn.active {
    color: var(--blue-700);
    background: var(--blue-50);
    border-color: var(--blue-200);
    font-weight: 700;
  }
  .lang-flag {
    font-size: 1rem;
    line-height: 1;
  }

  /* ── HERO ── */
  #hero {
    min-height: 100vh;
    background: linear-gradient(155deg, var(--blue-900) 0%, var(--blue-800) 40%, var(--blue-600) 100%);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 110px 6vw 80px;
    text-align: center;
    position: relative; overflow: hidden;
  }

.hero-grid {
  position: absolute; 
  inset: 0; 
  pointer-events: none;
  background-image: url("../images/HeroBackground.jpeg");
  background-size: cover; 
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.15;
}

  /* ── HERO MOBILE ── */

  @media (max-width: 768px) {
    #hero {
      min-height: 80vh; 
      padding: 140px 6vw 60px;
    }

    .hero-grid {
      /* This replaces the image ONLY on mobile screens */
      background-image: url("../images/HeroBackgroundSmall.jpeg"); 
      
      /* Anchors it to the left and prevents distortion */
      background-size: cover;
      background-position: center center; 
      opacity: 0.15; 
    }
  }
  

  /* ───────────────── */

  .hero-pill {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25);
    color: rgba(255,255,255,0.9); font-size: 0.8rem; font-weight: 500;
    padding: 0.4rem 1rem; border-radius: 100px;
    margin-bottom: 2rem; letter-spacing: 0.06em; text-transform: uppercase;
    animation: fadeUp 0.6s ease both;
  }
  .hero-pill::before {
    content: ''; width: 6px; height: 6px; border-radius: 50%;
    background: #6EE7B7; box-shadow: 0 0 8px #6EE7B7;
    animation: pulse 2s ease-in-out infinite;
  }
  @keyframes pulse { 0%,100%{opacity:1}50%{opacity:0.3} }

  #hero h1 {
    font-family: 'Syne', sans-serif;
    font-weight: 800; font-size: clamp(2.8rem, 7vw, 5.2rem);
    color: #fff; line-height: 1.1; letter-spacing: -0.03em;
    max-width: 1000px; margin-bottom: 1.5rem;
    animation: fadeUp 0.6s 0.1s ease both;
  }
  #hero h1 em { font-style: normal; color: var(--blue-200); }

  #hero p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255,255,255,0.8); font-weight: 300; line-height: 1.7;
    max-width: 640px; margin-bottom: 2.5rem;
    animation: fadeUp 0.6s 0.2s ease both;
  }

  .hero-actions {
    display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center;
    animation: fadeUp 0.6s 0.3s ease both;
    z-index: 5;
  }
  .btn-primary {
    background: #fff; color: var(--blue-800);
    padding: 0.85rem 2rem; border-radius: 100px;
    font-size: 0.95rem; font-weight: 600;
    text-decoration: none; transition: all 0.2s;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  }
  .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(0,0,0,0.25); }
  .btn-outline {
    border: 2px solid rgba(255,255,255,0.4); color: #fff;
    padding: 0.85rem 2rem; border-radius: 100px;
    font-size: 0.95rem; font-weight: 500;
    text-decoration: none; transition: all 0.2s;
    background: transparent;
  }
  .btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

  .hero-stats {
    display: flex; gap: 4rem; margin-top: 4rem;
    animation: fadeUp 0.6s 0.4s ease both;
  }
  .hero-stat { text-align: center; }
  .hero-stat strong {
    display: block; font-family: 'Syne', sans-serif;
    font-size: 2.5rem; font-weight: 800; color: #fff;
  }
  .hero-stat span { font-size: 0.8rem; color: rgba(255,255,255,0.6); letter-spacing: 0.04em; text-transform: uppercase; }

  @keyframes fadeUp { from { opacity:0; transform:translateY(24px); } to { opacity:1; transform:translateY(0); } }

  /* ── SECTIONS SHARED ── */
  section { padding: 96px 6vw; }
  .section-label {
    display: inline-block;
    font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--blue-600);
    margin-bottom: 1rem;
  }
  .section-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800; letter-spacing: -0.03em;
    line-height: 1.1; color: var(--text-dark);
    margin-bottom: 1.2rem;
  }
  .section-sub {
    font-size: 1.05rem; color: var(--text-mid);
    font-weight: 400; line-height: 1.7;
    max-width: 560px;
  }
  .centered { text-align: center; }
  .centered .section-sub { margin: 0 auto; }

  /* ── FEATURES ── */
  #features { background: var(--off-white); }
  .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem; margin-top: 3.5rem;
  }
  .feature-card {
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 2.5rem 2rem;
    transition: transform 0.25s, box-shadow 0.25s;
    position: relative; overflow: hidden;
  }
  .feature-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0;
    height: 3px; background: linear-gradient(90deg, var(--blue-400), var(--blue-200));
    opacity: 0; transition: opacity 0.25s;
  }
  .feature-card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(23,95,165,0.12); }
  .feature-card:hover::before { opacity: 1; }
  .feature-icon {
    width: 48px; height: 48px; border-radius: 12px;
    background: var(--blue-50); display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.4rem;
  }
  .feature-icon svg { width: 24px; height: 24px; stroke: var(--blue-600); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .feature-card h3 {
    font-family: 'Syne', sans-serif; font-size: 1.15rem; font-weight: 700;
    margin-bottom: 0.6rem; color: var(--text-dark);
  }
  .feature-card p { font-size: 0.9rem; color: var(--text-mid); line-height: 1.65; font-weight: 400; }

  /* ── SLIDESHOW ── */
  #gallery { background: var(--blue-900); padding: 80px 0; overflow: hidden; }
  .gallery-header { padding: 0 6vw; margin-bottom: 2.5rem; }
  .gallery-header .section-title { color: #fff; }
  .gallery-header .section-label { color: var(--blue-200); }
  .gallery-header .section-sub { color: rgba(255,255,255,0.65); }

  .slideshow-track-outer {
    position: relative; overflow: hidden;
  }
  .slideshow-track {
    display: flex; gap: 20px;
    width: max-content;
    animation: scrollTrack 40s linear infinite;
  }
  .slideshow-track:hover { animation-play-state: paused; }
  @keyframes scrollTrack {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
  }
  .slide-card {
    width: 340px; height: 240px; flex-shrink: 0;
    border-radius: var(--radius); overflow: hidden;
    position: relative;
  }
  .slide-card img {
    width: 100%; height: 100%; object-fit: cover;
    display: block; transition: transform 0.5s;
  }
  .slide-card:hover img { transform: scale(1.05); }
  .slide-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(4,44,83,0.85) 0%, transparent 60%);
    display: flex; align-items: flex-end; padding: 1.2rem 1.4rem;
  }
  .slide-overlay span {
    color: #fff; font-size: 0.85rem; font-weight: 500; letter-spacing: 0.04em;
  }
  .track-fade-l, .track-fade-r {
    position: absolute; top: 0; bottom: 0; width: 100px; pointer-events: none; z-index: 2;
  }
  .track-fade-l { left: 0; background: linear-gradient(to right, var(--blue-900), transparent); }
  .track-fade-r { right: 0; background: linear-gradient(to left, var(--blue-900), transparent); }

  /* ── PRODUCTS ── */
  #products { background: var(--white); }
  .products-layout {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem; margin-top: 3.5rem;
    align-items: start;
  }
  .product-card {
    border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; transition: transform 0.25s, box-shadow 0.25s;
    background: var(--white);
  }
  .product-card:hover { transform: translateY(-4px); box-shadow: 0 20px 56px rgba(23,95,165,0.12); }
  .product-card.featured {
    border-color: var(--blue-400); box-shadow: 0 10px 30px rgba(23,95,165,0.05);
  }
  .product-image {
    height: 220px; overflow: hidden;
    background: linear-gradient(135deg, var(--blue-50) 0%, var(--blue-100) 100%);
    display: flex; align-items: center; justify-content: center;
    font-size: 5rem; position: relative;
  }
  .product-badge {
    position: absolute; top: 1rem; left: 1rem;
    background: var(--blue-600); color: #fff;
    font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em;
    text-transform: uppercase; padding: 0.3rem 0.75rem; border-radius: 100px;
  }
  .product-info { padding: 1.75rem; }
  .product-info h3 {
    font-family: 'Syne', sans-serif; font-size: 1.3rem; font-weight: 800;
    margin-bottom: 0.5rem; color: var(--text-dark);
  }
  .product-info p { font-size: 0.9rem; color: var(--text-mid); line-height: 1.65; font-weight: 400; margin-bottom: 1.2rem; }
  .product-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
  .tag {
    background: var(--blue-50); color: var(--blue-800);
    font-size: 0.75rem; font-weight: 500; padding: 0.3rem 0.75rem;
    border-radius: 100px; border: 1px solid var(--blue-100);
  }
  .product-price {
    font-family: 'Syne', sans-serif; font-size: 1.5rem; font-weight: 800;
    color: var(--blue-700);
  }
  .product-price small { font-size: 0.8rem; color: var(--text-light); font-weight: 400; font-family: 'DM Sans', sans-serif; }

  /* ── HOW IT WORKS ── */
  #how { background: var(--off-white); }
  .steps {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem; margin-top: 3.5rem; position: relative;
  }
  .step {
    padding: 2rem; background: var(--white); border-radius: var(--radius); border: 1px solid var(--border);
  }
  .step-num {
    font-family: 'Syne', sans-serif; font-size: 2.5rem; font-weight: 800;
    color: var(--blue-200); line-height: 1; margin-bottom: 1rem;
  }
  .step h3 {
    font-family: 'Syne', sans-serif; font-size: 1.1rem; font-weight: 700;
    margin-bottom: 0.5rem; color: var(--text-dark);
  }
  .step p { font-size: 0.875rem; color: var(--text-mid); line-height: 1.65; font-weight: 400; }

  /* ── LOI SECTION ── */
  #loi { background: var(--white); }
  .loi-container {
    display: grid; grid-template-columns: 1fr 1.2fr;
    gap: 4rem; margin-top: 3rem; align-items: start;
  }
  .loi-info p {
    font-size: 0.95rem; color: var(--text-mid); line-height: 1.75;
    font-weight: 400; margin-bottom: 1.5rem;
  }
  .loi-bullets { list-style: none; }
  .loi-bullets li {
    display: flex; align-items: flex-start; gap: 0.75rem;
    font-size: 0.9rem; color: var(--text-mid); margin-bottom: 0.9rem;
    font-weight: 400;
  }
  .loi-bullets li::before {
    content: ''; width: 8px; height: 8px; border-radius: 50%;
    background: var(--blue-400); flex-shrink: 0; margin-top: 0.4rem;
  }

  .loi-form {
    background: var(--off-white); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 2.5rem;
  }
  .loi-form h3 {
    font-family: 'Syne', sans-serif; font-size: 1.3rem; font-weight: 800;
    color: var(--text-dark); margin-bottom: 1.75rem;
  }
  .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
  .form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
  .form-group label {
    font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em;
    text-transform: uppercase; color: var(--text-mid);
  }
  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 0.75rem 1rem; border-radius: var(--radius-sm);
    border: 1px solid var(--border); background: var(--white);
    font-family: 'DM Sans', sans-serif; font-size: 0.9rem;
    color: var(--text-dark); transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
  }
  .form-group input:focus,
  .form-group select:focus,
  .form-group textarea:focus {
    border-color: var(--blue-400);
    box-shadow: 0 0 0 3px rgba(55,138,221,0.12);
  }
  .form-group textarea { min-height: 100px; resize: vertical; }
  .form-submit {
    width: 100%; padding: 0.9rem;
    background: var(--blue-600); color: #fff; border: none;
    border-radius: 100px; font-family: 'Syne', sans-serif;
    font-size: 0.95rem; font-weight: 600; cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    margin-top: 0.5rem;
  }
  .form-submit:hover { background: var(--blue-800); transform: translateY(-1px); }
  .form-submit:disabled { background: var(--text-light); cursor: not-allowed; transform: none; }
  .form-success {
    display: none; text-align: center; padding: 2rem;
  }
  .form-success h4 {
    font-family: 'Syne', sans-serif; font-size: 1.2rem; font-weight: 800;
    color: var(--blue-800); margin-bottom: 0.5rem;
  }
  .form-success p { color: var(--text-mid); font-size: 0.9rem; }
  .checkmark-circle {
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--blue-50); border: 2px solid var(--blue-200);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
  }

  /* ── CONTACT ── */
  #contact { background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-800) 100%); }
  #contact .section-title { color: #fff; }
  #contact .section-label { color: var(--blue-200); }

  .contact-grid {
    display: grid; grid-template-columns: 1.2fr 1fr;
    gap: 4rem; margin-top: 3rem; align-items: start;
  }

  .contact-form-box {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius); padding: 2.5rem;
  }
  .contact-form-box .form-group label { color: rgba(255,255,255,0.6); }
  .contact-form-box .form-group input,
  .contact-form-box .form-group textarea,
  .contact-form-box .form-group select {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.15);
    color: #fff;
  }
  .contact-form-box .form-group input::placeholder,
  .contact-form-box .form-group textarea::placeholder { color: rgba(255,255,255,0.35); }
  .contact-form-box .form-group input:focus,
  .contact-form-box .form-group textarea:focus {
    border-color: var(--blue-200);
    box-shadow: 0 0 0 3px rgba(133,183,235,0.15);
  }

  .contact-form-box .form-group select option {
    color: #fff;
    background-color: var(--blue-900);
  }

  .contact-form-box .form-submit { background: #fff; color: var(--blue-800); }
  .contact-form-box .form-submit:hover { background: var(--blue-50); }

  .contact-info p {
    color: rgba(255,255,255,0.7); font-size: 1rem;
    line-height: 1.75; font-weight: 300; margin-bottom: 2.5rem;
  }
  .contact-cards { display: flex; flex-direction: column; gap: 1rem; }
  .contact-card {
    display: flex; align-items: center; gap: 1rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-sm); padding: 1.2rem 1.5rem;
  }
  .contact-card-icon {
    width: 40px; height: 40px; border-radius: 10px;
    background: rgba(55,138,221,0.25); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  }
  .contact-card-icon svg { width: 20px; height: 20px; stroke: var(--blue-200); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .contact-card-text strong { display: block; color: #fff; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.15rem; }
  .contact-card-text span { color: rgba(255,255,255,0.6); font-size: 0.8rem; }

  /* ── FOOTER ── */
  footer {
    background: var(--text-dark); color: rgba(255,255,255,0.5);
    padding: 3rem 6vw; text-align: center;
  }
  footer .footer-logo {
    font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.4rem;
    color: #fff; margin-bottom: 1rem; display: block;
    letter-spacing: -0.02em;
  }
  footer .footer-logo span { color: var(--blue-400); }
  footer p { font-size: 0.8rem; line-height: 1.6; }
  footer nav {
    position: static; background: none; border: none;
    display: flex; justify-content: center; gap: 2rem;
    flex-wrap: wrap; margin: 1.2rem 0; padding: 0; height: auto;
    backdrop-filter: none;
  }
  footer nav a {
    color: rgba(255,255,255,0.5); font-size: 0.8rem;
    text-decoration: none; transition: color 0.2s;
  }
  footer nav a:hover { color: #fff; }

  /* ── RESPONSIVE ── */
  @media (max-width: 768px) {
    .products-layout { grid-template-columns: 1fr; }
    .loi-container { grid-template-columns: 1fr; gap: 2rem; }
    .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
    .form-row { grid-template-columns: 1fr; }
    .hero-stats { gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
    nav .nav-links li:not(.lang-switcher) { display: none; }
  }