/* ══════════════════════════════════════════════════════════
   XUANII INC. — DESIGN SYSTEM v3.0
   ──────────────────────────────────────────────────────────
   Paleta: Blanco + Gris sobre Negro Absoluto
   Texto: Solo #ffffff y #a0a0a0. Cero colores en texto.
   Botones: Blanco brillante sobre negro = máximo contraste
   Animaciones: Fluidas, profesionales, sin exceso
   ══════════════════════════════════════════════════════════ */

:root {
    --bg-color: #000000;
    --text-primary: #ffffff;
    --text-secondary: #888888;
    --text-dim: #555555;
    
    --accent-blue: #4a8bd4;
    --accent-purple: #9d4edd;
    --glow-blue: #0f2c59;
    --glow-purple: #240046;
    
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-nav-bg: rgba(8, 8, 8, 0.4);
    --glass-nav-border: rgba(255, 255, 255, 0.06);
    --glass-nav-scrolled: rgba(0, 0, 0, 0.6);
    --glass-nav-scrolled-border: rgba(255, 255, 255, 0.1);
    
    --card-bg: linear-gradient(180deg, rgba(20, 20, 20, 0.5) 0%, rgba(8, 8, 8, 0.9) 100%);
    --footer-bg: rgba(15, 15, 15, 0.5);
    --mockup-header-bg: rgba(20, 20, 20, 0.9);
    --mockup-body-bg: linear-gradient(to bottom right, #0a0a0a, #000);
    --chat-bot-bg: rgba(255, 255, 255, 0.04);
    --chat-user-bg: rgba(255, 255, 255, 0.1);
    --btn-secondary-border: rgba(255, 255, 255, 0.2);
    --btn-secondary-hover-bg: rgba(255, 255, 255, 0.08);

    --btn-bg: #ffffff;
    --btn-text: #000000;
    --btn-shadow: rgba(255, 255, 255, 0.15);
    
    --shadow-soft: 0 8px 30px rgba(0, 0, 0, 0.5);
    --radius: 16px;
    --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@media (prefers-color-scheme: light) {
    :root {
        --bg-color: #f7f7f7;
        --text-primary: #111111;
        --text-secondary: #555555;
        --text-dim: #888888;
        
        --glow-blue: #d0e3f7;
        --glow-purple: #f3e8fc;
        
        --glass-bg: rgba(0, 0, 0, 0.02);
        --glass-border: rgba(0, 0, 0, 0.08);
        --glass-nav-bg: rgba(255, 255, 255, 0.4);
        --glass-nav-border: rgba(0, 0, 0, 0.06);
        --glass-nav-scrolled: rgba(255, 255, 255, 0.8);
        --glass-nav-scrolled-border: rgba(0, 0, 0, 0.1);
        
        --card-bg: linear-gradient(180deg, rgba(240, 240, 240, 0.5) 0%, rgba(250, 250, 250, 0.9) 100%);
        --footer-bg: rgba(240, 240, 240, 0.8);
        --mockup-header-bg: rgba(230, 230, 230, 0.9);
        --mockup-body-bg: linear-gradient(to bottom right, #f0f0f0, #e0e0e0);
        --chat-bot-bg: rgba(0, 0, 0, 0.04);
        --chat-user-bg: rgba(0, 0, 0, 0.08);
        --btn-secondary-border: rgba(0, 0, 0, 0.2);
        --btn-secondary-hover-bg: rgba(0, 0, 0, 0.05);

        --btn-bg: #111111;
        --btn-text: #ffffff;
        --btn-shadow: rgba(0, 0, 0, 0.15);
        
        --shadow-soft: 0 8px 30px rgba(0, 0, 0, 0.06);
    }
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

::-webkit-scrollbar {
    display: none;
}

/* ── ENTRANCE ANIMATIONS ────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--transition), transform 0.8s var(--transition);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered children animation */
.reveal.active .glass-card:nth-child(1),
.reveal.active .eco-card:nth-child(1),
.reveal.active .stat-box:nth-child(1) { transition-delay: 0.1s; }
.reveal.active .glass-card:nth-child(2),
.reveal.active .eco-card:nth-child(2),
.reveal.active .stat-box:nth-child(2) { transition-delay: 0.25s; }
.reveal.active .glass-card:nth-child(3),
.reveal.active .eco-card:nth-child(3) { transition-delay: 0.4s; }

/* ── BACKGROUND EFFECTS ─────────────────────────────── */
.background-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(130px);
    opacity: 0.25;
    animation: float 25s infinite ease-in-out;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: var(--glow-blue);
    top: -150px;
    left: -150px;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--glow-purple);
    bottom: 5%;
    right: -100px;
    animation-delay: -12s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: var(--glow-purple);
    top: 40%;
    left: 50%;
    animation-delay: -6s;
    opacity: 0.15;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -40px) scale(1.05); }
    66% { transform: translate(-20px, 25px) scale(0.95); }
}

