/* ===================================
   ZÊNITE DIGITAL - Main Stylesheet
   =================================== */

/* CSS Custom Properties / Design Tokens */
:root {
    /* Colors - Primary Palette (Based on Zênite Digital Logo) */
    --color-primary: #1e3a5f;
    /* Azul marinho escuro */
    --color-primary-light: #2a4d7a;
    --color-primary-dark: #152a45;
    --color-secondary: #2dd4bf;
    /* Turquesa/Teal */
    --color-secondary-light: #5eead4;
    --color-secondary-dark: #14b8a6;
    --color-accent: #2dd4bf;

    /* Gradient */
    --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    --gradient-hero: linear-gradient(135deg, #0a1628 0%, #1e3a5f 50%, #0a1628 100%);

    /* Neutral Colors */
    --color-white: #ffffff;
    --color-gray-50: #f9fafb;
    --color-gray-100: #f3f4f6;
    --color-gray-200: #e5e7eb;
    --color-gray-300: #d1d5db;
    --color-gray-400: #9ca3af;
    --color-gray-500: #6b7280;
    --color-gray-600: #4b5563;
    --color-gray-700: #374151;
    --color-gray-800: #1f2937;
    --color-gray-900: #111827;
    --color-black: #030712;

    /* Typography */
    --font-primary: 'Outfit', sans-serif;
    --font-secondary: 'Inter', sans-serif;

    /* Font Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;
    --text-7xl: 4.5rem;

    /* Font Weights */
    --font-light: 300;
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    --font-extrabold: 800;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;

    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-glow: 0 0 40px rgba(45, 212, 191, 0.3);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 500ms ease;

    /* Container */
    --container-max: 1200px;
    --container-padding: 1.5rem;

    /* Header */
    --header-height: 5rem;
}

/* ===================================
   RESET & BASE STYLES
   =================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-secondary);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--color-gray-800);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

ul,
ol {
    list-style: none;
}

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

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

/* ===================================
   UTILITIES
   =================================== */
.icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: rgba(45, 212, 191, 0.1);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-4);
    color: var(--color-secondary);
    transition: var(--transition-normal);
}

.section-title {
    font-family: var(--font-primary);
    font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
    /* Padronizando para o maior */
    font-weight: var(--font-bold);
    color: var(--color-primary);
    margin-bottom: var(--space-6);
    line-height: 1.2;
}

.section-subtitle {
    font-family: var(--font-secondary);
    font-size: var(--text-lg);
    color: var(--color-gray-600);
}


.main {
    overflow: hidden;
}

/* ===================================
   HEADER / NAVIGATION
   =================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.nav__logo {
    font-family: var(--font-primary);
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: var(--transition-normal);
}

.nav__logo:hover {
    transform: scale(1.02);
}

.nav__menu {
    display: flex;
    gap: var(--space-8);
}

.nav__link {
    font-family: var(--font-primary);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--color-gray-300);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: var(--transition-normal);
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-normal);
}

.nav__link:hover {
    color: var(--color-white);
}

.nav__link:hover::after {
    width: 100%;
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-2);
}

.nav__toggle-icon,
.nav__toggle-icon::before,
.nav__toggle-icon::after {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-white);
    transition: var(--transition-normal);
}

.nav__toggle-icon {
    position: relative;
}

.nav__toggle-icon::before,
.nav__toggle-icon::after {
    content: '';
    position: absolute;
    left: 0;
}

.nav__toggle-icon::before {
    top: -7px;
}

.nav__toggle-icon::after {
    top: 7px;
}

/* ===================================
   HERO SECTION
   =================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-white);
    padding-top: var(--header-height);
    overflow: hidden;
}

/* Animated background elements */
.hero::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 20%;
    right: 10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(30, 58, 95, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite reverse;
}

@keyframes float {

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

    50% {
        transform: translateY(-30px) scale(1.05);
    }
}

.hero__container {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    padding: var(--space-8);
}

.hero__title {
    font-family: var(--font-primary);
    font-size: clamp(var(--text-3xl), 5vw, var(--text-6xl));
    font-weight: var(--font-extrabold);
    color: var(--color-primary);
    line-height: 1.2;
    margin-bottom: var(--space-6);
}

.hero__title-static {
    display: block;
    margin-bottom: var(--space-2);
}

.hero__title-dynamic {
    display: inline-block;
    position: relative;
}

.hero__title-dynamic .typed-text {
    color: var(--color-secondary);
}

/* Typing cursor */
.hero__title-dynamic .cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background: var(--color-secondary);
    margin-left: 4px;
    animation: blink 1s step-end infinite;
    vertical-align: middle;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

