:root {
    --bg-color: #020814; 
    --surface-color: rgba(7, 18, 34, 0.76); 
    --text-primary: #f8fafc; 
    --text-secondary: #a8bdd6; 
    --accent-color: #2edff0; 
    --accent-hover: #19c2da; 
    --surface-strong: #091426;
    --border-color: rgba(118, 159, 207, 0.18);
    --border-accent: rgba(46, 223, 240, 0.34);
    --hero-glow: rgba(46, 223, 240, 0.24);
    --shadow-soft: 0 30px 120px rgba(1, 7, 18, 0.62);
    --shadow-card: 0 22px 60px rgba(1, 9, 22, 0.34);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', sans-serif;
    background:
        radial-gradient(circle at 12% 0%, rgba(46, 223, 240, 0.2), transparent 24%),
        radial-gradient(circle at 85% 8%, rgba(24, 149, 211, 0.18), transparent 22%),
        radial-gradient(circle at 50% 115%, rgba(13, 47, 82, 0.28), transparent 40%),
        linear-gradient(180deg, #0a1020 0%, #050c18 38%, var(--bg-color) 66%, #01040b 100%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 88px 24px;
}

h1 { font-size: clamp(3rem, 5vw, 4.75rem); margin-bottom: 20px; line-height: 1.04; letter-spacing: -0.04em; }
h2 { font-size: clamp(2rem, 3vw, 2.8rem); margin-bottom: 20px; border-bottom: 1px solid rgba(148, 163, 184, 0.12); padding-bottom: 16px; letter-spacing: -0.03em; }
h3 { font-size: 1.2rem; margin-bottom: 10px; color: var(--text-primary); }
p { color: var(--text-secondary); margin-bottom: 15px; font-size: 1rem; }
ul { margin-left: 20px; color: var(--text-secondary); margin-bottom: 15px; }
.subtitle { font-size: 1.15rem; line-height: 1.8; max-width: 760px; }
.section-lead { max-width: 760px; margin-bottom: 30px; font-size: 1.05rem; }

/* Navigation */
nav {
    position: fixed; top: 0; left: 0; right: 0;
    background: rgba(4, 11, 24, 0.92);
    backdrop-filter: blur(18px); border-bottom: 1px solid rgba(148, 163, 184, 0.12); z-index: 1200;
    box-shadow: 0 18px 48px rgba(1, 8, 20, 0.28);
    margin: 0;
    padding: 0;
}
.nav-container {
    display: flex; justify-content: space-between; align-items: center;
    max-width: 1120px; margin: 0 auto; padding: 16px 24px;
    position: relative;
    z-index: 1201;
}
.logo { 
    font-weight: 700; 
    font-size: 1.15rem; 
    color: var(--accent-color); 
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px; /* Spazio tra l'icona e il testo */
    color: inherit;
    text-decoration: none;
}

.logo-icon {
    height: 28px; /* Altezza ottimale per la navbar */
    width: auto;
    display: block;
    border-radius: 6px;
}
.nav-links { display: flex; list-style: none; gap: 20px; align-items: center; }
.nav-links a { color: var(--text-primary); text-decoration: none; font-size: 0.92rem; transition: color 0.2s, opacity 0.2s; opacity: 0.86; }
.nav-links a:hover { color: var(--accent-color); opacity: 1; }
.menu-toggle { display: none; font-size: 1.5rem; cursor: pointer; }

/* --- Language Selector --- */
.lang-dropdown {
    background-color: rgba(15, 23, 42, 0.72);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    border-radius: 999px;
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s, background-color 0.2s;
}
.lang-dropdown:hover {
    border-color: var(--accent-color);
    background-color: rgba(15, 23, 42, 0.92);
}
.lang-dropdown option {
    background-color: var(--bg-color);
    color: var(--text-primary);
}

/* Buttons & Links */
.cta-group { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
    display: inline-block; padding: 13px 22px; border-radius: 999px; text-decoration: none;
    font-weight: 600; transition: all 0.2s ease; text-align: center; border: 1px solid transparent;
    box-shadow: 0 14px 32px rgba(1, 8, 20, 0.24);
}
.btn.primary { background: linear-gradient(135deg, #37e8f5 0%, #1ab8dc 46%, #0a5b91 100%); color: #f8fafc; }
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 20px 42px rgba(26, 184, 220, 0.32); }
.btn.secondary { background-color: rgba(15, 23, 42, 0.72); color: var(--text-primary); border: 1px solid var(--border-color); }
.btn.secondary:hover { background-color: rgba(30, 41, 59, 0.95); border-color: rgba(148, 163, 184, 0.24); transform: translateY(-2px); }
.btn.disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }
.link { color: var(--accent-color); text-decoration: none; }
.link:hover { text-decoration: underline; }

/* Grid Sections */
.cards-grid, .sec-grid { display: grid; gap: 24px; margin-bottom: 40px; }
.cards-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.sec-grid { grid-template-columns: 1fr 1fr; }
.card, .sec-box { background: linear-gradient(180deg, rgba(8, 17, 33, 0.88), rgba(4, 10, 20, 0.72)); padding: 30px; border-radius: 24px; border: 1px solid var(--border-color); height: 100%; box-shadow: var(--shadow-card); backdrop-filter: blur(18px); }
.card:hover, .sec-box:hover { transform: translateY(-4px); border-color: rgba(45, 212, 191, 0.24); }

.hero-section {
    padding-top: 92px;
    padding-bottom: 24px;
}

.hero-shell {
    position: relative;
    padding: 44px;
    border-radius: 32px;
    border: 1px solid var(--border-color);
    background:
        radial-gradient(circle at 50% 0%, rgba(46, 223, 240, 0.2), transparent 28%),
        radial-gradient(circle at 85% 20%, rgba(24, 149, 211, 0.14), transparent 22%),
        linear-gradient(180deg, rgba(8, 16, 31, 0.96), rgba(4, 10, 20, 0.84));
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(45, 212, 191, 0.12);
    border: 1px solid rgba(45, 212, 191, 0.18);
    color: #7dd3fc;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.82);
    border: 1px solid rgba(148, 163, 184, 0.18);
    color: var(--text-primary);
    font-size: 0.9rem;
}

/* Hero Phones Wrapper */
.hero-phones-wrapper {
    width: 100%;
    margin-top: 10px;
    display: flex;
    justify-content: center;
    overflow: hidden;
    padding: 0 24px 20px;
}

/* Hero Phones Container */
.hero-phones-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    max-width: 1120px;
    width: 100%;
}

