/* Mobile-First SXO/MEO Optimizations */
@media (max-width: 768px) {
  /* Enhanced mobile navigation */
  .nav-links { 
    display: none; 
    position: absolute; 
    top: 100%; 
    left: 0; 
    right: 0; 
    background: rgba(11,16,32,0.95); 
    backdrop-filter: blur(20px); 
    flex-direction: column; 
    padding: 20px; 
    gap: 16px; 
    border-top: 1px solid var(--border); 
  }
  .nav-links.active { display: flex; }
  .nav-toggle { display: block; }
  
  /* Mobile-optimized hero section */
  .hero { padding: 40px 0; }
  .hero-title { 
    font-size: 2.2rem; 
    line-height: 1.2; 
    margin-bottom: 1rem; 
  }
  .hero-subtitle { 
    font-size: 1rem; 
    line-height: 1.5; 
    margin-bottom: 1.5rem; 
  }
  
  /* Mobile-optimized buttons */
  .btn { 
    padding: 14px 20px; 
    font-size: 0.9rem; 
    min-height: 48px; /* Touch-friendly size */
    justify-content: center; 
  }
  
  /* Mobile-optimized contact form */
  .contact-form { 
    padding: 20px; 
    margin: 20px 0; 
  }
  .contact-form input, 
  .contact-form textarea { 
    font-size: 16px; /* Prevents zoom on iOS */
    padding: 14px; 
    min-height: 48px; 
  }
  
  /* Mobile-optimized FAQ section */
  .faq-item { 
    margin-bottom: 0.5rem; 
  }
  .faq-question { 
    padding: 1rem; 
    font-size: 1rem; 
  }
  .faq-answer { 
    padding: 0 1rem 1rem; 
    font-size: 0.9rem; 
  }
  
  /* Mobile typography improvements */
  h1 { font-size: 2rem; line-height: 1.2; }
  h2 { font-size: 1.6rem; line-height: 1.3; }
  h3 { font-size: 1.3rem; line-height: 1.4; }
  p { font-size: 0.95rem; line-height: 1.6; }
  
  /* Mobile spacing optimizations */
  .container { padding: 0 16px; }
  section { padding: 2rem 0; }
  
  /* Mobile-optimized cards */
  .card, .panel { 
    margin: 10px 0; 
    padding: 16px; 
  }
}

/* Tablet optimizations */
@media (min-width: 769px) and (max-width: 1024px) {
  .container { padding: 0 20px; }
  .hero-title { font-size: 2.8rem; }
  .nav-links { gap: 20px; }
}

/* Large screen optimizations */
@media (min-width: 1400px) {
  .container { max-width: 1280px; }
  .hero-title { font-size: 4rem; }
}

/* Performance optimizations */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus improvements for keyboard navigation */
.btn:focus,
.nav-links a:focus,
input:focus,
textarea:focus,
.faq-question:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* styles.css — 4eHealth Corporate Site */
:root {
  --bg: #0b1020;
  --panel: rgba(255,255,255,0.06);
  --glass: rgba(255,255,255,0.08);
  --border: rgba(255,255,255,0.12);
  --text: #e6eaf5;
  --muted: #a3acc7;
  --primary: #7C3AED; /* violet */
  --cyan: #1E90FF; /* cyan */
  --green: #10B981; /* green */
  --accent: #0EA5E9; /* sky */
  --danger: #EF4444;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0,0,0,0.35);
  --gate-blue: #1363DF;
  --accent: #1363DF;
}
/* Light theme variables */
.theme-light{
  --bg: #f7f9fc;
  --panel: rgba(255,255,255,0.4);
  --glass: rgba(255,255,255,0.75);
  --border: rgba(2,6,23,0.08);
  --text: #0f172a;
  --muted: #475569;
  --shadow: 0 8px 24px rgba(2,6,23,0.08);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 800px at 10% 10%, rgba(124,58,237,0.15), transparent 60%),
              radial-gradient(800px 900px at 90% 20%, rgba(34,211,238,0.12), transparent 60%),
              radial-gradient(1000px 700px at 50% 90%, rgba(16,185,129,0.10), transparent 60%),
              var(--bg);
}
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Navigation */
/* removed invalid diff marker line for .nav */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(140%) blur(12px); border-bottom: 1px solid var(--border); background: linear-gradient(180deg, rgba(11,16,32,0.55), rgba(11,16,32,0.25)); }

