/* ═══════════════════════════════════════════════
   MATRIX TECNOLOGIA — Design System
   Pure CSS. No frameworks. No bloat.
   ═══════════════════════════════════════════════ */

/* ─── Design Tokens ──────────────────────────── */
:root {
    /* Backgrounds */
    --bg-primary: #050505;
    --bg-secondary: #080808;
    --bg-surface: #0f0f0f;
    --bg-elevated: #141414;
    --bg-card: #111111;

    /* Borders */
    --border-subtle: #1f1f1f;
    --border-default: #2a2a2a;
    --border-accent: rgba(0, 255, 136, 0.25);

    /* Accent — extracted from logo */
    --accent: #00ff88;
    --accent-hover: #00cc6e;
    --accent-glow: rgba(0, 255, 136, 0.15);
    --accent-glow-strong: rgba(0, 255, 136, 0.35);

    /* Text */
    --text-primary: #f5f5f5;
    --text-secondary: #b0b0b0;
    --text-muted: #707070;

    /* Typography */
    --font-sans: 'Inter', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Spacing */
    --section-padding: clamp(5rem, 12vh, 10rem);
    --container-max: 1200px;
    --container-padding: clamp(1.25rem, 4vw, 2.5rem);

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration-fast: 150ms;
    --duration-normal: 300ms;
    --duration-slow: 600ms;

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
}

/* ─── Reset ──────────────────────────────────── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
}

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

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

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    color: inherit;
}

ul { list-style: none; }

/* ─── Matrix Code Rain ───────────────────────── */
#matrix-rain {
    position: fixed;
    inset: 0;
    z-index: 999;
    pointer-events: none;
    opacity: 0.10;
}

/* ─── Utilities ──────────────────────────────── */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    position: relative;
}

.accent-text {
    color: var(--accent);
}

.section {
    padding: var(--section-padding) 0;
    position: relative;
    overflow: hidden;
}

.section:nth-child(even) {
    background-color: var(--bg-secondary);
}

/* Atmospheric glow effects for visual depth */
#servicos::after,
#contato::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(120px);
}

#servicos::after {
    background: radial-gradient(circle, rgba(0, 255, 136, 0.05) 0%, transparent 70%);
    top: -10%;
    right: -10%;
}

#contato::after {
    background: radial-gradient(circle, rgba(0, 255, 136, 0.04) 0%, transparent 70%);
    bottom: -20%;
    left: -10%;
}

/* ─── Grain Overlay (Grainient-inspired) ─────── */
.grain-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.4;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.5'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
    mix-blend-mode: overlay;
}

/* ═══════════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════════ */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: all var(--duration-normal) var(--ease-out);
}

#navbar.scrolled {
    padding: 0.6rem 0;
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-subtle);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    z-index: 10;
}

.logo-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

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

.nav-links a {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text-secondary);
    transition: color var(--duration-fast) var(--ease-out);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width var(--duration-normal) var(--ease-out);
}

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

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

.nav-cta {
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-sm);
    color: var(--accent);
    transition: all var(--duration-normal) var(--ease-out);
}

.nav-cta:hover {
    background: var(--accent-glow);
    border-color: var(--accent);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    z-index: 10;
    padding: 4px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--duration-normal) var(--ease-out);
    border-radius: 1px;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ═══════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════ */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: var(--bg-primary);
}

/* Gradient orbs (Grainient-inspired diffuse glow) */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
}

.hero-orb--1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.12) 0%, transparent 70%);
    top: -10%;
    right: -5%;
    animation: float-orb 15s ease-in-out infinite;
}

.hero-orb--2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 180, 100, 0.08) 0%, transparent 70%);
    bottom: -5%;
    left: -10%;
    animation: float-orb 20s ease-in-out infinite reverse;
}

.hero-orb--3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 255, 200, 0.06) 0%, transparent 70%);
    top: 40%;
    left: 30%;
    animation: float-orb 12s ease-in-out infinite 3s;
}

@keyframes float-orb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* Grid pattern background */
.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 255, 136, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 136, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 20%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 20%, transparent 80%);
}

/* Decorative SVG shapes (shapes.gallery-inspired) */
.hero-shape {
    position: absolute;
    color: var(--accent);
    pointer-events: none;
    opacity: 0.6;
}