.hero__subtitle {
    font-family: var(--font-secondary);
    font-size: clamp(var(--text-lg), 2vw, var(--text-xl));
    font-weight: var(--font-normal);
    color: var(--color-gray-600);
    max-width: 600px;
    margin: 0 auto var(--space-10);
    line-height: 1.7;
}

.hero__cta {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-8);
    font-family: var(--font-primary);
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    border-radius: var(--radius-full);
    transition: var(--transition-normal);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn--primary {
    background: var(--color-primary);
    color: var(--color-white);
    box-shadow: 0 4px 20px rgba(30, 58, 95, 0.3);
}

.btn--primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(30, 58, 95, 0.4);
    background: var(--color-primary-light);
}

.btn--outline {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn--outline:hover {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-3px);
}

.hero__scroll {
    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(--color-gray-500);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    animation: bounce 2s ease-in-out infinite;
}

.hero__scroll-icon {
    width: 24px;
    height: 40px;
    border: 2px solid var(--color-gray-300);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.hero__scroll-icon::before {
    content: '';
    width: 4px;
    height: 8px;
    background: var(--color-secondary);
    border-radius: 2px;
    animation: scroll-wheel 2s ease-in-out infinite;
}

@keyframes bounce {

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

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

@keyframes scroll-wheel {

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

    50% {
        opacity: 0.3;
        transform: translateY(8px);
    }
}

/* ===================================
   STATS SECTION
   =================================== */
.stats {
    background: linear-gradient(135deg, #0a1628 0%, #1e3a5f 100%);
    padding: var(--space-10) 0;
    position: relative;
    overflow: hidden;
}

/* Subtle background overlay */
.stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.stats__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
    position: relative;
    z-index: 1;
}

.stats__item {
    text-align: center;
    padding: var(--space-6);
}

/* .stats__icon styles moved to .icon-box */

.stats__item:hover .stats__icon {
    background: rgba(45, 212, 191, 0.2);
    transform: scale(1.1);
}

.stats__number {
    font-family: var(--font-primary);
    font-size: clamp(var(--text-4xl), 5vw, var(--text-5xl));
    font-weight: var(--font-extrabold);
    color: var(--color-white);
    margin-bottom: var(--space-2);
    line-height: 1;
}

.stats__label {
    font-family: var(--font-secondary);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--color-gray-400);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ===================================
   SPECIALISTS SECTION
   =================================== */
.specialists {
    background: var(--color-gray-50);
    padding: var(--space-20) 0;
}

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

.specialists__title {
    margin-bottom: var(--space-4);
}

/* .specialists__subtitle styles moved to .section-subtitle */

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

.specialists__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--color-white);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    text-align: center;
    transition: var(--transition-normal);
    border: 1px solid var(--color-gray-200);
}

.specialists__card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-secondary);
}


.specialists__card:hover .specialists__icon {
    background: var(--color-secondary);
    color: var(--color-white);
}

.specialists__name {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    color: var(--color-primary);
}

.specialists__cta {
    text-align: center;
    margin-top: var(--space-10);
}

/* ===================================
   GROW SECTION
   =================================== */
.grow {
    background: var(--color-white);
    padding: var(--space-20) 0;
}

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

.grow__content {
    padding-right: var(--space-8);
}


.grow__text {
    font-family: var(--font-secondary);
    font-size: var(--text-lg);
    color: var(--color-gray-600);
    line-height: 1.8;
    margin-bottom: var(--space-4);
}

.grow__text:last-of-type {
    margin-bottom: var(--space-8);
}

.grow__image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.grow__image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-xl);
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    background: var(--color-gray-900);
    padding: var(--space-8) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer__content {
    text-align: center;
}

.footer__copy {
    font-size: var(--text-sm);
    color: var(--color-gray-500);
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media screen and (max-width: 768px) {
    :root {
        --container-padding: 1rem;
    }

    .nav__menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: rgba(10, 22, 40, 0.98);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: var(--space-8);
        transform: translateX(-100%);
        transition: var(--transition-normal);
    }

    .nav__menu.active {
        transform: translateX(0);
    }

    .nav__toggle {
        display: flex;
    }

    .hero__container {
        padding: var(--space-4);
    }

    .hero__cta {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
    }

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

    .stats__item {
        padding: var(--space-4);
    }

    .stats__number {
        font-size: var(--text-3xl);
    }

    .specialists__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-4);
    }

    .specialists__card {
        padding: var(--space-4);
    }

    .specialists__icon {
        width: 48px;
        height: 48px;
    }

    .specialists__icon svg {
        width: 24px;
        height: 24px;
    }

    .grow__grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .grow__content {
        padding-right: 0;
        text-align: center;
    }

    .grow__image {
        order: -1;
    }
}

@media screen and (max-width: 480px) {
    .hero__title {
        font-size: var(--text-2xl);
    }

    .hero__subtitle {
        font-size: var(--text-base);
    }
}