:root {
    color-scheme: dark;
    --glass-bg: rgba(15, 23, 42, 0.55);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-hover: rgba(74, 90, 255, 0.12);
    --brand: #4a5aff;
    --brand-soft: rgba(74, 90, 255, 0.2);
    --success: #2ecc71;
    --error: #ef4444;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #050816;
}

/* Navigation */
.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.65rem 1.1rem;
    border-radius: 999px;
    transition: all 0.35s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid transparent;
    transition: all 0.35s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
}

.nav-link:hover::after,
.nav-link.active::after {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
}

header.is-scrolled {
    border-bottom-color: rgba(74, 90, 255, 0.25);
    background: rgba(5, 8, 22, 0.92);
    box-shadow: 0 24px 40px -32px rgba(15, 23, 42, 0.75);
}

body.mobile-menu-open {
    overflow: hidden;
}

.mobile-menu {
    position: fixed;
    inset: 0;
    background: rgba(5, 8, 22, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 40;
}

.mobile-menu.is-visible {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-link {
    display: block;
    padding: 1rem 1.25rem;
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
    color: rgba(226, 232, 240, 0.85);
    transition: all 0.3s ease;
}

.mobile-link:hover {
    color: #fff;
    border-color: rgba(74, 90, 255, 0.6);
    background: rgba(74, 90, 255, 0.12);
    transform: translateY(-2px);
}

/* Hero styling helpers */
.gradient-sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.35;
    z-index: -1;
    pointer-events: none;
    will-change: transform, opacity;
    transition: transform 0.45s ease, opacity 0.6s ease;
}

.gradient-sphere--1 {
    width: 420px;
    height: 420px;
    background: radial-gradient(circle at center, rgba(62, 108, 252, 0.9), rgba(5, 8, 22, 0));
    top: -120px;
    right: -150px;
}

.gradient-sphere--2 {
    width: 360px;
    height: 360px;
    background: radial-gradient(circle at center, rgba(236, 72, 153, 0.8), rgba(5, 8, 22, 0));
    bottom: -80px;
    left: -100px;
}

.gradient-sphere--3 {
    width: 280px;
    height: 280px;
    background: radial-gradient(circle at center, rgba(16, 185, 129, 0.45), rgba(5, 8, 22, 0));
    bottom: 24%;
    right: 12%;
}

@media (prefers-reduced-motion: reduce) {
    .gradient-sphere {
        transition: none;
    }
}

.glass-card {
    border-radius: 1.5rem;
    padding: 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    box-shadow: 0 24px 65px -35px rgba(15, 23, 42, 0.75);
    display: grid;
    gap: 0.75rem;
    transition: border 0.3s ease, transform 0.3s ease;
}

.glass-card:hover {
    border-color: rgba(74, 90, 255, 0.35);
    transform: translateY(-4px);
}

.floating-card {
    position: sticky;
    top: 8rem;
    border-radius: 2rem;
    padding: 2.75rem;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.75));
    box-shadow: 0 45px 95px -50px rgba(74, 90, 255, 0.6);
}

.brand-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.2rem;
    border-radius: 999px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.28em;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
}

.metric-card {
    display: grid;
    gap: 0.75rem;
    border-radius: 1.5rem;
    padding: 2.2rem 1.8rem;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: transform 0.4s ease, border 0.4s ease;
}

.metric-card:hover {
    transform: translateY(-6px);
    border-color: rgba(74, 90, 255, 0.4);
}

.metric-value {
    font-size: clamp(2.5rem, 3vw, 3rem);
    font-weight: 700;
    color: #fff;
}

.metric-label {
    font-size: 0.95rem;
    color: rgba(226, 232, 240, 0.7);
    line-height: 1.6;
}

/* Section defaults */
.section {
    position: relative;
    padding: clamp(4.5rem, 7vw, 7rem) 0;
}

.section-heading {
    text-align: center;
    max-width: 720px;
    margin: 0 auto clamp(3rem, 6vw, 4.5rem);
    display: grid;
    gap: 1rem;
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.38em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.75);
}

.section-kicker::before,
.section-kicker::after {
    content: '';
    display: inline-block;
    width: 36px;
    height: 1px;
    background: rgba(148, 163, 184, 0.3);
}

.section-title {
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 700;
    color: #f8fafc;
    line-height: 1.2;
}

.section-subtitle {
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    color: rgba(226, 232, 240, 0.65);
    line-height: 1.7;
}

.section-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Services */
.service-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .service-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.service-card {
    position: relative;
    border-radius: 1.75rem;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(160deg, rgba(10, 18, 40, 0.92), rgba(18, 27, 54, 0.7));
    overflow: hidden;
    box-shadow: 0 35px 85px -50px rgba(15, 23, 42, 0.8);
    display: grid;
    gap: 1.6rem;
    transition: transform 0.35s ease, border 0.35s ease;
}

.service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(74, 90, 255, 0.35), transparent 45%);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(74, 90, 255, 0.4);
}

.service-card:hover::after {
    opacity: 1;
}

.service-icon {
    position: relative;
    z-index: 1;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(74, 90, 255, 0.1);
    color: rgba(129, 140, 248, 1);
    font-size: 1.6rem;
}