.hero-shape--1 {
    width: 200px;
    height: 200px;
    top: 15%;
    right: 8%;
    animation: rotate-slow 60s linear infinite;
}

.hero-shape--2 {
    width: 120px;
    height: 120px;
    bottom: 20%;
    left: 6%;
    animation: rotate-slow 45s linear infinite reverse;
}

@keyframes rotate-slow {
    to { transform: rotate(360deg); }
}

/* Hero content */
.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
    padding: 0 var(--container-padding);
    max-width: 1100px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--accent);
    padding: 0.4rem 1rem 0.4rem 0.7rem;
    border: 1px solid var(--border-accent);
    border-radius: 100px;
    margin-bottom: 2rem;
    letter-spacing: 0.02em;
    background: rgba(0, 255, 136, 0.04);
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 var(--accent-glow-strong); }
    50% { opacity: 0.6; box-shadow: 0 0 0 6px transparent; }
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    min-height: calc(clamp(2.5rem, 6vw, 4.5rem) * 1.1 * 2);
}

.cursor {
    color: var(--accent);
    animation: blink 1s step-end infinite;
    font-weight: 300;
}

@keyframes blink {
    50% { opacity: 0; }
}

.hero-subtitle {
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 580px;
    margin: 0 auto 2.5rem;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

/* Stats */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-subtle);
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
}

.stat-suffix {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent);
}

.stat-label {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-subtle);
}

/* ─── Buttons ────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-sm);
    transition: all var(--duration-normal) var(--ease-out);
    cursor: pointer;
}

.btn--primary {
    background: var(--accent);
    color: var(--bg-primary);
    border: 1px solid var(--accent);
}

.btn--primary:hover {
    background: var(--accent-hover);
    box-shadow: 0 0 40px var(--accent-glow-strong), 0 0 80px rgba(0, 255, 136, 0.12);
    transform: translateY(-2px);
}

.btn--ghost {
    border: 1px solid var(--border-default);
    color: var(--text-secondary);
}

.btn--ghost:hover {
    border-color: var(--text-muted);
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.btn--full {
    width: 100%;
    justify-content: center;
}

/* ═══════════════════════════════════════════════
   SECTION HEADERS
   ═══════════════════════════════════════════════ */
.section-header {
    text-align: center;
    margin-bottom: 4.5rem;
    position: relative;
    z-index: 2;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    color: var(--accent);
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
    opacity: 0.9;
}

.section-title {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.section-desc {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

.section-tag,
.service-tags span,
.case-tag {
    cursor: default;
}

/* ─── Hero Additions ─────────────────────────── */
.hero-availability {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-top: -1.5rem; /* Puxar para cima para colar nas ações se necessário */
    position: relative;
    z-index: 2;
}

.availability-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse-dot 2s ease-in-out infinite;
}

/* ─── Scroll Hint ────────────────────────────── */
.hero-scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    z-index: 20;
    opacity: 0.6;
    transition: opacity var(--duration-normal) var(--ease-out);
    pointer-events: none;
}

.hero-scroll-hint:hover {
    opacity: 1;
}

.scroll-text {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.scroll-mouse {
    width: 20px;
    height: 32px;
    border: 1.5px solid var(--text-muted);
    border-radius: 12px;
    position: relative;
}

.scroll-wheel {
    width: 2px;
    height: 6px;
    background: var(--accent);
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 1px;
    animation: scroll-wheel 2s ease-in-out infinite;
}

@keyframes scroll-wheel {
    0% { transform: translate(-50%, 0); opacity: 0; }
    20% { opacity: 1; }
    80% { transform: translate(-50%, 12px); opacity: 0; }
    100% { opacity: 0; }
}

/* ═══════════════════════════════════════════════
   SERVICES
   ═══════════════════════════════════════════════ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    position: relative;
    z-index: 2;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 2rem;
    transition: all var(--duration-normal) var(--ease-out);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent-glow) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--duration-normal) var(--ease-out);
}

.service-card:hover {
    border-color: rgba(0, 255, 136, 0.35);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 255, 136, 0.06);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 48px;
    height: 48px;
    color: var(--accent);
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 1;
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 1;
}

.service-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.service-tags span {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    border: 1px solid var(--border-subtle);
    border-radius: 100px;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

/* ═══════════════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════════════ */
.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    position: relative;
    z-index: 2;
}

