:root {
    --color-primary: #0f172a;
    --color-accent: #2563eb;
    --color-accent-dark: #1d4ed8;
    --color-text: #334155;
    --color-text-light: #64748b;
    --color-bg: #ffffff;
    --color-surface: #f8fafc;
    --color-border: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(15 23 42 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(15 23 42 / 0.08), 0 2px 4px -2px rgb(15 23 42 / 0.08);
    --shadow-lg: 0 10px 15px -3px rgb(15 23 42 / 0.08), 0 4px 6px -4px rgb(15 23 42 / 0.08);
    --radius: 0.75rem;
    --max-width: 1200px;
    --header-height: 72px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    z-index: 1000;
    transition: box-shadow 0.2s, background 0.2s;
}

.header.is-scrolled {
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 0.98);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: inline-flex;
    align-items: center;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--color-primary);
}

.logo-image img {
    height: 38px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
}

@media (min-width: 1100px) {
    .logo-image img {
        height: 42px;
        max-width: 180px;
    }
}

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    background: var(--color-accent);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 1.1rem;
}

.logo-text span {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-text-light);
    line-height: 1;
    margin-top: 0.15rem;
}

.footer-brand .logo-image img {
    filter: brightness(0) invert(1);
    height: 38px;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    list-style: none;
}

@media (min-width: 1100px) {
    .nav-list {
        gap: 2rem;
    }
}

.nav-list a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-text);
    transition: color 0.2s;
}

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

.nav-cta {
    background: var(--color-accent);
    color: #fff !important;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
}

.nav-cta:hover {
    background: var(--color-accent-dark);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-primary);
    transition: transform 0.2s, opacity 0.2s;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
    border: none;
    cursor: pointer;
}

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

.btn-primary {
    background: var(--color-accent);
    color: #fff;
    box-shadow: 0 4px 14px rgb(37 99 235 / 0.35);
}

.btn-primary:hover {
    background: var(--color-accent-dark);
}

.btn-secondary {
    background: #fff;
    color: var(--color-primary);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.btn-full {
    width: 100%;
}

/* Hero */
.hero {
    padding: calc(var(--header-height) + 5rem) 0 6rem;
    background:
        radial-gradient(circle at 85% 15%, #dbeafe 0%, transparent 35%),
        radial-gradient(circle at 15% 85%, #dcfce7 0%, transparent 30%),
        radial-gradient(circle at 50% 50%, #eff6ff 0%, transparent 60%),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 25% 25%, rgba(37, 99, 235, 0.04) 0%, transparent 25%),
        radial-gradient(circle at 75% 75%, rgba(37, 99, 235, 0.04) 0%, transparent 25%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    background: #dbeafe;
    color: #1e40af;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    line-height: 1.1;
    color: var(--color-primary);
    font-weight: 800;
    margin-bottom: 1.25rem;
}

.hero p {
    font-size: 1.15rem;
    color: var(--color-text-light);
    max-width: 520px;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.hero-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hero-features li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 500;
    color: var(--color-text);
}

.hero-features svg {
    color: var(--color-accent);
    flex-shrink: 0;
}

.hero-visual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.hero-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.hero-card:hover {
    transform: translateY(-6px) scale(1.02);
}

.hero-icon {
    font-size: 2.2rem;
    margin-bottom: 0.75rem;
}

.hero-card strong {
    display: block;
    color: var(--color-primary);
    margin-bottom: 0.25rem;
}

.hero-card span {
    font-size: 0.875rem;
    color: var(--color-text-light);
}

/* Sections general */
section {
    padding: 5rem 0;
}

.section-head {
    max-width: 640px;
    margin: 0 auto 3rem;
    text-align: center;
}

.section-tag {
    display: inline-block;
    color: var(--color-accent);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.section-head h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: var(--color-primary);
    margin-bottom: 0.75rem;
}

.section-head p {
    color: var(--color-text-light);
    font-size: 1.05rem;
}

/* Services */
.services {
    background: var(--color-surface);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.service-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}

.service-card,
.hero-card,
.app-card {
    will-change: transform;
}

.service-card:hover,
.hero-card:hover,
.app-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgb(15 23 42 / 0.1), 0 8px 10px -6px rgb(15 23 42 / 0.1);
}

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: 0.75rem;
    background: var(--bg);
    color: var(--color);
    display: grid;
    place-items: center;
    font-size: 1.6rem;
    margin-bottom: 1.25rem;
}

.service-card h3 {
    color: var(--color-primary);
    font-size: 1.15rem;
    margin-bottom: 0.6rem;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--color-text-light);
}

/* Remote */
.remote {
    background: var(--color-primary);
    color: #fff;
}

.remote-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.remote .section-tag {
    color: #93c5fd;
}

.remote h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
}

.remote p {
    color: #cbd5e1;
    font-size: 1.05rem;
    margin-bottom: 1.75rem;
    max-width: 520px;
}

.remote-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.remote-actions .btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.25);
}