.service-body {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 1.1rem;
}

.service-body h3 {
    font-size: 1.35rem;
    font-weight: 600;
    color: #f8fafc;
}

.service-body p {
    font-size: 1rem;
    color: rgba(226, 232, 240, 0.7);
    line-height: 1.7;
}

.service-body ul {
    list-style: none;
    display: grid;
    gap: 0.65rem;
    padding: 0;
    margin: 0;
}

.service-body li {
    font-size: 0.95rem;
    color: rgba(226, 232, 240, 0.75);
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
}

.service-body li::before {
    content: '•';
    color: rgba(129, 140, 248, 0.8);
    font-weight: 700;
    font-size: 1.2rem;
}

/* Marketing */
.marketing-grid {
    display: grid;
    gap: 1.75rem;
}

@media (min-width: 1024px) {
    .marketing-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.marketing-card {
    display: grid;
    gap: 1.35rem;
    border-radius: 1.6rem;
    padding: 2.2rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(175deg, rgba(8, 13, 32, 0.92), rgba(10, 16, 35, 0.72));
    transition: transform 0.3s ease, border 0.3s ease;
    box-shadow: 0 35px 90px -55px rgba(74, 90, 255, 0.6);
}

.marketing-card:hover {
    transform: translateY(-6px);
    border-color: rgba(74, 90, 255, 0.45);
}

.marketing-card header {
    display: flex;
    align-items: center;
    gap: 1.1rem;
}

.marketing-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 0.9rem;
    font-size: 1.3rem;
}

.marketing-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #f8fafc;
}

.marketing-card p {
    font-size: 0.98rem;
    line-height: 1.7;
    color: rgba(226, 232, 240, 0.7);
}

.marketing-card ul {
    list-style: none;
    display: grid;
    gap: 0.6rem;
    padding: 0;
    margin: 0;
}

.marketing-card li {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.93rem;
    color: rgba(226, 232, 240, 0.7);
}

.marketing-card li::before {
    content: '⟡';
    color: rgba(148, 163, 184, 0.65);
    font-size: 0.8rem;
}

/* About */
.about-grid {
    display: grid;
    gap: 1.75rem;
}

@media (min-width: 1024px) {
    .about-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.about-card {
    border-radius: 1.5rem;
    padding: 2rem;
    background: rgba(15, 23, 42, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 24px 70px -45px rgba(15, 23, 42, 0.8);
    display: grid;
    gap: 0.9rem;
    transition: border 0.3s ease, transform 0.3s ease;
}

.about-card:hover {
    border-color: rgba(74, 90, 255, 0.4);
    transform: translateY(-6px);
}

.about-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #f8fafc;
}

.about-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(226, 232, 240, 0.68);
}

/* Cases */
.cases-grid {
    display: grid;
    gap: 1.75rem;
}

@media (min-width: 1024px) {
    .cases-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.case-card {
    border-radius: 1.8rem;
    padding: 2.4rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(160deg, rgba(8, 13, 32, 0.96), rgba(5, 8, 22, 0.8));
    box-shadow: 0 35px 95px -60px rgba(74, 90, 255, 0.65);
    display: grid;
    gap: 1.35rem;
    transition: transform 0.35s ease, border 0.35s ease;
}

.case-card:hover {
    transform: translateY(-10px);
    border-color: rgba(74, 90, 255, 0.45);
}

.case-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(226, 232, 240, 0.6);
}

.case-tag {
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
}

.case-year {
    color: rgba(148, 163, 184, 0.75);
}

.case-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #f8fafc;
    line-height: 1.4;
}

.case-card p {
    font-size: 0.98rem;
    line-height: 1.7;
    color: rgba(226, 232, 240, 0.68);
}

.case-card ul {
    list-style: none;
    display: grid;
    gap: 0.65rem;
    margin: 0;
    padding: 0;
}

.case-card li {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.93rem;
    color: rgba(226, 232, 240, 0.72);
}

.case-card li::before {
    content: '▸';
    color: rgba(129, 140, 248, 0.9);
    font-size: 0.9rem;
}

/* Tech stack */
.tech-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .tech-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.tech-stack {
    border-radius: 1.6rem;
    padding: 2.2rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(8, 13, 32, 0.95), rgba(5, 8, 22, 0.7));
    display: grid;
    gap: 1.35rem;
}

.tech-stack h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #f8fafc;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.tech-list span {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.85rem;
    color: rgba(226, 232, 240, 0.75);
}

/* Contact */
.contact-wrapper {
    display: grid;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .contact-wrapper {
        grid-template-columns: 1.2fr 0.8fr;
    }
}

.contact-form {
    border-radius: 2rem;
    padding: clamp(2rem, 4vw, 2.75rem);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(160deg, rgba(8, 13, 32, 0.95), rgba(8, 13, 32, 0.75));
    box-shadow: 0 40px 90px -55px rgba(74, 90, 255, 0.58);
    display: grid;
    gap: 1.5rem;
}

.form-field {
    display: grid;
    gap: 0.6rem;
}

