:root {
    --bg-body: #050816;
    --bg-section: #0b1020;
    --bg-section-alt: #0f1526;
    --primary: #4f46e5;
    --primary-soft: rgba(79, 70, 229, 0.12);
    --secondary: #10b981;
    --text-main: #f9fafb;
    --text-muted: #9ca3af;
    --border-soft: rgba(156, 163, 175, 0.2);
    --radius-lg: 18px;
    --radius-xl: 26px;
    --shadow-soft: 0 20px 45px rgba(15, 23, 42, 0.7);
    --shadow-subtle: 0 14px 30px rgba(15, 23, 42, 0.55);
    --container-width: 1180px;
    --transition-fast: 0.2s ease-out;
    --transition: 0.25s ease-out;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #111827 0, #020617 40%, #000 100%);
    color: var(--text-main);
    scroll-behavior: smooth;
}

/* Layout base */

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Topbar */

.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(16px);
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.86));
    border-bottom: 1px solid rgba(31, 41, 55, 0.9);
}

.topbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 0;
}

/* Logo */

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.logo-mark {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: radial-gradient(circle at 20% 20%, #a855f7, #4f46e5 45%, #0ea5e9 100%);
    box-shadow:
        0 0 0 1px rgba(148, 163, 184, 0.4),
        0 14px 30px rgba(79, 70, 229, 0.9);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    letter-spacing: 0.08em;
    font-size: 1.1rem;
    color: #e5e7eb;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-title {
    font-weight: 600;
    font-size: 1rem;
}

.logo-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Navegação */

.nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav a {
    text-decoration: none;
    font-size: 0.9rem;
    color: var(--text-muted);
    position: relative;
    transition: color var(--transition-fast);
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(to right, #4f46e5, #22c55e);
    transition: width var(--transition-fast);
}

.nav a:hover {
    color: var(--text-main);
}

.nav a:hover::after {
    width: 100%;
}

/* Botão nav */

.btn-nav {
    padding: 0.55rem 1.2rem;
    border-radius: 999px;
    border: 1px solid rgba(79, 70, 229, 0.6);
    background: linear-gradient(to right, rgba(79, 70, 229, 0.18), rgba(16, 185, 129, 0.08));
    color: #e5e7eb;
    font-weight: 500;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.72);
}

/* Menu mobile */

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.4rem;
}

/* Hero */

.hero {
    padding: 4.5rem 0 3.5rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: center;
}

.hero-text h1 {
    font-size: clamp(2.1rem, 4vw, 2.6rem);
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-text p {
    margin: 0 0 1.5rem;
    color: var(--text-muted);
    max-width: 560px;
    font-size: 0.98rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1.1rem;
}

.hero-info {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.hero-info span {
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: radial-gradient(circle at top left, rgba(148, 163, 184, 0.22), transparent 60%);
}

/* Hero card */

.hero-card {
    background: radial-gradient(circle at top left, rgba(79, 70, 229, 0.4), transparent 55%),
                radial-gradient(circle at bottom right, rgba(16, 185, 129, 0.28), transparent 55%),
                rgba(15, 23, 42, 0.96);
    border-radius: var(--radius-xl);
    padding: 1.9rem 1.7rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(148, 163, 184, 0.4);
}

.hero-card h2 {
    font-size: 1.35rem;
    margin: 0 0 0.7rem;
}

.hero-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.hero-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.2rem;
    font-size: 0.88rem;
}

.hero-card ul li {
    position: relative;
    padding-left: 1.1rem;
    margin-bottom: 0.45rem;
    color: #d1d5db;
}

.hero-card ul li::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(to right, #4f46e5, #22c55e);
    position: absolute;
    left: 0;
    top: 0.45rem;
}

/* Seções gerais */

.section {
    padding: 3.5rem 0;
    background: transparent;
}

.section-alt {
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.98));
}

.section-title {
    font-size: 1.7rem;
    margin: 0 0 0.5rem;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0.3rem auto 2.1rem;
    font-size: 0.95rem;
}

/* Cards e grids */

.section-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.6rem;
}

.card {
    background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.98));
    border-radius: var(--radius-lg);
    padding: 1.4rem 1.3rem;
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: var(--shadow-subtle);
}

/* Card sobre */

