/* ==========================================================================
           CSS RESET & CUSTOM PROPERTIES
           ========================================================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --color-primary: #2563eb;
    --color-primary-dark: #1d4ed8;
    --color-primary-light: rgba(37, 99, 235, 0.1);
    --color-accent: #6366f1;
    --color-text: #1e293b;
    --color-text-secondary: #64748b;
    --color-text-muted: #94a3b8;
    --color-bg: #ffffff;
    --color-bg-alt: #f8fafc;
    --color-bg-footer: #1e293b;
    --color-border: #e2e8f0;
    --color-success: #10b981;
    --color-error: #ef4444;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Typography */
    --font-body: 'Inter', system-ui, sans-serif;
    --font-display: 'Outfit', 'Inter', system-ui, sans-serif;
    --nav-height: 72px;
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.12);
    --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-card-hover: 0 12px 28px rgba(0, 0, 0, 0.12);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
           NAVBAR - Transparent, blends with hero background
           ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: transparent;
    border-bottom: none;
    z-index: 1000;
    transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

/* On scroll: subtle dark glass effect (NOT white) */
.navbar.scrolled {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.navbar-inner {
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    padding: 0 var(--space-xl);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo with distinct display font */
.navbar-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
}

.navbar-logo {
    height: 100px;
    width: auto;
    object-fit: contain;
    display: block;
    padding-top: 10px;
}

.navbar-product {
    font-size: 0.65rem;
    font-weight: 600;
    color: rgba(96, 165, 250, 1);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-top: 2px;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    list-style: none;
}

.navbar-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    padding: var(--space-sm) var(--space-md);
    position: relative;
    transition: color 0.2s ease;
}

/* Underline hover effect */
.navbar-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.25s ease, left 0.25s ease;
}

.navbar-link:hover,
.navbar-link.active {
    color: #fff;
}

.navbar-link:hover::after,
.navbar-link.active::after {
    width: 100%;
    left: 0;
}

/* Hamburger for mobile */
.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 28px;
    height: 28px;
    background: none;
    border: none;
    cursor: pointer;
    justify-content: center;
}

.navbar-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    border-radius: 1px;
    transition: transform 0.2s, opacity 0.2s;
}

.navbar-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.navbar-toggle.active span:nth-child(2) {
    opacity: 0;
}

.navbar-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Navbar visibility is now persistent on scroll as per user request */
.navbar-brand,
.navbar-brand .navbar-logo,
.navbar-menu {
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

/* ==========================================================================
           HERO SECTION - Background image with overlay
           ========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--nav-height) + var(--space-3xl)) var(--space-xl) var(--space-3xl);
    overflow: hidden;
    text-align: center;
}

/* Background image with overlay */
.hero-bg {
    position: absolute;
    inset: 0;
    background: url('assets/hero-bg.png') center/cover no-repeat;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.92) 0%, rgba(30, 41, 59, 0.85) 100%);
    z-index: -1;
}

/* HERO CONTENT COLUMN */
.hero-content {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
    color: #fff;
}

.hero-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--color-primary);
    background: rgba(37, 99, 235, 0.15);
    padding: var(--space-sm) var(--space-md);
    border-radius: 50px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: var(--space-xl);
    backdrop-filter: blur(4px);
}

/* HERO TITLE — single line on desktop */
/* Lock both title & subtitle to the SAME max-width for perfect alignment */
.hero-title,
.hero-subtitle {
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.hero-title {
    max-width: 680px;
    margin: 0 auto 24px;
    text-align: center;
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 4vw, 3.6rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    text-wrap: balance;
    transform: translateX(-4px);
    /* optical centering */
}

.hero-title .highlight {
    color: var(--color-primary);
}

/* SUBTITLE */
.hero-subtitle {
    text-align: justify;
    text-align-last: center;
    /* keeps last line centered */
    margin-bottom: 28px;
    line-height: 1.6;
    opacity: 0.95;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    width: 100%;
}

/* CTA Button with arrow icon */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: var(--color-primary);
    padding: var(--space-md) var(--space-xl);
    border: none;
    border-radius: 50px;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

.btn-primary svg {
    width: 18px;
    height: 18px;
}

.hero .btn-primary {
    margin-top: 32px;
}

/* ==========================================================================
           PRODUCT SECTION - Premium glassmorphism cards
           ========================================================================== */
.product {
    padding: var(--space-4xl) var(--space-xl);
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
    position: relative;
    z-index: 1;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Cards Grid: 3 cols desktop, 2 tablet, 1 mobile */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

/* Premium glassmorphism card styling */
.feature-card {
    position: relative;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    padding: var(--space-xl) var(--space-lg);
    will-change: transform, opacity, box-shadow;
    transform: translateY(24px);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.35s ease-out,
        box-shadow 0.25s ease-out,
        border-color 0.25s ease-out,
        background 0.25s ease-out;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

/* Gradient border glow effect on hover */
.feature-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 21px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.4) 0%, rgba(99, 102, 241, 0.4) 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

.feature-card.visible {
    transform: translateY(0);
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.85);
    border-color: transparent;
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.12),
        0 8px 16px rgba(0, 0, 0, 0.06);
}

