/* ========================================
   DESIGN TOKENS - CHARCOAL WARM (DARK MODE)
   ======================================== */

:root {
    /* Colors - OLED Tech-Noir */
    --bg-primary: #000000;
    --bg-secondary: #05070B;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    --bg-elevated: rgba(30, 41, 59, 0.5);

    --text-primary: #F8FAFC;
    --text-secondary: #CBD5E1;
    --text-muted: #64748B;

    --accent: #3B82F6;
    /* Electric Blue */
    --accent-hover: #2563EB;
    --accent-muted: rgba(59, 130, 246, 0.1);
    --accent-glow: rgba(59, 130, 246, 0.4);

    --cta: #F97316;
    /* Orange Glow */
    --cta-hover: #EA580C;

    --success: #10B981;
    --success-muted: rgba(16, 185, 129, 0.15);

    --border: rgba(255, 255, 255, 0.1);
    --border-light: rgba(255, 255, 255, 0.15);

    /* Typography - Pro Max Edition */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Open Sans', sans-serif;

    --fs-xs: 0.75rem;
    /* 12px */
    --fs-sm: 0.875rem;
    /* 14px */
    --fs-base: 1rem;
    /* 16px */
    --fs-lg: 1.125rem;
    /* 18px */
    --fs-xl: 1.25rem;
    /* 20px */
    --fs-2xl: 1.5rem;
    /* 24px */
    --fs-3xl: 2rem;
    /* 32px */
    --fs-4xl: 2.5rem;
    /* 40px */
    --fs-5xl: 3rem;
    /* 48px */
    --fs-6xl: 3.75rem;
    /* 60px */

    --fw-light: 300;
    --fw-regular: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;

    --lh-tight: 1.2;
    --lh-snug: 1.35;
    --lh-normal: 1.5;
    --lh-relaxed: 1.75;

    /* Spacing */
    --space-1: 0.25rem;
    /* 4px */
    --space-2: 0.5rem;
    /* 8px */
    --space-3: 0.75rem;
    /* 12px */
    --space-4: 1rem;
    /* 16px */
    --space-5: 1.25rem;
    /* 20px */
    --space-6: 1.5rem;
    /* 24px */
    --space-8: 2rem;
    /* 32px */
    --space-10: 2.5rem;
    /* 40px */
    --space-12: 3rem;
    /* 48px */
    --space-16: 4rem;
    /* 64px */
    --space-20: 5rem;
    /* 80px */
    --space-24: 6rem;
    /* 96px */

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 24px var(--accent-glow);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;

    /* Container */
    --container-max: 1200px;
    --container-padding: var(--space-6);
}

/* ========================================
   RESET & BASE STYLES
   ======================================== */

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

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

body {
    font-family: var(--font-body);
    font-size: var(--fs-base);
    font-weight: var(--fw-regular);
    line-height: var(--lh-normal);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Subtle Grain Overlay */
    background-image: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.01) 0%, transparent 100%);
}

h1,
h2,
h3,
h4,
h5,
h6,
.logo-text,
.section-title,
.hero-title,
.btn {
    font-family: var(--font-heading);
}

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

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

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

ul,
ol {
    list-style: none;
}

/* ========================================
   UTILITIES
   ======================================== */

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

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

.section {
    padding: var(--space-20) 0;
}

.section-label {
    display: inline-block;
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-4);
}

.section-title {
    font-size: var(--fs-4xl);
    font-weight: var(--fw-bold);
    line-height: var(--lh-tight);
    margin-bottom: var(--space-4);
}

.section-subtitle {
    font-size: var(--fs-lg);
    color: var(--text-secondary);
    max-width: 600px;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-12);
}

.section-header .section-subtitle {
    margin: 0 auto;
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--fs-base);
}

.btn-block {
    width: 100%;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-hover);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-light);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    color: var(--text-primary);
    background: var(--bg-card);
}

/* ========================================
   NAVIGATION - LIQUID GLASS
   ======================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-6) 0;
    background: transparent;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-bottom: 1px solid transparent;
    transition: all 300ms ease;
}

/* Scrolled state - activate liquid glass */
.navbar.scrolled {
    padding: var(--space-3) 0;
    background: rgba(5, 7, 11, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--fs-lg);
    font-weight: var(--fw-semibold);
    color: var(--text-primary);
    transition: color var(--transition-fast);
}

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

.logo-text {
    letter-spacing: -0.02em;
}