.highlights-card h3 {
    margin-top: 0;
    margin-bottom: 0.7rem;
}

.highlights-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
}

.highlights-card li {
    margin-bottom: 0.4rem;
    color: #e5e7eb;
}

/* Serviços */

.service-card h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.7rem;
}

.service-card ul {
    padding-left: 1.1rem;
    margin: 0;
    font-size: 0.88rem;
    color: #d1d5db;
}

/* Tecnologias */

.tech-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.2rem;
}

.tech-column {
    background: radial-gradient(circle at top, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.98));
    border-radius: var(--radius-lg);
    padding: 1.1rem 1rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.tech-column h3 {
    margin-top: 0;
    margin-bottom: 0.7rem;
    font-size: 0.95rem;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.38);
    font-size: 0.75rem;
    color: #e5e7eb;
    margin: 0 0.4rem 0.4rem 0;
    background: radial-gradient(circle at top left, rgba(79, 70, 229, 0.22), transparent 60%);
}

/* Projetos */

.project-card {
    position: relative;
}

.project-label {
    position: absolute;
    top: 0.9rem;
    right: 1rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.4);
    color: #e5e7eb;
}

.project-card h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.project-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Passos */

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.4rem;
}

.step {
    background: radial-gradient(circle at top, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.98));
    border-radius: var(--radius-lg);
    padding: 1.2rem 1.1rem;
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: var(--shadow-subtle);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    background: radial-gradient(circle at top left, #4f46e5, #22c55e);
    color: white;
}

.step h3 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
}

.step p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Contato */

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
    gap: 2rem;
    align-items: flex-start;
}

.contact-info {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    color: #e5e7eb;
    font-size: 0.95rem;
}

.contact-info li {
    margin-bottom: 0.4rem;
}

.contact-form {
    padding: 1.6rem 1.4rem;
}

.form-group {
    margin-bottom: 0.85rem;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
    color: #e5e7eb;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: rgba(15, 23, 42, 0.95);
    padding: 0.55rem 0.65rem;
    font-size: 0.88rem;
    color: #e5e7eb;
    outline: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #6b7280;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: rgba(79, 70, 229, 0.9);
    box-shadow: 0 0 0 1px rgba(79, 70, 229, 0.7);
    background: rgba(15, 23, 42, 0.98);
}

.form-note {
    margin-top: 0.7rem;
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* Botões */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
}

.btn-primary {
    background: linear-gradient(to right, #4f46e5, #22c55e);
    color: white;
    box-shadow: 0 18px 35px rgba(79, 70, 229, 0.6);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 45px rgba(79, 70, 229, 0.75);
}

.btn-secondary {
    background: rgba(15, 23, 42, 0.95);
    color: #e5e7eb;
    border-color: rgba(148, 163, 184, 0.55);
}

.btn-secondary:hover {
    background: rgba(17, 24, 39, 0.98);
    border-color: rgba(148, 163, 184, 0.8);
}

.btn.full {
    width: 100%;
}

/* Rodapé */

.footer {
    border-top: 1px solid rgba(31, 41, 55, 0.85);
    background: rgba(3, 7, 18, 0.98);
    padding: 1rem 0;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-mini {
    opacity: 0.9;
}

/* Responsividade */

@media (max-width: 960px) {
    .hero-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .section-grid,
    .cards-grid,
    .tech-grid,
    .steps-grid,
    .contact-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .cards-grid {
        gap: 1.2rem;
    }

    .tech-grid {
        gap: 1rem;
    }

    .hero-card {
        order: -1;
    }
}

@media (max-width: 768px) {
    .nav {
        position: absolute;
        top: 56px;
        right: 0;
        left: 0;
        display: none;
        flex-direction: column;
        padding: 0.8rem 1.5rem 1.2rem;
        background: rgba(15, 23, 42, 0.98);
        border-bottom: 1px solid rgba(31, 41, 55, 0.9);
    }

    .nav.nav-open {
        display: flex;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .topbar-content {
        padding: 0.6rem 0;
    }
}

@media (max-width: 480px) {
    .hero {
        padding-top: 3.2rem;
    }

    .hero-card {
        padding: 1.4rem 1.25rem;
    }

    .section {
        padding: 3rem 0;
    }
}
