/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border-color: hsl(210 17% 89%);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    line-height: 1.6;
    background-color: hsl(210 17% 97%);
    color: hsl(215 28% 17%);
    overflow-x: hidden;
}

/* CSS Variables for Design System */
:root {
    --background: 210 17% 97%;
    --foreground: 215 28% 17%;
    --card: 0 0% 100%;
    --card-foreground: 215 28% 17%;
    --popover: 0 0% 100%;
    --popover-foreground: 215 28% 17%;
    --primary: 197 71% 52%;
    --primary-foreground: 0 0% 100%;
    --primary-glow: 197 71% 65%;
    --secondary: 210 17% 93%;
    --secondary-foreground: 215 28% 17%;
    --muted: 210 17% 93%;
    --muted-foreground: 215 15% 47%;
    --accent: 185 84% 92%;
    --accent-foreground: 197 71% 52%;
    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 0 0% 100%;
    --border: 210 17% 89%;
    --input: 210 17% 89%;
    --ring: 197 71% 52%;
    --radius: 0.75rem;

    /* Custom medical/respiratory theme colors */
    --medical-blue: 197 71% 52%;
    --medical-blue-light: 197 71% 65%;
    --medical-teal: 185 84% 45%;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);

    /* Shadows */
    --shadow-medical: 0 10px 30px -10px hsl(197 71% 52% / 0.3);
    --shadow-glow: 0 0 40px hsl(197 71% 65% / 0.4);
    --shadow-card: 0 4px 20px -4px hsl(197 71% 52% / 0.15);

    /* Animation */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark theme (manual toggle via .dark on html element) */
.dark {
  --background: 215 28% 10%;
  --foreground: 0 0% 98%;
  --card: 215 28% 14%;
  --card-foreground: 0 0% 98%;
  --popover: 215 28% 12%;
  --popover-foreground: 0 0% 98%;
  --primary: 197 71% 52%;
  --primary-foreground: 0 0% 100%;
  --primary-glow: 197 71% 65%;
  --secondary: 215 28% 18%;
  --secondary-foreground: 0 0% 98%;
  --muted: 215 28% 18%;
  --muted-foreground: 215 15% 70%;
  --accent: 197 71% 25%;
  --accent-foreground: 197 71% 65%;
  --destructive: 0 62% 45%;
  --destructive-foreground: 0 0% 98%;
  --border: 215 28% 25%;
  --input: 215 28% 20%;
  --ring: 197 71% 52%;
  --glass-bg: rgba(255,255,255,0.04);
  --glass-border: rgba(255,255,255,0.08);
  color-scheme: dark;
}

