/* --------------------------------------------------
   DESIGN SYSTEM & VARIABLES (COMMAND CENTER)
-------------------------------------------------- */
:root {
    /* Color Palette — S7 Brandbook oficial (s7-brandbook-next.vercel.app) */
    --color-bg: #0A0A0A; /* Deep Schwarz — Background Core */
    --color-bg-darker: #050505;
    --color-bg-card: #121212;
    --color-text-primary: #F4F4DE; /* Premium Cream — Stark Contrast */
    --color-text-secondary: #E5E5E5; /* Structure Gray — Neutral Support */
    --color-text-muted: #8A8A7E;
    --color-accent: #3E77BB; /* Corporate Navy — Primary Accent */
    --color-accent-glow: rgba(62, 119, 187, 0.15);
    --color-border: #1E1E1E;
    --color-border-hover: rgba(62, 119, 187, 0.35);

    /* Typography — S7 Brandbook oficial */
    --font-titles: 'Satoshi', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------
   BASE STYLES & BLUEPRINT GRID
-------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--color-bg);
    color: var(--color-text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

body {
    overflow-x: hidden;
    line-height: 1.5;
}

/* Blueprint Grid Background Overlay */
.blueprint-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: 
        linear-gradient(var(--color-border) 1px, transparent 1px),
        linear-gradient(90deg, var(--color-border) 1px, transparent 1px);
    background-size: 60px 60px;
    background-position: center top;
    opacity: 0.25;
    pointer-events: none;
    z-index: 0;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--color-bg);
}
::-webkit-scrollbar-thumb {
    background: var(--color-accent);
    border-radius: 3px;
}

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

/* --------------------------------------------------
   REUSABLE UTILITIES
-------------------------------------------------- */
.container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 4rem;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
}

.section-padding {
    padding: 9rem 0;
}

.section-padding-large {
    padding: 12rem 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 5rem 0;
    }
    .section-padding-large {
        padding: 7rem 0;
    }
}

.border-top {
    border-top: 1px solid var(--color-border);
}

.bg-darker {
    background-color: var(--color-bg-darker);
    position: relative;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 2.2fr;
    gap: 4rem;
}

@media (max-width: 992px) {
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

/* Labels de Seção */
.section-label {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    position: sticky;
    top: 7rem;
    height: fit-content;
}

.label-num {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--color-accent);
    letter-spacing: 0.1em;
}

.label-text {
    font-family: var(--font-titles);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-text-secondary);
    letter-spacing: 0.25em;
    text-transform: uppercase;
}

.grid-header {
    display: grid;
    grid-template-columns: 1fr 2.2fr;
    gap: 4rem;
    margin-bottom: 5rem;
}

@media (max-width: 992px) {
    .grid-header {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 3rem;
    }
    .section-label {
        position: relative;
        top: 0;
    }
}

.section-title {
    font-family: var(--font-titles);
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--color-text-primary);
    letter-spacing: -0.01em;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1.1rem 2.4rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    transition: var(--transition-smooth);
    cursor: pointer;
    border-radius: 4px;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--color-accent);
    color: #FFFFFF;
    box-shadow: 0 4px 20px var(--color-accent-glow);
}

.btn-primary:hover {
    background-color: #FFFFFF;
    color: var(--color-bg);
    transform: translateY(-2px);
    box-shadow: none;
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-text-primary);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    border-color: var(--color-accent);
    background-color: rgba(62, 119, 187, 0.02);
    transform: translateY(-2px);
}