/* Hero Phone */
.hero-phone {
    width: 30%;
    max-width: 300px;
    height: auto;
    border-radius: 24px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 30px 80px rgba(2, 8, 23, 0.38);
    pointer-events: none;
}

.phone-left { transform: translateY(0); }
.phone-center { transform: translateY(0); }
.phone-right { transform: translateY(0); }

/* Hero Phones Container Mobile */
@media (max-width: 768px) {
    .hero-phones-container {
        flex-direction: column;
        gap: 32px;
    }
    
    .hero-phone {
        width: 80%;
        max-width: 350px;
    }

    .phone-left, .phone-center, .phone-right {
        transform: none;
    }
}

/* Dual Reality Showcase */
.dual-reality-section {
    padding-top: 0;
    padding-bottom: 24px;
}

.dual-reality-card {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(46, 223, 240, 0.18);
    background: linear-gradient(180deg, rgba(8, 17, 33, 0.92), rgba(4, 10, 20, 0.80));
    box-shadow:
        0 32px 80px rgba(1, 7, 18, 0.52),
        0 0 60px rgba(46, 223, 240, 0.06);
    padding: 6px;
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
    isolation: isolate;
}

.dual-reality-card:hover {
    border-color: rgba(46, 223, 240, 0.32);
    transform: translateY(-4px);
    box-shadow:
        0 36px 90px rgba(1, 7, 18, 0.56),
        0 0 80px rgba(46, 223, 240, 0.10);
}

