/* ========================================
   VoltSense - Nordic Style Design System
   ======================================== */

/* CSS Variables */
:root {
    --navy: #0E1E2F;
    --teal: #1AC6D8;
    --white: #FFFFFF;
    --light-gray: #F5F7FA;
    --mid-gray: #8B95A5;
    --dark-gray: #3E4C5E;

    --font-heading: 'Manrope', sans-serif;
    --font-body: 'Inter', sans-serif;

    --max-width: 1200px;
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    --shadow-sm: 0 2px 8px rgba(14, 30, 47, 0.08);
    --shadow-md: 0 4px 16px rgba(14, 30, 47, 0.12);
    --shadow-lg: 0 8px 32px rgba(14, 30, 47, 0.16);

    /* Liquid Glass Variables */
    --glass-bg: rgba(255,255,255,0.14);
    --glass-bg-dark: rgba(10, 20, 32, 0.35);
    --glass-stroke: rgba(255,255,255,0.35);
    --glass-inner: rgba(255,255,255,0.25);
    --glass-shadow: 0 10px 40px rgba(14,30,47,0.25);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--navy);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

/* ========================================
   Liquid Glass Utilities
   ======================================== */

.glass {
    /* Hardcoded rgba for better Edge compatibility */
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(16px) saturate(120%);
    -webkit-backdrop-filter: blur(16px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 10px 40px rgba(14, 30, 47, 0.25);
    border-radius: 16px;
    position: relative;
}

.glass-dark {
    background: rgba(10, 20, 32, 0.35);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.35);
    border-radius: 18px;
    position: relative;
}

.glass-cta {
    background: linear-gradient(to bottom right,
        rgba(255, 255, 255, 0.12),
        rgba(255, 255, 255, 0.06));
    backdrop-filter: blur(22px) saturate(140%);
    -webkit-backdrop-filter: blur(22px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 18px 64px rgba(0, 0, 0, 0.35);
    border-radius: 20px;
    position: relative;
}

/* Hairline inner highlight */
.glass::after, .glass-dark::after, .glass-cta::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    border: 1px solid rgba(255,255,255,0.12);
    mask: linear-gradient(#fff, #fff) content-box, linear-gradient(#fff, #fff);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    padding: 1px;
}

/* Animated gradient background for sections */
.bg-liquid {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(1200px 600px at 10% -10%, rgba(26,198,216,0.12), transparent 60%),
        radial-gradient(900px 500px at 90% 10%, rgba(14,30,47,0.18), transparent 60%),
        linear-gradient(180deg, #0E1E2F 0%, #0E1E2F 40%, #0c1a29 100%);
    isolation: isolate;
}

.bg-liquid .blob {
    position: absolute;
    filter: blur(40px);
    opacity: 0.55;
    mix-blend-mode: screen;
    animation: drift 16s ease-in-out infinite alternate;
}

.blob.blob-1 {
    width: 38vw;
    height: 38vw;
    background: rgba(26,198,216,0.35);
    top: -10vh;
    left: -8vw;
    border-radius: 40% 60% 50% 70%/60% 40% 60% 40%;
}

.blob.blob-2 {
    width: 28vw;
    height: 28vw;
    background: rgba(255,255,255,0.14);
    top: 20vh;
    right: -6vw;
    border-radius: 60% 40% 70% 50%/50% 60% 40% 50%;
    animation-delay: 0.8s;
}

@keyframes drift {
    to {
        transform: translate3d(2vw, 3vh, 0) scale(1.08);
    }
}

/* Fallback for browsers without backdrop-filter */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .glass, .glass-dark, .glass-cta {
        background: rgba(255, 255, 255, 0.85);
    }
}

/* Edge-specific fixes for glass transparency */
/* Chromium Edge */
@supports (-ms-ime-align: auto) {
    .glass,
    .hero-content .glass {
        background: rgba(255, 255, 255, 0.12) !important;
        border: 1px solid rgba(255, 255, 255, 0.35) !important;
        backdrop-filter: blur(16px) saturate(120%) !important;
        -webkit-backdrop-filter: blur(16px) saturate(120%) !important;
    }

    .nav-header,
    .nav-header.scrolled,
    .nav-header.on-white {
        background: rgba(255, 255, 255, 0.12) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.35) !important;
    }
}