/* ── GLASSMORPHISM CARDS ─────────────────────────────── */
.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius);
    padding: 2.5rem;
    color: var(--text-primary);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    position: relative;
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255,255,255,0.06) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(255, 255, 255, 0.03);
    transform: translateY(-4px);
}

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

/* ── NAVIGATION ──────────────────────────────────────── */
.glass-nav, .glass-footer {
    background: var(--glass-nav-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--glass-nav-border);
}

.glass-nav.scrolled {
    background: var(--glass-nav-scrolled);
    border-color: var(--glass-nav-scrolled-border);
}

.glass-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 1.5rem;
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1400px;
    border-radius: 50px;
    z-index: 100;
    transition: background 0.3s, border-color 0.3s;
}

.logo-img {
    max-height: 36px;
    max-width: 140px; /* Fix for Safari/mobile intrinsic width bug */
    margin: -10px 0;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--text-primary);
    transition: width var(--transition);
}

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

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--text-primary);
    font-weight: 700;
}

.nav-links a.active::after {
    width: 100%;
}

/* ── BUTTONS ─────────────────────────────────────────── */
.btn-primary {
    display: inline-block;
    background: var(--btn-bg);
    color: var(--btn-text);
    border: none;
    padding: 0.85rem 1.8rem;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    transition: transform var(--transition), box-shadow var(--transition);
    letter-spacing: 0.3px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px var(--btn-shadow);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--btn-secondary-border);
    padding: 0.85rem 1.8rem;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition);
}

.btn-secondary:hover {
    background: var(--btn-secondary-hover-bg);
    border-color: var(--text-secondary);
}

/* ── HERO SECTION ────────────────────────────────────── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 100px;
}

.hero-content {
    flex: 1;
    padding-right: 2rem;
}

.badge {
    display: inline-block;
    padding: 0.35rem 1.2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.08;
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 500px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-buttons.center {
    justify-content: center;
}

/* ── HERO VISUAL ─────────────────────────────────────── */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

.browser-mockup {
    width: 100%;
    max-width: 600px;
    height: 400px;
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}

.browser-mockup:hover {
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
}

