:root {
    --bg: #050b17;
    --bg-soft: #0a1425;
    --surface: #101c31;
    --surface-2: #142742;
    --text: #f5f8ff;
    --muted: #a9b8cf;
    --line: rgba(255, 255, 255, 0.12);
    --blue: #1588ff;
    --blue-2: #43b7ff;
    --cyan: #67e8f9;
    --success: #3ddc97;
    --danger: #ff657a;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

body.menu-open {
    overflow: hidden;
}

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

a {
    color: inherit;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    width: 100%;
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px clamp(18px, 5vw, 76px);
    border-bottom: 1px solid transparent;
    background: rgba(5, 11, 23, 0.72);
    backdrop-filter: blur(18px);
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.scrolled {
    border-color: var(--line);
    background: rgba(5, 11, 23, 0.96);
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.18);
}

.brand {
    display: inline-flex;
    align-items: center;
    width: 190px;
    text-decoration: none;
}

.brand img {
    width: 100%;
    height: 48px;
    object-fit: contain;
    object-position: left center;
}

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

.primary-nav a {
    position: relative;
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
}

.primary-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 2px;
    background: var(--blue-2);
    transition: width 0.2s ease;
}

.primary-nav a:hover,
.primary-nav a.active {
    color: var(--text);
}

.primary-nav a:hover::after,
.primary-nav a.active::after {
    width: 100%;
}

.primary-nav .nav-cta {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    padding: 0 18px;
    border: 1px solid rgba(67, 183, 255, 0.42);
    border-radius: 8px;
    color: var(--text);
    background: rgba(21, 136, 255, 0.16);
}

.primary-nav .nav-cta::after {
    display: none;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: var(--text);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

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

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

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

.hero,
.page-hero {
    position: relative;
    min-height: 92vh;
    display: grid;
    align-items: end;
    padding: 150px clamp(20px, 6vw, 88px) 62px;
    overflow: hidden;
    isolation: isolate;
}

.hero::before,
.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background: url("../images/banner.jpg") center / cover no-repeat;
}

.hero::after,
.page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 75% 20%, rgba(21, 136, 255, 0.34), transparent 34%),
        linear-gradient(90deg, rgba(5, 11, 23, 0.95), rgba(5, 11, 23, 0.72), rgba(5, 11, 23, 0.32));
}

.hero-content,
.page-hero > div {
    max-width: 900px;
}