/* --------------------------------------------------
   SCROLL REVEAL — Blur + Fade (ref: animation-clean)
-------------------------------------------------- */
.fade-in {
    opacity: 0;
    filter: blur(8px);
    transform: translateY(18px);
    transition: opacity 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                filter 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in.revealed {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

/* Stagger delays for grid children */
.fade-in:nth-child(2) { transition-delay: 0.08s; }
.fade-in:nth-child(3) { transition-delay: 0.16s; }
.fade-in:nth-child(4) { transition-delay: 0.24s; }
.fade-in:nth-child(5) { transition-delay: 0.32s; }
.fade-in:nth-child(6) { transition-delay: 0.40s; }
.fade-in:nth-child(7) { transition-delay: 0.48s; }
.fade-in:nth-child(8) { transition-delay: 0.56s; }

/* --------------------------------------------------
   BADGE + PULSE DOT (ref: flux-motion.aura.build)
-------------------------------------------------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border: 1px solid rgba(62, 119, 187, 0.3);
    background-color: rgba(62, 119, 187, 0.05);
    color: var(--color-accent);
    font-size: 0.75rem;
    font-family: var(--font-mono);
    border-radius: 4px;
}

.pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--color-accent);
    animation: pulse-anim 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes pulse-anim {
    0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(62, 119, 187,0.4); }
    50% { opacity: 0.7; transform: scale(1.15); box-shadow: 0 0 0 5px rgba(62, 119, 187,0); }
}

/* --------------------------------------------------
   MARQUEE TICKER (ref: animation-clean)
-------------------------------------------------- */
.marquee-section {
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding: 1.5rem 0;
    overflow: hidden;
    background-color: var(--color-bg-darker);
}

.marquee-track {
    display: flex;
    gap: 0;
    white-space: nowrap;
    mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.marquee-content {
    display: inline-flex;
    flex-shrink: 0;
    animation: scroll-left 35s linear infinite;
}

.marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0 2.5rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: var(--color-text-muted);
    text-transform: uppercase;
}

.marquee-item::after {
    content: '•';
    color: var(--color-accent);
    font-size: 0.6rem;
}

@keyframes scroll-left {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}

/* --------------------------------------------------
   HEADER & NAVIGATION
-------------------------------------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(7, 8, 10, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
}

.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 1.4rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 768px) {
    .nav-container {
        padding: 1.2rem 1.5rem;
    }
}

.logo {
    font-family: var(--font-titles);
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    color: var(--color-text-primary);
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    transition: var(--transition-smooth);
}

.nav-link:hover, .nav-link.active {
    color: var(--color-accent);
}

.nav-cta {
    padding: 0.6rem 1.4rem;
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    border-radius: 4px;
}

.nav-cta:hover {
    background-color: var(--color-accent);
    color: #FFFFFF;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 22px;
    height: 14px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--color-text-primary);
    transition: var(--transition-smooth);
}

@media (max-width: 992px) {
    .menu-toggle {
        display: flex;
    }
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--color-bg-darker);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        transition: var(--transition-smooth);
        z-index: 999;
    }
    .nav-menu.open {
        right: 0;
    }
    .nav-link {
        font-size: 1.15rem;
    }
    .nav-cta {
        display: none;
    }
}

/* --------------------------------------------------
   HERO SECTION
-------------------------------------------------- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 8rem;
    padding-bottom: 7rem;
}

.hero-container {
    display: flex;
    gap: 2.2rem;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.meta-line {
    width: 30px;
    height: 1px;
    background-color: var(--color-accent);
}

.role {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--color-text-secondary);
}

.hero-title {
    font-family: var(--font-titles);
    font-size: 5.5rem;
    font-weight: 800;
    line-height: 1;
    max-width: 950px;
    letter-spacing: -0.03em;
}

.hero-title span.highlight {
    color: var(--color-accent);
    text-shadow: 0 0 40px rgba(62, 119, 187, 0.2);
}

.hero-subtitle {
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 720px;
    color: var(--color-text-secondary);
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.hero-tagline {
    border-top: 1px solid var(--color-border);
    padding: 1.5rem 0;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-bg-darker);
}

.hero-tagline span {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--color-text-muted);
    letter-spacing: 0.15em;
    padding-left: 4rem;
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 3.8rem;
    }
    .hero-tagline span {
        padding-left: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2.8rem;
    }
    .hero-actions {
        flex-direction: column;
        gap: 1rem;
    }
}

/* --------------------------------------------------
   01 — O PROBLEMA
-------------------------------------------------- */
.problem-headline {
    font-family: var(--font-titles);
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2rem;
}

.problem-desc {
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.7;
    color: var(--color-text-secondary);
    margin-bottom: 3.5rem;
}

.system-leak-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.leak-item {
    border: 1px solid var(--color-border);
    padding: 2rem;
    background-color: var(--color-bg-darker);
    border-radius: 4px;
}

.leak-item span {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--color-accent);
    margin-bottom: 0.8rem;
}

.leak-item p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--color-text-secondary);
    font-weight: 300;
}

