/* 
    drag.x - Premium Design System 2026
    Estética High-End, Glassmorphism & High-Performance
*/

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Color Palette - Deep Tech */
    --color-bg: #030407;
    --color-surface: #0a0c12;
    --color-primary: #3d5afe;
    --color-primary-glow: rgba(61, 90, 254, 0.4);
    --color-secondary: #00e5ff;
    --color-accent: #00ffa3;
    --color-text: #f8fafc;
    --color-text-dim: #94a3b8;

    /* Gradients */
    --gradient-hero: radial-gradient(circle at 50% -20%, #1e1b4b 0%, var(--color-bg) 100%);
    --gradient-brand: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    --gradient-surface: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 100%);

    /* Glassmorphism */
    --glass-bg: rgba(10, 12, 18, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);

    /* Sizing & Constants */
    --container-xl: 1400px;
    --header-h: 90px;
    --radius-lg: 32px;
    --radius-md: 18px;
    --ease: cubic-bezier(0.23, 1, 0.32, 1);
    --transition: all 0.5s var(--ease);

    /* WhatsApp Green */
    --color-whatsapp: #25d366;
}

/* --- Base & Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: var(--container-xl);
    width: 90%;
    margin: 0 auto;
}

/* --- Header & Navigation --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-h);
    z-index: 1000;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

header.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    height: 75px;
    border-bottom: 1px solid var(--glass-border);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -1.5px;
    text-decoration: none;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    opacity: 0.7;
    transition: var(--transition);
}

.nav-links a:hover {
    opacity: 1;
    color: var(--color-secondary);
}

/* --- Hamburger & Mobile Menu --- */
.mobile-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    width: 45px;
    height: 45px;
    border-radius: 12px;
    color: white;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 2000;
    transition: var(--transition);
}

.mobile-toggle:hover {
    background: var(--color-primary);
}

/* --- Base Components --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 16px;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: none;
    font-size: 0.9rem;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--gradient-brand);
    color: white;
    box-shadow:
        0 3px 0 #1a237e,
        0 12px 25px var(--color-primary-glow);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    transform: translateY(-3px) perspective(1000px) rotateX(10deg);
    box-shadow:
        0 6px 0 #1a237e,
        0 18px 35px var(--color-primary-glow);
}

.btn-primary:active {
    transform: translateY(2px);
    box-shadow:
        0 0px 0 #1a237e,
        0 5px 15px var(--color-primary-glow);
}

.btn-whatsapp {
    background: var(--color-whatsapp);
    color: white;
    box-shadow:
        0 3px 0 #128c7e,
        0 12px 25px rgba(37, 211, 102, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-whatsapp:hover {
    transform: translateY(-3px) perspective(1000px) rotateX(10deg);
    background: #20ba5a;
    box-shadow:
        0 6px 0 #128c7e,
        0 18px 35px rgba(37, 211, 102, 0.5);
}

.btn-whatsapp:active {
    transform: translateY(2px);
    box-shadow:
        0 0px 0 #128c7e,
        0 5px 15px rgba(37, 211, 102, 0.3);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-secondary);
    transform: translateY(-2px);
}

.section-padding {
    padding: 100px 0;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

/* --- Hero Section --- */
.hero {
    padding: 160px 0 100px;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 4rem;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(61, 90, 254, 0.1);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 2rem;
    border: 1px solid rgba(0, 229, 255, 0.2);
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.1;
    font-weight: 850;
    margin-bottom: 2rem;
    letter-spacing: -3px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-dim);
    margin-bottom: 3rem;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.hero-img-container {
    position: relative;
}

.hero-img-container img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.6);
    border: 1px solid var(--glass-border);
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: var(--transition);
}

.hero-img-container:hover img {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

/* --- Stats Area --- */
.features-box {
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

.feature-stats {
    background: var(--glass-bg);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 40px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4);
}

.stat-item {
    text-align: center;
    border-right: 1px solid var(--glass-border);
}

.stat-item:last-child {
    border-right: none;
}

.stat-val {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--color-text-dim);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Categories Section --- */
.section-head {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 5rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.cat-card {
    background: var(--color-surface);
    padding: 3rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.cat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-surface);
    opacity: 1;
}

.cat-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-primary);
    background: #0f121a;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.cat-icon {
    font-size: 3rem;
    margin-bottom: 2rem;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
}

.cat-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.cat-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cat-tag {
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-dim);
    border: 1px solid var(--glass-border);
}