.about-text .section-tag,
.about-text .section-title {
    text-align: left;
}

.about-lead {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.about-values {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.value-item {
    display: flex;
    gap: 1.25rem;
    padding: 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    transition: all var(--duration-normal) var(--ease-out);
}

.value-item:hover {
    background: var(--bg-elevated);
    border-color: var(--border-subtle);
}

.value-marker {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--accent);
    font-weight: 500;
    flex-shrink: 0;
    margin-top: 2px;
}

.value-item h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.value-item p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Terminal widget */
.terminal {
    background: var(--bg-secondary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    overflow: hidden;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-subtle);
}

.terminal-dots {
    display: flex;
    gap: 6px;
}

.terminal-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.terminal-dots span:nth-child(1) { background: #ff5f57; }
.terminal-dots span:nth-child(2) { background: #febc2e; }
.terminal-dots span:nth-child(3) { background: #28c840; }

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

.terminal-body {
    padding: 1.25rem;
    line-height: 1.8;
}

.terminal-line {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}

.t-prompt {
    color: var(--accent);
    font-weight: 500;
    flex-shrink: 0;
}

.t-cmd {
    color: #78b8ff;
    font-weight: 500;
}

.t-arg {
    color: var(--text-secondary);
}

.t-output {
    display: block;
    color: var(--text-muted);
    padding-left: 0;
    margin-bottom: 0.75rem;
}

.t-hash {
    color: #e0a84a;
}

.t-cursor {
    color: var(--accent);
    animation: blink 1s step-end infinite;
}

/* ═══════════════════════════════════════════════
   TECH MARQUEE
   ═══════════════════════════════════════════════ */
.tech-marquee {
    overflow: hidden;
    position: relative;
    z-index: 2;
    padding: 2rem 0;
    mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.tech-track {
    display: flex;
    gap: 1.5rem;
    animation: marquee 30s linear infinite;
    width: max-content;
}

@keyframes marquee {
    to { transform: translateX(-50%); }
}

.tech-item {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 0.75rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-sm);
    white-space: nowrap;
    transition: all var(--duration-normal) var(--ease-out);
    background: rgba(255, 255, 255, 0.04);
    letter-spacing: 0.02em;
}

.tech-item:hover {
    color: var(--accent);
    border-color: var(--border-accent);
    background: var(--accent-glow);
}

/* ═══════════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════════ */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    position: relative;
    z-index: 2;
}

.contact-info .section-tag,
.contact-info .section-title {
    text-align: left;
}

.contact-lead {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9375rem;
    color: var(--text-secondary);
    transition: color var(--duration-fast) var(--ease-out);
}

.contact-link:hover {
    color: var(--accent);
}

.contact-link svg {
    flex-shrink: 0;
}

/* Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

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

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

.form-group input,
.form-group textarea {
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    padding: 0.75rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    transition: border-color var(--duration-fast) var(--ease-out);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

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

/* ═══════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════ */
#footer {
    padding: 3rem 0 1.5rem;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-subtle);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 1.5rem;
}

.footer-tagline {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    font-size: 0.875rem;
    color: var(--text-muted);
    transition: color var(--duration-fast) var(--ease-out);
}

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

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    color: var(--text-muted);
    transition: color var(--duration-fast) var(--ease-out);
    display: flex;
}

.footer-social a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* ═══════════════════════════════════════════════
   SKIP LINK (accessibility)
   ═══════════════════════════════════════════════ */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: var(--accent);
    color: var(--bg-primary);
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    z-index: 9999;
}

.skip-link:focus {
    top: 1rem;
}

/* ═══════════════════════════════════════════════
   CASES
   ═══════════════════════════════════════════════ */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.case-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all var(--duration-normal) var(--ease-out);
}

.case-card:hover {
    border-color: rgba(0, 255, 136, 0.35);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 25px rgba(0, 255, 136, 0.06);
}