@media (max-width: 768px) {
    .system-leak-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* --------------------------------------------------
   02 — A TESE
-------------------------------------------------- */
.tese-badge {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.tese-title {
    font-family: var(--font-titles);
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 2rem;
}

.tese-desc {
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.7;
    color: var(--color-text-secondary);
    margin-bottom: 4rem;
}

.tese-flow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    border: 1px solid var(--color-border);
    padding: 1.8rem 2.2rem;
    border-radius: 4px;
    background-color: var(--color-bg);
}

.tese-flow span {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-text-primary);
}

.flow-dot {
    color: var(--color-accent);
    font-weight: 700;
}

/* --------------------------------------------------
   03 — SYSTEMS GRID
-------------------------------------------------- */
.systems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.system-card {
    border: 1px solid var(--color-border);
    padding: 2.5rem 2rem;
    background-color: var(--color-bg-darker);
    border-radius: 4px;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.system-card:hover {
    border-color: var(--color-accent);
    box-shadow: 0 8px 30px var(--color-accent-glow);
    transform: translateY(-3px);
}

.sys-code {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--color-accent);
}

.sys-title {
    font-family: var(--font-titles);
    font-size: 1.25rem;
    font-weight: 800;
}

.sys-desc {
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.6;
    color: var(--color-text-secondary);
}

/* --------------------------------------------------
   04 — ARCHITECTURE PROCESS
-------------------------------------------------- */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.step-card {
    border: 1px solid var(--color-border);
    padding: 2.2rem 1.8rem;
    background-color: var(--color-bg);
    border-radius: 4px;
}

.step-idx {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    color: var(--color-accent);
    display: block;
    margin-bottom: 1rem;
}

.step-name {
    font-family: var(--font-titles);
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
}

.step-desc {
    font-size: 0.85rem;
    font-weight: 300;
    line-height: 1.5;
    color: var(--color-text-secondary);
}

/* --------------------------------------------------
   05 — OFERTA (S7 GROWTH ARCHITECTURE)
-------------------------------------------------- */
.oferta-title {
    font-family: var(--font-titles);
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.oferta-subtitle {
    font-size: 1.15rem;
    color: var(--color-accent);
    margin-bottom: 2rem;
}

.oferta-desc {
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.7;
    color: var(--color-text-secondary);
    margin-bottom: 4rem;
}

.value-stair {
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--color-border);
    padding-left: 2rem;
    gap: 2.5rem;
}

.stair-step {
    position: relative;
}

.stair-step::before {
    content: "";
    position: absolute;
    left: calc(-2rem - 3.5px);
    top: 6px;
    width: 6px;
    height: 6px;
    background-color: var(--color-accent);
    border-radius: 50%;
}

.stair-lbl {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-primary);
    display: block;
    margin-bottom: 0.4rem;
}

.stair-step p {
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.5;
    color: var(--color-text-secondary);
}

/* --------------------------------------------------
   06 — CASES
-------------------------------------------------- */
.case-item {
    border: 1px solid var(--color-border);
    border-radius: 6px;
    background-color: var(--color-bg);
    overflow: hidden;
}

.case-header {
    border-bottom: 1px solid var(--color-border);
    padding: 2rem;
    background-color: var(--color-bg-darker);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.case-client {
    font-family: var(--font-titles);
    font-size: 1.8rem;
    font-weight: 800;
    display: block;
}

.case-segment {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
}

.case-tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--color-accent);
}

.case-body-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 3rem 2.5rem;
}

.case-col {
    padding: 0 2rem;
}

.case-col:first-child {
    padding-left: 0;
}

.case-col.border-left {
    border-left: 1px solid var(--color-border);
}

.case-col h5 {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--color-text-primary);
    margin-bottom: 1rem;
}

.case-col p {
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.6;
    color: var(--color-text-secondary);
}

@media (max-width: 992px) {
    .case-body-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
    }
    .case-col {
        padding: 0;
    }
    .case-col.border-left {
        border-left: none;
    }
}