.feature-card:hover::before {
    opacity: 1;
}

/* Icon pill - translucent colored background */
.card-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12) 0%, rgba(99, 102, 241, 0.12) 100%);
    border-radius: 14px;
    margin-bottom: var(--space-lg);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
        background 0.25s ease-out;
}

.feature-card:hover .card-icon {
    transform: scale(1.1);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.18) 0%, rgba(99, 102, 241, 0.18) 100%);
}

.card-icon svg {
    width: 26px;
    height: 26px;
    color: var(--color-primary);
    transition: color 0.25s ease;
}

.feature-card:hover .card-icon svg {
    color: var(--color-primary-dark);
}

.card-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-sm);
    transition: color 0.2s ease;
}

.feature-card:hover .card-title {
    color: var(--color-primary-dark);
}

.card-desc {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.65;
    opacity: 0.8;
}

/* Bullet lists in card descriptions */
.card-desc ul {
    list-style: none;
    padding-left: 0;
    margin-top: var(--space-sm);
}

.card-desc li {
    position: relative;
    padding-left: 1.2rem;
    margin-bottom: 0.4rem;
    line-height: 1.6;
}

.card-desc li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: 600;
}

/* Featured product card */
.product-featured {
    max-width: 100%;
    padding: var(--space-2xl) var(--space-xl);
    text-align: left;
}

@media (max-width: 768px) {
    .product-featured {
        padding: var(--space-xl) var(--space-lg);
    }
}

/* Clickable product card */
.product-card-clickable {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card-clickable:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.15);
}

/* Product list logo (QEnabler card) */
.product-card-logo-wrap {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 240px;
    height: 80px;
    overflow: hidden;
}

.product-card-logo {
    display: block;
    width: 100%;
    height: 100%;
    /* Crop the empty padding inside the image so the logo reads larger */
    object-fit: cover;
    object-position: center;
    /* Keep logo visible without a separate "tile" background */
    filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.10));
}

@media (max-width: 480px) {
    .product-card-logo {
        filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.10));
    }

    .product-card-logo-wrap {
        width: 190px;
        height: 64px;
    }
}

/* Product Detail Page */
.product-detail-page {
    animation: pageFadeIn 0.4s ease-out;
}

.product-detail-header {
    margin-top: var(--space-md);
    margin-bottom: 0;
}

.product-detail-page .product-video-container {
    margin-top: var(--space-lg);
}

.product-detail-logo {
    display: block;
    width: min(360px, 80vw);
    height: 110px;
    margin: 0 auto;
    /* Crop internal padding so the logo is readable */
    object-fit: cover;
    object-position: center;
    filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.10));
}

@media (max-width: 480px) {
    .product-detail-logo {
        height: 92px;
    }
}

@keyframes pageFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-back-button {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-primary);
    background: transparent;
    border: none;
    padding: var(--space-sm) var(--space-md);
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
    margin-bottom: var(--space-lg);
}

.product-back-button:hover {
    color: var(--color-primary-dark);
    transform: translateX(-4px);
}

.product-back-button svg {
    width: 18px;
    height: 18px;
    transition: transform 0.2s ease;
}

.product-back-button:hover svg {
    transform: translateX(-2px);
}

/* Product video container */
.product-video-container {
    width: 100%;
    max-width: 800px;
    margin: var(--space-2xl) auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--color-bg-alt);
    box-shadow: var(--shadow-md);
}

.product-video {
    width: 100%;
    height: auto;
    display: block;
    max-height: 450px;
    object-fit: contain;
}

