/* ===== TSAR TEC - LANDING PAGE STYLES ===== */

/* ===== CSS Variables ===== */
:root {
    /* Colors */
    --color-bg-dark: #0a0a0a;
    --color-bg-dark-secondary: #111111;
    --color-bg-light: #f8f9fa;
    --color-bg-white: #ffffff;
    
    --color-primary: #22c55e;
    --color-primary-dark: #16a34a;
    --color-primary-light: #4ade80;
    --color-primary-glow: rgba(34, 197, 94, 0.3);
    
    --color-text-dark: #1f2937;
    --color-text-gray: #6b7280;
    --color-text-light: #f9fafb;
    --color-text-muted: #9ca3af;
    
    --color-border: rgba(255, 255, 255, 0.1);
    --color-border-light: rgba(0, 0, 0, 0.08);
    
    /* Typography */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Sizes */
    --container-max: 1200px;
    --header-height: 80px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 40px var(--color-primary-glow);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

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

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

ul {
    list-style: none;
}

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

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

input,
textarea {
    font-family: inherit;
    font-size: inherit;
}

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

.section__badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--color-primary-glow), transparent);
    border: 1px solid var(--color-primary);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.section__title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section__title span {
    color: var(--color-primary);
}

.section__subtitle {
    font-size: 1.125rem;
    color: var(--color-text-gray);
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all var(--transition-normal);
    cursor: pointer;
}

.btn--primary {
    background: var(--color-primary);
    color: var(--color-bg-dark);
    box-shadow: var(--shadow-glow);
}

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

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

.btn--secondary:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn--full {
    width: 100%;
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    z-index: 1000;
    transition: all var(--transition-normal);
}

.header.scrolled {
    background: rgba(10, 10, 10, 0.95);
}

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

.nav__logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    gap: 0.25rem;
}

.logo-tsar {
    color: var(--color-text-light);
}

.logo-tec {
    color: var(--color-primary);
}

.nav__list {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav__link {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    transition: color var(--transition-fast);
    position: relative;
}

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

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

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

.nav__link--cta {
    padding: 0.75rem 1.5rem;
    background: var(--color-primary);
    color: var(--color-bg-dark) !important;
    border-radius: 8px;
    font-weight: 600;
}

.nav__link--cta::after {
    display: none;
}

.nav__link--cta:hover {
    background: var(--color-primary-light);
}

.nav__toggle,
.nav__close {
    display: none;
    color: var(--color-text-light);
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--color-bg-dark);
    padding-top: var(--header-height);
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero__grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(34, 197, 94, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34, 197, 94, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 50% at 50% 0%, #000 70%, transparent 100%);
}

.hero__bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 20%, var(--color-primary-glow) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(34, 197, 94, 0.1) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 4rem 0;
}

.hero__badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 100px;
    font-size: 0.875rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.6s ease forwards;
}

.hero__title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.6s ease 0.1s forwards;
    opacity: 0;
}

.hero__title--highlight {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__description {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
    animation: fadeInUp 0.6s ease 0.2s forwards;
    opacity: 0;
}

.hero__buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease 0.3s forwards;
    opacity: 0;
}

.hero__scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    animation: fadeIn 0.6s ease 0.5s forwards;
    opacity: 0;
}

.hero__scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--color-primary), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0%, 100% { transform: scaleY(1); opacity: 1; }
    50% { transform: scaleY(0.5); opacity: 0.5; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===== Sobre Section ===== */
.sobre {
    padding: 6rem 0;
    background: var(--color-bg-light);
    text-align: center;
}

.sobre__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.sobre__card {
    background: var(--color-bg-white);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    border: 1px solid var(--color-border-light);
    text-align: left;
    transition: all var(--transition-normal);
    opacity: 0;
    transform: translateY(30px);
}

.sobre__card.revealed {
    opacity: 1;
    transform: translateY(0);
}

.sobre__card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}

.sobre__card-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary-glow), transparent);
    border-radius: 16px;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.sobre__card-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--color-text-dark);
}

.sobre__card-text {
    color: var(--color-text-gray);
    line-height: 1.7;
}

/* ===== Serviços Section ===== */
.servicos {
    padding: 6rem 0;
    background: var(--color-bg-white);
    text-align: center;
}

.servicos__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.servico__card {
    background: var(--color-bg-light);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--color-border-light);
    text-align: left;
    transition: all var(--transition-normal);
    opacity: 0;
    transform: translateY(30px);
}

.servico__card.revealed {
    opacity: 1;
    transform: translateY(0);
}

.servico__card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}

.servico__card--featured {
    background: var(--color-bg-dark);
    border-color: var(--color-primary);
    grid-column: span 2;
}

.servico__card--featured .servico__card-title,
.servico__card--featured .servico__card-text,
.servico__card--featured .servico__card-features li {
    color: var(--color-text-light);
}

.servico__card--featured .servico__card-features li::before {
    color: var(--color-primary);
}

.servico__card-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary-glow), transparent);
    border-radius: 16px;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.servico__card-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--color-text-dark);
}