.case-card__cover {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    flex-shrink: 0;
    border-bottom: 1px solid var(--border-subtle);
}

.case-card__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--duration-slow) var(--ease-out);
}

.case-card:hover .case-card__cover img {
    transform: scale(1.04);
}

.case-card__body {
    padding: 2rem 2.5rem 2.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.case-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.case-tag {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    border: 1px solid var(--border-accent);
    border-radius: 100px;
    color: var(--accent);
    letter-spacing: 0.02em;
}

.case-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

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

.case-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.25rem;
    flex: 1;
}

.case-result {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    padding: 0.875rem 1rem;
    background: rgba(0, 255, 136, 0.04);
    border-left: 2px solid var(--accent);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.case-metric {
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--accent);
    font-size: 0.9rem;
}

.case-tag--date {
    color: var(--text-muted);
    border-color: var(--border-subtle);
    margin-left: auto;
}

.case-links {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.case-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent);
    opacity: 0.6;
    margin-top: 1.25rem;
    transition: opacity var(--duration-fast) var(--ease-out), gap var(--duration-fast) var(--ease-out);
    letter-spacing: 0.03em;
}

.case-link:hover {
    opacity: 1;
    gap: 0.55rem;
}

/* ═══════════════════════════════════════════════
   PROCESSO
   ═══════════════════════════════════════════════ */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.process-step {
    background: var(--bg-card);
    padding: 2rem 1.75rem;
    transition: background var(--duration-normal) var(--ease-out);
}

.process-step:hover {
    background: var(--bg-elevated);
}

.process-number {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent);
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    opacity: 0.95;
}

.process-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: var(--accent);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.08);
}

.process-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.process-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.process-deliverables {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.process-deliverables li {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    padding-left: 1.25rem;
    position: relative;
}

.process-deliverables li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
    opacity: 0.6;
}

/* ═══════════════════════════════════════════════
   DEPOIMENTOS
   ═══════════════════════════════════════════════ */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    position: relative;
    z-index: 2;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: all var(--duration-normal) var(--ease-out);
    position: relative;
}

.testimonial-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-3px);
}

.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 1.25rem;
    left: 1.5rem;
    font-size: 5rem;
    line-height: 1;
    color: var(--accent);
    opacity: 0.1;
    font-family: Georgia, serif;
    pointer-events: none;
}

.testimonial-quote {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.75;
    flex: 1;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    position: relative;
    z-index: 1;
}

.author-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--accent-glow);
    border: 1px solid var(--border-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    flex-shrink: 0;
    letter-spacing: 0.02em;
}

.author-name {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 0.1rem;
}