/* Legacy Edge (EdgeHTML) */
@supports (-ms-accelerator: true) {
    .glass,
    .hero-content .glass {
        background: rgba(255, 255, 255, 0.10) !important;
        border: 1px solid rgba(255, 255, 255, 0.35) !important;
        backdrop-filter: blur(16px) saturate(120%) !important;
        -webkit-backdrop-filter: blur(16px) saturate(120%) !important;
    }

    .nav-header,
    .nav-header.scrolled,
    .nav-header.on-white {
        background: rgba(255, 255, 255, 0.10) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.35) !important;
    }
}

/* Container */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

.section-title {
    font-size: clamp(32px, 5vw, 48px);
    margin-bottom: 48px;
    color: var(--navy);
}

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

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-primary-large,
.btn-secondary-large {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary,
.btn-primary-large {
    background: var(--teal);
    color: var(--white);
}

.btn-primary:hover,
.btn-primary-large:hover {
    background: #15A8B8;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary,
.btn-secondary-large {
    background: transparent;
    color: var(--navy);
    border-color: var(--navy);
}

.btn-secondary:hover,
.btn-secondary-large:hover {
    background: var(--navy);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-primary-large,
.btn-secondary-large {
    padding: 18px 48px;
    font-size: 18px;
}

/* Navigation */
.nav-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.14) !important;
    backdrop-filter: blur(16px) saturate(120%);
    -webkit-backdrop-filter: blur(16px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 10px 40px rgba(14, 30, 47, 0.25);
    border-radius: 0;
}

.nav-header.scrolled {
    background: rgba(255, 255, 255, 0.14) !important;
    backdrop-filter: blur(16px) saturate(120%);
    -webkit-backdrop-filter: blur(16px) saturate(120%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 10px 40px rgba(14, 30, 47, 0.25);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    color: var(--white);
}

.nav-logo .logo-image {
    height: 32px;
    width: auto;
}

.nav-header.scrolled .nav-logo a {
    color: var(--navy);
}

.nav-menu {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-menu a {
    color: var(--white);
    font-weight: 500;
    font-size: 15px;
}

.nav-header.scrolled .nav-menu a {
    color: var(--navy);
}

.nav-menu a:hover {
    color: var(--teal);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Custom Language Dropdown */
.language-dropdown {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-family: var(--font-body);
    cursor: pointer;
    transition: var(--transition);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='white' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 32px;
}

/* Hide mobile language dropdown by default (only shown on mobile in menu) */
.language-dropdown-mobile {
    display: none;
}

.language-dropdown:hover {
    border-color: var(--teal);
}

.nav-header.scrolled .language-dropdown,
.nav-header.on-white .language-dropdown {
    color: var(--navy);
    border-color: var(--mid-gray);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2314355c' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
}

.nav-header.scrolled .language-dropdown:hover,
.nav-header.on-white .language-dropdown:hover {
    border-color: var(--teal);
}

/* Login Button in Navigation */
.nav-actions .btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.nav-actions .btn-secondary:hover {
    background: var(--white);
    color: var(--navy);
}

.nav-header.scrolled .nav-actions .btn-secondary,
.nav-header.on-white .nav-actions .btn-secondary {
    background: transparent;
    color: var(--navy);
    border-color: var(--navy);
}

.nav-header.scrolled .nav-actions .btn-secondary:hover,
.nav-header.on-white .nav-actions .btn-secondary:hover {
    background: var(--navy);
    color: var(--white);
}

/* Hide Google Translate widget but keep it functional */
#google_translate_element {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Hide Google Translate branding and top bar */
.goog-te-banner-frame.skiptranslate {
    display: none !important;
}

.goog-te-banner-frame {
    display: none !important;
}

.goog-te-gadget-icon {
    display: none !important;
}

body {
    top: 0px !important;
    position: static !important;
}

.skiptranslate {
    display: none !important;
}

iframe.skiptranslate {
    display: none !important;
}

.goog-te-balloon-frame {
    display: none !important;
}

#goog-gt-tt {
    display: none !important;
}

#google_translate_element .goog-te-gadget-simple .goog-te-menu-value span:first-child {
    display: none;
}

/* Nav on white backgrounds (buy, blog, specs, ecosystem pages) */
.nav-header.on-white {
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(16px) saturate(120%);
    -webkit-backdrop-filter: blur(16px) saturate(120%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 10px 40px rgba(14, 30, 47, 0.25);
}

.nav-header.on-white .nav-logo a,
.nav-header.on-white .nav-menu a {
    color: var(--navy);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
}

.nav-header.scrolled .nav-toggle span {
    background: var(--navy);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero.bg-liquid {
    background:
        radial-gradient(1200px 600px at 10% -10%, rgba(26,198,216,0.15), transparent 60%),
        radial-gradient(900px 500px at 90% 10%, rgba(14,30,47,0.25), transparent 60%),
        linear-gradient(180deg, #0E1E2F 0%, #0E1E2F 40%, #0c1a29 100%);
}

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

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(14, 30, 47, 0.7) 0%, rgba(14, 30, 47, 0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--white);
    max-width: 900px;
    padding: 0 24px;
}

.hero-content .glass {
    isolation: isolate;
    transform: translateZ(0);
    /* Force transparency for all browsers including Edge */
    background: rgba(255, 255, 255, 0.14) !important;
    backdrop-filter: blur(16px) saturate(120%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(120%) !important;
}

.hero-title {
    font-size: clamp(40px, 7vw, 72px);
    margin-bottom: 24px;
    font-weight: 800;
}

.hero-subtitle {
    font-size: clamp(18px, 3vw, 24px);
    margin-bottom: 40px;
    line-height: 1.5;
    opacity: 0.95;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-badges {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.badge {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.scroll-arrow {
    width: 24px;
    height: 40px;
    border: 2px solid var(--white);
    border-radius: 12px;
    position: relative;
}

.scroll-arrow::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--white);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0%, 100% {
        opacity: 0;
        transform: translateX(-50%) translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) translateY(8px);
    }
}

/* Product Section */
.product-section {
    padding: 120px 0;
    background: var(--white);
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.product-image img {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.floating {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.product-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 32px 0;
}

.product-features li {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 17px;
    color: var(--dark-gray);
}

.product-features .icon {
    width: 24px;
    height: 24px;
    fill: var(--teal);
    flex-shrink: 0;
}

.product-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 32px;
}

/* Features Section */
.features-section {
    padding: 120px 0;
    background: var(--light-gray);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-bottom: 64px;
}

.feature-card {
    background: var(--white);
    padding: 40px 32px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.feature-card.glass {
    padding: 40px 32px;
}

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

.feature-card.glass:hover {
    box-shadow: 0 20px 60px rgba(14,30,47,0.3);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--teal), #15A8B8);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    fill: var(--white);
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--navy);
}

.feature-card p {
    color: var(--dark-gray);
    line-height: 1.7;
}

.section-cta {
    text-align: center;
    margin-top: 64px;
}

/* Ecosystem Overview Section (Homepage) */
.ecosystem-overview-section {
    padding: 80px 0;
    background: var(--light-gray);
}

.ecosystem-overview-content {
    text-align: center;
}

.ecosystem-overview-intro {
    font-size: 20px;
    color: var(--dark-gray);
    max-width: 700px;
    margin: 0 auto 64px;
    line-height: 1.7;
}

.ecosystem-overview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 48px;
}

.eco-overview-card {
    background: var(--white);
    padding: 40px 32px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.eco-overview-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.eco-overview-icon {
    font-size: 64px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eco-overview-icon img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.eco-overview-card h3 {
    font-size: 24px;
    margin-bottom: 12px;
    color: var(--navy);
}

.eco-overview-card p {
    font-size: 16px;
    color: var(--dark-gray);
    line-height: 1.6;
}

.ecosystem-overview-cta {
    margin-top: 32px;
}

/* Ecosystem Section (Full Page) */
.ecosystem-section {
    padding: 120px 0;
    background: var(--white);
}

.page-title {
    font-size: clamp(36px, 6vw, 56px);
    margin-bottom: 24px;
    text-align: center;
}

.ecosystem-header {
    text-align: center;
    margin-bottom: 80px;
}

.ecosystem-intro {
    font-size: 20px;
    line-height: 1.7;
    color: var(--dark-gray);
    max-width: 800px;
    margin: 0 auto;
}

.ecosystem-visual {
    margin-bottom: 100px;
}

.ecosystem-diagram {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 48px;
    align-items: start;
}

/* Core Product Card */
.eco-product.core {
    background: linear-gradient(135deg, var(--navy) 0%, #1a2d42 100%);
    color: var(--white);
    padding: 40px 32px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    text-align: center;
    position: sticky;
    top: 120px;
}

.eco-image {
    margin-bottom: 24px;
}

.eco-image img {
    max-width: 200px;
    margin: 0 auto;
}

.eco-product h3 {
    font-size: 28px;
    margin-bottom: 8px;
}

.eco-badge {
    display: inline-block;
    background: var(--teal);
    color: var(--white);
    padding: 4px 16px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.eco-features {
    list-style: none;
    margin-bottom: 32px;
    text-align: left;
}

.eco-features li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    font-size: 15px;
}

.eco-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--teal);
    font-weight: bold;
}

.eco-product .btn-secondary {
    width: 100%;
    background: var(--white);
    color: var(--navy);
    border-color: var(--white);
}

.eco-product .btn-secondary:hover {
    background: var(--teal);
    color: var(--white);
    border-color: var(--teal);
}

/* Add-ons & Platform */
.eco-addons {
    margin-bottom: 48px;
}

.eco-platform {
    margin-bottom: 48px;
    margin-top: 64px;
    width: 100%;
}

.eco-section-title {
    font-size: 24px;
    color: var(--navy);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--teal);
}

.eco-platform .eco-section-title {
    text-align: center;
    font-size: 28px;
    margin-bottom: 40px;
    border-bottom: none;
}

.eco-addon-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.eco-addon-card {
    background: var(--light-gray);
    padding: 24px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.eco-addon-card:hover {
    background: var(--white);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.eco-addon-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.eco-addon-image {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    overflow: hidden;
    border-radius: 8px;
}

.eco-addon-image img {
    max-width: 80%;
    max-height: 100%;
    object-fit: contain;
}

.eco-addon-card h4 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--navy);
}

.eco-addon-card p {
    font-size: 14px;
    color: var(--dark-gray);
    line-height: 1.6;
    margin-bottom: 12px;
    flex-grow: 1;
}

.eco-addon-card .btn-secondary {
    margin-top: auto;
    align-self: flex-start;
}

.eco-price {
    display: inline-block;
    font-weight: 600;
    color: var(--teal);
    font-size: 16px;
}

.eco-platform-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.eco-platform-card {
    background: var(--light-gray);
    padding: 40px 32px;
    border-radius: var(--border-radius);
    text-align: center;
}

.eco-platform-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.eco-platform-card h4 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--navy);
}

.eco-platform-card p {
    font-size: 15px;
    color: var(--dark-gray);
    line-height: 1.6;
}

/* Use Case Paths */
.ecosystem-paths {
    margin-bottom: 80px;
}

.path-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.path-card {
    background: var(--white);
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
}

.path-card:hover {
    border-color: var(--teal);
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
}

.path-header {
    background: var(--navy);
    color: var(--white);
    padding: 24px;
    text-align: center;
}

.path-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 12px;
}

.path-header h4 {
    font-size: 24px;
    margin: 0;
}

.path-content {
    padding: 32px 24px;
}

.path-description {
    font-size: 16px;
    color: var(--mid-gray);
    margin-bottom: 24px;
    text-align: center;
}

.path-includes {
    list-style: none;
    margin-bottom: 24px;
}

.path-includes li {
    padding: 10px 0;
    font-size: 15px;
    color: var(--dark-gray);
    line-height: 1.6;
}

.path-card .btn-secondary {
    width: 100%;
    text-align: center;
}

/* Ecosystem Benefits */
.ecosystem-benefits {
    margin-bottom: 64px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 48px;
}

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

.benefit-icon {
    font-size: 56px;
    margin-bottom: 16px;
}

.benefit-item h4 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--navy);
}