@media (max-width: 768px) {
    .product-video-container {
        margin: var(--space-xl) auto;
        max-width: 100%;
    }

    .product-video {
        max-height: 300px;
    }
}

/* ==========================================================================
           CONTACT SECTION - Floating labels, two-column layout
           ========================================================================== */
.contact {
    position: relative;
    padding: var(--space-4xl) var(--space-xl);
    background: var(--color-bg-alt);
}

/* Subtle fade transition from Product to Contact */
.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(180deg,
            rgba(248, 250, 252, 0) 0%,
            rgba(248, 250, 252, 0.4) 40%,
            rgba(248, 250, 252, 1) 100%);
    pointer-events: none;
    z-index: 0;
}

.contact-wrapper {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    max-width: 900px;
    margin: 0 auto;
    background: var(--color-bg);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.contact-form {
    padding: var(--space-2xl);
}

.contact-info {
    padding: var(--space-2xl);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.contact-info p {
    font-size: 0.9rem;
    opacity: 0.9;
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.9rem;
    margin-bottom: var(--space-sm);
}

.contact-info-item svg {
    width: 18px;
    height: 18px;
    opacity: 0.8;
}

/* Floating label form groups */
.form-group {
    position: relative;
    margin-bottom: var(--space-lg);
}

.form-input,
.form-select {
    width: 100%;
    font-family: inherit;
    font-size: 1rem;
    color: var(--color-text);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-lg) var(--space-md) var(--space-sm);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-light);
}

.form-input.error,
.form-select.error {
    border-color: var(--color-error);
    animation: shake 0.4s ease;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    20%,
    60% {
        transform: translateX(-4px);
    }

    40%,
    80% {
        transform: translateX(4px);
    }
}

/* Floating label */
.form-label {
    position: absolute;
    left: var(--space-md);
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.95rem;
    color: var(--color-text-muted);
    pointer-events: none;
    transition: top 0.2s, font-size 0.2s, color 0.2s;
    background: var(--color-bg);
    padding: 0 4px;
}

.form-input:focus~.form-label,
.form-input:not(:placeholder-shown)~.form-label,
.form-select:focus~.form-label,
.form-select.has-value~.form-label {
    top: 8px;
    font-size: 0.7rem;
    color: var(--color-primary);
}

.form-label .required {
    color: var(--color-error);
    margin-left: 2px;
}

.form-error {
    font-size: 0.75rem;
    color: var(--color-error);
    margin-top: var(--space-xs);
    display: none;
}

.form-error.visible {
    display: block;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
    cursor: pointer;
}

/* Submit button with loading/success states */
.form-submit {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: var(--color-primary);
    border: none;
    border-radius: var(--radius-md);
    padding: var(--space-md) var(--space-xl);
    cursor: pointer;
    transition: background 0.15s, transform 0.15s;
}

.form-submit:hover {
    background: var(--color-primary-dark);
}

.form-submit:active {
    transform: scale(0.98);
}

.form-submit:disabled {
    background: var(--color-text-muted);
    cursor: not-allowed;
}

.form-submit.loading {
    pointer-events: none;
}

.form-submit .spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: none;
}

.form-submit.loading .spinner {
    display: block;
}

.form-submit.loading .btn-text {
    display: none;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Success message */
.form-success {
    display: none;
    text-align: center;
    padding: var(--space-2xl);
}

.form-success.visible {
    display: block;
}

.form-success-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 50%;
    margin: 0 auto var(--space-lg);
}

.form-success-icon svg {
    width: 32px;
    height: 32px;
    color: var(--color-success);
}

.form-success h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

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

/* ==========================================================================
           FOOTER - Dark with social icons
           ========================================================================== */