.author-role {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* ═══════════════════════════════════════════════
   FAQ
   ═══════════════════════════════════════════════ */
.faq-list {
    max-width: 720px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.faq-item {
    border-bottom: 1px solid var(--border-subtle);
}

.faq-item:first-child {
    border-top: 1px solid var(--border-subtle);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 1.375rem 0;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: color var(--duration-fast) var(--ease-out);
}

.faq-question:hover {
    color: var(--accent);
}

.faq-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid var(--border-default);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.125rem;
    line-height: 1;
    color: var(--text-muted);
    transition: all var(--duration-normal) var(--ease-out);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    border-color: var(--accent);
    color: var(--accent);
}

.faq-item.active .faq-question {
    color: var(--accent);
}

.faq-answer {
    overflow: hidden;
    max-height: 0;
    transition: max-height var(--duration-slow) var(--ease-out);
}

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

.faq-answer-inner {
    padding-bottom: 1.375rem;
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

/* ═══════════════════════════════════════════════
   REVEAL ANIMATIONS
   ═══════════════════════════════════════════════ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all var(--duration-slow) var(--ease-out);
}

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

/* Stagger children */
.services-grid .reveal:nth-child(1) { transition-delay: 0ms; }
.services-grid .reveal:nth-child(2) { transition-delay: 80ms; }
.services-grid .reveal:nth-child(3) { transition-delay: 160ms; }
.services-grid .reveal:nth-child(4) { transition-delay: 240ms; }
.services-grid .reveal:nth-child(5) { transition-delay: 320ms; }
.services-grid .reveal:nth-child(6) { transition-delay: 400ms; }

/* ═══════════════════════════════════════════════
   HERO AVAILABILITY
   ═══════════════════════════════════════════════ */
.hero-availability {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
    margin-bottom: 3rem;
}

.hero-availability strong {
    color: var(--text-secondary);
    font-weight: 500;
}

.availability-count {
    color: var(--accent) !important;
}

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

/* ═══════════════════════════════════════════════
   PROBLEMAS QUE VOCÊ AINDA NÃO VIU
   ═══════════════════════════════════════════════ */
.problems-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.problem-card {
    background: var(--bg-primary);
    padding: 2.25rem 2.5rem;
    position: relative;
    transition: background var(--duration-normal) var(--ease-out);
}

.problem-card:hover {
    background: var(--bg-card);
}

.problem-card:hover .problem-when {
    opacity: 1;
}

.problem-when {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0.85rem;
    opacity: 0.65;
    transition: opacity var(--duration-normal) var(--ease-out);
}

.problem-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.problem-card > p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.problem-how {
    border-left: 2px solid rgba(0, 255, 136, 0.3);
    padding-left: 1rem;
    font-size: 0.825rem;
    color: var(--text-muted);
    line-height: 1.65;
    transition: border-color var(--duration-normal) var(--ease-out), color var(--duration-normal) var(--ease-out);
}

.problem-card:hover .problem-how {
    border-color: rgba(0, 255, 136, 0.4);
    color: var(--text-secondary);
}

.problem-how-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 0.4rem;
    opacity: 0.7;
}

/* ─── Terminal live additions ─────────────── */
.terminal-body {
    min-height: 620px;
    max-height: 620px;
    overflow-y: auto;
}

.t-success {
    color: #28c840 !important;
}

.t-link {
    color: #78b8ff !important;
}

.t-cmd-typing {
    color: #78b8ff;
    font-weight: 500;
}

/* ═══════════════════════════════════════════════
   FORM CONSENT
   ═══════════════════════════════════════════════ */
.form-group--consent {
    padding-top: 0.25rem;
}

.form-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1.5;
}

.form-consent input[type="checkbox"] {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 1px;
    accent-color: var(--accent);
    cursor: pointer;
}

.form-consent a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.form-consent a:hover {
    color: var(--accent-hover);
}

/* ═══════════════════════════════════════════════
   WHATSAPP FLOATING BUTTON
   ═══════════════════════════════════════════════ */
.whatsapp-fab {
    position: fixed;
    bottom: 1.75rem;
    right: 1.75rem;
    z-index: 900;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: #25D366;
    color: #fff;
    padding: 0.75rem 1.25rem 0.75rem 1rem;
    border-radius: 100px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all var(--duration-normal) var(--ease-out);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    animation: fab-pulse 3s ease-in-out infinite;
}

.whatsapp-fab:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.55);
    color: #fff;
}

.whatsapp-fab__label {
    white-space: nowrap;
}

@keyframes fab-pulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
    50%       { box-shadow: 0 4px 28px rgba(37, 211, 102, 0.65), 0 0 0 8px rgba(37, 211, 102, 0.08); }
}

/* ═══════════════════════════════════════════════
   COOKIE NOTICE (LGPD)
   ═══════════════════════════════════════════════ */
.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 950;
    background: var(--bg-elevated);
    border-top: 1px solid var(--border-default);
    padding: 1rem var(--container-padding);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.cookie-notice[hidden] {
    display: none;
}

.cookie-notice p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    flex: 1;
    min-width: 200px;
}

.cookie-notice p a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-notice p a:hover {
    color: var(--accent-hover);
}

.cookie-notice__actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cookie-notice .btn {
    padding: 0.5rem 1.25rem;
    font-size: 0.8125rem;
}

/* ═══════════════════════════════════════════════
   ABOUT FOUNDER CARD
   ═══════════════════════════════════════════════ */
.about-founder {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 3rem auto 0;
    padding: 1.75rem 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    max-width: 640px;
}

.founder-photo {
    width: 220px;
    height: 147px;
    object-fit: cover;
    object-position: center top;
    border-radius: var(--radius-md);
    flex-shrink: 0;
    filter: brightness(1.05) contrast(1.05);
}