html.dark body { background-color: hsl(var(--background)); color: hsl(var(--foreground)); }
html.dark .hero-bg { background: linear-gradient(135deg,#162632,#10202b); }
html.dark .features-section { background:#121c24; }
html.dark .platform-section { background:#0f1a22; }
html.dark .contact-section { background:#121c24; }
html.dark .footer-section { background:#10171d; border-top:1px solid hsl(var(--border)); }
html.dark .feature-card, html.dark .contact-form-card, html.dark .platform-stat-card { background:#18252f; box-shadow:0 4px 24px -4px rgba(0,0,0,0.6); }
html.dark .feature-title, html.dark .platform-title, html.dark .contact-title { color:#f5f8fa; }
html.dark .feature-desc, html.dark .platform-desc, html.dark .contact-desc, html.dark .footer-desc { color:#b4c2cc; }
/* Additional dark mode overrides for headings & section descriptions */
html.dark .hero-content h1 { color:#f5f8fa; }
html.dark .hero-content p { color:#b4c2cc; }
html.dark .features-title { color:#f5f8fa; }
html.dark .features-desc { color:#b4c2cc; }
html.dark .contact-quick-desc, html.dark .contact-response-note { color:#b4c2cc; }
html.dark .platform-list li { color:#5ecaea; }
html.dark .platform-stat-value { color:#5ecaea; }
html.dark .contact-email-link { background:#19313b; color:#5ecaea; }
html.dark .contact-email-link:hover { background:#5ecaea; color:#0d1a22; }
html.dark .contact-why-card { background:#18252f; }
html.dark .contact-why-list { color:#5ecaea; }
html.dark .footer-link { color:#d0dae0; }
html.dark .footer-link:hover { color:#5ecaea; }
html.dark .footer-bottom { border-top:1px solid hsl(var(--border)); }
html.dark .eu-funding.refined { border-top:1px solid hsl(var(--border)); }
html.dark .eu-text .disclaimer { color:#88959e; }
html.dark .compliance, html.dark .copyright { color:#88959e; }
html.dark .construction-banner { background:#1d2c35; border-color:#2b3d49; color:#9fb4c0; }
html.dark .construction-inner .badge { background:#2b3d49; color:#bcd2dc; }
html.dark header { background:rgba(16,26,33,0.85); border-bottom:1px solid hsl(var(--border)); }
html.dark .button-hero, html.dark .platform-button, html.dark .button-primary { box-shadow:none; }
html.dark .button-outline { background:transparent; border-color:hsl(var(--border)); color:#d0dae0; }
html.dark .button-outline:hover { background:#18252f; color:#5ecaea; }
html.dark .platform-button { background:#0d9ac6; }
html.dark .platform-button:hover { background:#10aedf; }
html.dark .hero-features span { color:#5ecaea; }
html.dark .feature-card:hover { box-shadow:0 8px 32px -4px rgba(0,0,0,0.65); }

/* Theme toggle button */
.theme-toggle { border:1px solid hsl(var(--border)); background:transparent; color:hsl(var(--foreground)); height:2rem; width:2rem; display:inline-flex; align-items:center; justify-content:center; border-radius:6px; cursor:pointer; font-size:0.95rem; transition:background .25s,color .25s,border-color .25s; }
.theme-toggle:hover { background:hsl(var(--muted) / 0.4); }
html.dark .theme-toggle { color:#f1f6f8; }
html.dark .theme-toggle:hover { background:#18252f; }

/* Smooth theme transition */
body, .hero-bg, .features-section, .platform-section, .contact-section, .footer-section, header, .construction-banner { transition: background-color .4s ease, color .4s ease, border-color .4s ease; }

/* Utility Classes */
.bg-background { background-color: hsl(var(--background)); }
.bg-foreground { background-color: hsl(var(--foreground)); }
.bg-card { background-color: hsl(var(--card)); }
.bg-primary { background-color: hsl(var(--primary)); }
.bg-secondary { background-color: hsl(var(--secondary)); }
.bg-muted { background-color: hsl(var(--muted)); }
.bg-accent { background-color: hsl(var(--accent)); }

.text-background { color: hsl(var(--background)); }
.text-foreground { color: hsl(var(--foreground)); }
.text-card { color: hsl(var(--card)); }
.text-card-foreground { color: hsl(var(--card-foreground)); }
.text-primary { color: hsl(var(--primary)); }
.text-secondary { color: hsl(var(--secondary)); }
.text-muted-foreground { color: hsl(var(--muted-foreground)); }
.text-accent-foreground { color: hsl(var(--accent-foreground)); }

.border-border { border-color: hsl(var(--border)); }
.border-primary { border-color: hsl(var(--primary)); }

/* Gradients */
.bg-medical-gradient {
    background: linear-gradient(135deg, hsl(197 71% 52%), hsl(185 84% 45%));
}

.bg-hero-gradient {
    background: linear-gradient(135deg, hsl(197 71% 52%), hsl(185 84% 45%), hsl(197 71% 65%));
}

.bg-clip-text {
    -webkit-background-clip: text;
    background-clip: text;
}

.text-transparent {
    color: transparent;
}

/* Container and Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container { padding: 0 1.5rem; }
}

@media (min-width: 1024px) {
    .container { padding: 0 2rem; }
}

/* Grid System */
.grid {
    display: grid;
    gap: 1rem;
}

.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (min-width: 640px) {
    .sm\\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
    .md\\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .md\\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
    .md\\:flex { display: flex; }
    .md\\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
    .md\\:text-5xl { font-size: 3rem; line-height: 1; }
}

@media (min-width: 1024px) {
    .lg\\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .lg\\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
}

/* Flexbox Utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.space-x-2 > * + * { margin-left: 0.5rem; }
.space-x-3 > * + * { margin-left: 0.75rem; }
.space-x-4 > * + * { margin-left: 1rem; }
.space-x-8 > * + * { margin-left: 2rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }

@media (min-width: 640px) {
    .sm\\:flex-row { flex-direction: row; }
    .sm\\:space-y-0 > * + * { margin-top: 0; }
    .sm\\:inline-flex { display: inline-flex; }
}

/* Spacing */
.p-2 { padding: 0.5rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.pt-4 { padding-top: 1rem; }
.pt-8 { padding-top: 2rem; }
.pt-24 { padding-top: 6rem; }
.pb-16 { padding-bottom: 4rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-16 { margin-bottom: 4rem; }
.mt-8 { margin-top: 2rem; }
.ml-2 { margin-left: 0.5rem; }
.mr-2 { margin-right: 0.5rem; }

@media (min-width: 1024px) {
    .lg\\:py-24 { padding-top: 6rem; padding-bottom: 6rem; }
    .lg\\:pt-32 { padding-top: 8rem; }
    .lg\\:pb-24 { padding-bottom: 6rem; }
}

/* Gaps */
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }

/* Positioning */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.top-0 { top: 0; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }

/* Sizing */
.w-2 { width: 0.5rem; }
.w-8 { width: 2rem; }
.w-24 { width: 6rem; }
.w-32 { width: 8rem; }
.w-auto { width: auto; }
.w-full { width: 100%; }
.h-2 { height: 0.5rem; }
.h-4 { width: 1rem; height: 1rem; }
.h-5 { width: 1.25rem; height: 1.25rem; }
.h-6 { width: 1.5rem; height: 1.5rem; }
.h-8 { height: 2rem; }
.h-16 { height: 4rem; }
.h-24 { height: 6rem; }
.h-32 { height: 8rem; }
.h-auto { height: auto; }
.max-w-lg { max-width: 32rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }

/* Display */
.hidden { display: none; }
.block { display: block; }
.inline-flex { display: inline-flex; }

@media (min-width: 768px) {
    .md\\:flex { display: flex; }
}

@media (min-width: 640px) {
    .sm\\:inline-flex { display: inline-flex; }
}

/* Typography */
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }

@media (min-width: 768px) {
    .md\\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
    .md\\:text-5xl { font-size: 3rem; line-height: 1; }
}

@media (min-width: 1024px) {
    .lg\\:text-6xl { font-size: 3.75rem; line-height: 1; }
}

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }
.text-center { text-align: center; }

/* Borders and Rounded */
.border { border-width: 1px; }
.border-t { border-top-width: 1px; }
.border-b { border-bottom-width: 1px; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-full { border-radius: 9999px; }

/* Shadows */
.shadow-card {
    box-shadow: var(--shadow-card);
}

.shadow-medical {
    box-shadow: var(--shadow-medical);
}

.shadow-glow {
    box-shadow: var(--shadow-glow);
}

/* Transitions and Animations */
.transition-colors {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.transition-transform {
    transition-property: transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.duration-300 {
    transition-duration: 300ms;
}

.group:hover .group-hover\\:translate-x-1 {
    transform: translateX(0.25rem);
}

/* Effects */
.backdrop-blur-md {
    backdrop-filter: blur(12px);
}

.blur-xl {
    filter: blur(24px);
}

.overflow-hidden {
    overflow: hidden;
}

.flex-shrink-0 {
    flex-shrink: 0;
}

.resize-none {
    resize: none;
}

/* Opacity */
.opacity-10 { opacity: 0.1; }

/* Special position classes */
.-top-4 { top: -1rem; }
.-right-4 { right: -1rem; }
.-bottom-8 { bottom: -2rem; }
.-left-8 { left: -2rem; }

/* Button Component Styles */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
    text-decoration: none;
    font-family: inherit;
}

.button:focus-visible {
    outline: 2px solid hsl(var(--ring));
    outline-offset: 2px;
}

.button:disabled {
    pointer-events: none;
    opacity: 0.5;
}

.button svg {
    pointer-events: none;
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

/* Button Variants */
.button-default {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    box-shadow: var(--shadow-medical);
}

.button-default:hover {
    background-color: hsl(var(--primary) / 0.9);
}

.button-outline {
    border: 1px solid hsl(var(--primary) / 0.2);
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
}

.button-outline:hover {
    background-color: hsl(var(--primary) / 0.05);
    color: hsl(var(--primary));
}

.button-hero {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    box-shadow: var(--shadow-glow);
}

.button-hero:hover {
    background-color: hsl(var(--primary) / 0.9);
    box-shadow: var(--shadow-medical);
}
/* Remove default outline on Get Started (hero) button; provide subtle focus ring instead */
.button-hero:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px hsl(var(--primary) / 0.45), var(--shadow-medical);
}

.button-medical {
    background: linear-gradient(135deg, hsl(197 71% 52%), hsl(185 84% 45%));
    color: white;
    box-shadow: var(--shadow-medical);
}

.button-medical:hover {
    opacity: 0.9;
    box-shadow: var(--shadow-glow);
}

/* Button Sizes */
.button-sm {
    height: 2.25rem;
    border-radius: 0.375rem;
    padding: 0 0.75rem;
}

.button-lg {
    height: 2.75rem;
    border-radius: 0.375rem;
    padding: 0 2rem;
}

.button {
    height: 2.5rem;
    padding: 0.5rem 1rem;
}

/* Form Styles */
input[type="text"],
input[type="email"],
textarea {
    font-family: inherit;
    font-size: inherit;
    color: hsl(var(--foreground));
    transition: var(--transition-smooth);
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    outline: 2px solid hsl(var(--primary) / 0.5);
    outline-offset: 2px;
}

label {
    display: block;
}

/* Hover Effects */
.hover-text-foreground:hover {
    color: hsl(var(--foreground));
}

.hover-text-primary:hover {
    color: hsl(var(--primary));
}

.hover-border-primary-20:hover {
    border-color: hsl(var(--primary) / 0.2);
}

.hover-shadow-medical:hover {
    box-shadow: var(--shadow-medical);
}

/* Min height */
.min-h-screen {
    min-height: 100vh;
}

/* Background position and size utilities */
.bg-accent-30 {
    background-color: hsl(var(--accent) / 0.3);
}

.bg-accent-50 {
    background-color: hsl(var(--accent) / 0.5);
}

.bg-primary-10 {
    background-color: hsl(var(--primary) / 0.1);
}

.bg-background-80 {
    background-color: hsl(var(--background) / 0.8);
}

.border-border-50 {
    border-color: hsl(var(--border) / 0.5);
}

.border-primary-20 {
    border-color: hsl(var(--primary) / 0.2);
}

.bg-accent-20 {
    background-color: hsl(var(--accent) / 0.2);
}

/* Text utilities */
.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* Responsive utilities */
@media (min-width: 640px) {
    .sm\\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
}

@media (min-width: 1024px) {
    .lg\\:px-8 { padding-left: 2rem; padding-right: 2rem; }
}

/* Dark mode support (if needed) */
@media (prefers-color-scheme: dark) {
    :root {
        --background: 215 28% 10%;
        --foreground: 0 0% 98%;
        --card: 215 28% 12%;
        --card-foreground: 0 0% 98%;
        --popover: 215 28% 12%;
        --popover-foreground: 0 0% 98%;
        --primary: 197 71% 52%;
        --primary-foreground: 0 0% 100%;
        --primary-glow: 197 71% 65%;
        --secondary: 215 28% 15%;
        --secondary-foreground: 0 0% 98%;
        --muted: 215 28% 15%;
        --muted-foreground: 215 15% 65%;
        --accent: 185 84% 20%;
        --accent-foreground: 197 71% 65%;
        --destructive: 0 62.8% 30.6%;
        --destructive-foreground: 0 0% 98%;
        --border: 215 28% 15%;
        --input: 215 28% 15%;
        --ring: 197 71% 52%;
        --glass-bg: rgba(255, 255, 255, 0.05);
        --glass-border: rgba(255, 255, 255, 0.1);
    }
}

/* Custom animations for enhanced user experience */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Header Navigation Styles */
.nav-menu {
    display: none;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: hsl(var(--muted-foreground));
    text-decoration: none;
    transition: var(--transition-smooth);
}

.nav-link:hover {
    color: hsl(var(--foreground));
}

.header-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.demo-button {
    display: none;
}

/* Responsive Navigation */
@media (min-width: 768px) {
    .nav-menu {
        display: flex;
    }
}

@media (min-width: 640px) {
    .demo-button {
        display: inline-flex;
    }
}

/* Performance optimizations */
* {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

/* Additional responsive breakpoints for better mobile experience */
@media (max-width: 640px) {
    .container {
        padding: 0 1rem;
    }
    
    .text-4xl {
        font-size: 2rem;
        line-height: 2.25rem;
    }
    
    .text-3xl {
        font-size: 1.75rem;
        line-height: 2rem;
    }
}

.hero-bg {
  background: linear-gradient(135deg, #eaf7fc 0%, #d6f0fa 100%);
  padding: 48px 0;
  margin-top: 80px; /* Prevent content from being cut off by fixed header */
}
.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 0 32px;
}
.hero-content {
  flex: 1;
}
.hero-content h1 {
  font-size: 3rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 24px;
  line-height: 1.1;
}
.text-accent {
  color: #18b6e6;
}
.hero-content p {
  font-size: 1.25rem;
  color: #444;
  margin-bottom: 32px;
  max-width: 500px;
}
.hero-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
}
.button-primary {
  background: #18b6e6;
  color: #fff;
  border: none;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(24,182,230,0.12);
  transition: background 0.2s;
  text-decoration:none;
}
.button-primary:hover {
  background: #139dc7;
  text-decoration:none;
}
.button-primary:focus,
.button-primary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(24,182,230,0.45);
}
.button-outline {
  background: #fff;
  color: #222;
  border: 1px solid #eee;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: border 0.2s;
  text-decoration:none;
}
.button-outline:hover {
  border-color: #18b6e6;
  text-decoration:none;
}
.hero-features {
  display: flex;
  gap: 24px;
  color: #18b6e6;
  font-size: 1rem;
  margin-top: 8px;
}
.hero-image {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}
.hero-image img {
  width: 100%;
  max-width: 640px; /* enlarged from 500px */
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(24,182,230,0.18);
  display: block;
}
/* Extra-large screens: allow even larger hero image */
@media (min-width: 1400px) {
  .hero-image img { max-width: 700px; }
  .hero-container { max-width: 1400px; }
}
/* Centered Features Header */
.features-header {
  text-align: center;
  margin-bottom: 48px;
}
.features-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 12px;
  line-height: 1.2;
}
.features-accent {
  display: block;
  font-size: 2.1rem;
  font-weight: 700;
  color: #18b6e6;
  margin-top: 4px;
}
.features-desc {
  text-align: center;
  font-size: 1.25rem;
  color: #444;
  margin-bottom: 0;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
/* Features Matrix Styles */
.features-section {
  background: #f7fbfd;
  padding: 64px 0;
}
.features-title {
  text-align: center;
  font-size: 2.25rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 12px;
}
.features-title .text-accent {
  color: #18b6e6;
}
.features-desc {
  text-align: center;
  font-size: 1.25rem;
  color: #444;
  margin-bottom: 48px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}
.feature-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(24,182,230,0.12);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  min-height: 220px;
  transition: box-shadow 0.2s;
}
.feature-card:hover {
  box-shadow: 0 12px 40px rgba(24,182,230,0.18);
}
/* Platform Section Styles */
.platform-section {
  background: #eaf7fc;
  padding: 64px 0;
}
.platform-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 48px;
  align-items: flex-start;
  padding: 0 32px;
}
.platform-left {
  flex: 1;
}
.platform-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 8px;
  line-height: 1.2;
}
.platform-accent {
  color: #18b6e6;
  font-size: 2.1rem;
  font-weight: 700;
  display: block;
}
.platform-desc {
  font-size: 1.15rem;
  color: #444;
  margin-bottom: 24px;
  max-width: 600px;
}
.platform-list {
  list-style: none;
  padding: 0;
  margin-bottom: 32px;
}
.platform-list li {
  font-size: 1.08rem;
  color: #18b6e6;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  font-weight: 500;
}
.platform-check {
  color: #18b6e6;
  font-size: 1.2rem;
  margin-right: 10px;
}
.platform-button {
  background: #18b6e6;
  color: #fff;
  border: none;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 16px rgba(24,182,230,0.12);
  transition: background 0.2s;
  margin-top: 16px;
  text-decoration: none; /* remove underline when used as anchor */
  display: inline-block; /* ensure proper box when anchor */
}
.platform-button:hover {
  background: #139dc7;
}
.platform-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.platform-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.platform-stat-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(24,182,230,0.13);
  padding: 32px 0;
  text-align: center;
  min-width: 180px;
}
.platform-stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: #18b6e6;
  margin-bottom: 8px;
}
.platform-stat-label {
  font-size: 1.08rem;
  color: #444;
}
@media (max-width: 900px) {
  .platform-container {
    flex-direction: column;
    gap: 32px;
    text-align: center;
  }
  .platform-left, .platform-right {
    justify-content: center;
    align-items: center;
    width: 100%;
  }
  .platform-desc {
    margin-left: auto;
    margin-right: auto;
  }
}
.feature-icon {
  background: #eaf7fc;
  color: #18b6e6;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.feature-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #222;
}
.feature-desc {
  font-size: 1rem;
  color: #444;
}
@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
  .features-section {
    padding: 32px 0;
  }
}
/* Contact Section Styles */
.contact-section {
  background: #f7fbfd;
  padding: 64px 0;
}
.contact-header {
  text-align: center;
  margin-bottom: 48px;
}
.contact-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 8px;
  line-height: 1.2;
}
.contact-accent {
  color: #18b6e6;
  font-size: 2.1rem;
  font-weight: 700;
  display: block;
}
.contact-desc {
  font-size: 1.15rem;
  color: #444;
  margin-bottom: 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.contact-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 48px;
  align-items: flex-start;
  padding: 0 16px;
}

/* Contact Section: make both cards equal height and align titles */
.contact-container {
  display: flex;            /* override previous grid */
  align-items: stretch;     /* equal heights */
  gap: 48px;
}

.contact-form-card,
.contact-info-col {
  display: flex;
  flex-direction: column;
  height: auto;             /* no forced min-height */
  padding: 32px 28px;       /* consistent internal spacing */
}

/* Align headings so baselines match */
.contact-form-title,
.contact-info-title {
  margin-top: 0;
  margin-bottom: 18px;
  line-height: 1.2;
}

/* Push disclaimer to the bottom of the right card (if present) */
.contact-info-col .contact-disclaimer,
.contact-info-col p.disclaimer,
.contact-info-col p:last-child {
  margin-top: auto;
  opacity: 0.9;
}

/* Mobile: stack neatly */
@media (max-width: 900px) {
  .contact-container { flex-direction: column; }
  .contact-form-card, .contact-info-col { width: 100%; min-width: 0; }
}

/* Contact: make both cards identical and same height */
.contact-section .contact-container {
  display: flex;
  gap: 48px;
  align-items: stretch;              /* equal heights */
}

.contact-section .contact-card {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  background: #18252f;               /* matches right card in dark mode */
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 14px 40px rgba(0,0,0,0.45);
}

html:not(.dark) .contact-section .contact-card {
  background: #0f1a22;               /* light mode equivalent */
}

/* Title style (use “Get in Touch” look for both) */
.contact-section .contact-card-title {
  margin: 0 0 18px;
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.2;
  color: #222;
}
html.dark .contact-section .contact-card-title { color: #f5f8fa; }

/* List + disclaimer inside right card */
.contact-section .contact-why-list { font-size: 0.98rem; color: #5ecaea; list-style: none; padding: 0; margin: 0 0 14px; }
.contact-section .contact-why-list li { margin-bottom: 8px; }
.contact-section .contact-disclaimer { margin-top: auto; opacity: 0.9; color: #b4c2cc; }

/* Email link style keeps current behavior */
.contact-email-link { display:inline-block; padding: 12px 14px; border-radius: 10px; background:#eaf7fc; color:#18b6e6; text-decoration:none; }
.contact-email-link:hover { background:#d6f0fa; }
html.dark .contact-email-link { background:#19313b; color:#5ecaea; }
html.dark .contact-email-link:hover { background:#5ecaea; color:#0d1a22; }

/* Mobile stack */
@media (max-width: 900px) {
  .contact-section .contact-container { flex-direction: column; gap: 24px; }
  .contact-section .contact-card { padding: 24px; }
}

/* Footer Section Styles */
.footer-section {
  background: #f7fbfd;
  border-top: 1px solid #e3eaf3;
  padding: 48px 0 0 0;
  font-size: 1rem;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 48px;
  align-items: flex-start;
  padding: 0 32px 32px 32px;
}
.footer-logo-desc {
  flex: 1.2;
  min-width: 260px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

/* Header logo: fix oversized desktop, improve mobile sizing */
header .header-logo {
  display: block;
  width: auto !important;      /* override any global img { width:100% } */
  max-width: none !important;
  height: 28px;                /* default on very small phones */
  max-height: 44px;            /* never exceed this */
  object-fit: contain;
}

/* Small phones / common mobile */
@media (min-width: 360px) {
  header .header-logo { height: 32px; }
}

/* Tablets / small desktops */
@media (min-width: 640px) {
  header .header-logo { height: 36px; }
}

/* Larger desktops */
@media (min-width: 1024px) {
  header .header-logo { height: 40px; }
}

.footer-logo-img { height:32px; width:auto; display:block; }
.footer-logo-text {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.footer-desc {
  color: #444;
  font-size: 1.08rem;
  margin-bottom: 0;
  max-width: 320px;
}
.footer-links {
  flex: 2;
  display: flex;
  gap: 64px;
  justify-content: flex-start;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 160px;
}
.footer-col-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 8px;
}
.footer-link {
  color: #222;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.2s;
}
.footer-link:hover {
  color: #18b6e6;
}
.footer-bottom {
  border-top: 1px solid #e3eaf3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 32px 0 32px;
  font-size: 0.98rem;
  color: #888;
  max-width: 1200px;
  margin: 0 auto;
}
/* Remove duplicate differing definition; optional subtle shadow if desired */
/* .footer-logo-img { filter:drop-shadow(0 2px 4px rgba(0,0,0,0.08)); } */
.footer-copyright {
  color: #888;
}
.footer-compliance {
  color: #888;
  text-align: right;
}
@media (max-width: 900px) {
  .footer-container {
    flex-direction: column;
    gap: 32px;
    text-align: center;
    padding: 0 16px 32px 16px;
  }
  .footer-links {
    justify-content: center;
    gap: 32px;
  }
  .footer-logo-desc {
    margin-bottom: 24px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    padding: 18px 16px 0 16px;
  }
}
.contact-form-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 18px;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact-form-row {
  display: flex;
  gap: 16px;
}
.contact-form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.contact-form-group label {
  font-size: 0.98rem;
  font-weight: 500;
  color: #222;
}
.contact-form-group input,
.contact-form-group textarea {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #e3eaf3;
  font-size: 1rem;
  background: #f7fbfd;
  color: #222;
  font-family: inherit;
  resize: none;
}
.contact-form-group input:focus,
.contact-form-group textarea:focus {
  outline: 2px solid #18b6e6;
  outline-offset: 2px;
}
.contact-form-button {
  background: linear-gradient(90deg, #18b6e6 60%, #5ee2fa 100%);
  color: #fff;
  border: none;
  padding: 14px 0;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 16px rgba(24,182,230,0.12);
  transition: background 0.2s;
  width: 100%;
  margin-top: 8px;
}
.contact-form-button:hover {
  background: #139dc7;
}
.contact-info-col {
  flex: 1;
  min-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.contact-info-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 18px;
}
.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.contact-info-icon {
  font-size: 1.5rem;
  color: #18b6e6;
  background: #eaf7fc;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-info-label {
  font-size: 1rem;
  font-weight: 600;
  color: #222;
}
.contact-info-value {
  font-size: 1rem;
  color: #444;
}
.contact-why-card {
  background: #eaf7fc;
  border-radius: 14px;
  padding: 18px 20px;
  margin-top: 12px;
}
.contact-why-title {
  font-size: 1rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 10px;
}
.contact-why-list {
  font-size: 0.98rem;
  color: #18b6e6;
  list-style: none;
  padding: 0;
  margin: 0;
}
.contact-why-list li {
  margin-bottom: 6px;
}
@media (max-width: 900px) {
  .contact-container {
    flex-direction: column;
    gap: 32px;
    text-align: center;
  }
  .contact-form-card, .contact-info-col {
    width: 100%;
    min-width: 0;
  }
}
@media (max-width: 900px) {
  .hero-container {
    flex-direction: column;
    gap: 32px;
    text-align: center;
  }
  .hero-image {
    justify-content: center;
  }
  .hero-content h1 {
    font-size: 2.2rem;
  }
}
/* Anchor navigation helpers */
.features-section, .platform-section, .contact-section, .anchor-target { scroll-margin-top: 100px; }
.anchor-target { width: 100%; height: 1px; }
/* Construction Banner */
.construction-banner { position:relative; top:0; width:100%; background:#fff8e6; border-bottom:1px solid #f5d89a; margin-top:64px; font-size:0.9rem; color:#8a5b00; }
.construction-inner { max-width:1200px; margin:0 auto; padding:8px 32px; display:flex; gap:12px; align-items:center; }
.construction-inner p { margin:0; line-height:1.3; }
.construction-inner .badge { background:#f5d89a; color:#6d4700; font-size:0.65rem; font-weight:600; letter-spacing:0.5px; text-transform:uppercase; padding:4px 8px; border-radius:4px; }
@media (max-width:700px){ .construction-inner { flex-direction:column; align-items:flex-start; padding:10px 16px; } }
/* Header scrolled state */
header.is-scrolled { backdrop-filter:blur(18px); background:rgba(255,255,255,0.9); transition:background .35s ease, backdrop-filter .35s ease; }
html.dark header.is-scrolled { background:rgba(16,26,33,0.9); }
/* EU Funding Footer Block */
.footer-bottom { flex-direction:column; align-items:stretch; gap:24px; }
.eu-funding { display:flex; gap:20px; align-items:flex-start; }
.funding-logos-row { display:flex; align-items:center; gap:28px; padding:4px 0; }
.eu-flag { height:48px; width:auto; flex-shrink:0; image-rendering:auto; }
.ngi-logo { height:32px; width:auto; flex-shrink:0; image-rendering:auto; }
.eu-funding.refined { border-top:1px solid #e3eaf3; padding-top:22px; margin-top:32px; }
.eu-text { max-width:720px; }
.eu-text .grant { font-size:0.78rem; font-weight:600; letter-spacing:0.2px; }
.eu-text .grant-prefix { font-weight:500; opacity:0.9; }
.eu-text .disclaimer { font-size:0.68rem; line-height:1.35; color:#555; }
@media (max-width:900px){
  .funding-logos-row { gap:18px; }
  .eu-flag { height:44px; }
  .ngi-logo { height:30px; }
  .eu-text .grant { font-size:0.74rem; }
  .eu-text .disclaimer { font-size:0.66rem; }
}
.eu-text { font-size:0.72rem; line-height:1.35; color:#555; }
.eu-text .grant { font-size:0.74rem; margin:0 0 6px; color:#333; }
.eu-text .disclaimer { margin:0; }
.footer-meta { display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap; font-size:0.85rem; color:#777; border-top:1px solid #e3eaf3; padding-top:16px; }
.footer-meta .compliance { text-align:right; }
@media (max-width:900px){
  .eu-funding { flex-direction:column; }
  .eu-text { font-size:0.7rem; }
  .footer-meta { flex-direction:column; text-align:center; }
  .footer-meta .compliance { text-align:center; }
}

/* ==== Dark mode contrast improvements (appended) ==== */
.contact-disclaimer { font-size:0.78rem; color:#666; margin-top:10px; line-height:1.3; }
html.dark .contact-form-title,
html.dark .contact-why-title,
html.dark .footer-col-title { color:#f5f8fa; }
html.dark .contact-disclaimer { color:#92a6b2; }
html.dark .eu-text { color:#9bb0ba; }
html.dark .eu-text .grant { color:#f5f8fa; }
html.dark .eu-text .disclaimer { color:#95a8b3; }
/* Clarify footer column titles & grant in dark mode */