.eyebrow {
    display: inline-flex;
    margin-bottom: 14px;
    color: var(--cyan);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

.hero h1,
.page-hero h1 {
    margin-bottom: 22px;
    font-size: clamp(2.65rem, 6vw, 5.8rem);
    line-height: 0.98;
    letter-spacing: 0;
}

.hero p,
.page-hero p {
    max-width: 720px;
    color: var(--muted);
    font-size: clamp(1rem, 1.7vw, 1.22rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.btn {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
    color: #03101f;
    background: linear-gradient(135deg, var(--cyan), var(--blue-2));
    box-shadow: 0 16px 36px rgba(21, 136, 255, 0.26);
}

.btn-secondary {
    color: var(--text);
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.06);
}

.hero-metrics {
    width: min(100%, 780px);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    margin-top: 60px;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: var(--line);
    box-shadow: var(--shadow);
}

.hero-metrics article {
    padding: 22px;
    background: rgba(10, 20, 37, 0.74);
}

.hero-metrics strong {
    display: block;
    color: var(--blue-2);
    font-size: 2rem;
    line-height: 1;
}

.hero-metrics span {
    display: block;
    margin-top: 8px;
    color: var(--muted);
}

.section,
.process-section,
.contact-section,
.article-section,
.about-section,
.split-section,
.cta-section {
    padding: 88px clamp(20px, 6vw, 88px);
}

.section,
.process-section {
    background: var(--bg);
}

.section-heading {
    max-width: 780px;
    margin-bottom: 36px;
}

.section-heading h2,
.split-copy h2,
.cta-section h2,
.about-copy h2 {
    font-size: clamp(2rem, 4vw, 3.35rem);
    line-height: 1.08;
    letter-spacing: 0;
}

.section-heading p,
.split-copy p,
.about-copy p {
    color: var(--muted);
    font-size: 1.05rem;
}

.card-grid,
.services-grid,
.why-grid,
.process-grid,
.blog-grid {
    display: grid;
    gap: 18px;
}

.card-grid,
.services-grid,
.blog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card,
.why-item,
.detail-card,
.process-grid article,
.blog-card,
.contact-form,
.contact-panel,
.notice,
.article-body {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(16, 28, 49, 0.95), rgba(10, 20, 37, 0.95));
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
}

.service-card,
.why-item,
.detail-card,
.process-grid article,
.blog-card,
.notice {
    padding: 28px;
}

.service-card,
.why-item,
.detail-card,
.process-grid article,
.blog-card {
    transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.service-card:hover,
.why-item:hover,
.detail-card:hover,
.process-grid article:hover,
.blog-card:hover {
    transform: translateY(-5px);
    border-color: rgba(67, 183, 255, 0.45);
    background: linear-gradient(180deg, rgba(20, 39, 66, 0.98), rgba(11, 24, 43, 0.98));
}

.card-icon {
    display: inline-grid;
    min-width: 48px;
    height: 40px;
    place-items: center;
    padding: 0 10px;
    border-radius: 8px;
    color: #03101f;
    background: linear-gradient(135deg, var(--cyan), var(--blue-2));
    font-size: 0.8rem;
    font-weight: 900;
}

.service-card h3,
.why-item h3,
.detail-card h2,
.process-grid h3,
.blog-card h2 {
    margin: 18px 0 10px;
}

.service-card p,
.why-item p,
.detail-card p,
.process-grid p,
.blog-card p,
.contact-panel p,
.contact-panel span {
    color: var(--muted);
}

.split-section {
    display: grid;
    grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1fr);
    gap: clamp(28px, 5vw, 70px);
    align-items: center;
    background: var(--bg-soft);
}

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

.service-detail-list {
    display: grid;
    gap: 20px;
}

.detail-card {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr) minmax(220px, 0.7fr);
    gap: 28px;
    align-items: start;
}

.check-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 24px;
    color: var(--muted);
}

.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--success);
}

.process-section {
    background: var(--bg-soft);
}

.process-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.process-grid strong {
    color: var(--blue-2);
    font-size: 1.8rem;
}

.about-section {
    display: grid;
    grid-template-columns: 0.75fr 1fr;
    gap: clamp(28px, 6vw, 84px);
    align-items: center;
}

.about-logo {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f7f9fc;
}

.about-logo img {
    width: 100%;
}

.blog-card span {
    color: var(--cyan);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
}

.text-link {
    color: var(--cyan);
    font-weight: 800;
    text-decoration: none;
}

.text-link:hover {
    text-decoration: underline;
}

.article-section {
    max-width: 980px;
    margin: 0 auto;
}

.article-body {
    padding: 34px;
    color: var(--muted);
    font-size: 1.08rem;
}

.notice {
    margin-bottom: 24px;
    color: var(--muted);
}

.contact-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 24px;
    align-items: start;
}

.contact-form,
.contact-panel {
    padding: 30px;
}

.contact-form {
    display: grid;
    gap: 14px;
}

.contact-form label {
    font-weight: 800;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px 16px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
    font: inherit;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 2px solid rgba(67, 183, 255, 0.45);
    border-color: transparent;
}

.honeypot {
    position: absolute;
    left: -9999px;
}

.form-message {
    padding: 14px 16px;
    border-radius: 8px;
    font-weight: 700;
}

.form-message.success {
    border: 1px solid rgba(61, 220, 151, 0.4);
    background: rgba(61, 220, 151, 0.12);
}

.form-message.error {
    border: 1px solid rgba(255, 101, 122, 0.4);
    background: rgba(255, 101, 122, 0.12);
}

.contact-panel {
    display: grid;
    gap: 12px;
}

.contact-panel img {
    width: 180px;
    padding: 14px;
    border-radius: 8px;
    background: #f7f9fc;
}

.contact-panel a,
.site-footer a {
    color: var(--muted);
    text-decoration: none;
}

