:root {
    --primary: #9956F6;
    --primary-dark: #8234E9;
    --neutral-light: #BEBECF;
    --neutral-dark: #13131B;
    --surface: #FFFFFF;
    --surface-soft: #F8FAFC;
    --text: #0F172A;
    --text-muted: #5B6072;
    --line: rgba(19, 19, 27, 0.1);
    --shadow: 0 28px 80px rgba(19, 19, 27, 0.14);
    --radius: 8px;
    --container: 1180px;
    --font-display: "Chakra Petch", sans-serif;
    --font-body: "Inter", sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--surface-soft);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

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

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

button,
input,
select,
textarea {
    font: inherit;
}

:focus-visible {
    outline: 3px solid rgba(153, 86, 246, 0.45);
    outline-offset: 4px;
}

.skip-link {
    position: fixed;
    left: 16px;
    top: 16px;
    z-index: 1000;
    transform: translateY(-140%);
    background: var(--neutral-dark);
    color: #fff;
    padding: 10px 14px;
    border-radius: var(--radius);
}

.skip-link:focus {
    transform: translateY(0);
}

.container {
    width: min(100% - 32px, var(--container));
    margin-inline: auto;
}

.section-full {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    padding: clamp(80px, 10vh, 120px) 0;
}

.site-header {
    position: fixed;
    inset: 16px 0 auto;
    z-index: 100;
}

.navbar {
    width: min(100% - 32px, var(--container));
    min-height: 68px;
    margin-inline: auto;
    padding: 10px 10px 10px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    background: rgba(19, 19, 27, 0.72);
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.18);
}

.brand img,
.footer-brand img {
    width: 156px;
    height: auto;
    filter: brightness(0) invert(1);
}

.nav-menu {
    display: none;
}

.nav-menu a,
.header-cta {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.9rem;
    font-weight: 700;
}

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

.header-cta {
    display: none;
    min-height: 46px;
    align-items: center;
    gap: 10px;
    padding: 5px 5px 5px 18px;
    border-radius: 999px;
    background: var(--primary-dark);
    color: #fff;
}

.header-cta i {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #fff;
    color: var(--primary-dark);
    font-size: 0.86rem;
    transform: rotate(-45deg);
}

.header-cta:hover {
    background: #6D28D9;
}

.header-cta:hover i {
    transform: rotate(0deg);
}

.nav-toggle {
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    display: grid;
    place-content: center;
    gap: 5px;
    cursor: pointer;
}

.nav-toggle span {
    width: 18px;
    height: 2px;
    background: #fff;
    border-radius: 999px;
}

.nav-menu.is-open {
    position: fixed;
    inset: 88px 16px auto;
    display: grid;
    gap: 6px;
    padding: 18px;
    border-radius: 20px;
    background: rgba(19, 19, 27, 0.96);
    box-shadow: var(--shadow);
}

.nav-menu.is-open a {
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: 0 10px;
}

.hero {
    position: relative;
    height: 100vh;
    height: 100dvh;
    min-height: 640px;
    color: #fff;
    overflow: hidden;
    align-items: center;
    padding: 0;
}

.hero.section-full {
    padding: 0;
}

.hero-bg,
.hero-overlay {
    position: absolute;
    inset: 0;
}

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 76% 38%;
}