.benefit-item p {
    font-size: 15px;
    color: var(--dark-gray);
    line-height: 1.6;
}

/* Ecosystem CTA */
.ecosystem-cta {
    background: linear-gradient(135deg, var(--navy) 0%, #1a2d42 100%);
    color: var(--white);
    padding: 64px;
    border-radius: var(--border-radius);
    text-align: center;
}

.ecosystem-cta h3 {
    font-size: 36px;
    margin-bottom: 16px;
}

.ecosystem-cta p {
    font-size: 18px;
    margin-bottom: 32px;
    opacity: 0.9;
}

/* HUB Section */
.hub-section {
    padding: 120px 0;
    background: var(--navy);
    color: var(--white);
}

.hub-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hub-section .section-title {
    color: var(--white);
    margin-bottom: 24px;
}

.hub-description {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hub-diagram {
    margin: 40px 0;
}

.diagram-flow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.diagram-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.diagram-icon {
    width: 56px;
    height: 56px;
    background: rgba(26, 198, 216, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.diagram-arrow {
    color: var(--teal);
    font-size: 24px;
}

.diagram-step span {
    font-size: 13px;
    opacity: 0.8;
}

.hub-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hub-section .btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.hub-section .btn-secondary:hover {
    background: var(--white);
    color: var(--navy);
}

.hub-image img {
    border-radius: var(--border-radius);
}

.shadow-large {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Sustainability Section */
.sustainability-section {
    padding: 120px 0;
    background: var(--white);
}

.sustainability-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 48px;
}

.sustainability-image {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.sustainability-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(14, 30, 47, 0.9), transparent);
    color: var(--white);
    padding: 24px;
    font-weight: 600;
}

.sustainability-text {
    text-align: center;
    font-size: 18px;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 48px;
    color: var(--dark-gray);
}

.sustainability-icons {
    display: flex;
    justify-content: center;
    gap: 64px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.sustainability-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.sustainability-icon {
    font-size: 48px;
}

.sustainability-badge span {
    font-weight: 600;
    color: var(--dark-gray);
}

/* Testimonials Section */
.testimonials-section {
    padding: 120px 0;
    background: var(--light-gray);
    overflow: hidden;
}

.testimonials-slider {
    overflow: hidden;
    position: relative;
    margin: 0 -24px;
}

.testimonials-track {
    display: flex;
    gap: 32px;
    animation: scroll-left 45s linear infinite;
    width: fit-content;
}

.testimonials-track:hover {
    animation-play-state: paused;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.testimonial-card {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    min-width: 450px;
    max-width: 450px;
    flex-shrink: 0;
}

.testimonial-card.glass {
    padding: 40px;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.testimonial-text {
    font-size: 17px;
    line-height: 1.7;
    color: var(--dark-gray);
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.testimonial-author strong {
    color: var(--navy);
    font-weight: 600;
    font-size: 15px;
}

.testimonial-author span {
    color: var(--mid-gray);
    font-size: 14px;
}

.partners-section {
    text-align: center;
}

.partners-title {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--mid-gray);
    margin-bottom: 32px;
}

.partners-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 64px;
    flex-wrap: wrap;
}

.partner-logo {
    opacity: 0.6;
    transition: var(--transition);
}

.partner-logo:hover {
    opacity: 1;
}

.partner-logo img {
    height: 40px;
    width: auto;
    filter: grayscale(100%);
    transition: var(--transition);
}

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

/* Blog Section */
.blog-section {
    padding: 120px 0;
    background: var(--white);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 32px;
    margin-bottom: 64px;
}

.blog-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.blog-card.glass {
    border-radius: 16px;
}

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

.blog-card.glass:hover {
    box-shadow: 0 20px 60px rgba(14,30,47,0.3);
}

.blog-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: 32px;
}

.blog-content h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--navy);
}

.blog-content p {
    color: var(--dark-gray);
    line-height: 1.7;
    margin-bottom: 16px;
}

.blog-link {
    color: var(--teal);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.blog-link:hover {
    gap: 8px;
}

/* CTA Banner */
.cta-banner {
    position: relative;
    padding: 160px 0;
    text-align: center;
    overflow: hidden;
}

.cta-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.cta-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(14, 30, 47, 0.85) 0%, rgba(26, 198, 216, 0.6) 100%);
}

.cta-content {
    position: relative;
    z-index: 10;
}

.cta-title {
    font-size: clamp(36px, 6vw, 56px);
    color: var(--white);
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background: var(--navy);
    color: var(--white);
    padding: 80px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 16px;
}

.footer-tagline {
    opacity: 0.8;
    margin-bottom: 24px;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--teal);
    transform: translateY(-4px);
}