.contact-panel a:hover,
.site-footer a:hover {
    color: var(--text);
}

.contact-panel div {
    display: grid;
    gap: 6px;
    margin-top: 10px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.cta-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 26px;
    background:
        radial-gradient(circle at 80% 10%, rgba(67, 183, 255, 0.24), transparent 28%),
        linear-gradient(135deg, #0b1b31, #07111f);
}

.cta-section > div {
    max-width: 760px;
}

.site-footer {
    padding: 58px clamp(20px, 6vw, 88px) 28px;
    border-top: 1px solid var(--line);
    background: #030814;
}

.footer-layout {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr 0.9fr 0.9fr 1fr;
    gap: 34px;
}

.footer-layout section {
    display: grid;
    align-content: start;
    gap: 8px;
}

.footer-layout h2 {
    margin-bottom: 8px;
    font-size: 1rem;
}

.footer-layout p {
    color: var(--muted);
}

.footer-about img {
    width: 220px;
    height: 72px;
    object-fit: contain;
    object-position: left center;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 38px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    color: var(--muted);
}

.whatsapp-float {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 90;
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #03101f;
    background: var(--success);
    box-shadow: 0 16px 38px rgba(61, 220, 151, 0.28);
    font-weight: 900;
    text-decoration: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.newsletter-form {
    display: grid;
    gap: 10px;
}

.newsletter-form input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px 14px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
}

.newsletter-form button {
    min-height: 42px;
    border: 0;
    border-radius: 8px;
    color: #03101f;
    background: linear-gradient(135deg, var(--cyan), var(--blue-2));
    font-weight: 900;
    cursor: pointer;
}

.homepage-newsletter {
    max-width: 620px;
    grid-template-columns: minmax(0, 1fr) 150px;
}

.newsletter-section {
    background: var(--bg-soft);
}

.newsletter-banner {
    margin-top: 22px;
    padding: 14px 16px;
    border: 1px solid rgba(67, 183, 255, 0.35);
    border-radius: 8px;
    color: var(--muted);
    background: rgba(21, 136, 255, 0.12);
}

.newsletter-banner.success {
    border-color: rgba(61, 220, 151, 0.42);
    background: rgba(61, 220, 151, 0.12);
}

.newsletter-banner.error {
    border-color: rgba(255, 101, 122, 0.42);
    background: rgba(255, 101, 122, 0.12);
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1040px) {
    .menu-toggle {
        display: block;
    }

    .primary-nav {
        position: fixed;
        top: 78px;
        right: 0;
        bottom: 0;
        width: min(84vw, 380px);
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        padding: 24px;
        border-left: 1px solid var(--line);
        background: rgba(5, 11, 23, 0.98);
        transform: translateX(100%);
        transition: transform 0.25s ease;
    }

    .primary-nav.open {
        transform: translateX(0);
    }

    .primary-nav a,
    .primary-nav .nav-cta {
        min-height: 46px;
        display: flex;
        align-items: center;
        padding: 0 12px;
        border-radius: 8px;
    }

    .primary-nav a::after {
        display: none;
    }

    .primary-nav a:hover,
    .primary-nav a.active {
        background: rgba(255, 255, 255, 0.06);
    }

    .card-grid,
    .services-grid,
    .blog-grid,
    .process-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .detail-card,
    .split-section,
    .about-section,
    .contact-section {
        grid-template-columns: 1fr;
    }

    .footer-layout {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .site-header {
        padding: 12px 18px;
    }

    .brand {
        width: 142px;
    }

    .brand img {
        height: 44px;
    }

    .hero,
    .page-hero {
        min-height: 86vh;
        padding: 126px 20px 42px;
    }

    .hero::after,
    .page-hero::after {
        background: linear-gradient(180deg, rgba(5, 11, 23, 0.55), rgba(5, 11, 23, 0.98));
    }

    .hero-metrics,
    .card-grid,
    .services-grid,
    .why-grid,
    .process-grid,
    .blog-grid,
    .footer-layout {
        grid-template-columns: 1fr;
    }

    .section,
    .process-section,
    .contact-section,
    .article-section,
    .about-section,
    .split-section,
    .cta-section {
        padding: 60px 20px;
    }

    .cta-section,
    .footer-bottom {
        align-items: stretch;
        flex-direction: column;
    }

    .cta-section .btn,
    .contact-form .btn {
        width: 100%;
    }

    .homepage-newsletter {
        grid-template-columns: 1fr;
    }

    .whatsapp-float {
        right: 16px;
        bottom: 16px;
    }
}

.login-body,
.admin-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 20% 10%, rgba(21, 136, 255, 0.22), transparent 28%),
        linear-gradient(135deg, #030814, #081527);
}

.login-body {
    display: grid;
    place-items: center;
    padding: 24px;
}

.login-card {
    width: min(100%, 430px);
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(16, 28, 49, 0.92);
    box-shadow: var(--shadow);
}

.login-card img {
    width: 220px;
    height: 70px;
    object-fit: contain;
    object-position: left center;
    margin-bottom: 18px;
}

.login-card p {
    color: var(--muted);
}

.login-card form,
.admin-form {
    display: grid;
    gap: 14px;
}

.login-card label,
.admin-form label {
    font-weight: 800;
}

.login-card input,
.admin-form input,
.admin-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px 16px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
    font: inherit;
}