/* Glass Pill Menu Container */
.nav-menu-pill {
    display: none;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 6px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
    .nav-menu-pill {
        display: block;
    }
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.nav-links li a {
    display: block;
    padding: var(--space-2) var(--space-4);
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    color: var(--text-secondary);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.nav-links li a:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
}

.nav-links li a.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
}

/* Nav CTA Button */
.nav-cta {
    display: none;
    padding: var(--space-2) var(--space-5);
    font-size: var(--fs-sm);
    border-radius: var(--radius-full);
}

@media (min-width: 768px) {
    .nav-cta {
        display: inline-flex;
    }
}

/* Language Switcher */
.lang-pill {
    display: none;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 4px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-left: var(--space-2);
}

@media (min-width: 768px) {
    .lang-pill {
        display: flex;
    }
}

.lang-link {
    font-size: var(--fs-xs);
    font-weight: var(--fw-bold);
    color: var(--text-muted);
    padding: 4px 8px;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
    text-transform: uppercase;
}

.lang-link:hover {
    color: var(--text-primary);
}

.lang-link.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent);
}

/* Mobile Language Switcher */
.mobile-lang-switch {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
    margin-top: var(--space-6);
    padding-top: var(--space-6);
    border-top: 1px solid var(--border);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: var(--space-2);
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    transition: background var(--transition-fast);
}

.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.05);
}

.mobile-menu-btn span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

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

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

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

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: var(--space-4) var(--space-6) var(--space-6);
    background: rgba(11, 13, 18, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-menu.active {
    display: block;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.mobile-nav-links li a {
    display: block;
    padding: var(--space-3) var(--space-4);
    font-size: var(--fs-base);
    color: var(--text-secondary);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
}

.mobile-nav-links li a:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.mobile-nav-links li a.mobile-cta {
    margin-top: var(--space-4);
    text-align: center;
    background: var(--accent);
    color: #000;
    font-weight: var(--fw-medium);
}

.mobile-nav-links li a.mobile-cta:hover {
    background: var(--accent-hover);
}

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

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
    background-color: var(--bg-primary);
    background-image: url('hero-bg.png');
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
}

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
    background-color: var(--bg-primary);
    background-image: url('hero-bg.png');
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
}

@media (min-width: 1024px) {
    .hero {
        background-size: cover;
        background-position: center;
    }
}

.bg-typography {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 25vw;
    font-family: var(--font-heading);
    font-weight: 900;
    line-height: 1;
    color: rgba(255, 255, 255, 0.02);
    pointer-events: none;
    z-index: 0;
    user-select: none;
    letter-spacing: -0.05em;
}

@media (max-width: 768px) {
    .hero {
        background-position: 65% center;
        /* Shift slightly left to show more of the right side where the face likely is */
    }
}

/* ========================================
   PROJECTS - BENTO GLASSMORIAL
   ======================================== */

.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
}

@media (min-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.project-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    display: flex;
    flex-direction: column;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.project-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -10px var(--accent-glow);
}

.project-card.featured {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(0, 0, 0, 0.2) 100%);
}

@media (min-width: 1024px) {
    .project-card.featured {
        grid-column: span 2;
    }
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-4);
}

.project-type {
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    font-weight: var(--fw-bold);
}

.project-status {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--fs-xs);
    color: var(--text-muted);
}

.project-title {
    font-size: var(--fs-2xl);
    margin-bottom: var(--space-3);
    color: var(--text-primary);
}

.project-description {
    font-size: var(--fs-base);
    color: var(--text-secondary);
    line-height: var(--lh-relaxed);
    margin-bottom: var(--space-6);
}

.project-stack {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-top: auto;
}

.stack-tag {
    font-size: 10px;
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    color: var(--text-muted);
}

/* Dark overlay for text readability - Tech-Noir Gradient */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Gradient from solid black on left (for text) to transparent on right (showing face) */
    background: linear-gradient(90deg,
            rgba(0, 0, 0, 1) 0%,
            rgba(0, 0, 0, 0.8) 40%,
            rgba(0, 0, 0, 0) 80%);
    pointer-events: none;
    z-index: 1;
}

@media (max-width: 768px) {
    .hero::before {
        background: linear-gradient(180deg,
                rgba(15, 15, 15, 0.9) 0%,
                rgba(15, 15, 15, 0.7) 40%,
                rgba(15, 15, 15, 0.2) 100%);
    }
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-12);
    align-items: center;
}

