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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: "Inter", sans-serif;
    background: #f8fafc;
    color: #0f172a;
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

button,
input,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

.container {
    width: min(1160px, 92%);
    margin: 0 auto;
}

/* =====================================================
    VARIABLES
===================================================== */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #eff6ff;
    --dark: #0f172a;
    --dark-2: #1e293b;
    --text: #475569;
    --muted: #64748b;
    --border: #e2e8f0;
    --white: #ffffff;
    --bg: #f8fafc;
    --success: #16a34a;
    --radius: 18px;
    --shadow: 0 15px 40px rgba(15, 23, 42, 0.08);
}

/* =====================================================
    HEADER
===================================================== */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.nav {
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #2563eb, #60a5fa);
    color: white;
    font-weight: 800;
    font-size: 15px;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.nav-links a {
    color: #475569;
    font-size: 14px;
    font-weight: 600;
    transition: 0.2s;
}

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

.nav-cta {
    padding: 11px 18px;
    background: var(--primary);
    color: white !important;
    border-radius: 10px;
}

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

.menu-btn {
    display: none;
    border: 0;
    background: transparent;
    font-size: 26px;
    color: var(--dark);
}

/* =====================================================
    HERO
===================================================== */

.hero {
    min-height: 760px;
    padding-top: 150px;
    padding-bottom: 100px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(37, 99, 235, 0.13),
            transparent 32%
        ),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.hero::before {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    right: -250px;
    top: 80px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.06);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 70px;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 13px;
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 22px;
}

.badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
}

.hero h1 {
    font-size: clamp(40px, 5vw, 68px);
    line-height: 1.03;
    letter-spacing: -2.8px;
    max-width: 720px;
    margin-bottom: 24px;
}

.hero h1 span {
    color: var(--primary);
}

.hero-text {
    max-width: 610px;
    color: var(--text);
    font-size: 18px;
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    margin-bottom: 35px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 14px 21px;
    border-radius: 11px;
    font-size: 14px;
    font-weight: 700;
    border: 1px solid transparent;
    transition: 0.25s;
}

.btn-primary {
    color: white;
    background: var(--primary);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.22);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: var(--primary-dark);
}

.btn-secondary {
    color: var(--dark);
    background: white;
    border-color: var(--border);
}

.btn-secondary:hover {
    border-color: #93c5fd;
    color: var(--primary);
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    color: var(--muted);
    font-size: 13px;
}

.hero-trust span {
    display: flex;
    align-items: center;
    gap: 7px;
}

.check {
    color: var(--success);
    font-weight: 800;
}

/* =====================================================
    HERO VISUAL
===================================================== */

.hero-visual {
    position: relative;
}

.browser {
    background: white;
    border: 1px solid #dbe4f0;
    border-radius: 20px;
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.13);
    overflow: hidden;
    transform: rotate(1.2deg);
}

.browser-top {
    height: 43px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 15px;
    border-bottom: 1px solid #e2e8f0;
}

.browser-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #cbd5e1;
}

.browser-address {
    margin-left: 10px;
    flex: 1;
    height: 25px;
    border-radius: 6px;
    background: white;
    border: 1px solid #e2e8f0;
}

.mock-site {
    padding: 27px;
    min-height: 390px;
    background: linear-gradient(145deg, #ffffff, #eff6ff);
}

.mock-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 45px;
}

.mock-logo {
    width: 80px;
    height: 13px;
    border-radius: 10px;
    background: #2563eb;
}

.mock-menu {
    display: flex;
    gap: 7px;
}

.mock-menu span {
    width: 35px;
    height: 6px;
    background: #cbd5e1;
    border-radius: 5px;
}

.mock-content {
    display: grid;
    grid-template-columns: 1fr 0.75fr;
    gap: 30px;
    align-items: center;
}

.mock-title {
    height: 17px;
    width: 90%;
    border-radius: 7px;
    background: #0f172a;
    margin-bottom: 13px;
}

.mock-title.short {
    width: 62%;
    background: #2563eb;
}

.mock-lines {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 20px 0;
}

.mock-lines span {
    height: 7px;
    width: 90%;
    border-radius: 8px;
    background: #cbd5e1;
}

.mock-lines span:last-child {
    width: 70%;
}

.mock-button {
    width: 105px;
    height: 31px;
    border-radius: 7px;
    background: #2563eb;
}

.mock-image {
    height: 175px;
    border-radius: 15px;
    background:
        linear-gradient(
            145deg,
            #bfdbfe,
            #60a5fa,
            #1d4ed8
        );
}

.floating-card {
    position: absolute;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 13px;
    padding: 14px 16px;
    box-shadow: var(--shadow);
}

.floating-card.one {
    left: -35px;
    bottom: 55px;
}

.floating-card.two {
    right: -25px;
    top: 80px;
}

.floating-title {
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 4px;
}

