:root {
    --grid-angle: 65deg;
    --cell-size: 50px;
    --opacity: 0.4;
    --light-line: #4a4a4a;
    --dark-line: #2a2a2a;
    --grid-width: 40;
    --grid-height: 40;
    --grid-stroke: #D4AF37;
    --grid-fill: rgba(212, 175, 55, 0.15);
    --grid-glow: rgba(212, 175, 55, 0.4);
    --star-color: rgba(212, 175, 55, 0.8);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html {
    background-color: #000;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    background-color: #000;
    color: #fff;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.dark {
    background-color: #000;
    color: #fff;
}

.hero-container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    background-color: #000;
}

.bg-gradient {
    position: absolute;
    top: 0;
    z-index: 0;
    height: 100vh;
    width: 100vw;
    background-color: #000;
    background-image: 
        radial-gradient(ellipse 80% 80% at 50% 50%, rgba(212, 175, 55, 0.15), rgba(0, 0, 0, 1) 70%),
        radial-gradient(circle at 20% 20%, rgba(212, 175, 55, 0.05), transparent 20%),
        radial-gradient(circle at 80% 30%, rgba(212, 175, 55, 0.05), transparent 20%);
}

.retro-grid {
    display: none;
}

.grid-inner {
    display: none;
}

.grid-lines {
    display: none;
}

.grid-pattern {
    pointer-events: none;
    position: absolute;
    inset: 0;
    height: 100%;
    width: 100%;
    z-index: 1;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.grid-pattern-svg {
    position: absolute;
    height: 150%;
    width: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) skewY(12deg);
    fill: var(--grid-fill);
    stroke: var(--grid-stroke);
    mask-image: 
        radial-gradient(800px circle at center, white 30%, rgba(255, 255, 255, 0.3) 60%, transparent 75%),
        radial-gradient(200px circle at 25% 15%, white 0%, transparent 100%),
        radial-gradient(180px circle at 80% 15%, white 0%, transparent 100%),
        radial-gradient(150px circle at 15% 50%, white 0%, transparent 100%),
        radial-gradient(180px circle at 85% 50%, white 0%, transparent 100%),
        radial-gradient(150px circle at 20% 85%, white 0%, transparent 100%),
        radial-gradient(130px circle at 75% 80%, white 0%, transparent 100%),
        radial-gradient(100px circle at 40% 70%, white 0%, transparent 100%),
        radial-gradient(120px circle at 65% 25%, white 0%, transparent 100%);
    -webkit-mask-image: 
        radial-gradient(800px circle at center, white 30%, rgba(255, 255, 255, 0.3) 60%, transparent 75%),
        radial-gradient(200px circle at 25% 15%, white 0%, transparent 100%),
        radial-gradient(180px circle at 80% 15%, white 0%, transparent 100%),
        radial-gradient(150px circle at 15% 50%, white 0%, transparent 100%),
        radial-gradient(180px circle at 85% 50%, white 0%, transparent 100%),
        radial-gradient(150px circle at 20% 85%, white 0%, transparent 100%),
        radial-gradient(130px circle at 75% 80%, white 0%, transparent 100%),
        radial-gradient(100px circle at 40% 70%, white 0%, transparent 100%),
        radial-gradient(120px circle at 65% 25%, white 0%, transparent 100%);
    -webkit-mask-composite: source-over;
    mask-composite: add;
    animation: floatGrid 20s ease-in-out infinite alternate;
}

@keyframes floatGrid {
    0% {
        transform: translate(-50%, -50%) skewY(12deg) translateY(-5px);
    }
    50% {
        transform: translate(-50%, -50%) skewY(12.5deg) translateY(5px);
    }
    100% {
        transform: translate(-50%, -50%) skewY(11.5deg) translateY(-5px);
    }
}

.grid-squares {
    overflow: visible;
}

.grid-square {
    stroke-width: 0;
    fill: rgba(212, 175, 55, 0.25);
    filter: drop-shadow(0 0 5px var(--grid-glow));
    transition: all 0.5s ease;
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image: none;
}

.dark .grid-overlay {
    background-image: none;
}

.hero-content {
    max-width: 1280px;
    z-index: 10;
    margin: 0 auto;
    padding: 0;
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
}