@media (min-width: 992px) {
    .hero-container {
        grid-template-columns: 1.2fr 1fr;
    }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    padding: var(--space-2) var(--space-4);
    background: var(--accent-muted);
    color: var(--accent);
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-6);
}

.hero-title {
    font-size: var(--fs-4xl);
    font-weight: var(--fw-bold);
    line-height: var(--lh-tight);
    margin-bottom: var(--space-6);
}

@media (min-width: 768px) {
    .hero-title {
        font-size: var(--fs-5xl);
    }
}

@media (min-width: 992px) {
    .hero-title {
        font-size: var(--fs-6xl);
    }
}

.hero-subtitle {
    font-size: var(--fs-lg);
    color: var(--text-secondary);
    line-height: var(--lh-relaxed);
    margin-bottom: var(--space-8);
    max-width: 540px;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
}

/* Hero Visual - Animated Card */
.hero-visual {
    display: none;
}

@media (min-width: 992px) {
    .hero-visual {
        display: block;
    }
}

.hero-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.card-header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4);
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
}

.card-dots {
    display: flex;
    gap: var(--space-2);
}

.card-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-light);
}

.card-dots span:first-child {
    background: #FF5F56;
}

.card-dots span:nth-child(2) {
    background: #FFBD2E;
}

.card-dots span:last-child {
    background: #27CA3F;
}

.card-title {
    font-size: var(--fs-sm);
    color: var(--text-muted);
}

.card-body {
    padding: var(--space-8);
}

.flow-line {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-6);
}

.flow-node {
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
}

.flow-node.trigger {
    background: rgba(59, 130, 246, 0.2);
    color: #3B82F6;
}

.flow-node.process {
    background: var(--accent-muted);
    color: var(--accent);
}

.flow-node.action {
    background: var(--success-muted);
    color: var(--success);
}

.flow-arrow {
    color: var(--text-muted);
    font-size: var(--fs-lg);
}

.flow-status {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--fs-sm);
    color: var(--text-muted);
}

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

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Hero Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: var(--space-8);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    color: var(--text-muted);
    font-size: var(--fs-sm);
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(8px);
    }
}

/* Hide scroll indicator on mobile to avoid overlap with tools */
@media (max-width: 768px) {
    .hero-scroll-indicator {
        display: none;
    }
}

/* ========================================
   SOBRE SECTION
   ======================================== */

.sobre {
    background: var(--bg-secondary);
}

/* Sobre Grid - New Centered Layout */
.sobre-centered-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Aligned left for cleaner reading */
    max-width: 800px;
    /* Constrained width for readability */
    margin: 0 auto;
    /* Centered in page */
}

/* Section Header overrides for this section */
.sobre .section-label,
.sobre .section-title {
    align-self: flex-start;
}

.sobre-text-block {
    margin-bottom: var(--space-8);
}

.sobre-text-block p {
    color: var(--text-secondary);
    margin-bottom: var(--space-4);
    line-height: var(--lh-relaxed);
    font-size: var(--fs-lg);
    /* Slightly larger for easier reading */
}

.sobre-text-block strong {
    color: var(--text-primary);
}

/* Mission Card - Cleaner Horizontal Look */
.sobre-mission-card {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    padding: var(--space-6);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-10);
    width: 100%;
}

.mission-icon {
    color: var(--accent);
    padding: var(--space-2);
    background: var(--accent-muted);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mission-text {
    font-size: var(--fs-base);
    color: var(--text-secondary);
    line-height: var(--lh-relaxed);
}

.mission-text strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: var(--space-1);
}

.mission-text em {
    color: var(--accent);
    font-style: normal;
    font-weight: 500;
}

/* Stats Bar - Minimalist Row */
.sobre-stats-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: var(--space-8);
    padding-bottom: var(--space-8);
    border-bottom: 1px solid var(--border);
}

