:root {
    --blue-900: #042a63;
    --blue-800: #073d88;
    --blue-700: #0c4fa6;
    --blue-600: #1765c1;
    --green-500: #6cc538;
    --green-600: #58b12a;
    --white: #ffffff;
    --text: #0f172a;
    --muted: #5a6b84;
    --bg-light: #f4f7fc;
    --shadow: 0 18px 45px rgba(10, 22, 45, 0.16);
    --radius: 20px;
    --ink: #0b0f1a;
    --ink-soft: #1b2234;
    --brand: #4f7cff;
    --brand-strong: #2a5bff;
    --accent: #00d0a8;
    --accent-warm: #ffb703;
    --surface: #f6f7fb;
    --surface-2: #eef1f7;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Manrope', sans-serif;
    color: var(--text);
    background: var(--white);
}

h1,
h2,
h3,
.display,
.section-head h2 {
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.02em;
}

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

button,
a {
    transition: .25s ease;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: linear-gradient(90deg, rgba(2, 26, 71, .96), rgba(10, 61, 133, .92));
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-inner {
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand img {
    width: 170px;
}

.contact-strip {
    display: flex;
    align-items: center;
    gap: 24px;
    flex: 1;
    justify-content: center;
}

.contact-strip a,
.nav a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
}

.contact-strip a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.92);
}

.contact-strip i,
.footer i {
    color: #77d54b;
}

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

.nav a:hover,
.contact-strip a:hover {
    opacity: 0.85;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 0 28px;
    border-radius: 14px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 10px 20px rgba(8, 46, 104, 0.18);
}

.btn-login {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.btn-login:hover {
    background: rgba(255, 255, 255, 0.22);
}

.hero {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(3, 28, 78, 0.98) 0%, rgba(6, 49, 109, 0.9) 45%, rgba(9, 63, 138, 0.6) 100%),
        url('../images/hero-bg.jpg') center/cover no-repeat;
    min-height: 720px;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 20%, rgba(71, 191, 255, 0.28), transparent 30%);
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 24px;
    align-items: center;
    padding: 80px 0 120px;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 18px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.09);
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.9rem;
}

.hero-text h1 {
    color: var(--white);
    font-size: clamp(2.9rem, 5.6vw, 5rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
    margin-bottom: 18px;
}

.hero-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.22rem;
    line-height: 1.7;
    max-width: 620px;
}