.content-wrapper {
    max-width: 768px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.title-tag {
    font-size: 0.875rem;
    color: #666;
    margin: 0 auto;
    margin-top: 5rem;
    padding: 0.5rem 1.25rem;
    background: linear-gradient(to right top, rgba(201, 201, 201, 0.2), rgba(169, 169, 169, 0.2), transparent);
    border: 2px solid rgba(0, 0, 0, 0.05);
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    width: fit-content;
}

.dark .title-tag {
    color: #aaa;
    background: linear-gradient(to right top, rgba(201, 201, 201, 0.05), rgba(169, 169, 169, 0.05), transparent);
    border: 2px solid rgba(255, 255, 255, 0.05);
}

.chevron-right {
    width: 1rem;
    height: 1rem;
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.title-tag:hover .chevron-right {
    transform: translateX(4px);
}

.hero-title {
    font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-style: normal;
    font-weight: 700;
    font-size: 60px;
    line-height: 60px;
    background: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.75) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.dark .hero-title {
    font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-style: normal;
    font-weight: 700;
    font-size: 60px;
    line-height: 60px;
    background: linear-gradient(180deg, #FFF 0%, rgba(255, 255, 255, 0.00) 202.08%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.gradient-text {
    background: linear-gradient(to right, #D4AF37, #B8860B);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.dark .gradient-text {
    background: linear-gradient(to right, #FFD700, #D4AF37);
    -webkit-background-clip: text;
    background-clip: text;
}

.description {
    max-width: 42rem;
    margin: 0 auto;
    color: #666;
    font-size: 1rem;
}

.dark .description {
    color: #ccc;
}

.cta-container {
    margin-top: 1rem;
    position: relative;
    display: inline-block;
    overflow: hidden;
    border-radius: 9999px;
    padding: 1.5px;
}

.cta-animation {
    position: absolute;
    inset: -1000%;
    background: conic-gradient(from 90deg at 50% 50%, #D4AF37 0%, #B8860B 50%, #D4AF37 100%);
    animation: spin 2s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.cta-button-wrapper {
    display: inline-flex;
    height: 100%;
    width: 100%;
    border-radius: 9999px;
    background-color: white;
    backdrop-filter: blur(3px);
}

.dark .cta-button-wrapper {
    background-color: #0f0f0f;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 1rem 2.5rem;
    border-radius: 9999px;
    background: linear-gradient(to right top, rgba(201, 201, 201, 0.2), rgba(212, 175, 55, 0.3), transparent);
    color: #111;
    text-decoration: none;
    font-weight: 500;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.dark .cta-button {
    background: linear-gradient(to right top, rgba(201, 201, 201, 0.05), rgba(212, 175, 55, 0.2), transparent);
    color: white;
    border: 1px solid #333;
}

.cta-button:hover {
    background: linear-gradient(to right top, rgba(201, 201, 201, 0.3), rgba(212, 175, 55, 0.4), transparent);
}

.dark .cta-button:hover {
    background: linear-gradient(to right top, rgba(201, 201, 201, 0.1), rgba(212, 175, 55, 0.3), transparent);
}

.bottom-image {
    margin-top: 8rem;
    padding: 0 2.5rem;
    position: relative;
    z-index: 10;
}

.bottom-image img {
    width: 100%;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.light-image {
    border: 1px solid #e2e8f0;
    display: block;
}

.dark-image {
    border: 1px solid #334155;
    display: none;
}

.dark .light-image {
    display: none;
}

.dark .dark-image {
    display: block;
}

@media (min-width: 768px) {
    .hero-title {
        font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
        font-style: normal;
        font-weight: 700;
        font-size: 60px;
        line-height: 60px;
    }
}

/* Media queries para mobile */
@media (max-width: 767px) {
    .hero-container {
        min-height: 100vh;
        min-height: 100dvh;
    }

    .bg-gradient {
        width: 100%;
        height: 100%;
    }

    .hero-content {
        padding: 1rem;
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        display: flex;
        align-items: flex-start;
        justify-content: center;
        min-height: 100vh;
        min-height: 100dvh;
        padding-top: 4rem;
    }

    .content-wrapper {
        padding: 2rem 0;
        gap: 1rem;
    }

    .hero-title {
        font-size: 32px;
        line-height: 36px;
        font-weight: 700;
    }

    .dark .hero-title {
        font-size: 32px;
        line-height: 36px;
        font-weight: 700;
    }

    .title-tag {
        font-size: 0.75rem;
        padding: 0.375rem 1rem;
    }

    .description {
        font-size: 0.875rem;
        padding: 0 1rem;
    }

    .cta-button {
        padding: 0.875rem 2rem;
        font-size: 0.875rem;
    }

    .bottom-image {
        margin-top: 4rem;
        padding: 0 1rem;
    }

    .grid-pattern-svg {
        transform: translate(-50%, -50%) skewY(12deg) scale(1.2);
    }

    @keyframes floatGrid {
        0% {
            transform: translate(-50%, -50%) skewY(12deg) translateY(-5px) scale(1.2);
        }
        50% {
            transform: translate(-50%, -50%) skewY(12.5deg) translateY(5px) scale(1.2);
        }
        100% {
            transform: translate(-50%, -50%) skewY(11.5deg) translateY(-5px) scale(1.2);
        }
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
        line-height: 32px;
        font-weight: 700;
    }

    .dark .hero-title {
        font-size: 28px;
        line-height: 32px;
        font-weight: 700;
    }

    .description {
        font-size: 0.813rem;
    }

    .grid-pattern-svg {
        transform: translate(-50%, -50%) skewY(12deg) scale(1);
    }

    @keyframes floatGrid {
        0% {
            transform: translate(-50%, -50%) skewY(12deg) translateY(-5px) scale(1);
        }
        50% {
            transform: translate(-50%, -50%) skewY(12.5deg) translateY(5px) scale(1);
        }
        100% {
            transform: translate(-50%, -50%) skewY(11.5deg) translateY(-5px) scale(1);
        }
    }
}

/* Estrelas cintilantes */
.stars-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.star {
    position: absolute;
    background-color: var(--star-color);
    border-radius: 50%;
    filter: blur(0.5px);
    opacity: 0;
    animation: twinkle var(--duration) ease-in-out infinite var(--delay);
}

@keyframes twinkle {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    50% {
        opacity: var(--opacity);
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.5);
    }
}