.stat-minimal {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.stat-number {
    font-size: var(--fs-3xl);
    font-weight: var(--fw-bold);
    color: var(--accent);
    line-height: 1;
}

.stat-desc {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    font-weight: var(--fw-medium);
}

.stat-separator {
    width: 1px;
    height: 40px;
    background: var(--border);
    display: none;
}

@media (min-width: 768px) {
    .stat-separator {
        display: block;
    }

    .sobre-stats-bar {
        justify-content: flex-start;
        gap: var(--space-12);
    }
}

.linkedin-btn {
    align-self: flex-start;
}


/* ========================================
   DIFERENCIAÇÃO SECTION
   ======================================== */

.diferenciacao {
    background: var(--bg-secondary);
}

.diferenciacao-content {
    max-width: 800px;
    margin: 0 auto;
}

.diferenciacao-header {
    text-align: center;
    margin-bottom: var(--space-10);
}

.diferenciacao-tagline {
    font-size: var(--fs-xl);
    color: var(--text-secondary);
    margin-top: var(--space-4);
}

.diferenciacao-tagline strong {
    color: var(--accent);
    font-weight: var(--fw-semibold);
}

.diferenciacao-grid {
    margin-bottom: var(--space-10);
}

.diferenciacao-intro {
    margin-bottom: var(--space-6);
}

.intro-text {
    font-size: var(--fs-lg);
    color: var(--text-muted);
    font-weight: var(--fw-medium);
}

.vantagens-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.vantagem-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    padding: var(--space-5) var(--space-6);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.vantagem-item:hover {
    border-color: var(--accent);
    background: var(--bg-card-hover);
    transform: translateX(4px);
}

.vantagem-check {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.15) 0%, rgba(0, 240, 255, 0.05) 100%);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 50%;
    color: var(--accent);
}

.vantagem-content {
    flex: 1;
}

.vantagem-content p {
    font-size: var(--fs-base);
    color: var(--text-primary);
    margin-bottom: var(--space-1);
}

.vantagem-content p strong {
    font-weight: var(--fw-semibold);
}

.vantagem-contrast {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    font-style: italic;
}

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

.bottom-card {
    display: inline-block;
    padding: var(--space-8);
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.08) 0%, rgba(0, 240, 255, 0.02) 100%);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
}

.bottom-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.bottom-statement {
    font-size: var(--fs-lg);
    color: var(--text-secondary);
    line-height: var(--lh-relaxed);
}

.bottom-statement em {
    color: var(--text-muted);
}

.bottom-statement strong {
    color: var(--text-primary);
    font-weight: var(--fw-semibold);
    display: block;
    margin-top: var(--space-2);
    font-size: var(--fs-xl);
}

@media (min-width: 768px) {
    .bottom-statement strong {
        font-size: var(--fs-2xl);
    }
}


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

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    padding: var(--space-8);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
}

.service-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-light);
    box-shadow: var(--shadow-xl), 0 0 20px var(--accent-glow);
}

.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.1) 0%, rgba(0, 240, 255, 0.02) 100%);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-6);
    color: var(--accent);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2), inset 0 0 10px rgba(0, 240, 255, 0.05);
    transition: all var(--transition-base);
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.2) 0%, rgba(0, 240, 255, 0.05) 100%);
    border-color: rgba(0, 240, 255, 0.4);
    box-shadow: 0 10px 25px rgba(0, 240, 255, 0.15), inset 0 0 15px rgba(0, 240, 255, 0.1);
    transform: scale(1.05);
}

.service-title {
    font-size: var(--fs-xl);
    font-weight: var(--fw-semibold);
    margin-bottom: var(--space-3);
}

.service-description {
    color: var(--text-secondary);
    margin-bottom: var(--space-5);
    line-height: var(--lh-relaxed);
}

.service-features {
    margin-bottom: var(--space-5);
}

.service-features li {
    position: relative;
    padding-left: var(--space-5);
    margin-bottom: var(--space-2);
    font-size: var(--fs-sm);
    color: var(--text-secondary);
}

.service-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
}

.service-tag {
    display: inline-block;
    padding: var(--space-1) var(--space-3);
    background: var(--success-muted);
    color: var(--success);
    font-size: var(--fs-xs);
    font-weight: var(--fw-medium);
    border-radius: var(--radius-full);
}

/* ========================================
   PROJECTS SECTION
   ======================================== */

.projetos {
    background: var(--bg-secondary);
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
}

@media (min-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.project-card {
    display: flex;
    flex-direction: column;
    padding: var(--space-6);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
}

.project-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
}



@media (min-width: 768px) {
    .project-card.featured {
        grid-column: span 2;
    }
}

@media (min-width: 992px) {
    .project-card.featured {
        grid-column: span 1;
    }
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-4);
}

.project-type {
    font-size: var(--fs-xs);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.project-status {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--fs-xs);
    color: var(--text-muted);
}