.hero-actions {
    margin-top: 32px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.btn-primary {
    background: linear-gradient(180deg, #79d94b, var(--green-600));
    color: var(--white);
}

.btn-primary:hover,
.btn-green:hover,
.btn-whatsapp:hover {
    transform: translateY(-2px);
    filter: brightness(1.04);
}

.btn-secondary,
.btn-card {
    background: linear-gradient(180deg, #2d76dd, #0b54b8);
    color: var(--white);
}

.btn-secondary:hover,
.btn-card:hover {
    transform: translateY(-2px);
}

.hero-visual {
    justify-self: end;
}

.hero-visual img {
    width: min(100%, 620px);
    border-radius: 24px;
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.22);
}

.features-wrap {
    position: relative;
    z-index: 2;
    margin-top: -56px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.feature-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 26px 22px;
    border-radius: var(--radius);
    background: linear-gradient(180deg, #08397d, #062f6d);
    color: var(--white);
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.feature-card h3 {
    font-size: 1.45rem;
    margin-bottom: 6px;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.8);
}

.feature-icon {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.08);
    font-size: 1.7rem;
    flex-shrink: 0;
}

.solutions {
    padding: 80px 0 92px;
    background:
        linear-gradient(180deg, #f7f9fd, #edf2fa 78%, #f6f9ff 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 42px;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3.3rem);
    line-height: 1.1;
    margin-bottom: 12px;
}

.section-header p {
    font-size: 1.15rem;
}

.section-header.light h2 {
    color: #1f4f96;
}

.section-header.light p {
    color: var(--muted);
}

.section-header.dark h2,
.section-header.dark p {
    color: var(--white);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.service-card,
.portfolio-card {
    background: var(--white);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.service-card img,
.portfolio-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.service-card-body,
.portfolio-card-body {
    padding: 24px 24px 28px;
    text-align: center;
}

.service-card h3 {
    font-size: 1.7rem;
    color: #173e77;
    margin-bottom: 18px;
}

.btn-card,
.btn-green {
    min-width: 150px;
}

.contact-showcase {
    padding: 90px 0 110px;
    background:
        linear-gradient(180deg, rgba(2, 31, 81, 0.98), rgba(5, 56, 121, 0.95)),
        url('../images/hero-bg.jpg') center/cover no-repeat;
}

.portfolio-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
}

.portfolio-card-body {
    padding-top: 18px;
}

.btn-green,
.btn-whatsapp {
    background: linear-gradient(180deg, #7ada4c, var(--green-600));
    color: var(--white);
}

.cta-bottom {
    margin-top: 42px;
    display: flex;
    justify-content: center;
}

.btn-whatsapp {
    min-width: 280px;
    font-size: 1.05rem;
}

.footer {
    padding: 26px 0;
    background: #031f4d;
    color: rgba(255, 255, 255, 0.82);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.footer strong {
    display: block;
    color: var(--white);
    margin-bottom: 6px;
}

.footer p + p {
    margin-top: 6px;
}

.menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.08);
    color: var(--white);
    font-size: 1.1rem;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
    transition: .7s ease;
}

.login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #042a63, #0d58b6);
    display: grid;
    place-items: center;
    padding: 24px;
}

.login-card {
    width: min(100%, 440px);
    background: rgba(255,255,255,.98);
    border-radius: 24px;
    padding: 34px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .24);
}

.login-card img {
    width: 180px;
    margin: 0 auto 24px;
}

.login-card h1 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 10px;
    color: #153f79;
}

.login-card p {
    text-align: center;
    color: var(--muted);
    margin-bottom: 28px;
}

.login-error {
    margin: 16px 0 20px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #fecdca;
    background: #fee4e2;
    color: #b42318;
    font-weight: 600;
    text-align: center;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: #173e77;
}

.form-group input {
    width: 100%;
    min-height: 52px;
    border-radius: 14px;
    border: 1px solid #d9e2f1;
    padding: 0 16px;
    font: inherit;
    outline: none;
}

.form-group input:focus {
    border-color: #3f7fd4;
    box-shadow: 0 0 0 4px rgba(63,127,212,.12);
}

.login-actions {
    display: grid;
    gap: 12px;
}

.helper-text {
    font-size: .92rem;
    color: var(--muted);
    text-align: center;
    margin-top: 18px;
}

@media (max-width: 1080px) {
    .contact-strip {
        display: none;
    }

    .hero-content,
    .cards-grid,
    .features-grid,
    .footer-inner {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .hero-content {
        padding-top: 60px;
    }

    .hero-visual {
        justify-self: center;
    }
}

.dashboard-page {
    background: #f2f5fb;
    min-height: 100vh;
    padding: 32px 24px 60px;
}

.dashboard {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    gap: 32px;
}

.dashboard-header {
    background: #ffffff;
    border-radius: 24px;
    padding: 28px 32px;
    box-shadow: 0 20px 50px rgba(20, 45, 90, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.dashboard-header h1 {
    margin-bottom: 8px;
    font-size: 2rem;
    color: #153f79;
}

.dashboard-header p {
    color: var(--muted);
    margin: 0;
}

.dashboard-user {
    display: flex;
    align-items: center;
    gap: 16px;
    font-weight: 600;
    color: #153f79;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.dashboard-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 16px 30px rgba(20, 45, 90, 0.08);
    display: grid;
    gap: 14px;
}

.dashboard-card h2 {
    font-size: 1.2rem;
    color: #153f79;
}

.dashboard-card p {
    color: var(--muted);
    margin: 0;
}

@media (max-width: 720px) {
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 860px) {
    .menu-toggle {
        display: inline-grid;
        place-items: center;
    }

    .nav {
        position: absolute;
        top: calc(100% + 12px);
        right: 16px;
        left: 16px;
        background: linear-gradient(180deg, #052b68, #08397d);
        border-radius: 18px;
        padding: 18px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        box-shadow: var(--shadow);
    }

    .nav.open {
        display: flex;
    }

    .topbar-inner {
        min-height: 84px;
    }

    .hero {
        min-height: auto;
    }

    .hero-text h1 {
        font-size: 2.6rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .service-card img,
    .portfolio-card img {
        height: 220px;
    }

    .feature-card h3,
    .service-card h3 {
        font-size: 1.35rem;
    }
}

@media (max-width: 560px) {
    .brand img {
        width: 145px;
    }

    .hero-content {
        padding-bottom: 84px;
    }

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

    .btn {
        width: 100%;
    }

    .feature-card {
        flex-direction: column;
        text-align: center;
    }

    .section-header h2 {
        font-size: 1.85rem;
    }

    .service-card-body,
    .portfolio-card-body,
    .login-card {
        padding-left: 18px;
        padding-right: 18px;
    }
}

/* --- Home Modern Layout --- */
.home-page {
    background: #0b0f1a;
    color: #e6eefc;
}

.home-page .topbar {
    background: rgba(10, 14, 26, 0.78);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
}

.home-page .contact-strip a,
.home-page .nav a {
    color: rgba(238, 244, 255, 0.92);
}

.home-page .btn {
    box-shadow: none;
    min-height: 52px;
}

.home-page .btn-primary {
    background: linear-gradient(120deg, var(--brand), var(--accent));
    color: #fff;
}

.home-page .btn-ghost {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
}

.home-page .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-2px);
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    width: 100%;
    background: linear-gradient(90deg, var(--brand), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    z-index: 40;
}

.hero-modern {
    position: relative;
    overflow: hidden;
    padding: 140px 0 110px;
}

.hero-modern::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at var(--mx, 60%) var(--my, 20%), rgba(79, 124, 255, 0.45), transparent 45%),
        radial-gradient(circle at 20% 80%, rgba(0, 208, 168, 0.35), transparent 50%),
        linear-gradient(120deg, rgba(11, 15, 26, 0.96), rgba(12, 18, 32, 0.9) 55%, rgba(16, 24, 43, 0.85));
    z-index: 0;
}

.hero-aurora {
    position: absolute;
    inset: -60px;
    background: radial-gradient(circle at 30% 20%, rgba(255, 183, 3, 0.18), transparent 40%);
    filter: blur(0px);
    opacity: 0.8;
    z-index: 1;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(0px);
    opacity: 0.35;
    z-index: 1;
}

.orb-1 {
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(79, 124, 255, 0.7), transparent 70%);
    top: 60px;
    right: 12%;
}

.orb-2 {
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(0, 208, 168, 0.6), transparent 70%);
    bottom: 120px;
    left: 10%;
}

.orb-3 {
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(255, 183, 3, 0.6), transparent 70%);
    top: 45%;
    left: 45%;
}