.browser-header {
    background: var(--mockup-header-bg);
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--glass-border);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.dot-red { background: #444; }
.dot-yellow { background: #666; }
.dot-green { background: #888; }

.address-bar {
    background: var(--glass-bg);
    border-radius: 6px;
    padding: 6px 16px;
    font-size: 0.8rem;
    margin-left: 10px;
    flex-grow: 1;
    color: var(--text-dim);
    border: 1px solid var(--glass-border);
}

.browser-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--mockup-body-bg);
}

.loader {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.08);
    border-top-color: var(--text-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-top: 20px;
}

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

/* ── SECTIONS ────────────────────────────────────────── */
.section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.section.active {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

/* ── FEATURES ────────────────────────────────────────── */
.features {
    padding: 100px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2rem;
    border-radius: var(--radius);
    transition: transform var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

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

/* ── ECOSYSTEM SECTION ───────────────────────────────── */
.ecosystem-section {
    padding: 100px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.ecosystem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.eco-card {
    padding: 2.5rem;
    border-radius: var(--radius);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

.eco-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.eco-icon {
    font-size: 2.5rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    transition: color var(--transition), transform var(--transition);
}

.eco-card:hover .eco-icon {
    color: var(--text-primary);
    transform: scale(1.1);
}

.eco-card h3 {
    font-size: 1.4rem;
    color: var(--text-primary);
    font-weight: 700;
}

.eco-card p {
    color: var(--text-secondary);
    flex-grow: 1;
    line-height: 1.7;
}

.learn-more {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    transition: color var(--transition), gap var(--transition);
    font-size: 0.95rem;
}

.learn-more:hover {
    color: var(--text-primary);
    gap: 0.9rem;
}

/* ── AI SECTION ──────────────────────────────────────── */
.ai-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 100px 5%;
    max-width: 1200px;
    margin: 0 auto;
    gap: 4rem;
}

.ai-content { flex: 1; }

.ai-content .section-title {
    text-align: left;
    margin-bottom: 1.5rem;
}

.ai-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.ai-list { list-style: none; }

.ai-list li {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
}

.ai-visual { flex: 1; }

.ai-chat-mockup {
    border-radius: var(--radius);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-message {
    padding: 1rem 1.5rem;
    border-radius: 16px;
    max-width: 80%;
    font-size: 0.95rem;
    line-height: 1.5;
}

.chat-message.bot {
    background: var(--chat-bot-bg);
    border: 1px solid var(--glass-border);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    color: var(--text-secondary);
}

.chat-message.user {
    background: var(--chat-user-bg);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    color: var(--text-primary);
}

.typing {
    color: var(--text-dim);
    font-style: italic;
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* ── MANIFESTO SECTION ───────────────────────────────── */
.manifesto-section {
    padding: 100px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.manifesto-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 4rem;
    align-items: center;
}

.manifesto-text h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

.manifesto-text p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.manifesto-stats {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.stat-box {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: var(--radius);
    transition: border-color var(--transition), transform var(--transition);
}

.stat-box:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.stat-box h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.stat-box p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ── DENSE TEXT ───────────────────────────────────────── */
.dense-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 0 auto 2rem auto;
    max-width: 700px;
}

/* ── TECHNICAL SPECS ─────────────────────────────────── */
.tech-specs-section {
    padding: 100px 5%;
    max-width: 1000px;
    margin: 0 auto;
}

.specs-container {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.spec-row {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 2rem;
    padding: 2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background var(--transition);
}

.spec-row:hover {
    background: rgba(255, 255, 255, 0.02);
}

.spec-title {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
}

.spec-detail strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.spec-detail p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ── SPLIT HERO (Product Pages) ──────────────────────── */
.hero.split {
    padding-top: 150px;
}

.product-hero {
    min-height: 80vh;
}

.feature-list {
    list-style: none;
    margin-top: 2rem;
}

.feature-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
}

.feature-list li i {
    color: var(--text-dim);
}

/* ── CENTER HERO (Company Pages) ─────────────────────── */
.center-hero {
    justify-content: center;
    text-align: center;
    min-height: 70vh;
}

.hero-center-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-center-content .hero-buttons {
    justify-content: center;
}

/* ── ROADMAP ─────────────────────────────────────────── */
.roadmap-section {
    padding: 100px 5%;
    max-width: 1000px;
    margin: 0 auto;
}

.roadmap-timeline {
    position: relative;
    padding-left: 3rem;
}

.roadmap-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 1px;
    height: 100%;
    background: rgba(255, 255, 255, 0.08);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-dot {
    position: absolute;
    left: -3rem;
    top: 1.5rem;
    width: 12px;
    height: 12px;
    background: var(--bg-color);
    border: 2px solid var(--text-dim);
    border-radius: 50%;
    transform: translateX(-50%);
    transition: all var(--transition);
}

.timeline-item.active .timeline-dot {
    background: var(--text-primary);
    border-color: var(--text-primary);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
}

.timeline-content {
    padding: 2rem;
    border-radius: var(--radius);
}

.timeline-content h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

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

.timeline-content span {
    color: var(--text-secondary);
    font-size: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    margin-left: 10px;
}

/* ── CORPORATE FOOTER ────────────────────────────────── */
.corporate-footer {
    background: var(--footer-bg);
    border-top: 1px solid var(--glass-border);
    padding: 4rem 5% 2rem;
    margin-top: 100px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto 4rem;
}

.footer-brand p {
    color: var(--text-dim);
    margin-top: 1rem;
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-links h4 {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul li a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition);
}

.footer-links ul li a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-dim);
    font-size: 0.85rem;
}

.socials {
    display: flex;
    gap: 1.5rem;
}

.socials i {
    cursor: pointer;
    color: var(--text-dim);
    transition: color var(--transition), transform var(--transition);
}

.socials i:hover {
    color: var(--text-primary);
    transform: translateY(-2px);
}

/* ── DOWNLOAD SECTION ────────────────────────────────── */
.download-section {
    padding: 100px 5%;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.download-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 4rem 3rem;
    text-align: center;
}

.download-card h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.download-card p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.os-icon {
    font-size: 3rem;
    color: var(--text-dim);
    margin-bottom: 2rem;
    display: block;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: var(--text-primary);
    color: var(--bg-color);
    padding: 1rem 2.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: transform var(--transition), box-shadow var(--transition);
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(255, 255, 255, 0.2), 0 0 20px rgba(255, 255, 255, 0.08);
}

.download-btn i {
    font-size: 1.2rem;
}

.download-info {
    margin-top: 2rem;
    color: var(--text-dim);
    font-size: 0.85rem;
}

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 900px) {
    .hero, .hero.split, .ai-section {
        flex-direction: column;
        text-align: center;
        padding-top: 120px;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 3rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        margin: 0 auto 2rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .glass-nav {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        padding: 0.8rem 1.5rem;
        border-radius: 40px;
        gap: 0;
        top: 10px;
        width: 95%;
        transition: border-radius var(--transition), background var(--transition);
    }

    .glass-nav.expanded {
        border-radius: 20px;
        background: var(--glass-nav-scrolled);
    }

    .logo {
        font-size: 1.2rem;
    }
    
    .nav-toggle {
        display: block !important;
    }

    .glass-nav .nav-actions {
        display: flex;
        width: 100%;
        justify-content: center;
        order: 4;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        padding-bottom: 0;
        transition: max-height 0.4s ease, opacity 0.4s ease, padding 0.4s ease;
    }

    .glass-nav.expanded .nav-actions {
        max-height: 100px;
        opacity: 1;
        padding-bottom: 1rem;
    }

    .nav-links {
        display: flex;
        width: 100%;
        flex-direction: column;
        align-items: center;
        order: 3;
        gap: 1.5rem;
        font-size: 1rem;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        padding: 0;
        transition: max-height 0.4s ease, opacity 0.4s ease, padding 0.4s ease;
    }
    
    .glass-nav.expanded .nav-links {
        max-height: 300px;
        opacity: 1;
        padding: 1.5rem 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

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

    .spec-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .section-title {
        font-size: 2rem;
    }
}

/* ── NAV TOGGLE (MOBILE) ────────────────────────────── */
@media (min-width: 901px) {
    .nav-toggle {
        display: none !important;
    }
}
.nav-toggle {
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform var(--transition);
}
.nav-toggle.open {
    transform: rotate(180deg);
}

/* ── MODAL & DEV BUTTON ──────────────────────────────── */
.btn-disabled {
    background: var(--glass-bg) !important;
    color: var(--text-secondary) !important;
    border: 1px solid var(--glass-border) !important;
    cursor: not-allowed;
    box-shadow: none !important;
}
.btn-disabled:hover {
    transform: none !important;
    box-shadow: none !important;
    border-color: var(--text-dim) !important;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), visibility var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 3rem;
    max-width: 450px;
    width: 90%;
    text-align: center;
    transform: scale(0.9);
    transition: transform var(--transition);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    position: relative;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-content i {
    font-size: 3rem;
    color: var(--text-dim);
    margin-bottom: 1.5rem;
}

.modal-content h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.modal-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color var(--transition);
}

.modal-close:hover {
    color: var(--text-primary);
}