.footer {
    background: var(--color-bg-footer);
    color: rgba(255, 255, 255, 0.8);
    padding: var(--space-3xl) var(--space-xl) var(--space-xl);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-brand {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: var(--space-sm);
}

.footer-tagline {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: var(--space-xl);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-link {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.15s;
}

.footer-link:hover {
    color: #fff;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.social-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.social-icon:hover {
    background: var(--color-primary);
    color: #fff;
}

.social-icon svg {
    width: 18px;
    height: 18px;
}

.footer-copyright {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-copyright .legal-sep {
    margin: 0 var(--space-sm);
    opacity: 0.6;
}

.footer-copyright .legal-link {
    font: inherit;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: color 0.15s ease;
}

.footer-copyright .legal-link:hover {
    color: #fff;
}

/* ==========================================================================
           LEGAL MODAL - Scrollable, long-form friendly
           ========================================================================== */
.legal-source {
    display: none;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
    z-index: 2000;
}

.modal-backdrop.open {
    display: flex;
}

.modal-dialog {
    width: min(920px, 100%);
    max-height: min(86vh, 880px);
    background: var(--color-bg);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(226, 232, 240, 0.9);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    padding: var(--space-lg) var(--space-xl);
    border-bottom: 1px solid var(--color-border);
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.9) 0%, rgba(248, 250, 252, 0.6) 100%);
}

.modal-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.2;
}

.modal-close {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    color: var(--color-text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
    flex: 0 0 auto;
}

.modal-close:hover {
    background: var(--color-bg-alt);
    color: var(--color-text);
    transform: translateY(-1px);
}

.modal-body {
    padding: var(--space-xl);
    overflow: auto;
}

.legal-doc {
    max-width: 860px;
    margin: 0 auto;
    line-height: 1.85;
    color: var(--color-text);
}

.legal-doc h2 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    margin-bottom: var(--space-sm);
}

.legal-doc h3 {
    font-size: 1.2rem;
    margin-top: var(--space-xl);
    margin-bottom: var(--space-sm);
    font-weight: 700;
}

.legal-doc h4 {
    font-size: 1.05rem;
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
    font-weight: 700;
}

.legal-doc p {
    margin-bottom: var(--space-md);
    color: var(--color-text-secondary);
}

.legal-doc strong {
    color: var(--color-text);
}

.legal-doc ul,
.legal-doc ol {
    margin-left: 1.25rem;
    margin-bottom: var(--space-md);
    color: var(--color-text-secondary);
}

.legal-doc li {
    margin-bottom: 0.35rem;
}

.legal-doc hr {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: var(--space-xl) 0;
}

body.modal-open {
    overflow: hidden;
}

/* ==========================================================================
           RESPONSIVE DESIGN - Mobile-first
           ========================================================================== */
@media (max-width: 992px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* INTRO PARAGRAPHS */
.hero-intro {
    max-width: 620px;
    margin: 0 auto 40px;
    text-align: center;
}

.hero-intro p {
    text-align: justify;
    text-align-last: center;
    /* important for clean ending */
    margin-bottom: 14px;
    line-height: 1.65;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

/* Allow wrap on smaller screens */
@media (max-width: 1024px) {
    .hero-title {
        white-space: normal;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 64px;
    }

    .navbar-inner {
        justify-content: space-between;
        gap: 0;
    }

    .navbar-toggle {
        display: flex;
    }

    .navbar-menu {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        flex-direction: column;
        padding: var(--space-2xl) var(--space-lg);
        gap: var(--space-md);
        border-bottom: none;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    }

    .navbar-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .navbar-link {
        display: block;
        padding: var(--space-md);
        text-align: center;
        font-size: 1.1rem;
        color: rgba(255, 255, 255, 0.9);
    }

    .navbar-link:hover,
    .navbar-link.active {
        color: #fff;
    }

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

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-info {
        padding: var(--space-lg);
        order: -1;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: var(--space-md);
    }

    .modal-backdrop {
        padding: var(--space-md);
        align-items: flex-end;
    }

    .modal-dialog {
        width: 100%;
        max-height: 92vh;
        border-radius: 16px 16px 0 0;
    }

    .modal-header {
        padding: var(--space-md) var(--space-lg);
    }

    .modal-body {
        padding: var(--space-lg);
    }
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* ==========================================================================
           FOUNDER STATEMENT SECTION
           ========================================================================== */
.founder-statement {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.founder-statement p {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--color-text);
    margin-bottom: var(--space-lg);
    text-align: justify;
    text-align-last: center;
}

.founder-statement p:last-child {
    margin-bottom: 0;
}

.founder-name {
    font-weight: 600;
    color: var(--color-primary);
    font-size: 1.1em;
}

@media (max-width: 768px) {
    .founder-statement {
        padding: 0 var(--space-md);
    }

    .founder-statement p {
        font-size: 1rem;
        text-align: left;
        text-align-last: left;
    }
}