.floating-value {
    font-size: 15px;
    font-weight: 800;
}

/* =====================================================
    SECTION DEFAULT
===================================================== */

section {
    padding: 100px 0;
}

.section-header {
    max-width: 700px;
    margin: 0 auto 55px;
    text-align: center;
}

.section-label {
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 10px;
}

.section-title {
    font-size: clamp(30px, 4vw, 44px);
    letter-spacing: -1.5px;
    line-height: 1.15;
    margin-bottom: 15px;
}

.section-description {
    color: var(--text);
    font-size: 16px;
}

/* =====================================================
    SERVICES
===================================================== */

.services {
    background: white;
}

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

.service-card {
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: white;
    transition: 0.25s;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: #bfdbfe;
    box-shadow: var(--shadow);
}

.service-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 21px;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.service-card p {
    color: var(--text);
    font-size: 14px;
}

/* =====================================================
    ABOUT / BENEFITS
===================================================== */

.about {
    background: #f8fafc;
}

.about-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 75px;
    align-items: center;
}

.about-visual {
    background: #0f172a;
    min-height: 480px;
    border-radius: 25px;
    padding: 30px;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.16);
}

.about-visual::after {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    right: -100px;
    bottom: -100px;
    background: rgba(37, 99, 235, 0.35);
}

.code-window {
    position: relative;
    z-index: 2;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 15px;
    overflow: hidden;
    background: rgba(255,255,255,0.05);
}

.code-top {
    height: 42px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    padding: 0 14px;
    gap: 7px;
}

.code-top span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #64748b;
}

.code {
    padding: 25px;
    font-family: monospace;
    font-size: 13px;
    line-height: 2;
    color: #cbd5e1;
}

.code .blue {
    color: #60a5fa;
}

.code .green {
    color: #86efac;
}

.code .purple {
    color: #c4b5fd;
}

.about-content .section-label {
    text-align: left;
}

.about-content h2 {
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.15;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
}

.about-content > p {
    color: var(--text);
    margin-bottom: 25px;
}

.benefits {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.benefit {
    display: flex;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
}

.benefit-icon {
    color: var(--primary);
    font-weight: 800;
}

/* =====================================================
    PORTFOLIO
===================================================== */

.portfolio {
    background: white;
}

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

.project {
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    background: white;
    transition: 0.25s;
}

.project:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.project-image {
    height: 280px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a, #2563eb);
}

.project-image.dental {
    background: linear-gradient(135deg, #0c4a6e, #38bdf8);
}

.project-image.local {
    background: linear-gradient(135deg, #172554, #3b82f6);
}

.project-browser {
    position: absolute;
    width: 78%;
    height: 190px;
    left: 11%;
    top: 45px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 20px 35px rgba(0,0,0,0.2);
    overflow: hidden;
}

.project-browser-top {
    height: 25px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    gap: 4px;
    padding-left: 9px;
}

.project-browser-top span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #94a3b8;
}

.project-browser-body {
    padding: 17px;
}

.project-line {
    height: 7px;
    background: #dbeafe;
    border-radius: 10px;
    width: 55%;
    margin-bottom: 9px;
}

.project-line.dark {
    width: 75%;
    height: 13px;
    background: #0f172a;
}

.project-blocks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 18px;
}

.project-block {
    height: 65px;
    background: #eff6ff;
    border-radius: 8px;
}

.project-info {
    padding: 23px;
}

.project-tag {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 6px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 11px;
    font-weight: 800;
    margin-bottom: 10px;
}

.project-info h3 {
    font-size: 19px;
    margin-bottom: 8px;
}

.project-info p {
    color: var(--text);
    font-size: 14px;
    margin-bottom: 15px;
}

.project-link {
    color: var(--primary);
    font-size: 13px;
    font-weight: 800;
}

/* Cards com a mesma altura e botões sempre alinhados na base */
.project {
    display: flex;
    flex-direction: column;
}

.project-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* =====================================================
    BOTÕES DOS CARDS DE PROJETO
===================================================== */

.btn-sm {
    min-height: 44px;
    padding: 11px 18px;
    font-size: 14px;
}

.btn-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transition: transform 0.25s;
}

.btn:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.35);
    outline-offset: 2px;
}

.btn:active {
    transform: translateY(0);
}

.project-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
    padding-top: 6px;
}

.project-actions .btn-primary {
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.2);
}

.project-actions .btn-primary:hover .btn-icon {
    transform: translate(2px, -2px);
}

.project-actions .btn-secondary {
    background: transparent;
    border-color: #cbd5e1;
}

.project-actions .btn-secondary:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary-dark);
}

.project-actions .btn-secondary:hover .btn-icon {
    transform: translateX(3px);
}

@media (max-width: 650px) {
    .project-actions .btn {
        width: 100%;
    }
}

/* =====================================================
    PROCESS
===================================================== */

.process {
    background: #f8fafc;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.process-card {
    position: relative;
    padding: 25px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
}