.remote-actions .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
    color: #fff;
}

.remote-visual {
    display: flex;
    justify-content: center;
}

.remote-screen {
    width: 100%;
    max-width: 380px;
    background: #0b1120;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.5);
}

.remote-bar {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.remote-bar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ef4444;
}

.remote-bar span:nth-child(2) {
    background: #eab308;
}

.remote-bar span:nth-child(3) {
    background: #22c55e;
}

.remote-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.remote-msg {
    max-width: 80%;
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    font-size: 0.9rem;
    line-height: 1.4;
    animation: fadeInUp 0.6s ease both;
}

.remote-them {
    align-self: flex-start;
    background: #1e293b;
    color: #e2e8f0;
    border-bottom-left-radius: 0.25rem;
}

.remote-you {
    align-self: flex-end;
    background: var(--color-accent);
    color: #fff;
    border-bottom-right-radius: 0.25rem;
    animation-delay: 0.3s;
}

.remote-body .remote-them:last-child {
    animation-delay: 0.6s;
}

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

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    aspect-ratio: 4 / 3;
    position: relative;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(15, 23, 42, 0.35));
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Contact */
.contact {
    background: var(--color-surface);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: var(--color-primary);
    margin-bottom: 0.75rem;
}

.contact-info > p {
    color: var(--color-text-light);
    margin-bottom: 2rem;
}

address {
    font-style: normal;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.contact-row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--color-border);
    display: grid;
    place-items: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact-row strong {
    display: block;
    color: var(--color-primary);
    font-size: 0.9rem;
    margin-bottom: 0.15rem;
}

.contact-row a {
    color: var(--color-accent);
    font-weight: 500;
}

.contact-row a:hover {
    text-decoration: underline;
}

.contact-social {
    display: flex;
    gap: 0.75rem;
}

.contact-social a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--color-border);
    color: var(--color-text);
    display: grid;
    place-items: center;
    transition: color 0.2s, border-color 0.2s, transform 0.2s;
}

.contact-social a:hover {
    color: var(--color-accent);
    border-color: var(--color-accent);
    transform: translateY(-2px);
}

.contact-form {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    position: relative;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 2rem;
    right: 2rem;
    height: 4px;
    background: linear-gradient(90deg, var(--color-accent), #60a5fa);
    border-radius: 0 0 4px 4px;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-primary);
    margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 1rem;
    color: var(--color-text);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgb(37 99 235 / 0.12);
}

/* Footer */
.footer {
    background: var(--color-primary);
    color: #94a3b8;
    padding: 3rem 0 1.5rem;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: start;
    margin-bottom: 2rem;
}

.footer-brand .logo {
    color: #fff;
    margin-bottom: 1rem;
}

.footer-brand p {
    max-width: 320px;
    font-size: 0.95rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: 0.85rem 3rem;
}

.footer-links a {
    font-size: 0.95rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
}

/* WhatsApp FAB */
.whatsapp-fab {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: grid;
    place-items: center;
    box-shadow: 0 6px 20px rgb(37 211 102 / 0.35);
    z-index: 1001;
    transition: transform 0.2s;
}

.whatsapp-fab:hover {
    transform: scale(1.08);
}

/* Responsive */
@media (max-width: 900px) {
    .hero-grid,
    .remote-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-visual {
        order: -1;
    }

    .remote-visual {
        order: -1;
    }
}

@media (max-width: 640px) {
    .nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        border-bottom: 1px solid var(--color-border);
        padding: 1rem 1.5rem;
        transform: translateY(-120%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.25s, opacity 0.25s;
    }

    .nav.is-open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.is-open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-toggle.is-open span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.is-open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .services-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions,
    .remote-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }
}

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

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
