/* ==========================================================================
   CSS Variables & Theme Setup
   ========================================================================== */
   :root {
    /* Color Palette */
    --bg-main: #F8F9FA;
    --bg-card: #FFFFFF;
    --bg-compliance: #F3F4F6;
    
    --text-primary: #111827;
    --text-secondary: #4B5563;
    
    --accent-start: #00A3C4;
    --accent-end: #00D2FF;
    
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 20px 40px rgba(0, 163, 196, 0.12);
    
    /* Layout & Geometry */
    --radius-card: 12px;
    --radius-btn: 8px;
    --container-max: 1200px;
    --spacing-section: 120px;
    
    /* Typography */
    --font-stack: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-family: var(--font-stack);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
}

body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4 {
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

p {
    color: var(--text-secondary);
}

/* ==========================================================================
   Components (Buttons, Tags, etc.)
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--radius-btn);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
    color: #FFFFFF;
    border: none;
    box-shadow: 0 4px 14px rgba(0, 163, 196, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 163, 196, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1.5px solid #E5E7EB;
}

.btn-outline:hover {
    border-color: var(--text-primary);
    background: var(--text-primary);
    color: #FFFFFF;
}

.tag {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(0, 163, 196, 0.08);
    color: var(--accent-start);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(248, 249, 250, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 100;
    padding: 40px 0 20px;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0;
    font-weight: 700;
    font-size: 1.25rem;
    white-space: nowrap;
}

.brand-icon {
    width: 70px;
    height: 70px;
    object-fit: contain;
    color: var(--text-primary);
    margin-right: -36px;
    margin-top: -30px;
    z-index: 10;
}

.brand-name {
    margin-top: 4px;
    z-index: 1;
    position: relative;
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-weight: 500;
    transition: color 0.2s ease;
    padding: 2px;
}

.lang-btn:hover {
    color: var(--text-primary);
}

.lang-btn.active {
    color: var(--accent-start);
}

.lang-sep {
    color: #E5E7EB;
}

.nav {
    display: none;
}

.mobile-lang-item {
    display: none;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
    z-index: 100;
}

@media (max-width: 900px) {
    .header {
        padding: 20px 0 16px;
    }

    .brand-icon {
        width: 54px;
        height: 54px;
        margin-right: -28px;
        margin-top: -26px;
    }

    .hero {
        padding: 95px 0 60px;
    }
    
    .hero-subtitle {
        margin: 0 auto 28px;
    }

    .desktop-lang {
        display: none;
    }
    
    .mobile-lang-item {
        display: block;
        width: 100%;
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid #E5E7EB;
    }
    .mobile-lang-item .lang-switch {
        font-size: 0.95rem;
        gap: 12px;
        justify-content: center;
    }
    .mobile-lang-item .lang-btn {
        padding: 4px;
        font-weight: 600;
    }

    .header-actions .btn-outline {
        display: none;
    }
    
    .hamburger {
        display: block;
    }
    
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #FFFFFF;
        padding: 24px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        border-top: 1px solid #E5E7EB;
        z-index: 99;
    }
    
    .nav.open {
        display: block;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
}

@media (min-width: 900px) {
    .nav {
        display: block;
    }
}

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

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.nav-link:hover {
    color: var(--text-primary);
}

.product-card:hover .card-action {
    color: var(--secondary);
}

/* App Titles with Logos */
.card-title.app-title-ambient,
.card-title.app-title-dodo {
    display: flex;
    align-items: center;
}

.card-title.app-title-ambient .app-logo {
    height: 1.2em;
    width: auto;
    margin-right: 8px;
    color: var(--primary);
}

.card-title.app-title-dodo .app-logo {
    height: 1em;
    width: auto;
    margin-right: 1px;
    margin-top: 1px;
    color: var(--primary);
}

/* ==========================================================================
   About Section
   ========================================================================== */
/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    padding: calc(var(--spacing-section) + 80px) 0 var(--spacing-section);
    text-align: center;
    /* overflow removed to prevent glow cutoff */
}

.hero-container {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 24px;
    background: linear-gradient(to right, var(--text-primary), #374151);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding-bottom: 0.15em;
}

.hero-subtitle {
    font-size: 1.125rem;
    max-width: 680px;
    margin: 0 auto 40px;
}

/* Decorative Glows */
.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 1;
    opacity: 0.15;
    pointer-events: none;
}

.hero-glow-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-start);
    top: -100px;
    left: -100px;
}

.hero-glow-2 {
    width: 300px;
    height: 300px;
    background: var(--accent-end);
    bottom: -50px;
    right: -50px;
}

/* ==========================================================================
   Product Cards Section
   ========================================================================== */
.products {
    padding: var(--spacing-section) 0;
}

.products-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 992px) {
    .products-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

.product-card {
    background: var(--bg-card);
    border-radius: var(--radius-card);
    padding: 48px;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(0, 163, 196, 0.1);
}

.card-title {
    font-size: 2rem;
    margin-bottom: 20px;
}

.card-description {
    flex-grow: 1;
    margin-bottom: 32px;
    font-size: 1.05rem;
}

.card-action {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    color: var(--accent-start);
    font-size: 1rem;
    position: relative;
    align-self: flex-start;
}

.card-action::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-start);
    transition: width 0.3s ease;
}

.card-action:hover::after {
    width: 100%;
}

/* ==========================================================================
   Compliance / Security Section
   ========================================================================== */
.compliance {
    background: var(--bg-compliance);
    padding: 100px 0;
    text-align: center;
    border-top: 1px solid rgba(0,0,0,0.03);
    border-bottom: 1px solid rgba(0,0,0,0.03);
}

.compliance-container {
    max-width: 800px;
}

.compliance-title {
    font-size: 2.25rem;
    margin-bottom: 24px;
}

.compliance-text {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    padding: 60px 0;
    text-align: center;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.footer-legal {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-link {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.footer-link:hover {
    color: var(--text-primary);
}

.copyright {
    font-size: 0.85rem;
    color: #9CA3AF; /* Muted gray for copyright */
}

/* ==========================================================================
   Cookie Banner (No-Cookie Notification)
   ========================================================================== */
.cookie-banner {
    display: none;
    position: fixed;
    bottom: 24px;
    right: 24px;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 163, 196, 0.15);
    border-radius: var(--radius-card);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cookie-content {
    padding: 16px;
}

.cookie-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.cookie-text {
    font-size: 0.7rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 12px;
}

.cookie-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.cookie-actions .btn {
    font-size: 0.7rem;
    padding: 6px 12px;
    font-weight: 500;
}

@media (max-width: 480px) {
    .cookie-banner {
        left: 16px;
        right: 16px;
        bottom: 16px;
        max-width: none;
    }
    .cookie-actions {
        flex-direction: column;
    }
    .cookie-actions .btn {
        width: 100%;
    }
}