.dual-reality-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%;
    height: 60%;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse at center, rgba(46, 223, 240, 0.10), transparent 70%);
    pointer-events: none;
    z-index: 0;
    filter: blur(40px);
}

.dual-reality-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 22px;
    position: relative;
    z-index: 1;
}

/* How it works */
.steps-grid { display: flex; flex-direction: column; gap: 20px; max-width: 760px; margin: 0 auto 40px auto; }
.step { background: linear-gradient(180deg, rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.64)); padding: 26px 30px; border: 1px solid var(--border-color); width: 85%; position: relative; box-shadow: var(--shadow-card); backdrop-filter: blur(12px); }
.step .step-num { display: inline-block; font-size: 0.9rem; font-weight: 700; color: var(--accent-color); margin-bottom: 5px; text-transform: uppercase; letter-spacing: 1px; }
.step p { margin-bottom: 0; }
.step:nth-child(odd) { align-self: flex-start; border-radius: 18px 18px 18px 2px; }
.step:nth-child(even) { align-self: flex-end; border-radius: 18px 18px 2px 18px; background: linear-gradient(145deg, rgba(45, 212, 191, 0.12), rgba(15, 23, 42, 0.76)); border-color: var(--border-accent); }

.transport-box { background: linear-gradient(180deg, rgba(46, 223, 240, 0.08), rgba(7, 18, 34, 0.78)); border: 1px solid rgba(46, 223, 240, 0.18); border-left: 4px solid var(--accent-color); padding: 22px; border-radius: 18px; max-width: 760px; margin: 0 auto; }
.disclaimer { font-size: 0.9rem; margin-top: 20px; padding: 18px; background: rgba(8, 17, 33, 0.88); border-radius: 18px; border: 1px solid var(--border-color); }

/* Device Security Box */
.device-security-box { margin-bottom: 30px; padding: 28px; background: linear-gradient(180deg, rgba(46, 223, 240, 0.08), rgba(8, 17, 33, 0.78)); border: 1px solid rgba(46, 223, 240, 0.18); border-radius: 24px; box-shadow: var(--shadow-card); }
.device-security-box h3 { color: var(--accent-color); margin-bottom: 10px; }
.device-security-box p { margin-bottom: 0; }

/* Claim Banner */
.claim-banner { padding-top: 24px; padding-bottom: 24px; text-align: center; }
.claim-box { background: linear-gradient(145deg, rgba(7, 16, 30, 0.96), rgba(8, 53, 88, 0.84)); border: 1px solid rgba(46, 223, 240, 0.22); padding: 44px; border-radius: 28px; box-shadow: var(--shadow-soft); }
.claim-box h2 { border-bottom: none; margin-bottom: 15px; color: var(--accent-color); }
.claim-box p { font-size: 1.1rem; max-width: 600px; margin: 0 auto; color: var(--text-primary); }

.platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.platform-card {
    padding: 24px;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    background: linear-gradient(180deg, rgba(8, 17, 33, 0.88), rgba(4, 10, 20, 0.72));
    box-shadow: var(--shadow-card);
}

.platform-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.platform-name-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.platform-logo {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    flex: 0 0 22px;
}