.process-number {
    font-size: 12px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 20px;
}

.process-card h3 {
    font-size: 17px;
    margin-bottom: 9px;
}

.process-card p {
    font-size: 13px;
    color: var(--text);
}

/* =====================================================
    TECHNOLOGIES
===================================================== */

.tech {
    background: white;
}

.tech-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    max-width: 900px;
    margin: 0 auto;
}

.tech-item {
    padding: 13px 19px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    background: #f8fafc;
}

/* =====================================================
    FAQ
===================================================== */

.faq {
    background: #f8fafc;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 10px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: white;
    border: 0;
    padding: 19px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    font-weight: 700;
    color: var(--dark);
}

.faq-question span:last-child {
    font-size: 20px;
    color: var(--primary);
    transition: 0.2s;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    padding: 0 20px 20px;
    color: var(--text);
    font-size: 14px;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-item.active .faq-question span:last-child {
    transform: rotate(45deg);
}

/* =====================================================
    CTA
===================================================== */

.cta-section {
    padding: 70px 0;
    background: white;
}

.cta {
    background:
        radial-gradient(
            circle at 90% 20%,
            rgba(96, 165, 250, 0.25),
            transparent 30%
        ),
        linear-gradient(135deg, #0f172a, #172554);
    border-radius: 25px;
    padding: 70px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta h2 {
    font-size: clamp(30px, 4vw, 46px);
    letter-spacing: -1.5px;
    margin-bottom: 15px;
}

.cta p {
    color: #cbd5e1;
    max-width: 650px;
    margin: 0 auto 28px;
}

/* =====================================================
    CONTACT
===================================================== */

.contact {
    background: #f8fafc;
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 55px;
    align-items: start;
}

.contact-info h2 {
    font-size: 36px;
    line-height: 1.15;
    margin-bottom: 15px;
}

.contact-info > p {
    color: var(--text);
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    gap: 13px;
    margin-bottom: 20px;
}

.contact-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--primary-light);
    color: var(--primary);
    display: grid;
    place-items: center;
    flex-shrink: 0;
    font-weight: 800;
}

.contact-item strong {
    display: block;
    font-size: 14px;
    margin-bottom: 2px;
}

.contact-item span {
    color: var(--text);
    font-size: 13px;
}

.contact-form {
    background: white;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 30px;
    box-shadow: 0 15px 40px rgba(15, 23, 42, 0.05);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

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

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 7px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 9px;
    padding: 12px 13px;
    outline: none;
    background: #fff;
    color: var(--dark);
    transition: 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

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

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

/* =====================================================
    FOOTER
===================================================== */

footer {
    background: #0f172a;
    color: white;
    padding: 45px 0 25px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 35px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand p {
    color: #94a3b8;
    font-size: 13px;
    max-width: 350px;
    margin-top: 15px;
}

.footer-title {
    font-size: 14px;
    margin-bottom: 15px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 9px;
    color: #94a3b8;
    font-size: 13px;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: #64748b;
    font-size: 12px;
}

/* =====================================================
    WHATSAPP FLOAT
===================================================== */

.whatsapp {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25d366;
    color: white;
    display: grid;
    place-items: center;
    z-index: 900;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    transition: 0.25s;
}

.whatsapp:hover {
    transform: translateY(-4px) scale(1.04);
}

.whatsapp svg {
    width: 32px;
    height: 32px;
}

.whatsapp:active {
    transform: scale(0.96);
}

.whatsapp:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.9);
    outline-offset: 3px;
}

/* =====================================================
    ANIMATIONS
===================================================== */

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

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

/* =====================================================
    RESPONSIVE
===================================================== */

@media (max-width: 950px) {

    .nav-links {
        position: absolute;
        top: 76px;
        left: 0;
        width: 100%;
        background: white;
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 4%;
        gap: 18px;
        display: none;
    }

    .nav-links.active {
        display: flex;
    }

    .menu-btn {
        display: block;
    }

    .hero-grid,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
    }

    .hero-visual {
        max-width: 650px;
        margin: 0 auto;
        width: 100%;
    }

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

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

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

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 650px) {

    section {
        padding: 75px 0;
    }

    .hero {
        padding-top: 125px;
        padding-bottom: 70px;
    }

    .hero h1 {
        letter-spacing: -1.8px;
    }

    .hero-text {
        font-size: 16px;
    }

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

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

    .hero-trust {
        flex-direction: column;
        gap: 10px;
    }

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

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

    .about-visual {
        min-height: 390px;
        padding: 20px;
    }

    .code {
        font-size: 11px;
    }

    .project-image {
        height: 240px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .cta {
        padding: 45px 25px;
    }

    .contact-form {
        padding: 22px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-brand {
        grid-column: auto;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .floating-card.one {
        left: -10px;
    }

    .floating-card.two {
        right: -10px;
    }
}

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

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