.project-status .status-dot {
    width: 6px;
    height: 6px;
    background: var(--text-muted);
}

.project-status .status-dot.active {
    background: var(--success);
    animation: pulse 2s ease-in-out infinite;
}

.project-title {
    font-size: var(--fs-xl);
    font-weight: var(--fw-semibold);
    margin-bottom: var(--space-3);
}

.project-description {
    flex: 1;
    color: var(--text-secondary);
    font-size: var(--fs-sm);
    line-height: var(--lh-relaxed);
    margin-bottom: var(--space-5);
}

.project-stack {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-5);
}

.stack-tag {
    padding: var(--space-1) var(--space-3);
    background: var(--bg-elevated);
    color: var(--text-secondary);
    font-size: var(--fs-xs);
    border-radius: var(--radius-sm);
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--accent);
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    transition: gap var(--transition-fast);
}

.project-link:hover {
    gap: var(--space-3);
}

.projects-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    margin-top: var(--space-8);
    padding: var(--space-4);
    color: var(--text-muted);
    font-size: var(--fs-sm);
    text-align: center;
}

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

.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 28px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

@media (min-width: 768px) {
    .process-timeline::before {
        left: 50%;
        transform: translateX(-50%);
    }
}

.process-step {
    position: relative;
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: var(--space-6);
    margin-bottom: var(--space-8);
}

@media (min-width: 768px) {
    .process-step {
        grid-template-columns: 1fr 56px 1fr;
        text-align: right;
    }

    .process-step:nth-child(even) {
        text-align: left;
    }

    .process-step:nth-child(even) .step-content {
        order: 3;
    }
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: var(--bg-card);
    border: 2px solid var(--accent);
    border-radius: 50%;
    font-size: var(--fs-lg);
    font-weight: var(--fw-bold);
    color: var(--accent);
    z-index: 1;
}

@media (min-width: 768px) {
    .step-number {
        grid-column: 2;
    }
}

.step-content {
    padding: var(--space-6);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
}

@media (min-width: 768px) {
    .step-content {
        grid-column: 1;
    }

    .process-step:nth-child(even) .step-content {
        grid-column: 3;
    }
}

.step-title {
    font-size: var(--fs-xl);
    font-weight: var(--fw-semibold);
    margin-bottom: var(--space-3);
}

.step-description {
    color: var(--text-secondary);
    margin-bottom: var(--space-4);
    line-height: var(--lh-relaxed);
}

.step-deliverable {
    display: inline-block;
    padding: var(--space-2) var(--space-4);
    background: var(--accent-muted);
    color: var(--accent);
    font-size: var(--fs-sm);
    border-radius: var(--radius-md);
}

.step-deliverable strong {
    font-weight: var(--fw-medium);
}

/* ========================================
   STACK SECTION
   ======================================== */

.stack {
    background: var(--bg-secondary);
}

.stack-categories {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
}

@media (min-width: 768px) {
    .stack-categories {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 992px) {
    .stack-categories {
        grid-template-columns: repeat(5, 1fr);
    }
}

.stack-category {
    padding: var(--space-5);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: visible;
}

.category-title {
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    color: var(--accent);
    margin-bottom: var(--space-4);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stack-items {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    overflow: visible;
}

.stack-item {
    position: relative;
    padding: var(--space-2) var(--space-3);
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    cursor: default;
}

.stack-item:hover {
    background: var(--bg-card-hover);
    z-index: 1000;
}

.stack-item[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: var(--space-2);
    padding: var(--space-2) var(--space-3);
    background: var(--bg-primary);
    color: var(--text-secondary);
    font-size: var(--fs-xs);
    white-space: normal;
    max-width: 220px;
    text-align: center;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    z-index: 100;
    border: 1px solid var(--border);
}

.stack-name {
    font-size: var(--fs-sm);
    color: var(--text-secondary);
}

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

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

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-4);
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: var(--space-5) var(--space-6);
    text-align: left;
    font-size: var(--fs-base);
    font-weight: var(--fw-medium);
    color: var(--text-primary);
    transition: background var(--transition-fast);
}

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

.faq-icon {
    flex-shrink: 0;
    color: var(--accent);
    transition: transform var(--transition-base);
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base), padding var(--transition-base);
}

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

.faq-answer p {
    padding: 0 var(--space-6) var(--space-6);
    color: var(--text-secondary);
    line-height: var(--lh-relaxed);
}