.hero-modern-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    margin-bottom: 18px;
}

.hero-copy h1 {
    font-size: clamp(2.8rem, 5vw, 4.9rem);
    line-height: 1.02;
    margin-bottom: 18px;
}

.hero-copy p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: rgba(230, 238, 252, 0.8);
}

.hero-actions {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.hero-stats {
    margin-top: 32px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
}

.stat-card {
    padding: 18px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}

.stat-card small {
    color: rgba(230, 238, 252, 0.72);
}

.hero-showcase {
    position: relative;
    display: grid;
    place-items: center;
}

.device-frame {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05));
    padding: 16px;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 30px 70px rgba(4, 8, 18, 0.55);
}

.device-frame img {
    border-radius: 20px;
}

.floating-card {
    position: absolute;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(12, 18, 32, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 18px 40px rgba(4, 8, 18, 0.5);
    color: #fff;
    display: grid;
    gap: 4px;
    font-size: 0.85rem;
}

.floating-card strong {
    font-size: 1.2rem;
}

.card-analytics {
    top: 16%;
    left: -12%;
}

.card-speed {
    bottom: 14%;
    right: -10%;
}

.card-spotlight {
    top: 60%;
    left: 8%;
}

.logo-strip {
    padding: 36px 0 56px;
    background: #0b0f1a;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.logo-strip p {
    text-align: center;
    color: rgba(230, 238, 252, 0.7);
    margin-bottom: 20px;
}

.logo-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 26px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

.services-modern {
    padding: 90px 0;
    background: linear-gradient(180deg, #0b0f1a 0%, #111827 55%, #0b0f1a 100%);
}

.section-head {
    text-align: center;
    margin-bottom: 48px;
}

.section-head h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    margin-bottom: 12px;
}

.section-head p {
    color: rgba(230, 238, 252, 0.72);
    font-size: 1.05rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.service-panel {
    padding: 26px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 40px rgba(4, 8, 18, 0.45);
    display: grid;
    gap: 12px;
}

.service-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(79, 124, 255, 0.18);
    color: #fff;
}

.service-panel h3 {
    font-size: 1.35rem;
}

.service-panel p {
    color: rgba(230, 238, 252, 0.7);
}

.process-modern {
    padding: 90px 0;
    background: #101827;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 24px;
}

.process-step {
    padding: 26px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.process-step span {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent-warm);
}

.process-step h3 {
    margin: 12px 0 8px;
}

.process-step p {
    color: rgba(230, 238, 252, 0.68);
}

.portfolio-modern {
    padding: 90px 0 110px;
    background: #0b0f1a;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.portfolio-item {
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 40px rgba(4, 8, 18, 0.4);
    display: grid;
    gap: 16px;
}

.portfolio-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.portfolio-item div {
    padding: 0 20px 22px;
}

.portfolio-item h3 {
    margin-bottom: 6px;
}

.portfolio-item p {
    color: rgba(230, 238, 252, 0.72);
}

.cta-modern {
    padding: 80px 0 100px;
    background: linear-gradient(120deg, rgba(79, 124, 255, 0.25), rgba(0, 208, 168, 0.2)), #0b0f1a;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cta-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 24px;
    align-items: center;
}

.cta-actions {
    display: grid;
    gap: 16px;
    justify-items: start;
}

.home-page .footer {
    background: #05070f;
}

@media (max-width: 980px) {
    .hero-modern-grid {
        grid-template-columns: 1fr;
    }

    .hero-showcase {
        order: -1;
    }

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

    .floating-card {
        position: static;
        margin-top: 16px;
    }
}

@media (max-width: 720px) {
    .hero-modern {
        padding-top: 120px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .logo-row {
        gap: 16px;
        font-size: 0.75rem;
    }
}
@media (max-width: 860px) {
    .home-page .nav {
        background: rgba(10, 14, 26, 0.96);
        border: 1px solid rgba(255, 255, 255, 0.08);
    }

    .home-page .menu-toggle {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.2);
    }
}