.platform-logo svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.platform-status {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

.platform-status.is-ready {
    background: rgba(34, 197, 94, 0.14);
    color: #86efac;
}

.platform-status.is-source {
    background: rgba(250, 204, 21, 0.14);
    color: #fde68a;
}

.platform-status.is-unavailable {
    background: rgba(148, 163, 184, 0.14);
    color: #cbd5e1;
}

/* Download Section */
.download-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.dl-column { padding: 28px; border-radius: 24px; border: 1px solid var(--border-color); background: linear-gradient(180deg, rgba(8, 17, 33, 0.88), rgba(4, 10, 20, 0.72)); box-shadow: var(--shadow-card); }
.dl-column h3 { margin-bottom: 18px; border-bottom: 1px solid rgba(148, 163, 184, 0.12); padding-bottom: 10px; }
.download-buttons { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.download-buttons .btn { width: 100%; max-width: 280px; }

.store-badge {
    width: 100%;
    max-width: 280px;
    min-height: 64px;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(10, 16, 28, 0.98), rgba(2, 6, 14, 0.98));
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.store-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.34);
    border-color: rgba(255, 255, 255, 0.18);
}

.store-badge-icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 28px;
}

.store-badge-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.store-badge-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.1;
}

.store-badge-overline {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.72);
}

.store-badge-label {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.store-badge-status {
    margin-left: auto;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.72);
    text-align: right;
}

.hero-apk-link {
    margin-top: 18px;
    margin-bottom: 0;
}

.hero-apk-link .link {
    font-size: 0.98rem;
}

