:root {
    --bg: #f8fafc;
    --surface: #ffffff;
    --surface-hover: #f8fafc;
    --surface-subtle: #f1f5f9;
    --border: #e2e8f0;
    --border-hover: #cbd5e1;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --accent-soft: #eff6ff;
    --accent-glow: rgba(37, 99, 235, 0.12);
    --pill-radius: 9999px;
    --card-radius: 20px;
    --card-radius-lg: 28px;
    --shadow-sm: 0 2px 8px -2px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 12px 24px -6px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 20px 36px -8px rgba(15, 23, 42, 0.09);
    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 72px; /* Prevent header overlap */
    background-image: 
        radial-gradient(at 0% 0%, rgba(219, 234, 254, 0.45) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(243, 232, 255, 0.35) 0px, transparent 50%);
    background-attachment: fixed;
}

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== NAVBAR ==================== */
.navbar-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.navbar {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
}

.brand-logo {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    object-fit: cover;
    background-color: var(--surface-subtle);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.92rem;
    font-weight: 600;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent);
}

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

/* Hamburger Menu Button (Mobile) */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    padding: 8px;
    cursor: pointer;
    border-radius: 8px;
}

.menu-toggle:hover {
    background-color: var(--surface-subtle);
}

.menu-toggle svg {
    width: 24px;
    height: 24px;
    display: block;
}

/* Mobile Slide-down Drawer */
.mobile-nav {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 20px 24px;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    flex-direction: column;
    gap: 16px;
}

.mobile-nav.open {
    display: flex;
}

.mobile-nav a {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 1.05rem;
    font-weight: 600;
    padding: 8px 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

.mobile-nav .btn {
    margin-top: 10px;
    width: 100%;
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    font-size: 0.92rem;
    font-weight: 700;
    border-radius: var(--pill-radius);
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--text-primary);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.15);
}

.btn-primary:hover {
    background-color: #1e293b;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.22);
}

.btn-secondary {
    background-color: var(--surface);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background-color: var(--surface-subtle);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

/* ==================== HERO SECTION ==================== */
.hero {
    text-align: center;
    padding: 40px 0 60px;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    background: var(--accent-soft);
    color: var(--accent);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: var(--pill-radius);
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.15;
    margin-bottom: 18px;
    color: var(--text-primary);
}

.hero-desc {
    font-size: clamp(1rem, 2vw, 1.18rem);
    color: var(--text-secondary);
    max-width: 620px;
    margin: 0 auto 32px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

/* ==================== APP SHOWCASE GALLERY ==================== */
.showcase-header {
    text-align: center;
    margin-bottom: 30px;
}

.showcase-header h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 700;
    margin-bottom: 8px;
}

.showcase-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.showcase-container {
    margin-bottom: 80px;
    position: relative;
}

.showcase-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 16px 8px 24px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.showcase-scroll::-webkit-scrollbar {
    height: 6px;
}

.showcase-scroll::-webkit-scrollbar-thumb {
    background: var(--border-hover);
    border-radius: 10px;
}

.device-card {
    flex: 0 0 240px;
    scroll-snap-align: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--card-radius-lg);
    padding: 8px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    cursor: pointer;
}

.device-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.device-card img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
    background-color: var(--surface-subtle);
}

.device-caption {
    text-align: center;
    padding: 10px 4px 4px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* ==================== CORE FEATURES ==================== */
.section-header {
    text-align: center;
    margin-bottom: 44px;
}

.section-header h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.7rem, 3.5vw, 2.3rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 10px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 540px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 20px;
    margin-bottom: 90px;
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--card-radius);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-hover);
}

.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.feature-icon svg {
    width: 22px;
    height: 22px;
}

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* ==================== INTERACTIVE LEGAL & POLICIES ==================== */
.legal-section {
    margin-bottom: 80px;
}

.legal-tab-nav {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 10px 20px;
    border-radius: var(--pill-radius);
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn:hover {
    background-color: var(--surface-subtle);
    border-color: var(--border-hover);
}

.tab-btn.active {
    background-color: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
    box-shadow: 0 4px 12px var(--accent-glow);
}

.tab-pane {
    display: none;
    animation: fadeIn 0.35s ease;
}

.tab-pane.active {
    display: block;
}

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

.legal-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--card-radius-lg);
    padding: 36px;
    box-shadow: var(--shadow-sm);
}

.legal-card h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.legal-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 24px 0 8px;
}

.legal-card p, .legal-card li {
    color: var(--text-secondary);
    font-size: 0.94rem;
    line-height: 1.65;
    margin-bottom: 12px;
    word-break: break-word;
}

.legal-card ul {
    padding-left: 20px;
    margin-bottom: 16px;
}

.callout {
    background-color: var(--accent-soft);
    border: 1px solid rgba(37, 99, 235, 0.25);
    border-radius: 14px;
    padding: 16px 20px;
    margin: 20px 0;
}

.callout p {
    color: #1e40af;
    margin-bottom: 0;
    font-weight: 600;
}

/* ==================== LIGHTBOX MODAL ==================== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 380px;
    width: 100%;
    max-height: 85vh;
    border-radius: 28px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
    animation: scaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #ffffff;
    width: 44px;
    height: 44px;
    border-radius: var(--pill-radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.35);
}

@keyframes scaleUp {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* ==================== FOOTER ==================== */
footer {
    border-top: 1px solid var(--border);
    padding: 44px 0 60px;
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 14px;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-primary);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 600;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-copy {
    color: var(--text-muted);
    font-size: 0.82rem;
}

/* ==================== RESPONSIVE RULES ==================== */
@media (max-width: 800px) {
    .nav-links {
        display: none;
    }
    .menu-toggle {
        display: block;
    }
    .container {
        padding: 0 16px;
    }
    body {
        padding-top: 64px;
    }
    .hero {
        padding: 30px 0 45px;
    }
    .hero-actions .btn {
        width: 100%;
    }
    .device-card {
        flex: 0 0 200px;
    }
    .legal-card {
        padding: 24px 18px;
    }
    .tab-btn {
        flex: 1 1 auto;
        text-align: center;
        padding: 8px 14px;
        font-size: 0.82rem;
    }
}