.hero-overlay {
    background:
        linear-gradient(90deg, rgba(19, 19, 27, 0.94) 0%, rgba(19, 19, 27, 0.7) 44%, rgba(19, 19, 27, 0.28) 72%, rgba(19, 19, 27, 0.18) 100%),
        linear-gradient(0deg, rgba(19, 19, 27, 0.92) 0%, rgba(19, 19, 27, 0.1) 48%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 120px;
    padding-bottom: 96px;
}

.eyebrow {
    margin: 0 0 16px;
    color: var(--primary);
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero .eyebrow {
    color: #d9c7ff;
}

h1,
h2,
h3 {
    margin: 0;
    font-family: var(--font-display);
    line-height: 1.02;
    letter-spacing: 0;
}

h1 {
    max-width: 880px;
    font-size: clamp(4rem, 13vw, 9rem);
    font-weight: 700;
}

h2 {
    max-width: 820px;
    font-size: clamp(2.2rem, 7vw, 5.3rem);
    font-weight: 700;
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.7rem);
}

.hero-lead {
    max-width: 620px;
    margin: 20px 0 0;
    font-size: clamp(2rem, 3.25vw, 3.05rem);
    font-family: var(--font-body);
    font-weight: 800;
    line-height: 1.12;
}

.hero-text,
.section-heading p,
.section-copy p,
.proof-copy p {
    max-width: 690px;
    color: var(--text-muted);
}

.hero-text {
    max-width: 540px;
    color: rgba(255, 255, 255, 0.78);
    margin-top: 22px;
}

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

.btn {
    min-height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 8px 8px 8px 28px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: none;
}

.btn-primary:hover {
    background: #7C3DD8;
}

.btn-primary i {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    flex: 0 0 48px;
    border-radius: 999px;
    background: #fff;
    color: var(--primary-dark);
    transform: rotate(-45deg);
}

.btn-primary:hover i {
    transform: rotate(0deg);
    color: #6D28D9;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

.scroll-hint {
    position: absolute;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    z-index: 2;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.74);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    opacity: 0.5;
    align-items: center;
    color: #fff;
    font-size: 0.95rem;
    backdrop-filter: blur(10px);
}

.scroll-hint:hover {
    opacity: 0.82;
    background: rgba(255, 255, 255, 0.14);
}

.split-layout,
.contact-layout,
.proof-layout {
    display: grid;
    gap: 40px;
}

.section-heading {
    margin-bottom: 34px;
}

.section-heading p {
    margin: 18px 0 0;
}

.about,
.services,
.contact {
    background: var(--surface);
}

.section-copy p {
    margin: 18px 0 0;
}

.metric-row {
    display: grid;
    gap: 10px;
    margin-top: 28px;
}

.metric-row span {
    padding: 16px;
    border-left: 3px solid var(--primary);
    background: var(--surface-soft);
    border-radius: var(--radius);
}

.metric-row strong {
    display: block;
    color: var(--neutral-dark);
}

.portrait-frame {
    position: relative;
    overflow: hidden;
    width: min(100%, 430px);
    justify-self: center;
    border-radius: 28px;
    background: var(--neutral-dark);
    box-shadow: var(--shadow);
}

.portrait-frame::before {
    content: "";
    position: absolute;
    inset: 14px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 20px;
    z-index: 1;
}

.portrait-frame img {
    width: 100%;
    height: 100%;
    min-height: 430px;
    object-fit: cover;
}

.project-grid,
.service-grid,
.timeline {
    display: grid;
    gap: 16px;
}

.service-card,
.timeline-item,
.contact-form,
.quote {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 20px 60px rgba(19, 19, 27, 0.06);
}

.service-card {
    min-height: 280px;
    padding: 24px;
}

.project-card {
    min-height: 0;
}

.project-cover-card {
    overflow: hidden;
    border-radius: 22px;
    background: var(--neutral-dark);
}

.project-open {
    position: relative;
    width: 100%;
    min-height: 360px;
    display: block;
    overflow: hidden;
    padding: 0;
    border: 0;
    border-radius: 22px;
    background: var(--neutral-dark);
    cursor: pointer;
}

.project-open img {
    width: 100%;
    height: 100%;
    min-height: 360px;
    object-fit: cover;
}

.project-open::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(19, 19, 27, 0.08), rgba(19, 19, 27, 0.64));
    opacity: 0.5;
}

.project-open:hover img,
.project-open:focus-visible img {
    filter: saturate(1.08);
}

.project-open:hover::after,
.project-open:focus-visible::after {
    opacity: 0.82;
}

.project-hover {
    position: absolute;
    right: 18px;
    bottom: 18px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    opacity: 0;
}

.project-open:hover .project-hover,
.project-open:focus-visible .project-hover {
    opacity: 1;
}

.project-tag,
.project-more {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #fff;
    font-weight: 800;
}

.project-tag {
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.project-more {
    gap: 10px;
    padding: 5px 5px 5px 18px;
    background: var(--primary);
}

.project-more i {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #fff;
    color: var(--primary-dark);
    transform: rotate(-45deg);
}

.project-open:hover .project-more i,
.project-open:focus-visible .project-more i {
    transform: rotate(0deg);
}

.card-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    margin-bottom: auto;
    border-radius: var(--radius);
    background: var(--neutral-dark);
    color: #fff;
}

.timeline-item span {
    color: var(--primary-dark);
    font-family: var(--font-display);
    font-weight: 700;
}

.service-card h3 {
    margin-top: 14px;
}

.service-card p,
.timeline-item p {
    color: var(--text-muted);
}

.service-card ul {
    display: grid;
    gap: 10px;
    padding: 0;
    margin: 22px 0 0;
    list-style: none;
}