.servico__card-text {
    color: var(--color-text-gray);
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.servico__card-features {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.servico__card-features li {
    font-size: 0.875rem;
    color: var(--color-text-gray);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.servico__card-features li::before {
    content: '✓';
    color: var(--color-primary);
    font-weight: 600;
}

/* ===== Público Section ===== */
.publico {
    padding: 6rem 0;
    background: var(--color-bg-dark);
    text-align: center;
}

.publico .section__badge {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
}

.publico .section__title {
    color: var(--color-text-light);
}

.publico__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.publico__item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all var(--transition-normal);
    opacity: 0;
    transform: translateY(30px);
}

.publico__item.revealed {
    opacity: 1;
    transform: translateY(0);
}

.publico__item:hover {
    background: rgba(34, 197, 94, 0.05);
    border-color: var(--color-primary);
    transform: translateY(-5px);
}

.publico__icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.publico__item h3 {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text-light);
    margin-bottom: 0.75rem;
}

.publico__item p {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* ===== Diferenciais Section ===== */
.diferenciais {
    padding: 6rem 0;
    background: var(--color-bg-light);
    text-align: center;
}

.diferenciais__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.diferencial__item {
    background: var(--color-bg-white);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--color-border-light);
    text-align: left;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
    opacity: 0;
    transform: translateY(30px);
}

.diferencial__item.revealed {
    opacity: 1;
    transform: translateY(0);
}

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

.diferencial__number {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    color: rgba(34, 197, 94, 0.1);
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    line-height: 1;
}

.diferencial__title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text-dark);
    margin-bottom: 0.75rem;
}

.diferencial__text {
    color: var(--color-text-gray);
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

/* ===== Contato Section ===== */
.contato {
    padding: 6rem 0;
    background: var(--color-bg-dark);
    text-align: center;
}

.contato .section__badge {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
}

.contato .section__title {
    color: var(--color-text-light);
}

.contato__cta {
    max-width: 600px;
    margin: 0 auto;
}

.contato__text {
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    line-height: 1.7;
    font-size: 1.125rem;
}

.contato__features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem 3rem;
    margin-bottom: 3rem;
}

.contato__feature {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    color: var(--color-text-light);
    font-weight: 500;
    font-size: 1rem;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
}

.contato__feature svg {
    color: var(--color-primary);
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.btn--whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.25rem 2.5rem;
    background: #25D366;
    color: white;
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 16px;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
}

.btn--whatsapp:hover {
    background: #20bd5a;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
}

.btn--whatsapp svg {
    flex-shrink: 0;
}

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

.footer__content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--color-border);
}

.footer__tagline {
    color: var(--color-text-muted);
    margin-top: 1rem;
    font-size: 0.9375rem;
}

.footer__links h4,
.footer__services h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}

.footer__links ul,
.footer__services ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer__links a,
.footer__services li {
    color: var(--color-text-muted);
    font-size: 0.9375rem;
    transition: color var(--transition-fast);
}

.footer__links a:hover {
    color: var(--color-primary);
}

.footer__bottom {
    padding-top: 2rem;
    text-align: center;
}

.footer__bottom p {
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

/* ===== WhatsApp Float ===== */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all var(--transition-normal);
    z-index: 999;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .sobre__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .sobre__card:last-child {
        grid-column: span 2;
    }
    
    .servicos__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .servico__card--featured {
        grid-column: span 2;
    }
    
    .publico__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }
    
    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: var(--color-bg-dark);
        border-left: 1px solid var(--color-border);
        padding: 6rem 2rem 2rem;
        transition: right var(--transition-normal);
        z-index: 100;
    }
    
    .nav__menu.show-menu {
        right: 0;
    }
    
    .nav__list {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    
    .nav__link {
        font-size: 1.125rem;
    }
    
    .nav__link--cta {
        width: 100%;
        text-align: center;
    }
    
    .nav__close {
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
    }
    
    .nav__toggle,
    .nav__close {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
    }
    
    .hero__content {
        padding: 3rem 0;
    }
    
    .hero__buttons {
        flex-direction: column;
    }
    
    .hero__buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero__scroll {
        display: none;
    }
    
    .sobre__grid,
    .servicos__grid,
    .diferenciais__grid {
        grid-template-columns: 1fr;
    }
    
    .sobre__card:last-child,
    .servico__card--featured {
        grid-column: span 1;
    }
    
    .publico__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .contato__features {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .contato__feature {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .btn--whatsapp {
        width: 100%;
    }
    
    .footer__content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer__brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .whatsapp-float {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 55px;
        height: 55px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero__title {
        font-size: 2rem;
    }
    
    .section__title {
        font-size: 1.75rem;
    }
    
    .publico__grid {
        grid-template-columns: 1fr;
    }
    
    .publico__item {
        padding: 1.5rem;
    }
    
    .contato__form {
        padding: 1.5rem;
    }
}

/* ===== Scroll Reveal Animation ===== */
[data-reveal] {
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* ===== Form Success State ===== */
.form--success {
    text-align: center;
    padding: 3rem 2rem;
}

.form--success h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.form--success p {
    color: var(--color-text-gray);
}