@media (max-width: 992px) {
    .mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: var(--color-surface);
        flex-direction: column;
        justify-content: center;
        padding: 4rem;
        transition: right 0.6s var(--ease);
        box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);
        border-left: 1px solid var(--glass-border);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin-bottom: 2rem;
    }

    .nav-links a {
        font-size: 1.2rem;
    }

    .nav-links .nav-btn {
        font-size: 0.85rem;
        padding: 12px 24px;
        width: auto !important;
        margin: 0 auto;
    }

    .nav-btn-mobile {
        display: flex !important;
        justify-content: center;
        margin-top: 1rem;
    }
}

/* --- Internal Pages Components --- */
.hero-sub {
    padding: 180px 0 80px;
    text-align: center;
    background: var(--gradient-hero);
}

.hero-sub h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 850;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

.hero-sub p {
    font-size: 1.2rem;
    color: var(--color-text-dim);
    max-width: 700px;
    margin: 0 auto;
}

.software-group {
    margin-bottom: 6rem;
}

.software-group .section-subtitle {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.2rem;
    color: var(--color-primary);
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 1rem;
}

.software-card {
    background: var(--color-surface);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.software-card:hover {
    transform: translateY(-10px);
    background: #11141d;
    border-color: var(--color-primary);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.software-card i {
    font-size: 3rem;
    margin-bottom: 1.8rem;
    display: block;
}

.software-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.software-card p {
    color: var(--color-text-dim);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.btn-install {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: var(--transition);
}

.btn-install:hover {
    color: var(--color-secondary);
    gap: 15px;
}

.cta-box {
    background: var(--color-surface);
    padding: 5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
    margin-bottom: 5rem;
}

.cta-box h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

/* --- Theme Design Override --- */
body.theme-design {
    --color-primary: #ff4757;
    --color-primary-glow: rgba(255, 71, 87, 0.4);
    --gradient-brand: linear-gradient(135deg, #ff4757 0%, #ff6b81 100%);
}

body.theme-architecture {
    --color-primary: #00ffa3;
    --color-primary-glow: rgba(0, 255, 163, 0.4);
    --gradient-brand: linear-gradient(135deg, #00ffa3 0%, #00e5ff 100%);
}

body.theme-music {
    --color-primary: #FD5E53;
    --color-primary-glow: rgba(253, 94, 83, 0.4);
    --gradient-brand: linear-gradient(135deg, #FD5E53 0%, #FF9A00 100%);
}

body.theme-productivity {
    --color-primary: #31A8FF;
    --color-primary-glow: rgba(49, 168, 255, 0.4);
    --gradient-brand: linear-gradient(135deg, #31A8FF 0%, #0696D7 100%);
}

body.theme-pos {
    --color-primary: #2ECC71;
    --color-primary-glow: rgba(46, 204, 113, 0.4);
    --gradient-brand: linear-gradient(135deg, #2ECC71 0%, #3498DB 100%);
}

.back-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-text);
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 20px;
    border-radius: 100px;
    border: 1px solid var(--glass-border);
}

.back-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-secondary);
}

@media (max-width: 768px) {
    .cta-box {
        padding: 3rem 1.5rem;
    }

    .cta-box h2 {
        font-size: 1.8rem;
    }

    .software-card {
        padding: 2rem 1.5rem;
    }
}

/* --- Footers --- */
footer {
    padding: 60px 0;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    color: var(--color-text-dim);
}

/* --- Responsive 100% --- */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-subtitle {
        margin: 0 auto 3rem;
    }

    .hero-actions {
        justify-content: center;
        flex-direction: column;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .hero-img-container img {
        transform: none !important;
    }

    .feature-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
        padding: 50px 30px;
    }

    .stat-item {
        border-right: none;
        padding: 10px;
    }

    .stat-item:nth-child(odd) {
        border-right: 1px solid var(--glass-border);
    }
}

@media (max-width: 600px) {
    .container {
        width: 92%;
    }

    .hero {
        padding-top: 140px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .btn {
        width: 100%;
        justify-content: center;
        padding: 16px;
        font-size: 1rem;
    }

    .feature-stats {
        grid-template-columns: 1fr;
        padding: 40px 20px;
        gap: 1.5rem;
    }

    .stat-item {
        border-right: none !important;
        padding: 30px 0;
        border-bottom: 1px solid var(--glass-border);
    }

    .stat-item:last-child {
        border-bottom: none;
    }

    .stat-val {
        font-size: 3rem;
        margin-bottom: 15px;
    }
}

/* --- Floating WhatsApp --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--color-whatsapp);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    box-shadow: 0 10px 40px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    text-decoration: none;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 15px 50px rgba(37, 211, 102, 0.6);
}