/* --------------------------------------------------
   07 — THE ARCHITECTS
-------------------------------------------------- */
.architects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.arch-card {
    background-color: var(--color-bg-darker);
    border: 1px solid var(--color-border);
    padding: 3.5rem 3rem;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.arch-meta {
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 1.5rem;
}

.arch-name {
    font-family: var(--font-titles);
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
}

.arch-role {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--color-accent);
}

.arch-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-text-secondary);
    font-weight: 300;
    flex-grow: 1;
}

.arch-axiom {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--color-text-primary);
    border-left: 2px solid var(--color-accent);
    padding-left: 1rem;
}

.architects-synthesis {
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    background-color: var(--color-bg);
}

.synth-line {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: var(--color-text-secondary);
}

.synth-line.highlight {
    color: var(--color-accent);
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

@media (max-width: 992px) {
    .architects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* --------------------------------------------------
   08 — MANIFESTO
-------------------------------------------------- */
.manifesto-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.manifesto-content p {
    font-family: var(--font-titles);
    font-size: 2rem;
    font-weight: 400;
    color: var(--color-text-secondary);
}

.manifesto-content p.highlight {
    color: #FFFFFF;
    font-weight: 600;
}

.manifesto-content p.strong {
    color: var(--color-accent);
    font-weight: 800;
    font-size: 2.4rem;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .manifesto-content p {
        font-size: 1.5rem;
    }
    .manifesto-content p.strong {
        font-size: 1.8rem;
    }
}

/* --------------------------------------------------
   09 — CTA & FORM (APPLY)
-------------------------------------------------- */
.apply-title {
    font-family: var(--font-titles);
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.apply-desc {
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 3.5rem;
}

.filter-box {
    border: 1px solid var(--color-border);
    background-color: var(--color-bg);
    padding: 2.2rem;
    border-radius: 4px;
    margin-bottom: 4rem;
}

.filter-title {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--color-accent);
    display: block;
    margin-bottom: 1rem;
}

.filter-box ul {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.filter-box li {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

.qualification-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    border: 1px solid var(--color-border);
    padding: 4rem;
    border-radius: 6px;
    background-color: var(--color-bg-darker);
}

.form-group-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-secondary);
}

.form-group input, .form-group select, .form-group textarea {
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    color: var(--color-text-primary);
    padding: 1rem 1.2rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    border-radius: 4px;
    transition: var(--transition-smooth);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 15px rgba(62, 119, 187, 0.15);
}

.btn-submit {
    margin-top: 1rem;
    width: 100%;
}

@media (max-width: 768px) {
    .form-group-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .qualification-form {
        padding: 2rem 1.5rem;
    }
}

/* --------------------------------------------------
   FOOTER
-------------------------------------------------- */
.footer {
    border-top: 1px solid var(--color-border);
    padding: 4rem 0;
    background-color: var(--color-bg-darker);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.footer-logo {
    font-family: var(--font-titles);
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: 0.05em;
}

.footer-brand p {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
}

.footer-meta {
    text-align: right;
}

.footer-signature {
    font-family: var(--font-mono);
    font-weight: 500;
    color: var(--color-accent);
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    .footer-meta {
        text-align: center;
    }
}

/* --------------------------------------------------
   ARCH STATS GRID (ref: digital-architect.aura.build)
-------------------------------------------------- */
.arch-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    margin: 1.5rem 0;
    overflow: hidden;
}

.arch-stat {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 1.2rem 1rem;
    border-right: 1px solid var(--color-border);
    transition: background-color 0.3s ease;
}

.arch-stat:last-child {
    border-right: none;
}

.arch-stat:hover {
    background-color: rgba(62, 119, 187, 0.04);
}

.stat-num {
    font-family: var(--font-titles);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-text-primary);
    line-height: 1;
    letter-spacing: -0.02em;
}

.stat-lbl {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    line-height: 1.3;
}

@media (max-width: 576px) {
    .arch-stats {
        grid-template-columns: repeat(3, 1fr);
    }
    .stat-num {
        font-size: 1.4rem;
    }
}