.service-card li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-weight: 600;
}

.service-card i,
.contact-points i {
    color: var(--primary-dark);
}

.project-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    overflow-y: auto;
    background: var(--surface-soft);
    color: var(--text);
}

.project-modal.is-open {
    display: block;
}

body.modal-open {
    overflow: hidden;
}

.project-modal-shell {
    width: min(100% - 32px, var(--container));
    margin-inline: auto;
    padding: 28px 0 80px;
}

.modal-back {
    position: sticky;
    top: 18px;
    z-index: 3;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 18px 6px 8px;
    border: 1px solid rgba(19, 19, 27, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    color: var(--neutral-dark);
    font-weight: 800;
    cursor: pointer;
    backdrop-filter: blur(14px);
}

.modal-back i {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
}

.modal-hero {
    margin-top: 28px;
    overflow: hidden;
    border-radius: 28px;
    background: var(--neutral-dark);
}

.modal-hero img {
    width: 100%;
    max-height: 78vh;
    object-fit: cover;
}

.modal-content {
    display: grid;
    gap: 24px;
    margin-top: 34px;
}

.modal-meta {
    display: grid;
    gap: 14px;
}

.modal-meta div,
.modal-description {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}

.modal-meta span,
.modal-description span {
    display: block;
    margin-bottom: 8px;
    color: var(--primary-dark);
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
}

.modal-meta p,
.modal-description p {
    margin: 0;
    color: var(--text);
    font-weight: 700;
}

.modal-site-link {
    color: var(--primary-dark);
    overflow-wrap: anywhere;
}

.modal-site-link:hover {
    color: var(--primary);
}

.modal-description p {
    color: var(--text-muted);
    font-weight: 500;
}

.modal-gallery {
    display: grid;
    gap: 18px;
    margin-top: 34px;
}

.modal-gallery img {
    width: 100%;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 18px 60px rgba(19, 19, 27, 0.08);
}

.process,
.projects,
.proof {
    background:
        linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(255, 255, 255, 0.94)),
        repeating-linear-gradient(90deg, rgba(19, 19, 27, 0.04) 0 1px, transparent 1px 120px);
}

.timeline-item {
    padding: 22px;
}

.proof-media {
    position: relative;
    padding-bottom: 120px;
}

.quote {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: min(92%, 760px);
    transform: translateX(-50%);
    display: grid;
    gap: 18px;
    padding: 28px;
    border-radius: 14px;
    background: var(--neutral-dark);
    color: #fff;
    box-shadow: 0 24px 70px rgba(19, 19, 27, 0.22);
}

.quote p {
    color: rgba(255, 255, 255, 0.82);
}

.quote i {
    color: var(--primary);
    font-size: 1.6rem;
}

.quote-cta {
    width: fit-content;
}

.footer-person {
    width: 100%;
    min-height: 340px;
    object-fit: cover;
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.contact-layout {
    align-items: start;
}

.contact-points {
    display: grid;
    gap: 12px;
    margin-top: 28px;
}

.contact-points span {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.contact-form {
    padding: 22px;
}

.form-alert {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: var(--radius);
    font-weight: 700;
}

.form-alert-success {
    background: #E9F9EF;
    color: #116036;
}

.form-alert-error {
    background: #FFF0F0;
    color: #9A1C1C;
}

.hidden-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-row {
    display: grid;
    gap: 16px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--neutral-dark);
    font-weight: 800;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    min-height: 50px;
    border: 1px solid rgba(19, 19, 27, 0.14);
    border-radius: var(--radius);
    background: #fff;
    color: var(--text);
    padding: 12px 14px;
}

.form-group textarea {
    resize: vertical;
    min-height: 138px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(153, 86, 246, 0.12);
    outline: 0;
}

.form-group .is-invalid {
    border-color: #B42318;
}

.form-group small {
    display: block;
    min-height: 20px;
    margin-top: 6px;
    color: var(--text-muted);
    font-size: 0.84rem;
}

.form-group small.is-error {
    color: #B42318;
    font-weight: 700;
}

.btn-submit {
    width: 100%;
    border: 0;
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.site-footer {
    padding: 44px 0 24px;
    background: var(--neutral-dark);
    color: #fff;
}

.footer-layout {
    display: grid;
    gap: 26px;
    align-items: center;
}

.footer-nav,
.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.72);
    font-weight: 700;
}

.footer-nav a:hover {
    color: var(--primary);
}

.social-links a {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    color: #fff;
}