.footer-social svg {
    width: 20px;
    height: 20px;
    fill: var(--white);
}

.footer-links h4 {
    font-size: 16px;
    margin-bottom: 16px;
    font-weight: 600;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    opacity: 0.8;
    font-size: 15px;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--teal);
    padding-left: 4px;
}

.footer-partners {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    padding: 32px 0;
    margin-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
}

.footer-partner-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

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

.footer-app-badge {
    height: 50px;
    width: auto;
    object-fit: contain;
    opacity: 0.9;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.footer-app-badge:hover {
    opacity: 1;
    transform: scale(1.05);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    opacity: 0.7;
    font-size: 14px;
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    opacity: 0.7;
    font-size: 14px;
}

.footer-legal a:hover {
    opacity: 1;
    color: var(--teal);
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 1s ease-out;
}

.fade-in-delay {
    animation: fadeIn 1s ease-out 0.2s backwards;
}

.fade-in-delay-2 {
    animation: fadeIn 1s ease-out 0.4s backwards;
}

.fade-in-delay-3 {
    animation: fadeIn 1s ease-out 0.6s backwards;
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.fade-in-up-delay {
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.fade-in-up-delay-2 {
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.fade-in-up-delay-3 {
    animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* Responsive Design */
@media (max-width: 968px) {
    /* Significantly reduce nav header height on mobile */
    .nav-container {
        padding: 8px 16px;
        min-height: auto;
    }

    /* Hide language dropdown from nav-actions on mobile */
    .nav-actions .language-dropdown {
        display: none;
    }

    /* Show language dropdown in mobile menu */
    .nav-menu .language-dropdown-mobile {
        display: block !important;
        width: 100%;
        margin-top: 8px;
        padding: 12px 32px 12px 12px;
        font-size: 16px;
        background: var(--white);
        color: var(--navy);
        border: 1px solid var(--mid-gray);
        border-radius: 8px;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2314355c' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 12px center;
    }

    /* Make login button more compact */
    .nav-actions .btn-secondary {
        padding: 8px 16px;
        font-size: 14px;
        white-space: nowrap;
    }

    /* Reduce logo size on mobile */
    .nav-logo .logo-image {
        height: 26px;
    }

    .nav-logo span {
        font-size: 18px;
    }

    .nav-menu {
        position: fixed;
        top: 50px;
        left: -100%;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 32px 24px;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu a {
        color: var(--navy);
        font-size: 18px;
    }

    .nav-toggle {
        display: flex;
    }

    .product-grid,
    .hub-grid,
    .sustainability-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .ecosystem-overview-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .ecosystem-diagram {
        grid-template-columns: 1fr;
    }

    .eco-product.core {
        position: static;
    }

    .eco-addon-grid,
    .eco-platform-grid {
        grid-template-columns: 1fr;
    }

    .path-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .hub-grid {
        direction: rtl;
    }

    .hub-grid > * {
        direction: ltr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    /* Further reduce nav height on small mobile */
    .nav-container {
        padding: 8px 12px;
    }

    /* Smaller logo on mobile */
    .nav-logo .logo-image {
        height: 24px;
    }

    .nav-logo span {
        font-size: 16px;
    }

    /* Compact login button */
    .nav-actions .btn-secondary {
        padding: 6px 12px;
        font-size: 13px;
    }

    /* Adjust mobile menu position */
    .nav-menu {
        top: 45px;
        padding: 24px 20px;
    }

    /* Adjust hero section on mobile */
    .hero {
        height: 90vh;
        padding-top: 60px;
    }

    .hero-content {
        padding: 0 20px;
    }

    .hero-content .glass {
        padding: 20px 24px !important;
    }

    .hero-title {
        font-size: clamp(28px, 6vw, 40px) !important;
        margin-bottom: 16px !important;
    }

    .hero-subtitle {
        font-size: clamp(16px, 3vw, 18px) !important;
        margin-bottom: 24px !important;
    }
}

/* Extra small mobile devices */
@media (max-width: 400px) {
    .nav-container {
        padding: 6px 10px;
    }

    /* Reduce logo size further */
    .nav-logo .logo-image {
        height: 22px;
    }

    .nav-logo span {
        font-size: 15px;
    }

    .nav-actions .btn-secondary {
        padding: 6px 10px;
        font-size: 12px;
    }

    .nav-menu {
        top: 42px;
    }

    /* Further adjust hero on extra small screens */
    .hero {
        height: 85vh;
        padding-top: 50px;
    }

    .hero-content .glass {
        padding: 18px 20px !important;
    }

    .hero-title {
        font-size: 26px !important;
        margin-bottom: 12px !important;
    }

    .hero-subtitle {
        font-size: 15px !important;
        margin-bottom: 20px !important;
    }

    .hero-cta,
    .product-cta,
    .hub-cta,
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-primary,
    .btn-secondary,
    .btn-primary-large,
    .btn-secondary-large {
        text-align: center;
    }

    .testimonials-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-card {
        min-width: 320px;
        max-width: 320px;
    }

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

    .diagram-flow {
        flex-direction: column;
    }

    .diagram-arrow {
        transform: rotate(90deg);
    }

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

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    /* Performance + mobile glass adjustments */
    .glass, .glass-dark, .glass-cta {
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
}

/* Accessibility */
@media (prefers-reduced-transparency: reduce) {
    .glass, .glass-dark, .glass-cta {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: #ffffff;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print Styles */
@media print {
    .nav-header,
    .hero,
    .cta-banner,
    .footer {
        display: none;
    }
}

/* ========================================
   GDPR Cookie Consent Banner
   ======================================== */

#cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 -4px 20px rgba(14, 30, 47, 0.15);
    padding: 24px;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 1;
    transition: opacity 0.3s ease;
    border-top: 1px solid rgba(14, 30, 47, 0.1);
}

.cookie-consent-content {
    max-width: 1200px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cookie-consent-text {
    flex: 1;
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.6;
    color: var(--dark-gray);
}

.cookie-consent-text strong {
    font-weight: 600;
    color: var(--navy);
}

.cookie-consent-text a {
    color: var(--teal);
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

.cookie-consent-text a:hover {
    opacity: 0.8;
}

.cookie-consent-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    white-space: nowrap;
}

.cookie-btn-accept {
    background: var(--teal);
    color: var(--white);
}

.cookie-btn-accept:hover {
    background: #15a8b8;
    transform: translateY(-1px);
}

.cookie-btn-reject {
    background: transparent;
    color: var(--dark-gray);
    border: 1px solid var(--mid-gray);
}

.cookie-btn-reject:hover {
    background: var(--light-gray);
}

.cookie-btn-settings {
    background: transparent;
    color: var(--teal);
    border: 1px solid var(--teal);
}

.cookie-btn-settings:hover {
    background: rgba(26, 198, 216, 0.1);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    #cookie-consent-banner {
        padding: 16px;
    }

    .cookie-consent-content {
        flex-direction: column;
        gap: 16px;
    }

    .cookie-consent-text {
        font-size: 13px;
        text-align: center;
    }

    .cookie-consent-buttons {
        flex-direction: column;
        width: 100%;
    }

    .cookie-btn {
        width: 100%;
        padding: 12px 20px;
    }
}