.admin-form textarea {
    resize: vertical;
}

.admin-body {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
}

.admin-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 22px;
    border-right: 1px solid var(--line);
    background: rgba(3, 8, 20, 0.9);
}

.admin-brand {
    display: block;
    margin-bottom: 28px;
}

.admin-brand img {
    width: 210px;
    height: 70px;
    object-fit: contain;
    object-position: left center;
}

.admin-sidebar nav {
    display: grid;
    gap: 8px;
}

.admin-sidebar a {
    padding: 12px 14px;
    border-radius: 8px;
    color: var(--muted);
    font-weight: 800;
    text-decoration: none;
}

.admin-sidebar a:hover,
.admin-sidebar a.active {
    color: var(--text);
    background: rgba(21, 136, 255, 0.16);
}

.admin-main {
    padding: 28px;
}

.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.admin-topbar span {
    color: var(--cyan);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.admin-topbar h1 {
    margin: 4px 0 0;
    font-size: clamp(2rem, 4vw, 3rem);
}

.admin-topbar p,
.admin-muted {
    color: var(--muted);
}

.admin-alert {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 8px;
    font-weight: 800;
}

.admin-alert.success {
    border: 1px solid rgba(61, 220, 151, 0.42);
    background: rgba(61, 220, 151, 0.12);
}

.admin-alert.error {
    border: 1px solid rgba(255, 101, 122, 0.42);
    background: rgba(255, 101, 122, 0.12);
}

.admin-stats,
.admin-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.admin-stats article,
.admin-action-card,
.admin-panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(16, 28, 49, 0.95), rgba(10, 20, 37, 0.95));
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
}

.admin-stats article,
.admin-action-card {
    padding: 24px;
}

.admin-stats span {
    color: var(--muted);
    font-weight: 800;
}

.admin-stats strong {
    display: block;
    margin-top: 10px;
    color: var(--blue-2);
    font-size: 2.3rem;
}

.admin-action-card {
    color: var(--text);
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.admin-action-card:hover {
    transform: translateY(-4px);
    border-color: rgba(67, 183, 255, 0.45);
}

.admin-action-card p {
    color: var(--muted);
}

.admin-panel {
    padding: 24px;
}

.admin-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.admin-panel-head h2 {
    margin: 0;
}

.admin-count {
    color: var(--muted);
    font-weight: 800;
}

.admin-table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 14px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.admin-table th {
    color: var(--cyan);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-table td {
    color: var(--muted);
}

.admin-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.admin-row-actions a {
    color: var(--cyan);
    font-weight: 800;
    text-decoration: none;
}

.admin-row-actions .danger {
    color: var(--danger);
}

@media (max-width: 900px) {
    .admin-body {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
        height: auto;
    }

    .admin-sidebar nav,
    .admin-stats,
    .admin-actions {
        grid-template-columns: 1fr;
    }

    .admin-topbar,
    .admin-panel-head {
        align-items: stretch;
        flex-direction: column;
    }
}
