:root {
    --night: #060d12;
    --night-2: #0c1a22;
    --pine: #143029;
    --gold: #e0c078;
    --gold-deep: #b8923f;
    --fog: rgba(232, 240, 245, 0.72);
    --white: #f2f6f8;
    --font-display: "Instrument Serif", Georgia, serif;
    --font-body: "Instrument Sans", system-ui, sans-serif;
}

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

body.theme-noite {
    font-family: var(--font-body);
    color: var(--white);
    min-height: 100vh;
    background: var(--night);
    position: relative;
    overflow-x: hidden;
}

.sky {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 70% 45% at 50% -5%, rgba(224, 192, 120, 0.12), transparent 55%),
        radial-gradient(ellipse 50% 40% at 80% 60%, rgba(20, 48, 41, 0.55), transparent 50%),
        linear-gradient(180deg, #060d12 0%, #0c1a22 48%, #102820 100%);
}

.sky-stars {
    position: absolute;
    inset: 0;
    opacity: 0.55;
    background-image:
        radial-gradient(1px 1px at 12% 18%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(1px 1px at 28% 42%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(1.5px 1.5px at 64% 22%, rgba(224, 192, 120, 0.85), transparent),
        radial-gradient(1px 1px at 78% 38%, rgba(255, 255, 255, 0.65), transparent),
        radial-gradient(1px 1px at 45% 12%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1px 1px at 88% 14%, rgba(255, 255, 255, 0.55), transparent),
        radial-gradient(1.5px 1.5px at 35% 28%, rgba(255, 255, 255, 0.75), transparent);
    animation: twinkle 6s ease-in-out infinite alternate;
}

.sky-horizon {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 35%;
    background: linear-gradient(180deg, transparent, rgba(8, 20, 18, 0.85));
}

.theme-back {
    position: fixed;
    top: 18px;
    left: 18px;
    z-index: 20;
    color: var(--fog);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 8px 12px;
    border: 1px solid rgba(224, 192, 120, 0.25);
    border-radius: 4px;
    background: rgba(6, 13, 18, 0.55);
    backdrop-filter: blur(8px);
    transition: border-color 0.2s ease, color 0.2s ease;
}

.theme-back:hover {
    color: var(--gold);
    border-color: rgba(224, 192, 120, 0.55);
}

main {
    position: relative;
    z-index: 1;
    width: min(760px, 100%);
    margin: 0 auto;
    padding: 96px 24px 88px;
    text-align: center;
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    min-height: calc(100vh - 200px);
    justify-content: center;
    animation: fade-up 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.eyebrow {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    animation: fade-up 0.9s ease 0.08s both;
}

.brand-mark {
    width: min(260px, 70vw);
    height: auto;
    filter: drop-shadow(0 0 40px rgba(224, 192, 120, 0.15));
    animation: fade-up 0.9s ease 0.15s both;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 7vw, 3.8rem);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -0.02em;
    max-width: 14ch;
    color: var(--white);
    animation: fade-up 0.9s ease 0.25s both;
}

.lede {
    font-size: 1.08rem;
    line-height: 1.55;
    color: var(--fog);
    max-width: 38ch;
    animation: fade-up 0.9s ease 0.35s both;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: center;
    margin-top: 8px;
    animation: fade-up 0.9s ease 0.45s both;
}

.btn-cta {
    display: inline-flex;
    padding: 15px 32px;
    background: var(--gold);
    color: #1a1408;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 2px;
    letter-spacing: 0.02em;
    box-shadow: 0 0 0 1px rgba(224, 192, 120, 0.3), 0 14px 36px rgba(0, 0, 0, 0.35);
    transition: transform 0.25s ease, background 0.2s ease, box-shadow 0.25s ease;
}

.btn-cta:hover {
    transform: translateY(-2px);
    background: #edd092;
    box-shadow: 0 0 0 1px rgba(224, 192, 120, 0.5), 0 18px 44px rgba(0, 0, 0, 0.4);
}

.btn-secondary-noite {
    display: inline-flex;
    padding: 14px 22px;
    color: var(--gold);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: 1px solid rgba(224, 192, 120, 0.4);
    border-radius: 2px;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-secondary-noite:hover {
    border-color: var(--gold);
    background: rgba(224, 192, 120, 0.1);
}

.how {
    margin-top: 56px;
    padding-top: 40px;
    border-top: 1px solid rgba(224, 192, 120, 0.18);
    animation: fade-up 0.8s ease 0.55s both;
}

.how h2 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 400;
    margin-bottom: 28px;
    color: var(--gold);
}

.how-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    text-align: left;
}

.how-row article {
    padding: 16px 0;
    border-top: 1px solid rgba(242, 246, 248, 0.12);
}

.how-row span {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    color: var(--gold-deep);
    margin-bottom: 10px;
    font-weight: 600;
}

.how-row h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 400;
    margin-bottom: 6px;
}

.how-row p {
    font-size: 0.9rem;
    color: var(--fog);
    line-height: 1.4;
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes twinkle {
    from { opacity: 0.4; }
    to { opacity: 0.7; }
}

@media (max-width: 720px) {
    main {
        padding: 100px 20px 72px;
    }

    .hero {
        min-height: auto;
        padding: 24px 0 40px;
    }

    .how-row {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 420px) {
    .how-row {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}


.site-nav {
    position: fixed;
    top: 18px;
    left: 18px;
    right: 18px;
    z-index: 20;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    pointer-events: none;
}

.site-nav .theme-back,
.site-nav .theme-chrome-links {
    pointer-events: auto;
}

.site-nav .theme-back {
    position: static;
}

.theme-chrome-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