/* ========================================
   CTA FINAL SECTION
   ======================================== */

.cta-final {
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    text-align: center;
}

.cta-content {
    max-width: 1100px;
    margin: 0 auto;
}

.cta-title,
.cta-subtitle {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-title {
    font-size: var(--fs-4xl);
    font-weight: var(--fw-bold);
    margin-bottom: var(--space-4);
}

@media (min-width: 768px) {
    .cta-title {
        font-size: var(--fs-5xl);
    }
}

.cta-subtitle {
    font-size: var(--fs-lg);
    color: var(--text-secondary);
    line-height: var(--lh-relaxed);
    margin-bottom: var(--space-8);
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.cta-note {
    color: var(--text-muted);
    font-size: var(--fs-sm);
}

/* ========================================
   CONTATO SECTION
   ======================================== */

.contato {
    background: var(--bg-secondary);
}

.contato-centered {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.contato-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-4);
    margin-top: var(--space-10);
}

.contato-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-8);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contato-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.contato-card svg {
    color: var(--accent);
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.2));
}

.contato-card:hover svg {
    transform: scale(1.1) translateY(-2px);
    filter: drop-shadow(0 0 12px rgba(0, 240, 255, 0.4));
}

.contato-card span {
    font-size: var(--fs-lg);
    font-weight: var(--fw-medium);
}

.contato-location {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    color: var(--text-muted);
}


.contato-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.contato-link:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    border-color: var(--border-light);
}

.contato-link svg {
    color: var(--accent);
}

.contato-location {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--text-muted);
    font-size: var(--fs-sm);
}

@media (max-width: 768px) {
    .contato-location {
        flex-direction: column;
        text-align: center;
        gap: var(--space-2);
    }
}

/* Scheduling Section */
.cal-embed-container {
    width: 100%;
    min-height: 580px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-top: var(--space-8);
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .cal-embed-container {
        min-height: 800px;
    }
}

/* Contact Form */
.contato-form-wrapper {
    padding: var(--space-8);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
}

.form-group {
    margin-bottom: var(--space-5);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-2);
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: var(--fs-base);
    color: var(--text-primary);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

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

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

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

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

.footer {
    padding: var(--space-8) 0;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    text-align: center;
}

.footer-copy {
    color: var(--text-muted);
    font-size: var(--fs-sm);
}

.footer-tagline {
    color: var(--text-secondary);
    font-size: var(--fs-sm);
}

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

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

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Scroll reveal - disabled to ensure visibility */
/*
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}
*/

/* ========================================
   MELHORIAS LANDING PAGE - Fase 2
   ======================================== */

/* 1.3 Hero Target - Linha cliente ideal */
.hero-target {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    margin-bottom: var(--space-6);
    font-style: italic;
    max-width: 480px;
}

/* 2.1 Acessibilidade: Reduced Motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* 2.2 Interatividade: Cursor pointer em elementos clicáveis */
.service-card,
.project-card,
.faq-item,
.vantagem-item,
.contato-card {
    cursor: pointer;
}

/* 2.3 Tipografia: Evitar orphans em títulos */
.hero-title,
.section-title,
.cta-title {
    text-wrap: balance;
}

/* 1.5 Hero Tools - Logos de ferramentas */
.hero-tools {
    margin-top: var(--space-8);
}

.tools-label {
    font-size: var(--fs-xs);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: var(--space-3);
}

.tools-logos {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.tool-tag {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-1) var(--space-3);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: var(--fs-xs);
    color: var(--text-secondary);
    font-weight: var(--fw-medium);
    transition: all var(--transition-fast);
}

.tool-tag:hover {
    border-color: var(--accent);
    background: var(--bg-card-hover);
}

.tool-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ========================================
   RESPONSIVO: LAPTOPS PEQUENOS (MacBook Air)
   ======================================== */

@media (max-width: 1440px) and (min-width: 992px) {
    .hero {
        padding-top: 120px;
    }
}

/* ========================================
   RESPONSIVO: DISPOSITIVOS MÓVEIS PEQUENOS
   ======================================== */

@media (max-width: 480px) {
    .btn-lg {
        padding: var(--space-3) var(--space-6) !important;
        font-size: var(--fs-sm) !important;
        white-space: normal !important;
        text-align: center !important;
    }

    .hero-ctas .btn {
        width: 100% !important;
        max-width: 320px !important;
        margin: 0 auto !important;
    }
}