.whatsapp-float {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 90;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: 1.55rem;
    box-shadow: 0 18px 50px rgba(130, 52, 233, 0.3);
}

.whatsapp-float:hover {
    background: var(--primary-dark);
}

.error-page {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: var(--neutral-dark);
    color: #fff;
    overflow: hidden;
}

.error-page::before {
    content: "";
    position: absolute;
    inset: -20%;
    background:
        radial-gradient(circle at 20% 20%, rgba(153, 86, 246, 0.28), transparent 34%),
        radial-gradient(circle at 80% 70%, rgba(130, 52, 233, 0.22), transparent 30%);
}

.error-logo {
    position: fixed;
    top: 28px;
    left: 28px;
    z-index: 1;
}

.error-logo img {
    width: 162px;
    filter: brightness(0) invert(1);
}

.error-wrap {
    position: relative;
    z-index: 1;
    width: min(100%, 680px);
    text-align: center;
}

.error-code {
    width: fit-content;
    margin: 0 auto 18px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: #d9c7ff;
    font-family: var(--font-display);
    font-weight: 700;
}

.error-wrap h1 {
    margin-bottom: 18px;
    font-size: clamp(3rem, 9vw, 6.4rem);
    line-height: 0.96;
}

.error-wrap p:not(.eyebrow) {
    margin: 0 auto 28px;
    max-width: 560px;
    color: rgba(255, 255, 255, 0.74);
}

.error-actions {
    display: flex;
    justify-content: center;
}

.copyright {
    margin-top: 32px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.64);
    font-size: 0.92rem;
}

@media (min-width: 720px) {
    .section-full {
        padding: 120px 0;
    }

    .header-cta {
        display: inline-flex;
    }

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

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

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

    .modal-content {
        grid-template-columns: 1.2fr 0.8fr;
        align-items: start;
    }

    .modal-description {
        grid-column: 1 / -1;
    }

    .footer-layout {
        grid-template-columns: 1fr 2fr auto;
    }
}

@media (min-width: 980px) {
    .nav-toggle {
        display: none;
    }

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

    .split-layout,
    .contact-layout,
    .proof-layout {
        grid-template-columns: 1fr 0.9fr;
        align-items: center;
    }

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

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

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

}

@media (max-width: 520px) {
    .navbar {
        min-height: 62px;
        padding-left: 14px;
    }

    .brand img,
    .footer-brand img {
        width: 132px;
    }

    .hero {
        min-height: 100vh;
        min-height: 100dvh;
        padding-bottom: 0;
    }

    .hero-content {
        padding-top: 116px;
        padding-bottom: 96px;
    }

    .hero-lead {
        max-width: 88vw;
        font-size: clamp(1.72rem, 8vw, 2.35rem);
        line-height: 1.12;
    }

    .hero-text {
        max-width: 88vw;
        font-size: 0.96rem;
    }

    .hero-bg {
        object-position: 78% 34%;
    }

    .hero-overlay {
        background:
            linear-gradient(90deg, rgba(19, 19, 27, 0.96) 0%, rgba(19, 19, 27, 0.82) 62%, rgba(19, 19, 27, 0.5) 100%),
            linear-gradient(0deg, rgba(19, 19, 27, 0.94) 0%, rgba(19, 19, 27, 0.2) 55%);
    }

    .hero-actions .btn {
        width: 100%;
    }

    .project-hover {
        right: 12px;
        bottom: 12px;
        opacity: 1;
        transform: none;
    }

    .project-tag {
        min-height: 38px;
        padding-inline: 12px;
        font-size: 0.82rem;
    }

    .project-more {
        min-width: 38px;
        min-height: 38px;
        padding: 3px;
        font-size: 0;
    }

    .project-more i {
        width: 32px;
        height: 32px;
    }

    .modal-hero {
        border-radius: 18px;
    }

    .modal-content {
        margin-top: 24px;
    }

    .portrait-frame img {
        min-height: 340px;
    }

    .proof-media {
        padding-bottom: 190px;
    }

    .quote {
        width: calc(100% - 24px);
        padding: 22px;
    }

    .quote-cta {
        width: 100%;
    }

    .whatsapp-float {
        right: 16px;
        bottom: 16px;
        width: 52px;
        height: 52px;
        font-size: 1.38rem;
    }

    .error-page {
        align-items: flex-start;
        padding-top: 112px;
    }

    .error-logo {
        top: 22px;
        left: 20px;
    }

    .error-logo img {
        width: 136px;
    }

    .error-actions .btn {
        width: 100%;
    }
}