.store-badge-ios,
.store-badge-macos {
    background: linear-gradient(180deg, #111111, #000000);
}

.store-badge-android {
    background: linear-gradient(180deg, #10371c, #0a2212);
    border-color: rgba(61, 220, 132, 0.28);
}

.store-badge-windows {
    background: linear-gradient(180deg, #07243c, #03192d);
    border-color: rgba(99, 179, 237, 0.24);
}

.store-badge-linux {
    background: linear-gradient(180deg, #35220c, #211406);
    border-color: rgba(251, 191, 36, 0.24);
}

.store-badge-github {
    background: linear-gradient(180deg, #1f2937, #111827);
    border-color: rgba(148, 163, 184, 0.24);
}

.store-badge-disabled {
    opacity: 0.72;
    cursor: default;
}

.apk-page-layout { display: flex; flex-direction: column; gap: 24px; }
.apk-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.apk-card { padding: 24px; border-radius: 22px; border: 1px solid var(--border-color); background: linear-gradient(180deg, rgba(8, 17, 33, 0.88), rgba(4, 10, 20, 0.72)); box-shadow: var(--shadow-card); }
.apk-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
.apk-card-top h2 { margin-bottom: 6px; border-bottom: none; padding-bottom: 0; font-size: 1.35rem; }
.apk-arch { font-size: 0.95rem; color: var(--accent-color); margin-bottom: 0; }
.apk-download-link { white-space: nowrap; }
.apk-hash-block { margin-top: 18px; padding: 14px 16px; border-radius: 16px; background: rgba(2, 8, 23, 0.55); border: 1px solid rgba(148, 163, 184, 0.12); }
.apk-hash-label { display: block; font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 8px; }
.apk-hash { display: block; font-size: 0.82rem; line-height: 1.6; color: var(--text-primary); white-space: normal; overflow-wrap: anywhere; word-break: break-word; }

/* Footer */
footer { border-top: 1px solid rgba(148, 163, 184, 0.12); text-align: center; background: rgba(2, 8, 23, 0.35); }
.footer-links { display: flex; justify-content: center; gap: 20px; margin-bottom: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--text-secondary); text-decoration: none; font-size: 0.9rem; }
.footer-links a:hover { color: var(--accent-color); }

/* --- FAQ Layergram App UI --- */
#faq { padding: 24px 20px 8px; }
.layergram-app-window { background: radial-gradient(circle at 20% 15%, rgba(46, 223, 240, 0.08), transparent 20%), radial-gradient(circle at 80% 10%, rgba(24, 149, 211, 0.08), transparent 18%), linear-gradient(180deg, #030a13 0%, #07111d 48%, #040b14 100%); border-radius: 28px; border: 1px solid rgba(118, 159, 207, 0.16); position: relative; overflow: hidden; max-width: 860px; margin: 0 auto; box-shadow: var(--shadow-soft); min-height: 0; }
.faq-chat-stage { position: relative; overflow: hidden; background: radial-gradient(circle at 20% 15%, rgba(46, 223, 240, 0.08), transparent 20%), radial-gradient(circle at 80% 10%, rgba(24, 149, 211, 0.08), transparent 18%), linear-gradient(180deg, #030a13 0%, #07111d 48%, #040b14 100%); }
.faq-grid-overlay { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px); background-size: 40px 40px; z-index: 1; pointer-events: none; opacity: 0.78; }
.faq-squircle { position: absolute; border-radius: 40%; z-index: 0; pointer-events: none; }
.sq-1 { width: 320px; height: 320px; background-color: rgba(11,77,118,0.08); top: 20%; left: 10%; animation: float1 30s infinite linear; }
.sq-2 { width: 420px; height: 420px; background-color: rgba(24,207,227,0.05); top: 50%; right: -10%; animation: float2 30s infinite linear; }
.sq-3 { width: 200px; height: 200px; border: 2px solid rgba(20,184,166,0.03); top: 50%; left: 50%; transform: translate(-50%, -50%); animation: pulse-spin 15s infinite ease-in-out alternate; }

@keyframes float1 { 0% { transform: translate(0px, 0px) rotate(0deg); } 25% { transform: translate(30px, 20px) rotate(9deg); } 50% { transform: translate(0px, 40px) rotate(18deg); } 75% { transform: translate(-30px, 20px) rotate(27deg); } 100% { transform: translate(0px, 0px) rotate(36deg); } }
@keyframes float2 { 0% { transform: translate(0px, 0px) rotate(0deg); } 25% { transform: translate(-40px, -30px) rotate(-13deg); } 50% { transform: translate(0px, -60px) rotate(-27deg); } 75% { transform: translate(40px, -30px) rotate(-40deg); } 100% { transform: translate(0px, 0px) rotate(-54deg); } }
@keyframes pulse-spin { 0% { transform: translate(-50%, -50%) scale(1) rotate(0deg); } 100% { transform: translate(-50%, -50%) scale(1.15) rotate(18deg); } }

.app-header { display: flex; align-items: center; padding: 16px 20px; background: linear-gradient(180deg, rgba(4, 12, 23, 0.94), rgba(4, 12, 23, 0.74)); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255,255,255,0.06); position: relative; z-index: 2; }
.back-btn { font-size: 1.2rem; color: var(--text-primary); margin-right: 15px; cursor: default; }
.header-info { display: flex; flex-direction: column; }
.chat-title { font-weight: 700; font-size: 1.1rem; }
.faq-chat-content { position: relative; z-index: 2; padding: 24px 18px 24px; display: flex; flex-direction: column; gap: 12px; max-height: none; overflow-y: visible; }
.faq-chat-content::-webkit-scrollbar { width: 6px; }
.faq-chat-content::-webkit-scrollbar-track { background: transparent; }
.faq-chat-content::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 10px; }

.chat-bubble { padding: 12px 18px; border-radius: 18px; max-width: 82%; position: relative; line-height: 1.5; font-size: 0.95rem; }
.chat-bubble p { margin-bottom: 0; }
.chat-bubble.q { align-self: flex-end; background: linear-gradient(180deg, rgba(19, 38, 62, 0.94), rgba(11, 25, 44, 0.94)); border: 1px solid rgba(125, 211, 252, 0.12); border-bottom-right-radius: 4px; color: var(--text-primary); }
.chat-bubble.a { align-self: flex-start; background: rgba(255,255,255,0.045); border: 1px solid rgba(125, 211, 252, 0.06); border-bottom-left-radius: 4px; margin-bottom: 0; }

/* --- Plausible Deniability Article Page --- */
.article-page { max-width: 800px; margin: 0 auto; }
.page-header { text-align: center; margin-bottom: 50px; border-bottom: 1px solid rgba(148, 163, 184, 0.12); padding-bottom: 30px; }
.page-header h1 { font-size: 3.5rem; color: var(--accent-color); margin-bottom: 15px; }
.article-section { margin-bottom: 40px; background: linear-gradient(180deg, rgba(8, 17, 33, 0.88), rgba(4, 10, 20, 0.72)); padding: 30px; border-radius: 24px; border: 1px solid var(--border-color); box-shadow: var(--shadow-card); }
.article-section h2 { font-size: 1.5rem; border-bottom: none; margin-bottom: 15px; color: var(--text-primary); padding-bottom: 0; }

/* Mobile Navigation - Force top layer */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        position: relative;
        z-index: 2147483647;
        cursor: pointer;
    }
    
    .nav-links {
        display: none;
        flex-direction: column;
        align-items: stretch;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        min-height: 100vh;
        background: #020814;
        padding: 60px 24px 24px;
        margin: 0;
        z-index: 2147483646;
        overflow-y: auto;
        box-sizing: border-box;
    }
    
    .nav-links.active {
        display: flex !important;
    }
    
    .nav-links li {
        width: 100%;
        list-style: none;
        margin: 0;
        padding: 0;
    }
    
    .nav-links a {
        display: block;
        padding: 18px 0;
        font-size: 1.2rem;
        color: var(--text-primary);
        text-decoration: none;
        border-bottom: 1px solid rgba(148, 163, 184, 0.15);
    }
    
    .nav-links a:hover {
        color: var(--accent-color);
    }
    
    .nav-links .lang-dropdown {
        width: 100%;
        margin-top: 20px;
        padding: 12px 16px;
        font-size: 1rem;
        background: rgba(15, 23, 42, 0.9);
        border: 1px solid var(--border-color);
        border-radius: 8px;
        color: var(--text-primary);
    }
    .hero-section.container {
        padding-top: 112px;
        padding-right: 20px;
        padding-bottom: 72px;
        padding-left: 20px;
    }
    .store-badge {
        max-width: 100%;
        min-height: 60px;
        padding: 12px 14px;
    }
    .store-badge-label {
        font-size: 0.98rem;
    }
    .store-badge-status {
        font-size: 0.74rem;
    }
    .platform-top {
        align-items: flex-start;
        flex-direction: column;
    }
    .platform-name-wrap {
        width: 100%;
    }
    .apk-grid { grid-template-columns: 1fr; }
    .apk-card { padding: 20px; }
    .apk-card-top { flex-direction: column; align-items: stretch; }
    .apk-download-link { width: 100%; text-align: center; }
    .dual-reality-section.container {
        padding-top: 20px;
        padding-right: 20px;
        padding-bottom: 12px;
        padding-left: 20px;
    }
    #how-it-works.container {
        padding-top: 28px;
    }
    h1 { font-size: 2rem; }
    .page-header h1 { font-size: 2.2rem; }
    .sec-grid, .cards-grid, .download-grid { grid-template-columns: 1fr; }
    .step { width: 95%; } 
    .claim-box, .hero-shell, .dl-column { padding: 25px; }
    .dual-reality-card { border-radius: 20px; padding: 4px; }
    .dual-reality-img { border-radius: 16px; }
    .dual-reality-section { padding-bottom: 16px; }
    .layergram-app-window { border-radius: 0; border-left: none; border-right: none; }
    .chat-bubble { max-width: 95%; }
    .platform-top { align-items: flex-start; flex-direction: column; }
    .container { padding: 72px 20px; }

}

/* Main Modal Styles */
.phone-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%; 
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
}

/* Modal Image Content */
.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85%;
    border-radius: 12px;
    object-fit: contain;
    cursor: default; 
}

