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

:root {
    --ruby: #e0115f;
    --ruby-dark: #9b111e;
    --ruby-light: #ff4d6d;
    --dark: #0a0a0f;
    --dark-2: #12121a;
    --gray: #888;
    --light: #f5f5f7;
    --white: #fff;
    --radius: 12px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--dark);
    color: var(--white);
    line-height: 1.6;
}

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

/* ========== CANVAS ========== */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* ========== NAV ========== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 0;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--white);
}

.logo-ruby {
    background: linear-gradient(135deg, var(--ruby-light), var(--ruby), var(--ruby-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-menu a {
    color: var(--gray);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.nav-menu a:hover {
    color: var(--white);
}

.nav-cta {
    background: var(--ruby);
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: var(--radius);
}

.nav-cta:hover {
    background: var(--ruby-light);
}

.lang-switch {
    display: flex;
    gap: 4px;
}

.lang-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--gray);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.lang-btn:hover {
    border-color: rgba(255,255,255,0.3);
    color: var(--white);
}

.lang-btn.active {
    background: var(--ruby);
    border-color: var(--ruby);
    color: var(--white);
}

/* ========== HERO ========== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

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

.badge {
    display: inline-block;
    background: rgba(224, 17, 95, 0.15);
    border: 1px solid rgba(224, 17, 95, 0.3);
    color: var(--ruby-light);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 32px;
}

/* ========== BUTTON ========== */
.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--ruby), var(--ruby-dark));
    color: var(--white);
    padding: 14px 32px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(224, 17, 95, 0.3);
}

/* ========== SECTIONS ========== */
.section {
    padding: 100px 0;
}

.section-dark {
    background: var(--dark-2);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
}

/* ========== GRID ========== */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

@media (max-width: 900px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 500px) {
    .grid-4 { grid-template-columns: 1fr; }
}

/* ========== CARDS ========== */
.card {
    background: var(--dark-2);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s;
}

.card:hover {
    border-color: rgba(224, 17, 95, 0.3);
    transform: translateY(-5px);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.card p {
    font-size: 0.9rem;
    color: var(--gray);
}

/* ========== TECH CARDS ========== */
.tech-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius);
    padding: 24px;
}

.tech-card h4 {
    color: var(--ruby-light);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tags span {
    background: rgba(224, 17, 95, 0.1);
    border: 1px solid rgba(224, 17, 95, 0.2);
    color: var(--ruby-light);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
}

/* ========== SAMPLE CARDS ========== */
.sample-card {
    display: block;
    background: var(--dark-2);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    color: var(--white);
    transition: all 0.3s;
}

.sample-card:hover {
    transform: translateY(-5px);
    border-color: rgba(224, 17, 95, 0.3);
}

.sample-img {
    height: 150px;
}

.sample-card span {
    display: block;
    padding: 16px;
    text-align: center;
    font-weight: 500;
}

/* ========== FOOTER ========== */
.footer {
    padding: 30px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--gray);
}

/* ========== WHATSAPP FLOAT ========== */
.wa-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: transform 0.3s;
    z-index: 99;
}

.wa-float:hover {
    transform: scale(1.1);
}

.wa-float svg {
    width: 28px;
    height: 28px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .lang-switch {
        position: fixed;
        bottom: 90px;
        right: 24px;
        flex-direction: column;
        background: var(--dark-2);
        padding: 8px;
        border-radius: var(--radius);
        border: 1px solid rgba(255,255,255,0.1);
    }

    .hero h1 {
        font-size: 2rem;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 40px;
    }
}