.form-field label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.35em;
    color: rgba(148, 163, 184, 0.7);
}

.form-field input,
.form-field textarea {
    width: 100%;
    border-radius: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 23, 42, 0.75);
    padding: 1.1rem 1.35rem;
    font-size: 0.98rem;
    color: #e2e8f0;
    transition: border 0.3s ease, box-shadow 0.3s ease;
    outline: none;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: rgba(148, 163, 184, 0.6);
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: rgba(74, 90, 255, 0.55);
    box-shadow: 0 0 0 4px rgba(74, 90, 255, 0.18);
}

.submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    border-radius: 999px;
    border: none;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: #fff;
    padding: 1.1rem 1.5rem;
    background: linear-gradient(135deg, rgba(74, 90, 255, 0.95), rgba(129, 140, 248, 0.85));
    box-shadow: 0 25px 80px -35px rgba(74, 90, 255, 0.8);
    cursor: pointer;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.submit-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 35px 90px -30px rgba(74, 90, 255, 0.85);
}

.submit-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.contact-card {
    border-radius: 1.9rem;
    padding: clamp(2rem, 3.5vw, 2.5rem);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(160deg, rgba(8, 13, 32, 0.9), rgba(5, 8, 22, 0.7));
    display: grid;
    gap: 2rem;
}

.contact-info {
    display: grid;
    gap: 1.6rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-icon {
    display: inline-flex;
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    align-items: center;
    justify-content: center;
    background: rgba(74, 90, 255, 0.12);
    border: 1px solid rgba(74, 90, 255, 0.3);
    color: rgba(129, 140, 248, 1);
}

.contact-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.35em;
    color: rgba(148, 163, 184, 0.6);
}

.contact-value {
    font-size: 1.05rem;
    font-weight: 500;
    color: #f8fafc;
}

.contact-cta {
    display: grid;
    gap: 1.1rem;
    padding: 1.8rem;
    border-radius: 1.5rem;
    background: rgba(15, 23, 42, 0.65);
    border: 1px dashed rgba(255, 255, 255, 0.12);
}

.whatsapp-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    border-radius: 999px;
    padding: 0.9rem 1.4rem;
    background: rgba(37, 211, 102, 0.15);
    border: 1px solid rgba(37, 211, 102, 0.4);
    color: rgba(232, 247, 239, 0.9);
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-chip:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 35px -20px rgba(37, 211, 102, 0.55);
}

/* Footer */
.footer-link {
    color: rgba(226, 232, 240, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: rgba(226, 232, 240, 0.95);
}

.footer-social {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0.75rem;
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(226, 232, 240, 0.7);
    text-decoration: none;
    transition: transform 0.3s ease, border 0.3s ease;
}

.footer-social:hover {
    transform: translateY(-3px);
    border-color: rgba(74, 90, 255, 0.45);
    color: rgba(248, 250, 252, 0.95);
}

/* WhatsApp floating button */
.floating-whatsapp {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.75rem;
    height: 3.75rem;
    border-radius: 50%;
    background: radial-gradient(circle at 20% 20%, #5df28a, #23c967);
    color: #072d16;
    box-shadow: 0 20px 45px -20px rgba(35, 201, 103, 0.7);
    text-decoration: none;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    z-index: 60;
}

.floating-whatsapp:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 25px 55px -18px rgba(35, 201, 103, 0.8);
}

@media (max-width: 768px) {
    .floating-whatsapp {
        bottom: 1.35rem;
        right: 1.35rem;
        width: 3.2rem;
        height: 3.2rem;
    }
}

/* Reveal animations */
[data-animate] {
    opacity: 0;
    transform: translateY(24px) scale(0.985);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

[data-animate].is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Form states */
#contact-form input.error,
#contact-form textarea.error {
    border-color: rgba(239, 68, 68, 0.9);
    background: rgba(239, 68, 68, 0.08);
}

#contact-form input.success,
#contact-form textarea.success {
    border-color: rgba(34, 197, 94, 0.85);
    background: rgba(34, 197, 94, 0.08);
}

.error-message {
    font-size: 0.8rem;
    color: rgba(239, 68, 68, 0.9);
    margin-top: 0.35rem;
    display: none;
}

/* Notifications */
#notification-container {
    position: fixed;
    inset-inline-end: 1.5rem;
    inset-block-start: 1.5rem;
    display: grid;
    gap: 0.75rem;
    z-index: 90;
}

.notification {
    min-width: 280px;
    border-radius: 1rem;
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: #0f172a;
    background: #fff;
    box-shadow: 0 20px 55px -35px rgba(15, 23, 42, 0.55);
    transform: translateX(120%);
    transition: transform 0.35s ease;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    border-left: 4px solid var(--success);
}

.notification.error {
    border-left: 4px solid var(--error);
}

@media (max-width: 640px) {
    .notification {
        min-width: 0;
        width: 100%;
    }
}

/* Responsive tweaks */
@media (max-width: 1024px) {
    .floating-card {
        position: relative;
        top: 0;
        margin-top: 1rem;
    }
}

@media (max-width: 768px) {
    .section-content {
        padding: 0 1rem;
    }
}