/* Modal Zoom Animation */
.modal-content {
    animation-name: zoom;
    animation-duration: 0.4s;
}

@keyframes zoom {
    from {transform: scale(0.7); opacity: 0;} 
    to {transform: scale(1); opacity: 1;}
}

/* Modal Close Button */
.close-modal {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Modal Caption Text */
#modalCaption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    font-size: 16px;
}

/* Modal Body Scroll Lock */
body.modal-open {
    overflow: hidden;
}

body.menu-open {
    overflow: hidden;
}

/* Modal Responsive Styles */
@media only screen and (max-width: 700px){
    .modal-content {
        width: 95%; 
    }
}

/* --- Language Badges Section --- */
.languages-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 25px;
}

.lang-badge {
    background: rgba(45, 212, 191, 0.1);
    color: var(--accent-color);
    border: 1px solid rgba(45, 212, 191, 0.24);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: default;
    white-space: nowrap;
}

.lang-badge:hover {
    background: rgba(45, 212, 191, 0.16);
    transform: translateY(-2px);
}

html {
    scroll-behavior: smooth;
}

body {
    position: relative;
    overflow-x: hidden;
}

body > *:not(nav):not(.nav-links) {
    position: relative;
    z-index: 1;
}

body::before,
body::after {
    content: "";
    position: fixed;
    width: 52rem;
    height: 52rem;
    border-radius: 999px;
    pointer-events: none;
    z-index: 0;
    filter: blur(34px);
    opacity: 0.46;
}