/* Header Logo Size Control - Increased by 25% from 30px to 37.5px */
.nav img[src*="gate-logo4e.png"], 
header img[src*="gate-logo4e.png"],
nav img[src*="gate-logo4e.png"] {
    height: 37.5px !important;
    width: auto !important;
}
.theme-light .nav{ background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,255,255,0.66)); }
.nav .nav-inner{ display:flex; align-items:center; justify-content:space-between; min-height:80px; padding: 18px 0; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); font-weight: 700; letter-spacing: 0.2px; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: var(--text); text-decoration: none; opacity: 0.9; font-weight: 500; }
.nav-links a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 600; letter-spacing: 0.2px; }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { color: var(--text); text-decoration: none; opacity: 0.85; }
.nav-links a:hover { opacity: 1; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 10px; text-decoration: none; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; transition: transform 0.12s ease-out, box-shadow 0.12s ease-out; border: 1px solid transparent; font-family: "Space Grotesk", Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif; background: #fbbf24; color: #1b2430; border-color: rgba(0,0,0,0.08); }
.btn-primary { background: #fbbf24; color: #1b2430; border-color: rgba(0,0,0,0.08); }
.btn-secondary { background: #fbbf24; color: #1b2430; border-color: rgba(0,0,0,0.08); }
.btn-tertiary { background: #fbbf24; color: #1b2430; border-color: rgba(0,0,0,0.08); }
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(251,191,36,0.28); }
.btn-link { color: var(--accent); text-decoration: none; font-weight: 600; }
.btn-link:hover { text-decoration: underline; }
.btn-whatsapp { background: #25D366; color: #ffffff; border-color: rgba(0,0,0,0.08); }

/* Contact Form Button - Black by default, green on hover/click */
.btn-contact { 
  background: #2d3748; 
  color: #ffffff; 
  border-color: rgba(0,0,0,0.15); 
  min-width: 200px; 
  justify-content: center; 
  padding: 14px 24px; 
}
.btn-contact:hover, .btn-contact:active, .btn-contact:focus { 
  background: #22c55e; 
  transform: translateY(-1px); 
  box-shadow: 0 8px 24px rgba(34,197,94,0.35); 
}

/* Hero */
.hero { position: relative; padding: 64px 0 0; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; filter: brightness(0.92); }
.logo-sweep{ position:absolute; top: 12%; right: -22%; width: 220px; opacity: 0.95; filter: drop-shadow(0 8px 28px rgba(0,0,0,0.28)); animation: sweep-left 12s linear infinite; }
.logo-sweep--ghost{ opacity: 0.35; filter: none; animation-duration: 12s; animation-delay: 2s; }
.logo-sweep.row-2{ top: 36%; width: 260px; animation-duration: 14s; animation-delay: 1.2s; }
.logo-sweep.row-3{ top: 62%; width: 200px; animation-duration: 16s; animation-delay: 2.6s; }
@keyframes sweep-left{ 0%{ transform: translateX(0) rotate(0deg); } 45%{ transform: translateX(-120vw) rotate(-2deg); } 50%{ transform: translateX(-120vw) rotate(-2deg); } 100%{ transform: translateX(0) rotate(0deg); } }
.orb { position: absolute; width: 420px; height: 420px; border-radius: 50%; filter: blur(60px); opacity: 0.28; mix-blend-mode: screen; }
.orb-1 { background: radial-gradient(circle, var(--primary), transparent 60%); top: -80px; left: -80px; }
.orb-2 { background: radial-gradient(circle, var(--cyan), transparent 60%); top: 22%; right: -120px; }
.orb-3 { background: radial-gradient(circle, var(--green), transparent 60%); bottom: -110px; left: 38%; }
.hero-content { position: relative; text-align: left; }
/* Enhanced hero typography */
.hero-title{ font-family: "Space Grotesk", Inter, sans-serif; font-weight: 700; letter-spacing: 0.2px; font-size: clamp(34px, 6vw, 72px); line-height: 1.04; margin: 0 0 14px; color: #f2f4f8; text-shadow: 0 2px 12px rgba(14,165,233,0.12); }
.theme-light .hero-title{ color:#f2f4f8; }
.hero-subtitle{ font-weight: 600; font-size: clamp(18px, 2.6vw, 24px); color: #e8ecf5; opacity: .9; margin: 0 0 20px; }
.theme-light .hero-subtitle{ color:#e8ecf5; }

/* Increase hero height for more presence */
.hero .hero-image { display: block; overflow: hidden; position: relative; }
.hero .hero-image::after{ content:""; position:absolute; inset:0; background: linear-gradient(to bottom, rgba(0,0,0,0.20), rgba(0,0,0,0.05)); }
.hero.hero-grey .hero-image img{ height: calc(75vh - 20px); object-fit: cover; }
.hero{ min-height: calc(75vh - 20px); display: flex; align-items: flex-end; }
.hero .hero-content{ padding-top: 4vh; padding-bottom: 0; }
/* Remove space below hero */
.hero + .section { margin-top: 0; }
.hero h1 { font-family: "Space Grotesk", Inter, sans-serif; font-size: clamp(28px, 4.5vw, 56px); line-height: 1.08; margin: 0 0 18px; max-width: 940px; color: #f2f4f8; }
.hero p { font-size: clamp(16px, 2.2vw, 20px); color: #e8ecf5; margin: 0 0 28px; max-width: 780px; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .container.hero-content.hero-top{ justify-content: flex-start; align-items: flex-start; align-self: flex-start; padding-top: 2vh; padding-bottom: 0; }
.hero .container.hero-content.text-dark h1{ color: #2b2f3a; }
.hero .container.hero-content.text-dark p{ color: #3c4250; }
/* Utility: left-align hero content slightly without changing vertical positioning */
.brand-align-left { margin-left: -4px; }

/* Icon-only support links */
.icon-links { display: flex; gap: 10px; align-items: center; }
.icon-link { display: inline-flex; width: 36px; height: 36px; border-radius: 50%; align-items: center; justify-content: center; text-decoration: none; border: 1px solid rgba(0,0,0,0.08); background: #ffffff; color: #0f172a; transition: transform 0.12s ease-out, box-shadow 0.12s ease-out; }
.icon-link:hover { box-shadow: 0 6px 18px rgba(0,0,0,0.10); transform: translateY(-1px); }
.icon-link img { width: 20px; height: 20px; display: block; }
.icon-link.whatsapp { background: #25D366; color: #ffffff; border-color: rgba(0,0,0,0.08); }
.icon-link.email { background: #fbbf24; color: #1b2430; }
/* Right-aligned actions container (support icons area) */
.actions-right { display: flex; justify-content: flex-end; gap: 10px; align-items: center; }
.card .actions-right { margin-bottom: 8px; }

/* Enhanced support buttons in footer */
.footer-support { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 12px; }
.footer-support .wa-button { display: inline-flex; align-items: center; gap: 8px; background: #25D366; color: #fff; padding: 10px 14px; border-radius: 999px; font-weight: 700; text-decoration: none; box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.footer-support .wa-button:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(37, 211, 102, 0.45); }
.footer-support .wa-button img { width: 24px; height: 24px; display: block; }

/* Big wow messages for success/failure */
.big-success { font-size: 1.8rem; font-weight: 800; color: #14532d; text-align: center; margin: 16px 0; }
.big-failure { font-size: 1.8rem; font-weight: 800; color: #7f1d1d; text-align: center; margin: 16px 0; }
.wow { animation: glowPop 1200ms ease both; }
@keyframes glowPop {
  0% { transform: scale(0.95); filter: drop-shadow(0 0 0 rgba(0,0,0,0)); opacity: 0; }
  30% { transform: scale(1.05); opacity: 0.9; }
  60% { transform: scale(0.98); }
  100% { transform: scale(1); opacity: 1; }
}

.card { position: relative; padding: 28px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--border); box-shadow: var(--shadow); margin: 8px; }
.card h3 { margin-top: 0; font-size: 20px; }
.card p { color: var(--muted); }
.card-glass { position: absolute; inset: 0; border-radius: var(--radius); border: 1px solid rgba(255,255,255,0.18); background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03)); pointer-events: none; }
.card-hero { display: block; width: 100%; max-width: 100%; height: auto; border-radius: 12px; margin: 12px 0; }
.tags { display: flex; gap: 8px; list-style: none; padding: 0; margin: 14px 0 0; }
.tags li { padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,0.06); border: 1px solid var(--border); color: var(--muted); font-size: 12px; }

/* Grid */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-2.align-center { align-items: center; }

/* Section spacing */
.section { margin-top: 48px; }
.section:first-of-type { margin-top: 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-3.align-center { align-items: center; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }

/* About */
.about-card.glass { background: var(--glass); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.stats { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 18px; }
.stat { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px; }
.stat .num { font-weight: 700; font-size: 18px; }
.stat .label { color: var(--muted); font-size: 12px; }

/* Quotes */
.quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
blockquote { margin: 0; padding: 20px; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); }
blockquote p { font-style: italic; }
blockquote cite { display: block; margin-top: 8px; color: var(--muted); }

/* Contact */
.contact.glass { background: var(--glass); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: flex; flex-direction: column; gap: 8px; color: var(--muted); }
input, textarea, select { background: var(--panel); border: 1px solid var(--border); color: var(--text); border-radius: 10px; padding: 12px 14px; }
select { height: 48px; /* Double the standard height for better alignment */ }
input[type="file"] { padding: 8px 12px; cursor: pointer; }
input[type="file"]::-webkit-file-upload-button { background: var(--primary); color: white; border: none; padding: 6px 12px; border-radius: 6px; margin-right: 8px; cursor: pointer; }
.file-help { font-size: 0.85rem; color: var(--muted); margin-top: 4px; }

/* File attachment with cancel functionality */
.file-input-wrapper { position: relative; }
.file-selected { display: none; align-items: center; gap: 8px; margin-top: 8px; padding: 8px 12px; background: var(--panel); border: 1px solid var(--border); border-radius: 8px; }
.file-selected.show { display: flex; }
.file-name { flex: 1; font-size: 0.9rem; color: var(--text); }
.file-cancel { background: #ef4444; color: white; border: none; padding: 4px 8px; border-radius: 4px; cursor: pointer; font-size: 0.8rem; }
.file-cancel:hover { background: #dc2626; }
input:focus, textarea: focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(14,165,233,0.2); }
.nav .brand img{vertical-align:middle;margin-right:.75rem;image-rendering: crisp-edges; image-rendering: -webkit-optimize-contrast; height:48px;}
.nav .brand span{font-size:1.05rem;}
.nav .nav-inner{ display:flex; align-items:center; justify-content:space-between; min-height:64px; padding: 8px 0; }
.card .device{margin-bottom:1rem;display:flex;flex-direction:column;align-items:center;}
.card .device img{max-width:220px;width:100%;height:auto;border-radius:16px;box-shadow:0 10px 30px rgba(16,185,129,.25);background:linear-gradient(180deg,rgba(34,211,238,.15),rgba(124,58,237,.15));padding:.5rem;}
.card .device .muted{font-size:.85rem;opacity:.7;margin-top:.25rem;text-align:center;}
.card p { color: var(--muted); }
.card-glass { position: absolute; inset: 0; border-radius: var(--radius); border: 1px solid rgba(255,255,255,0.18); background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03)); pointer-events: none; }
.tags { display: flex; gap: 8px; list-style: none; padding: 0; margin: 14px 0 0; }
.tags li { padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,0.06); border: 1px solid var(--border); color: var(--muted); font-size: 12px; }

/* Grid */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-2.align-center { align-items: center; }

/* About */
.about-card.glass { background: var(--glass); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.stats { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 18px; }
.stat { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px; }
.stat .num { font-weight: 700; font-size: 18px; }
.stat .label { color: var(--muted); font-size: 12px; }

/* Quotes */
.quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
blockquote { margin: 0; padding: 20px; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); }
blockquote p { font-style: italic; }
blockquote cite { display: block; margin-top: 8px; color: var(--muted); }

/* Contact */
.contact.glass { background: var(--glass); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: flex; flex-direction: column; gap: 8px; color: var(--muted); }
input, textarea { background: var(--panel); border: 1px solid var(--border); color: var(--text); border-radius: 10px; padding: 12px 14px; }
input:focus, textarea: focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(14,165,233,0.2); }
.brand-strap{margin-top:18px;opacity:.9}
.brand-strap img{filter:drop-shadow(0 6px 20px rgba(124,58,237,.25));}
.hero-video{display:none}
.theme-light .hero-video{opacity:.80;mix-blend-mode:normal;}

/* Footer */
/* removed invalid diff marker line for .footer */
.footer { margin-top: 56px; padding: 28px 0; border-top: 1px solid var(--border); background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03)); color: #cfd6e6; position: relative; backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 8px 24px rgba(2,6,23,0.30); }
.footer::before{ display:none; }
.theme-light .footer{ background: linear-gradient(180deg, rgba(255,255,255,0.80), rgba(255,255,255,0.65)); color:#1b2430; border-top: 1px solid var(--border); backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr; align-items: start; gap: 24px; }
.footer-right{ display:flex; flex-direction: column; justify-content:flex-end; align-items:flex-end; gap: 8px; }
.footer-logos-row{ display:flex; justify-content:flex-end; align-items:center; gap:12px; margin:10px 0 16px; }
.footer-logos-row{ background: none !important; padding: 0; border-radius: 0; height: 40px; }
.footer-logos-row{ gap: 16px; }
@media (max-width: 900px){
  .footer-logos-row{ justify-content:flex-start; }
}
@media (max-width: 900px){
  .footer-grid { grid-template-columns: 1fr; }
  .footer-right{ justify-content:flex-start; align-items:flex-start; margin-top: 12px; }
}
.footer-links-row{ display:flex; flex-wrap:nowrap; gap: 14px; margin-bottom: 0; white-space: nowrap; }
/* Professional Message Styling */
.message-display {
  margin: 24px 0;
  padding: 0;
  animation: slideInFromTop 0.4s ease-out;
}

.success-message, .error-message, .info-message {
  padding: 20px 24px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 1.5;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

.success-message {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border-left: 4px solid #047857;
}

.success-message::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #34d399, #10b981, #059669);
  animation: shimmer 2s ease-in-out infinite;
}

.error-message {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  border-left: 4px solid #b91c1c;
}

.info-message {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  border-left: 4px solid #1d4ed8;
}

.success-message strong, .error-message strong, .info-message strong {
  font-weight: 600;
  font-size: 18px;
  display: block;
  margin-bottom: 8px;
}

.success-message p, .error-message p, .info-message p {
  margin: 0;
  opacity: 0.95;
  font-weight: 400;
}

/* Animation for message appearance */
@keyframes slideInFromTop {
  0% {
    transform: translateY(-20px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes shimmer {
  0%, 100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

/* Responsive message styling */
@media (max-width: 768px) {
  .success-message, .error-message, .info-message {
    padding: 16px 20px;
    font-size: 15px;
    border-radius: 10px;
  }
  
  .success-message strong, .error-message strong, .info-message strong {
    font-size: 16px;
    margin-bottom: 6px;
  }
}

.footer .muted{ white-space: nowrap; }
@media (max-width: 900px){ .footer-links-row{ flex-wrap:wrap; row-gap: 6px; } }
.footer-links a{ color: inherit; text-decoration:none; margin-right: 14px; padding: 6px 0; display:inline-block; opacity:.85; }
.footer-links a:hover{ opacity:1; color: inherit; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.brand-inline { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.brand-inline img{height:28px; filter: none; }
.footer .muted { color: inherit; opacity: .75; }
@media (max-width: 900px){ .footer-grid { grid-template-columns: 1fr; } }
.footer{ font-family: "Inter", sans-serif; }
.section-title { font-family: "Space Grotesk", Inter, sans-serif; }
.footer{ font-size: 1.00rem; }
.footer .muted{ font-size: 0.82rem; }
.footer-links a{ font-size: 1.00rem; }
@media (max-width: 900px){ .footer-grid { grid-template-columns: 1fr; } }

/* Responsive */
@media (max-width: 1200px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px){
  /* Non-home pages: use two-column cards on desktop */
  .section:not(#product) .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .cards, .quotes { grid-template-columns: 1fr; }
  .grid-2, .footer-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-toggle { display: inline-block; }
}
@media (max-width: 600px){
  .nav .brand img{height:34.96px;}
  .brand-inline img{height:28px;}
}
/* Carousel */
.carousel{position:relative;overflow:hidden;border-radius:16px;background:var(--bg-card);box-shadow:var(--shadow-soft);}
.carousel-viewport{overflow:hidden}
.carousel-track{display:flex;gap:1rem;transition:transform .4s ease}
.carousel-btn{position:absolute;top:50%;transform:translateY(-50%);background:var(--primary);color:#fff;border:none;border-radius:50%;width:40px;height:40px;box-shadow:var(--shadow-soft);cursor:pointer}
.carousel-btn.prev{left:8px}
.carousel-btn.next{right:8px}

/* Counters */
.stats{display:grid;grid-template-columns:repeat(2,1fr);gap:1rem;margin-top:1rem}
.stat{background:var(--bg-card);padding:1rem;border-radius:12px;box-shadow:var(--shadow-soft);text-align:center}
.stat .num{font-size:2rem;font-weight:700;color:var(--primary)}
.stat .label{display:block;margin-top:.25rem;color:var(--muted)}

/* Hero video overlays (already defined) ensure blend works with counters) */
.hero-video{object-fit:cover;width:100%;height:100%;filter:brightness(.75);}

@media (min-width: 900px){
  .stats{grid-template-columns:repeat(4,1fr)}
}
/* Grey background variant for hero sections */
.hero.hero-grey { background: #e8ecf5; display: flex; align-items: center; }
.hero.hero-grey .hero-content { padding-top: 0; padding-bottom: 0; }
.hero.hero-wealth { min-height: 85vh; align-items: flex-start; }
.hero.hero-wealth .hero-bg { filter: brightness(0.88); }
.hero.hero-wealth .hero-image img { width: 100%; height: 75vh; object-fit: cover; }
.hero.hero-wealth .hero-content { padding-top: 8vh; padding-bottom: 8vh; }
.hero-split .hero-content { display: block; }
.hero-split .cta-row { justify-content: flex-start; }
.hero .container.hero-content { /* merged into .hero .container above */ }

/* Technology card text alignment under logos */
#technology .grid-3 .card h3,
#technology .grid-3 .card p,
#technology .grid-3 .card .btn { padding-left: 16px; }

/* Larger FOURELEMENTS logo in Technology section */
.tech-logo-4e { width: 260px; max-width: 100%; display: block; margin: 0 0 12px; }

/* Newsletter Card */
.newsletter-card {
  position: fixed;
  bottom: 90px;
  left: 20px;
  z-index: 999;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  max-width: 300px;
  transition: all 0.3s ease;
  animation: slideInLeft 0.5s ease-out;
}

.newsletter-card.minimized {
  transform: translateX(-280px);
}

.newsletter-content {
  padding: 20px;
  color: white;
  position: relative;
}

.newsletter-close {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.newsletter-close:hover {
  opacity: 1;
}

.newsletter-card h3 {
  margin: 0 0 10px 0;
  font-size: 16px;
  font-weight: 600;
}

.newsletter-card p {
  margin: 0 0 15px 0;
  font-size: 13px;
  opacity: 0.9;
  line-height: 1.4;
}

.newsletter-card form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.newsletter-card input {
  padding: 10px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
}

.newsletter-card button[type="submit"] {
  padding: 10px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  color: white;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.newsletter-card button[type="submit"]:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

@keyframes slideInLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .newsletter-card {
    bottom: 75px;
    left: 15px;
    max-width: 200px;
    min-height: 280px;
  }
  
  .newsletter-card.minimized {
    transform: translateX(-180px);
  }
  
  .newsletter-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 250px;
  }
  
  .newsletter-card h3 {
    font-size: 14px;
    margin-bottom: 8px;
    text-align: center;
  }
  
  .newsletter-card p {
    font-size: 12px;
    text-align: center;
    margin-bottom: 15px;
  }
  
  .newsletter-card form {
    margin-top: auto;
  }
  
  .newsletter-card input {
    padding: 8px;
    font-size: 13px;
    margin-bottom: 8px;
  }
  
  .newsletter-card button[type="submit"] {
    padding: 8px;
    font-size: 13px;
  }
}

/* WhatsApp Button */
.whatsapp-button {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 1000;
  background: #25d366;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
}

.whatsapp-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-button a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
}

.whatsapp-button img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
}

@media (max-width: 768px) {
  .whatsapp-button {
    bottom: 15px;
    left: 15px;
  }
  
  .whatsapp-button span {
    display: none;
  }
  
  .whatsapp-button a {
    padding: 12px;
    border-radius: 50%;
  }
}

/* R&D split header */
.rd-split { margin-bottom: 18px; }
.rd-title { font-size: clamp(30px, 6vw, 64px); line-height: 1.05; margin: 0 0 12px; }
.rd-lead { font-size: clamp(18px, 2.6vw, 22px); color: var(--muted); max-width: 720px; }
.rd-figure img { width: 100%; border-radius: 12px; box-shadow: 0 10px 30px rgba(2,6,23,0.28); }

/* Publications & Trials design element */
.pub-callout { background: var(--glass); border: 1px solid var(--border); border-radius: 16px; padding: 20px; box-shadow: var(--shadow); }
.pub-callout h3 { margin: 0 0 8px; font-size: 20px; }
.pub-callout p { margin: 0; color: var(--muted); }
.pub-callout .pub-figure { margin-top: 12px; }
.pub-callout .pub-figure img { max-width: 100%; border-radius: 12px; opacity: 0.96; }
.hero .hero-message .hero-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.4rem;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 0.5rem;
}
/* Home Technology section: add left spacing to Learn More buttons */
#technology .grid-3 .card .btn-link {
  margin-left: 12px;
}
.tech-logo-gatetrader {
  height: 39px !important;
  width: auto !important;
  max-width: 100%;
  display: block;
  margin: 0 0 12px;
}
.web-shot .highlight{display:block;margin-top:.5rem;padding:.6rem .8rem;border-radius:10px;background:rgba(255,255,0,.12);border:1px solid rgba(255,255,0,.35);color:#222;font-weight:600;text-align:center}
.web-shot .highlight .accent{color:#0ea5e9;font-weight:700}
#product .grid-3 > div:nth-child(3){padding-left:120px}
@media (max-width:900px){#product .grid-3 > div:nth-child(3){padding-left:48px}}
/* Home Product section: enforce three-column layout with phone on first row */
#product .grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
#product .grid-3 > div:nth-child(1) { grid-column: 1; grid-row: 1; display:flex; align-items:center; justify-content:center; }
#product .grid-3 > div:nth-child(2) { grid-column: 2; grid-row: 1; }
#product .grid-3 > div:nth-child(3) { grid-column: 3; grid-row: 1; padding-left: 0; }

/* Product media sizing: video smaller, handheld larger, phone smallest */
#product video{ width: 70% !important; }
#product .device img{ width: 75% !important; }
/* Mobile phone screenshot sizing + tilt */
.web-shot img{
  width: 60%;
  max-width: 280px;
  height: auto;
  border-radius: 14px;
  transform: rotate(-6deg);
  box-shadow: 0 12px 28px rgba(2,6,23,0.25);
  transition: transform .3s ease, box-shadow .3s ease;
}
.web-shot img:hover{ transform: rotate(-3deg) translateY(-2px); box-shadow: 0 16px 32px rgba(2,6,23,0.28); }

/* Responsive adjustments for Product section */
@media (max-width: 900px){
  #product .grid-3 { grid-template-columns: 1fr; }
  #product .grid-3 > div:nth-child(1),
  #product .grid-3 > div:nth-child(2),
  #product .grid-3 > div:nth-child(3){ grid-column: 1; grid-row: auto; }
  .web-shot img{ width: 75%; max-width: 300px; transform: rotate(-4deg); }
}

/* Features Grid - 2x2 Layout */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.feature-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(12px);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--cyan));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(255, 255, 255, 0.2);
}

.feature-icon {
  width: 100%;
  height: 280px;
  border-radius: 16px;
  margin-bottom: 24px;
  overflow: hidden;
  position: relative;
  background: var(--glass);
  border: 1px solid var(--border);
}

.feature-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon img {
  transform: scale(1.05);
}

.feature-card h3 {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 16px 0;
  color: var(--text);
}

.feature-benefits {
  margin: 20px 0;
}

.feature-benefits h4 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 12px 0;
  color: var(--primary);
}

.feature-benefits ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-benefits li {
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.feature-benefits li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: bold;
}

.feature-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 16px 0 0 0;
}

/* Features Summary Grid */
.features-summary {
  margin-top: 64px;
  text-align: center;
}

.features-summary h3 {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 28px;
  font-weight: 600;
  margin: 0 0 32px 0;
  color: var(--text);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.summary-item {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 16px;
  text-align: center;
}

.summary-item h4 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px 0;
  color: var(--text);
}

.summary-item p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  line-height: 1.4;
}

/* Responsive Features Grid */
@media (max-width: 1200px) {
  .summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .summary-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .feature-card {
    padding: 24px;
  }
}

@media (max-width: 600px) {
  .features-grid {
    gap: 20px;
  }
  
  .feature-card {
    padding: 20px;
  }
  
  .feature-icon {
    height: 200px;
  }
}

/* Desktop wide: homepage remains three columns; keep third item on first row */
@media (min-width: 1200px){
  #product .grid-3 { grid-template-columns: repeat(3, 1fr); }
  #product .grid-3 > div:nth-child(1){ grid-column: 1; grid-row: 1; }
  #product .grid-3 > div:nth-child(2){ grid-column: 2; grid-row: 1; }
  #product .grid-3 > div:nth-child(3){ grid-column: 3; grid-row: 1; padding-left: 0; }
}
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: flex; flex-direction: column; gap: 8px; color: var(--muted); }
input, textarea { background: var(--panel); border: 1px solid var(--border); color: var(--text); border-radius: 10px; padding: 12px 14px; }
input:focus, textarea: focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(14,165,233,0.2); }
.brand-strap{margin-top:18px;opacity:.9}
.brand-strap img{filter:drop-shadow(0 6px 20px rgba(124,58,237,.25));}
.hero-video{display:none}
.theme-light .hero-video{opacity:.80;mix-blend-mode:normal;}

/* Footer */
/* removed invalid diff marker line for .footer */
.footer { margin-top: 56px; padding: 28px 0; border-top: 1px solid var(--border); background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03)); color: #cfd6e6; position: relative; backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 8px 24px rgba(2,6,23,0.30); }
.footer::before{ display:none; }
.theme-light .footer{ background: linear-gradient(180deg, rgba(255,255,255,0.80), rgba(255,255,255,0.65)); color:#1b2430; border-top: 1px solid var(--border); backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr; align-items: start; gap: 24px; }
.footer-right{ display:flex; flex-direction: column; justify-content:flex-end; align-items:flex-end; gap: 8px; }
.footer-logos-row{ display:flex; justify-content:flex-end; align-items:center; gap:12px; margin:10px 0 16px; }
.footer-logos-row{ background: none !important; padding: 0; border-radius: 0; height: 40px; }
.footer-logos-row{ gap: 16px; }
@media (max-width: 900px){
  .footer-logos-row{ justify-content:flex-start; }
}
@media (max-width: 900px){
  .footer-grid { grid-template-columns: 1fr; }
  .footer-right{ justify-content:flex-start; align-items:flex-start; margin-top: 12px; }
}
.footer-links-row{ display:flex; flex-wrap:nowrap; gap: 14px; margin-bottom: 0; }
@media (max-width: 900px){ .footer-links-row{ flex-wrap:wrap; row-gap: 6px; } }
.footer-links a{ color: inherit; text-decoration:none; margin-right: 14px; padding: 6px 0; display:inline-block; opacity:.85; }
.footer-links a:hover{ opacity:1; color: inherit; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.brand-inline { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.brand-inline img{height:28px; filter: none; }
.footer .muted { color: inherit; opacity: .75; }
@media (max-width: 900px){ .footer-grid { grid-template-columns: 1fr; } }
.footer{ font-family: "Inter", sans-serif; }
.section-title { font-family: "Space Grotesk", Inter, sans-serif; }
.footer{ font-size: 1.00rem; }
.footer .muted{ font-size: 0.82rem; }
.footer-links a{ font-size: 1.00rem; }
@media (max-width: 900px){ .footer-grid { grid-template-columns: 1fr; } }

/* Responsive */
@media (max-width: 1200px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .cards, .quotes { grid-template-columns: 1fr; }
  .grid-2, .footer-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-toggle { display: inline-block; }
}
@media (max-width: 600px){
  .nav .brand img{height:34.96px;}
  .brand-inline img{height:28px;}
}
/* Carousel */
.carousel{position:relative;overflow:hidden;border-radius:16px;background:var(--bg-card);box-shadow:var(--shadow-soft);}
.carousel-viewport{overflow:hidden}
.carousel-track{display:flex;gap:1rem;transition:transform .4s ease}
.carousel-btn{position:absolute;top:50%;transform:translateY(-50%);background:var(--primary);color:#fff;border:none;border-radius:50%;width:40px;height:40px;box-shadow:var(--shadow-soft);cursor:pointer}
.carousel-btn.prev{left:8px}
.carousel-btn.next{right:8px}

/* Counters */
.stats{display:grid;grid-template-columns:repeat(2,1fr);gap:1rem;margin-top:1rem}
.stat{background:var(--bg-card);padding:1rem;border-radius:12px;box-shadow:var(--shadow-soft);text-align:center}
.stat .num{font-size:2rem;font-weight:700;color:var(--primary)}
.stat .label{display:block;margin-top:.25rem;color:var(--muted)}

/* Hero video overlays (already defined) ensure blend works with counters) */
.hero-video{object-fit:cover;width:100%;height:100%;filter:brightness(.75);}

@media (min-width: 900px){
  .stats{grid-template-columns:repeat(4,1fr)}
}
/* Home Product section adjustments: center video vertically in first column */
#product .grid-3 > div:nth-child(1){ display:flex; flex-direction:column; align-items:center; justify-content:flex-start; }
#product .grid-3 > div:nth-child(2){ grid-column: 2; grid-row: 1; }
#product .grid-3 > div:nth-child(3){ grid-column: 3; grid-row: 1; padding-left: 0; min-height: 500px; }

/* Increase homepage mobile phone image size and keep within container */
#product .web-shot{ 
  display:flex; 
  flex-direction:column; 
  align-items:center; 
  justify-content:center; 
  text-align:center; 
  width:100%; 
  overflow:visible; /* Changed from hidden to visible */
  min-height: 500px; /* Increased height to accommodate larger image */
}
#product .web-shot img{
  width: min(85%, 360px);
  max-width: calc(100% - 16px);
  box-sizing: border-box;
  display: block;
  margin: 0 auto;
  height: auto;
  border-radius: 14px;
  /* Increase size by 40% more (from 2.0 to 2.8 scale) and bring down 60px more */
  transform: translateY(80px) rotate(-6deg) scale(2.8);
  box-shadow: 0 12px 28px rgba(2,6,23,0.25);
  transition: transform .3s ease, box-shadow .3s ease;
  border: 8px solid #1a1a1a;
}
#product .web-shot img:hover{ transform: translateY(76px) rotate(-3deg) scale(2.85); box-shadow: 0 16px 32px rgba(2,6,23,0.28); }
#product video{ width: 71.25% !important; }
#product .device img{ width: 75% !important; }
/* Mobile phone screenshot sizing + tilt */
.web-shot img{
  width: 60%;
  max-width: 280px;
  height: auto;
  border-radius: 14px;
  transform: rotate(-6deg);
  box-shadow: 0 12px 28px rgba(2,6,23,0.25);
  transition: transform .3s ease, box-shadow .3s ease;
}
.web-shot img:hover{ transform: rotate(-3deg) translateY(-2px); box-shadow: 0 16px 32px rgba(2,6,23,0.28); }

/* Responsive adjustments for Product section */
@media (max-width: 900px){
  #product .grid-3 { grid-template-columns: 1fr; }
  #product .grid-3 > div:nth-child(1),
  #product .grid-3 > div:nth-child(2),
  #product .grid-3 > div:nth-child(3){ grid-column: 1; grid-row: auto; }
  .web-shot img{ width: 75%; max-width: 300px; transform: rotate(-4deg); }
}

/* Desktop wide: homepage remains three columns; keep third item on first row */
@media (min-width: 1200px){
  #product .grid-3 { grid-template-columns: repeat(3, 1fr); }
  #product .grid-3 > div:nth-child(1){ grid-column: 1; grid-row: 1; }
  #product .grid-3 > div:nth-child(2){ grid-column: 2; grid-row: 1; }
  #product .grid-3 > div:nth-child(3){ grid-column: 3; grid-row: 1; padding-left: 0; }
}
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: flex; flex-direction: column; gap: 8px; color: var(--muted); }
input, textarea { background: var(--panel); border: 1px solid var(--border); color: var(--text); border-radius: 10px; padding: 12px 14px; }
input:focus, textarea: focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(14,165,233,0.2); }
.brand-strap{margin-top:18px;opacity:.9}
.brand-strap img{filter:drop-shadow(0 6px 20px rgba(124,58,237,.25));}
.hero-video{display:none}
.theme-light .hero-video{opacity:.80;mix-blend-mode:normal;}

/* Footer */
/* removed invalid diff marker line for .footer */
.footer { margin-top: 56px; padding: 28px 0; border-top: 1px solid var(--border); background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03)); color: #cfd6e6; position: relative; backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 8px 24px rgba(2,6,23,0.30); }
.footer::before{ display:none; }
.theme-light .footer{ background: linear-gradient(180deg, rgba(255,255,255,0.80), rgba(255,255,255,0.65)); color:#1b2430; border-top: 1px solid var(--border); backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr; align-items: start; gap: 24px; }
.footer-right{ display:flex; flex-direction: column; justify-content:flex-end; align-items:flex-end; gap: 8px; }
.footer-logos-row{ display:flex; justify-content:flex-end; align-items:center; gap:12px; margin:10px 0 16px; }
.footer-logos-row{ background: none !important; padding: 0; border-radius: 0; height: 40px; }
.footer-logos-row{ gap: 16px; }
@media (max-width: 900px){
  .footer-logos-row{ justify-content:flex-start; }
}
@media (max-width: 900px){
  .footer-grid { grid-template-columns: 1fr; }
  .footer-right{ justify-content:flex-start; align-items:flex-start; margin-top: 12px; }
}
.footer-links-row{ display:flex; flex-wrap:nowrap; gap: 14px; margin-bottom: 0; }
@media (max-width: 900px){ .footer-links-row{ flex-wrap:wrap; row-gap: 6px; } }
.footer-links a{ color: inherit; text-decoration:none; margin-right: 14px; padding: 6px 0; display:inline-block; opacity:.85; }
.footer-links a:hover{ opacity:1; color: inherit; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.brand-inline { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.brand-inline img{height:28px; filter: none; }
.footer .muted { color: inherit; opacity: .75; }
@media (max-width: 900px){ .footer-grid { grid-template-columns: 1fr; } }
.footer{ font-family: "Inter", sans-serif; }
.section-title { font-family: "Space Grotesk", Inter, sans-serif; }
.footer{ font-size: 1.00rem; }
.footer .muted{ font-size: 0.82rem; }
.footer-links a{ font-size: 1.00rem; }
@media (max-width: 900px){ .footer-grid { grid-template-columns: 1fr; } }

/* Responsive */
@media (max-width: 1200px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .cards, .quotes { grid-template-columns: 1fr; }
  .grid-2, .footer-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-toggle { display: inline-block; }
}
@media (max-width: 600px){
  .nav .brand img{height:34.96px;}
  .brand-inline img{height:28px;}
}
/* Carousel */
.carousel{position:relative;overflow:hidden;border-radius:16px;background:var(--bg-card);box-shadow:var(--shadow-soft);}
.carousel-viewport{overflow:hidden}
.carousel-track{display:flex;gap:1rem;transition:transform .4s ease}
.carousel-btn{position:absolute;top:50%;transform:translateY(-50%);background:var(--primary);color:#fff;border:none;border-radius:50%;width:40px;height:40px;box-shadow:var(--shadow-soft);cursor:pointer}
.carousel-btn.prev{left:8px}
.carousel-btn.next{right:8px}

/* Counters */
.stats{display:grid;grid-template-columns:repeat(2,1fr);gap:1rem;margin-top:1rem}
.stat{background:var(--bg-card);padding:1rem;border-radius:12px;box-shadow:var(--shadow-soft);text-align:center}
.stat .num{font-size:2rem;font-weight:700;color:var(--primary)}
.stat .label{display:block;margin-top:.25rem;color:var(--muted)}

/* Hero video overlays (already defined) ensure blend works with counters) */
.hero-video{object-fit:cover;width:100%;height:100%;filter:brightness(.75);}

@media (min-width: 900px){
  .stats{grid-template-columns:repeat(4,1fr)}
}
/* Home Product section adjustments: center video vertically in first column */
#product .grid-3 > div:nth-child(1){ display:flex; align-items:center; justify-content:center; height: 100%; }
#product .grid-3 > div:nth-child(1) video{ max-height: 100%; align-self: center; }
#product .grid-3 > div:nth-child(2){ grid-column: 2; grid-row: 1; }
#product .grid-3 > div:nth-child(3){ grid-column: 3; grid-row: 1; padding-left: 0; }

/* Increase homepage mobile phone image size and keep within container */
#product .web-shot{ display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; width:100%; overflow:visible; min-height: 500px; }
#product .web-shot img{
  width: min(85%, 360px);
  max-width: calc(100% - 16px);
  box-sizing: border-box;
  display: block;
  margin: 0 auto;
  height: auto;
  border-radius: 14px;
  transform: translateY(80px) rotate(-6deg) scale(2.8);
  box-shadow: 0 12px 28px rgba(2,6,23,0.25);
  transition: transform .3s ease, box-shadow .3s ease;
  border: 8px solid #1a1a1a;
}
#product .web-shot img:hover{ transform: translateY(76px) rotate(-3deg) scale(2.85); box-shadow: 0 16px 32px rgba(2,6,23,0.28); }
#product video{ width: 71.25% !important; }
#product .device img{ width: 75% !important; }
/* Mobile phone screenshot sizing + tilt */
.web-shot img{
  width: 60%;
  max-width: 280px;
  height: auto;
  border-radius: 14px;
  transform: rotate(-6deg);
  box-shadow: 0 12px 28px rgba(2,6,23,0.25);
  transition: transform .3s ease, box-shadow .3s ease;
}
.web-shot img:hover{ transform: rotate(-3deg) translateY(-2px); box-shadow: 0 16px 32px rgba(2,6,23,0.28); }

/* Responsive adjustments for Product section */
@media (max-width: 900px){
  #product .grid-3 { grid-template-columns: 1fr; }
  #product .grid-3 > div:nth-child(1),
  #product .grid-3 > div:nth-child(2),
  #product .grid-3 > div:nth-child(3){ grid-column: 1; grid-row: auto; }
  .web-shot img{ width: 75%; max-width: 300px; transform: rotate(-4deg); }
}

/* Desktop wide: keep phone image in the first row (three columns at >=1200px) */
@media (min-width: 1200px){
  #product .grid-3 { grid-template-columns: repeat(3, 1fr); }
  #product .grid-3 > div:nth-child(1){ grid-column: 1; grid-row: 1; display:flex; align-items:center; justify-content:center; }
  #product .grid-3 > div:nth-child(2){ grid-column: 2; grid-row: 1; }
  #product .grid-3 > div:nth-child(3){ grid-column: 3; grid-row: 1; padding-left: 0; }
  #product .web-shot img{ width: min(85%, 360px); transform: translateY(80px) rotate(-6deg) scale(2.8); }
  #product .web-shot img:hover{ transform: translateY(76px) rotate(-3deg) scale(2.85); }
}

/* Homepage Product final fine-tuning */
#product .web-shot .highlight{ font-size: 0.84rem; line-height: 1.35; }
#product .grid-3 h3{ font-size: 1.05rem; }
#product .grid-3 p{ font-size: 0.95rem; }
@media (min-width: 900px){
  #product .grid-3 > div:nth-child(1){ padding-top: 64px; }
  #product .grid-3 > div:nth-child(3){ padding-top: 80px; }
  #product .web-shot img{ width: min(96%, 480px); transform: translateY(48px) rotate(-6deg) scale(2.8); }
  #product .web-shot img:hover{ transform: translateY(52px) rotate(-3deg) scale(2.85); }
}
#product .hero-video, #product video{ margin-top: 24px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: flex; flex-direction: column; gap: 8px; color: var(--muted); }
input, textarea { background: var(--panel); border: 1px solid var(--border); color: var(--text); border-radius: 10px; padding: 12px 14px; }
input:focus, textarea: focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(14,165,233,0.2); }
.brand-strap{margin-top:18px;opacity:.9}
.brand-strap img{filter:drop-shadow(0 6px 20px rgba(124,58,237,.25));}
.hero-video{display:none}
.theme-light .hero-video{opacity:.80;mix-blend-mode:normal;}

/* Footer */
/* removed invalid diff marker line for .footer */
.footer { margin-top: 56px; padding: 28px 0; border-top: 1px solid var(--border); background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03)); color: #cfd6e6; position: relative; backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 8px 24px rgba(2,6,23,0.30); }
.footer::before{ display:none; }
.theme-light .footer{ background: linear-gradient(180deg, rgba(255,255,255,0.80), rgba(255,255,255,0.65)); color:#1b2430; border-top: 1px solid var(--border); backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr; align-items: start; gap: 24px; }
.footer-right{ display:flex; flex-direction: column; justify-content:flex-end; align-items:flex-end; gap: 8px; }
.footer-logos-row{ display:flex; justify-content:flex-end; align-items:center; gap:12px; margin:10px 0 16px; }
.footer-logos-row{ background: none !important; padding: 0; border-radius: 0; height: 40px; }
.footer-logos-row{ gap: 16px; }
@media (max-width: 900px){
  .footer-logos-row{ justify-content:flex-start; }
}
@media (max-width: 900px){
  .footer-grid { grid-template-columns: 1fr; }
  .footer-right{ justify-content:flex-start; align-items:flex-start; margin-top: 12px; }
}
.footer-links-row{ display:flex; flex-wrap:nowrap; gap: 14px; margin-bottom: 0; }
@media (max-width: 900px){ .footer-links-row{ flex-wrap:wrap; row-gap: 6px; } }
.footer-links a{ color: inherit; text-decoration:none; margin-right: 14px; padding: 6px 0; display:inline-block; opacity:.85; }
.footer-links a:hover{ opacity:1; color: inherit; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.brand-inline { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.brand-inline img{height:28px; filter: none; }
.footer .muted { color: inherit; opacity: .75; }
@media (max-width: 900px){ .footer-grid { grid-template-columns: 1fr; } }
.footer{ font-family: "Inter", sans-serif; }
.section-title { font-family: "Space Grotesk", Inter, sans-serif; }
.footer{ font-size: 1.00rem; }
.footer .muted{ font-size: 0.82rem; }
.footer-links a{ font-size: 1.00rem; }
@media (max-width: 900px){ .footer-grid { grid-template-columns: 1fr; } }

/* Responsive */
@media (max-width: 1200px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .cards, .quotes { grid-template-columns: 1fr; }
  .grid-2, .footer-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-toggle { display: inline-block; }
}
@media (max-width: 600px){
  .nav .brand img{height:34.96px;}
  .brand-inline img{height:28px;}
}
/* Carousel */
.carousel{position:relative;overflow:hidden;border-radius:16px;background:var(--bg-card);box-shadow:var(--shadow-soft);}
.carousel-viewport{overflow:hidden}
.carousel-track{display:flex;gap:1rem;transition:transform .4s ease}
.carousel-btn{position:absolute;top:50%;transform:translateY(-50%);background:var(--primary);color:#fff;border:none;border-radius:50%;width:40px;height:40px;box-shadow:var(--shadow-soft);cursor:pointer}
.carousel-btn.prev{left:8px}
.carousel-btn.next{right:8px}

/* Counters */
.stats{display:grid;grid-template-columns:repeat(2,1fr);gap:1rem;margin-top:1rem}
.stat{background:var(--bg-card);padding:1rem;border-radius:12px;box-shadow:var(--shadow-soft);text-align:center}
.stat .num{font-size:2rem;font-weight:700;color:var(--primary)}
.stat .label{display:block;margin-top:.25rem;color:var(--muted)}

/* Hero video overlays (already defined) ensure blend works with counters) */
.hero-video{object-fit:cover;width:100%;height:100%;filter:brightness(.75);}

@media (min-width: 900px){
  .stats{grid-template-columns:repeat(4,1fr)}
}
/* Home Product section adjustments: center video vertically in first column */
#product .grid-3 > div:nth-child(1){ display:flex; align-items:center; justify-content:center; height: 100%; }
#product .grid-3 > div:nth-child(1) video{ max-height: 100%; align-self: center; }
#product .grid-3 > div:nth-child(2){ grid-column: 2; grid-row: 1; }
#product .grid-3 > div:nth-child(3){ grid-column: 3; grid-row: 1; padding-left: 0; }

/* Increase homepage mobile phone image size and keep within container */
#product .web-shot{ display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; width:100%; overflow:hidden; }
#product .web-shot img{
  width: min(85%, 360px);
  max-width: calc(100% - 16px);
  box-sizing: border-box;
  display: block;
  margin: 0 auto;
  height: auto;
  border-radius: 14px;
  transform: rotate(-6deg);
  box-shadow: 0 12px 28px rgba(2,6,23,0.25);
  transition: transform .3s ease, box-shadow .3s ease;
  border: 8px solid #1a1a1a;
}
#product .web-shot img:hover{ transform: rotate(-3deg) translateY(-2px); box-shadow: 0 16px 32px rgba(2,6,23,0.28); }
#product video{ width: 71.25% !important; }
#product .device img{ width: 75% !important; }
/* Mobile phone screenshot sizing + tilt */
.web-shot img{
  width: 60%;
  max-width: 280px;
  height: auto;
  border-radius: 14px;
  transform: rotate(-6deg);
  box-shadow: 0 12px 28px rgba(2,6,23,0.25);
  transition: transform .3s ease, box-shadow .3s ease;
}
.web-shot img:hover{ transform: rotate(-3deg) translateY(-2px); box-shadow: 0 16px 32px rgba(2,6,23,0.28); }

/* Responsive adjustments for Product section */
@media (max-width: 900px){
  #product .grid-3 { grid-template-columns: 1fr; }
  #product .grid-3 > div:nth-child(1),
  #product .grid-3 > div:nth-child(2),
  #product .grid-3 > div:nth-child(3){ grid-column: 1; grid-row: auto; }
  .web-shot img{ width: 75%; max-width: 300px; transform: rotate(-4deg); }
}

/* Desktop wide: keep phone image in the first row (three columns at >=1200px) */
@media (min-width: 1200px){
  #product .grid-3 { grid-template-columns: repeat(3, 1fr); }
  #product .grid-3 > div:nth-child(1){ grid-column: 1; grid-row: 1; display:flex; align-items:center; justify-content:center; }
  #product .grid-3 > div:nth-child(2){ grid-column: 2; grid-row: 1; }
  #product .grid-3 > div:nth-child(3){ grid-column: 3; grid-row: 1; padding-left: 0; }
  #product .web-shot img{ width: 60%; max-width: 280px; }
}
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: flex; flex-direction: column; gap: 8px; color: var(--muted); }
input, textarea { background: var(--panel); border: 1px solid var(--border); color: var(--text); border-radius: 10px; padding: 12px 14px; }
input:focus, textarea: focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(14,165,233,0.2); }
.brand-strap{margin-top:18px;opacity:.9}
.brand-strap img{filter:drop-shadow(0 6px 20px rgba(124,58,237,.25));}
.hero-video{display:none}
.theme-light .hero-video{opacity:.80;mix-blend-mode:normal;}

/* Footer */
/* removed invalid diff marker line for .footer */
.footer { margin-top: 56px; padding: 28px 0; border-top: 1px solid var(--border); background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03)); color: #cfd6e6; position: relative; backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 8px 24px rgba(2,6,23,0.30); }
.footer::before{ display:none; }
.theme-light .footer{ background: linear-gradient(180deg, rgba(255,255,255,0.80), rgba(255,255,255,0.65)); color:#1b2430; border-top: 1px solid var(--border); backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr; align-items: start; gap: 24px; }
.footer-right{ display:flex; flex-direction: column; justify-content:flex-end; align-items:flex-end; gap: 8px; }
.footer-logos-row{ display:flex; justify-content:flex-end; align-items:center; gap:12px; margin:10px 0 16px; }
.footer-logos-row{ background: none !important; padding: 0; border-radius: 0; height: 40px; }
.footer-logos-row{ gap: 16px; }
@media (max-width: 900px){
  .footer-logos-row{ justify-content:flex-start; }
}
@media (max-width: 900px){
  .footer-grid { grid-template-columns: 1fr; }
  .footer-right{ justify-content:flex-start; align-items:flex-start; margin-top: 12px; }
}
.footer-links-row{ display:flex; flex-wrap:nowrap; gap: 14px; margin-bottom: 0; }
@media (max-width: 900px){ .footer-links-row{ flex-wrap:wrap; row-gap: 6px; } }
.footer-links a{ color: inherit; text-decoration:none; margin-right: 14px; padding: 6px 0; display:inline-block; opacity:.85; }
.footer-links a:hover{ opacity:1; color: inherit; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.brand-inline { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.brand-inline img{height:28px; filter: none; }
.footer .muted