/* Hero specific stagger delays */
.hero-meta.fade-in { transition-delay: 0.05s; }
.hero-title.fade-in { transition-delay: 0.18s; }
.hero-subtitle.fade-in { transition-delay: 0.30s; }
.hero-actions.fade-in { transition-delay: 0.42s; }
.hero-tagline.fade-in { transition-delay: 0.50s; }
.hero-3d-wrap.fade-in { transition-delay: 0.60s; }

/* ============================================
   AWWWARDS UPGRADE PACK — S7
   ============================================ */

/* ── CUSTOM CURSOR ───────────────────────── */
* { cursor: none !important; }

.s7-cursor {
    position: fixed;
    top: 0; left: 0;
    width: 12px; height: 12px;
    background: var(--color-accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transition: width 0.2s, height 0.2s, background 0.2s;
    mix-blend-mode: difference;
}

.s7-cursor-follower {
    position: fixed;
    top: 0; left: 0;
    width: 40px; height: 40px;
    border: 1px solid rgba(62, 119, 187, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    transition: width 0.3s, height 0.3s, border-color 0.3s, opacity 0.3s;
}

.s7-cursor.cursor-hover {
    width: 18px; height: 18px;
    background: #ffffff;
}

.s7-cursor-follower.follower-hover {
    width: 60px; height: 60px;
    border-color: rgba(62, 119, 187, 0.8);
}

.s7-cursor-follower.follower-link {
    border-color: rgba(62, 119, 187, 0.4);
    width: 52px; height: 52px;
}

@media (max-width: 768px) {
    * { cursor: auto !important; }
    .s7-cursor, .s7-cursor-follower { display: none; }
}

/* ── HERO LAYOUT SPLIT (Text + 3D) ──────── */
.hero-container {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.hero-content-wrap {
    flex: 1;
    min-width: 0;
    max-width: 600px;
}

.hero-3d-wrap {
    flex: 0 0 420px;
    height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

@media (max-width: 960px) {
    .hero-container {
        flex-direction: column;
        gap: 40px;
    }
    .hero-3d-wrap {
        flex: 0 0 280px;
        height: 280px;
        width: 100%;
    }
}

/* ── 3D WIREFRAME SPHERE ─────────────────── */
.hero-3d-scene {
    width: 320px;
    height: 320px;
    perspective: 800px;
    perspective-origin: 50% 50%;
    position: relative;
}

.sphere-3d {
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transform: rotateX(15deg) rotateY(-15deg);
    position: relative;
}

/* Rings of the wireframe */
.sphere-ring {
    position: absolute;
    top: 50%; left: 50%;
    border-radius: 50%;
    border: 1px solid rgba(62, 119, 187, 0.35);
    transform-style: preserve-3d;
    animation: sphereRotate 12s linear infinite;
}

.ring-1 { width: 200px; height: 200px; margin: -100px 0 0 -100px; transform: rotateX(0deg);   animation-duration: 10s; }
.ring-2 { width: 200px; height: 200px; margin: -100px 0 0 -100px; transform: rotateX(36deg);  animation-duration: 13s; animation-direction: reverse; }
.ring-3 { width: 200px; height: 200px; margin: -100px 0 0 -100px; transform: rotateX(72deg);  animation-duration: 8s; }
.ring-4 { width: 200px; height: 200px; margin: -100px 0 0 -100px; transform: rotateX(108deg); animation-duration: 15s; animation-direction: reverse; }
.ring-5 { width: 200px; height: 200px; margin: -100px 0 0 -100px; transform: rotateX(144deg); animation-duration: 11s; }

.sphere-equator {
    position: absolute;
    top: 50%; left: 50%;
    width: 200px; height: 200px;
    margin: -100px 0 0 -100px;
    border-radius: 50%;
    border: 1px solid rgba(62, 119, 187, 0.6);
    transform: rotateX(90deg);
    animation: sphereRotate 9s linear infinite;
}

.sphere-meridian {
    position: absolute;
    top: 50%; left: 50%;
    width: 200px; height: 200px;
    margin: -100px 0 0 -100px;
    border-radius: 50%;
    border: 1px solid rgba(62, 119, 187, 0.5);
    animation: sphereRotate 7s linear infinite reverse;
}

.sphere-core {
    position: absolute;
    top: 50%; left: 50%;
    width: 16px; height: 16px;
    margin: -8px 0 0 -8px;
    background: var(--color-accent);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--color-accent), 0 0 40px rgba(62, 119, 187, 0.4);
    animation: corePulse 3s ease-in-out infinite;
}

.sphere-glow {
    position: absolute;
    top: 50%; left: 50%;
    width: 240px; height: 240px;
    margin: -120px 0 0 -120px;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(62, 119, 187, 0.08) 0%, transparent 70%);
    animation: corePulse 4s ease-in-out infinite reverse;
}

@keyframes sphereRotate {
    from { transform: rotateX(var(--rx, 0deg)) rotateY(0deg); }
    to   { transform: rotateX(var(--rx, 0deg)) rotateY(360deg); }
}

@keyframes corePulse {
    0%, 100% { opacity: 0.6; transform: scale(1) translate(-50%, -50%); }
    50%       { opacity: 1;   transform: scale(1.3) translate(-38%, -38%); }
}

/* Floating Data Points */
.data-point {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    color: var(--color-accent);
    letter-spacing: 0.1em;
    padding: 4px 8px;
    background: rgba(62, 119, 187, 0.06);
    border: 1px solid rgba(62, 119, 187, 0.2);
    border-radius: 4px;
    white-space: nowrap;
}

.data-point::before {
    content: '';
    width: 4px; height: 4px;
    background: var(--color-accent);
    border-radius: 50%;
    animation: corePulse 2s infinite;
}

.dp-1 { top: 10%;  left: -10%; }
.dp-2 { top: 15%;  right: -15%; }
.dp-3 { bottom: 20%; left: -5%; }
.dp-4 { bottom: 10%; right: -10%; }

/* ── SYSTEMS HORIZONTAL SCROLL ───────────── */
.systems-horizontal-pin {
    overflow: hidden;
    background: var(--color-bg);
}

.systems-pin-wrapper {
    padding: 80px 0 80px 80px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.systems-pin-header {
    padding-right: 80px;
}

/* .section-label é sticky por padrão (pensado pra layout 2-colunas em .grid-header).
   Aqui o cabeçalho empilha numa coluna só dentro de uma seção já pinada pelo GSAP,
   então sticky faz o label colidir com o título abaixo. Neutralizado só neste escopo. */
.systems-pin-header .section-label {
    position: static;
    margin-bottom: 1rem;
}

.systems-pin-header .section-title {
    margin-top: 0.25rem;
}

.systems-scroll-hint {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--color-text-muted);
    letter-spacing: 0.2em;
    margin-top: 12px;
    opacity: 0.6;
}

.systems-track {
    display: flex;
    gap: 24px;
    align-items: stretch;
    will-change: transform;
}

.system-card-h {
    flex: 0 0 340px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 2px;
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.4s, transform 0.4s;
    opacity: 0; /* will be animated in by GSAP */
}

.system-card-h::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 1px;
    background: linear-gradient(90deg, var(--color-accent), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.system-card-h:hover {
    border-color: rgba(62, 119, 187, 0.3);
    transform: translateY(-4px);
}

.system-card-h:hover::before {
    opacity: 1;
}

.sys-bar {
    margin-top: auto;
    height: 1px;
    background: linear-gradient(90deg, var(--color-accent) 0%, transparent 100%);
    width: 40%;
    transition: width 0.6s ease;
}

.system-card-h:hover .sys-bar {
    width: 100%;
}

/* Mobile: revert horizontal scroll to grid */
@media (max-width: 767px) {
    .systems-pin-wrapper {
        padding: 60px 24px;
    }
    .systems-track {
        flex-wrap: wrap;
    }
    .system-card-h {
        flex: 0 0 calc(50% - 12px);
        opacity: 1 !important;
    }
}

@media (max-width: 480px) {
    .system-card-h {
        flex: 0 0 100%;
    }
}

/* ── MAGNETIC BUTTON TRANSITION ───────────── */
.magnetic-btn {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                background 0.3s, color 0.3s, border-color 0.3s !important;
    will-change: transform;
}