body::before {
    top: -20rem;
    right: -16rem;
    background: radial-gradient(circle, rgba(46, 223, 240, 0.28), rgba(46, 223, 240, 0.08) 36%, transparent 68%);
    animation: security-orbit 22s ease-in-out infinite;
}

body::after {
    bottom: -22rem;
    left: -16rem;
    background: radial-gradient(circle, rgba(20, 126, 193, 0.24), rgba(56, 189, 248, 0.07) 42%, transparent 68%);
    animation: security-orbit 28s ease-in-out infinite reverse;
}

.nav-links a,
.footer-links a {
    position: relative;
}

.nav-links a::after,
.footer-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(45, 212, 191, 0.95), transparent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.nav-links a:hover::after,
.footer-links a:hover::after {
    transform: scaleX(1);
}

.btn,
.hero-badge,
.lang-badge,
.hero-shell,
.claim-box,
.card,
.sec-box,
.platform-card,
.dl-column,
.article-section,
.dual-reality-card,
.layergram-app-window {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.btn {
    background-size: 200% 200%;
}

.btn.primary {
    animation: accent-flow 7s ease infinite;
}

.btn.secondary {
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.btn.secondary:hover {
    box-shadow: 0 14px 34px rgba(45, 212, 191, 0.15);
}

.hero-badge,
.lang-badge {
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.hero-badge:hover,
.lang-badge:hover {
    border-color: rgba(125, 211, 252, 0.38);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.2);
}

.hero-shell,
.claim-box,
.card,
.sec-box,
.platform-card,
.dl-column,
.article-section,
.dual-reality-card,
.layergram-app-window {
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
    transform-style: preserve-3d;
    will-change: transform;
}

.hero-shell::before,
.claim-box::before,
.card::before,
.sec-box::before,
.platform-card::before,
.dl-column::before,
.article-section::before,
.dual-reality-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(120deg, transparent 0%, rgba(125, 211, 252, 0.06) 28%, rgba(45, 212, 191, 0.14) 50%, rgba(125, 211, 252, 0.06) 72%, transparent 100%);
    transform: translateX(-120%);
}

.hero-shell::after,
.claim-box::after,
.card::after,
.sec-box::after,
.platform-card::after,
.dl-column::after,
.article-section::after,
.dual-reality-card::after,
.layergram-app-window::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at var(--spot-x, 50%) var(--spot-y, 50%), rgba(125, 211, 252, 0.2), transparent 42%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-shell > *,
.claim-box > *,
.card > *,
.sec-box > *,
.platform-card > *,
.dl-column > *,
.article-section > *,
.dual-reality-card > *,
.layergram-app-window > *,
.page-header > * {
    position: relative;
    z-index: 1;
}

.interactive-surface.is-tilting {
    transform: perspective(1200px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(-6px);
    box-shadow: 0 28px 70px rgba(2, 8, 23, 0.34);
    border-color: rgba(125, 211, 252, 0.24);
}

.interactive-surface.is-tilting::after,
.interactive-surface:hover::after {
    opacity: 1;
}

.interactive-surface:hover::before,
.hero-shell:hover::before,
.claim-box:hover::before,
.card:hover::before,
.sec-box:hover::before,
.platform-card:hover::before,
.dl-column:hover::before,
.article-section:hover::before,
.dual-reality-card:hover::before {
    animation: scan-sweep 0.95s ease forwards;
}

.page-header {
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -26px;
    width: 180px;
    height: 180px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.18), transparent 68%);
    filter: blur(8px);
    opacity: 0.7;
    pointer-events: none;
    animation: beacon-pulse 5s ease-in-out infinite;
}