.founder-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.founder-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.3;
}

.founder-role {
    font-size: 0.8125rem;
    font-family: var(--font-mono);
    color: var(--accent);
    margin: 0;
    line-height: 1.3;
}

.founder-bio {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0.5rem 0 0;
}

.founder-linkedin {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.75rem;
    padding: 0.4rem 0.85rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-muted);
    border: 1px solid var(--border-default);
    border-radius: 100px;
    text-decoration: none;
    transition: all var(--duration-normal) var(--ease-out);
    width: fit-content;
}

.founder-linkedin:hover {
    color: #0A66C2;
    border-color: #0A66C2;
    background: rgba(10, 102, 194, 0.08);
}

.founder-linkedin svg {
    flex-shrink: 0;
    transition: color var(--duration-normal) var(--ease-out);
}

.founder-linkedin:hover svg {
    color: #0A66C2;
}

@media (max-width: 640px) {
    .about-founder {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
        padding: 1.25rem;
    }

    .founder-photo {
        width: 100%;
        height: 180px;
    }
}

/* footer CNPJ line */
.footer-bottom p + p {
    margin-top: 0.25rem;
}

.footer-bottom a {
    color: var(--text-muted);
    transition: color var(--duration-fast) var(--ease-out);
}

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

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */

/* Tablets */
@media (max-width: 1024px) {
    .services-grid,
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

/* Mobile landscape / small tablets */
@media (max-width: 768px) {
    .nav-links,
    .nav-cta {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    /* Mobile menu */
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: fixed;
        inset: 0;
        background: rgba(5, 5, 5, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        justify-content: center;
        align-items: center;
        gap: 2rem;
        z-index: 5;
    }

    .nav-links.active a {
        font-size: 1.5rem;
        color: var(--text-primary);
    }

    .problems-grid,
    .cases-grid {
        grid-template-columns: 1fr !important;
    }

    .problem-card {
        padding: 1.75rem 1.5rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .stat-divider {
        width: 40px;
        height: 1px;
    }

    .about-layout,
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .hero-shape--1,
    .hero-shape--2 {
        display: none;
    }

    .process-grid {
        grid-template-columns: 1fr;
        border-radius: var(--radius-md);
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
}

/* Cookie notice mobile */
@media (max-width: 640px) {
    .cookie-notice {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .cookie-notice__actions {
        justify-content: flex-end;
    }

    .whatsapp-fab__label {
        display: none;
    }

    .whatsapp-fab {
        padding: 0.875rem;
        border-radius: 50%;
    }
}

/* Mobile portrait */
@media (max-width: 480px) {
    .services-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        justify-content: center;
    }

    .blog-preview-grid {
        grid-template-columns: 1fr;
    }
}

/* ─── Blog preview (homepage) ───────────────────── */
.blog-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.blog-preview-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    text-decoration: none;
    transition: border-color .2s, transform .2s;
    overflow: hidden;
}

.blog-preview-card:hover {
    border-color: rgba(0, 255, 136, .35);
    transform: translateY(-2px);
}

.blog-preview-card__cover {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    flex-shrink: 0;
}

.blog-preview-card__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s var(--ease-out);
}

.blog-preview-card:hover .blog-preview-card__cover img {
    transform: scale(1.04);
}

.blog-preview-card__body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-preview-card__tags {
    display: flex;
    gap: .4rem;
    flex-wrap: wrap;
    margin-bottom: .75rem;
}

.blog-tag {
    font-family: var(--font-mono);
    font-size: .7rem;
    color: var(--accent);
    border: 1px solid rgba(0, 255, 136, .3);
    border-radius: 4px;
    padding: .15em .55em;
    background: rgba(0, 255, 136, .08);
}

.blog-preview-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: .5rem;
}

.blog-preview-card p {
    color: var(--text-secondary);
    font-size: .875rem;
    line-height: 1.6;
    margin-bottom: .875rem;
}

.blog-preview-card__meta {
    font-family: var(--font-mono);
    font-size: .75rem;
    color: var(--text-muted);
    margin-top: auto;
}

.blog-preview-cta {
    text-align: center;
    margin-top: .5rem;
}