.hero-phones-wrapper {
    perspective: 1200px;
}

.hero-phone {
    animation: frame-glow 5.8s ease-in-out infinite;
}

.phone-left {
    animation-delay: 0s;
}

.phone-center {
    animation-delay: 0.8s;
}

.phone-right {
    animation-delay: 1.6s;
}

.platform-status.is-ready {
    animation: badge-pulse 2.8s ease-in-out infinite;
}

.faq-chat-stage::before {
    content: "";
    position: absolute;
    inset: -35% 0;
    pointer-events: none;
    background: linear-gradient(180deg, transparent 0%, rgba(46, 223, 240, 0.015) 42%, rgba(125, 211, 252, 0.045) 50%, rgba(46, 223, 240, 0.015) 58%, transparent 100%);
    animation: vault-scan 9.5s linear infinite;
    z-index: 1;
}

.chat-bubble.q,
.chat-bubble.a {
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.chat-bubble.q:hover,
.chat-bubble.a:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(2, 8, 23, 0.2);
}

.reveal-item {
    opacity: 0;
    transform: translateY(28px) scale(0.985);
    filter: blur(10px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), filter 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0ms);
}

.reveal-item.reveal-active {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

@keyframes security-orbit {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(16px, 22px, 0) scale(1.08); }
}

@keyframes accent-flow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes scan-sweep {
    0% { transform: translateX(-120%); }
    100% { transform: translateX(120%); }
}

@keyframes beacon-pulse {
    0%, 100% { opacity: 0.42; transform: translateX(-50%) scale(0.92); }
    50% { opacity: 0.84; transform: translateX(-50%) scale(1.06); }
}

@keyframes frame-glow {
    0%, 100% { box-shadow: 0 30px 80px rgba(2, 8, 23, 0.38); }
    50% { box-shadow: 0 34px 92px rgba(8, 145, 178, 0.28); }
}

@keyframes badge-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.18); }
    50% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
}

@keyframes vault-scan {
    0% { transform: translateY(-12%); }
    100% { transform: translateY(12%); }
}

@media (max-width: 768px) {
    body::before,
    body::after {
        width: 24rem;
        height: 24rem;
        opacity: 0.28;
    }

    .reveal-item {
        transform: translateY(18px) scale(0.99);
    }

    .hero-shell,
    .claim-box,
    .card,
    .sec-box,
    .platform-card,
    .dl-column,
    .article-section,
    .dual-reality-card,
    .layergram-app-window {
        transform: none !important;
    }

    .hero-phone {
        animation-duration: 7.2s;
    }

    #faq {
        padding: 20px 0 0;
    }

    .faq-chat-content {
        padding: 20px 14px 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    body::before,
    body::after,
    .btn.primary,
    .hero-phone,
    .platform-status.is-ready,
    .faq-chat-stage::before,
    .page-header::before {
        animation: none !important;
    }

    .reveal-item,
    .reveal-item.reveal-active {
        opacity: 1;
        transform: none;
        filter: none;
        transition: none;
    }
}
