/* ============================================
   VARIÁVEIS & RESET
   ============================================ */
:root {
    --bg: #08080b;
    --bg-elevated: #0e0e14;
    --surface: #131319;
    --surface-hover: #1a1a23;
    --border: #1f1f2e;
    --border-subtle: #161622;
    --text: #e4e4ec;
    --text-secondary: #ababbe;
    --text-muted: #8181a0;
    --accent: #7c6cf0;
    --accent-bright: #9485ff;
    --accent-dim: #5a4dcf;
    --accent-glow: rgba(124, 108, 240, 0.15);
    --accent-glow-strong: rgba(124, 108, 240, 0.3);
    --success: #34d399;
    --error: #f87171;
    --warning: #fbbf24;
    --radius: 12px;
    --radius-lg: 20px;
    --font-body: 'DM Sans', system-ui, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: var(--accent);
    color: #fff;
}

a {
    color: var(--accent-bright);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #fff;
}

/* ============================================
   NOISE TEXTURE OVERLAY
   ============================================ */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
}

/* ============================================
   FOCUS STYLES
   ============================================ */
:focus-visible {
    outline: 2px solid var(--accent-bright);
    outline-offset: 2px;
}

/* ============================================
   NAVBAR
   ============================================ */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 0 32px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(8, 8, 11, 0.8);
    backdrop-filter: blur(20px) saturate(1.2);
    border-bottom: 1px solid var(--border-subtle);
}

.logo {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.logo-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon img {
    width: 28px;
    height: 24px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--text);
}

.nav-links .nav-cta {
    background: var(--accent);
    color: #fff;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    transition: all 0.2s;
}

.nav-links .nav-cta:hover {
    background: var(--accent-bright);
    color: #fff;
    transform: translateY(-1px);
}

/* --- Mobile hamburger --- */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO
   ============================================ */
.hero {
    padding: 160px 32px 100px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: min(600px, 100vw);
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 6px 16px 6px 8px;
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    animation: fadeDown 0.6s ease;
}

.hero-badge .dot {
    width: 8px;
    height: 8px;
    background: var(--accent-bright);
    border-radius: 50%;
    animation: pulse-dot 2s ease infinite;
}

h1 {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 6vw, 4.2rem);
    line-height: 1.1;
    letter-spacing: 0.01em;
    margin-bottom: 24px;
    animation: fadeUp 0.7s ease;
}

h1 em {
    font-style: italic;
    color: var(--accent-bright);
    white-space: nowrap;
}

.hero-sub {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.75;
    animation: fadeUp 0.8s ease;
}

.hero-ctas {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeUp 0.9s ease;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    border: none;
    transition: all 0.25s;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 0 0 0 var(--accent-glow-strong), 0 4px 20px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover {
    background: var(--accent-bright);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 0 30px var(--accent-glow-strong), 0 8px 30px rgba(0, 0, 0, 0.4);
}

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

.btn-ghost:hover {
    color: var(--text);
    border-color: var(--text-muted);
    background: var(--surface);
}

/* ============================================
   SECTION COMMON
   ============================================ */
section {
    padding: 100px 32px;
}

.section-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-bright);
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 1.15;
    letter-spacing: 0.01em;
    margin-bottom: 16px;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 520px;
    line-height: 1.7;
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 60px;
}

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

/* ============================================
   HOW IT WORKS
   ============================================ */
.steps {
    background: var(--bg-elevated);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    max-width: 1000px;
    margin: 0 auto;
    background: var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.step {
    background: var(--surface);
    padding: 44px 36px;
    position: relative;
}

.step-number {
    font-family: var(--font-display);
    font-size: 3.5rem;
    color: var(--accent);
    opacity: 0.2;
    line-height: 1;
    margin-bottom: 16px;
}

.step h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.step p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.65;
}

/* ============================================
   FEATURES
   ============================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 36px;
    transition: all 0.3s;
}

.feature-card:hover {
    border-color: var(--border);
    transform: translateY(-3px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: var(--accent-glow);
    border: 1px solid rgba(124, 108, 240, 0.15);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-bright);
    margin-bottom: 22px;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.7;
}

/* ============================================
   USE CASES
   ============================================ */
.use-cases {
    background: var(--bg-elevated);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 1000px;
    margin: 0 auto;
}

.case-card {
    background: var(--surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 36px 28px;
    text-align: center;
    transition: all 0.3s;
}

.case-card:hover {
    border-color: var(--accent);
    background: rgba(124, 108, 240, 0.04);
}

.case-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-glow);
    border: 1px solid rgba(124, 108, 240, 0.15);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-bright);
    margin: 0 auto 18px;
}

.case-icon svg {
    width: 28px;
    height: 28px;
}

.case-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.case-card p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.6;
}

/* ============================================
   PRICING PREVIEW
   ============================================ */
.pricing-preview {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.price-card {
    background: var(--surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 36px;
    transition: all 0.3s;
}

.price-card.highlighted {
    border-color: var(--accent);
    box-shadow: 0 0 40px var(--accent-glow);
}

.price-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.price-name {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.price-value {
    font-family: var(--font-display);
    font-size: 2.6rem;
    line-height: 1.1;
    margin-bottom: 4px;
}

.price-value span {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-family: var(--font-body);
}

.price-desc {
    color: var(--text-secondary);
    font-size: 0.82rem;
    margin-bottom: 20px;
    line-height: 1.55;
}

.price-features {
    list-style: none;
}

.price-features li {
    color: var(--text-secondary);
    font-size: 0.82rem;
    padding: 5px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-features li::before {
    content: '\2713';
    color: var(--accent-bright);
    font-weight: 700;
    font-size: 0.75rem;
}

/* ============================================
   WAITLIST FORM
   ============================================ */
.waitlist {
    background: var(--bg-elevated);
    border-top: 1px solid var(--border-subtle);
}

.waitlist-container {
    max-width: 580px;
    margin: 0 auto;
}

.form-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
}

.form-row {
    margin-bottom: 20px;
}

.form-row label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-secondary);
}

.form-row label .required {
    color: var(--accent-bright);
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: all 0.2s;
    outline: none;
}

.form-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

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

select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235e5e74' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    cursor: pointer;
}

select.form-input option {
    background: var(--surface);
    color: var(--text);
}

textarea.form-input {
    resize: vertical;
    min-height: 80px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-submit-area {
    margin-top: 24px;
}

.btn-submit {
    width: 100%;
    padding: 16px;
    font-size: 0.95rem;
}

.btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Turnstile widget container */
.turnstile-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    min-height: 65px;
}

/* Form feedback */
.form-message {
    text-align: center;
    padding: 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 16px;
    display: none;
}

.form-message.success {
    display: block;
    background: rgba(52, 211, 153, 0.1);
    border: 1px solid rgba(52, 211, 153, 0.2);
    color: var(--success);
}

.form-message.error {
    display: block;
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.2);
    color: var(--error);
}

/* Success state replaces form */
.form-success-state {
    text-align: center;
    padding: 40px 20px;
}

.form-success-state .check-icon {
    width: 64px;
    height: 64px;
    background: rgba(52, 211, 153, 0.1);
    border: 2px solid var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin: 0 auto 20px;
}

.form-success-state h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.form-success-state p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    padding: 40px 32px;
    border-top: 1px solid var(--border-subtle);
    text-align: center;
}

footer p {
    color: var(--text-muted);
    font-size: 0.78rem;
}

footer a {
    color: var(--text-secondary);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {

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

    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    nav {
        padding: 0 20px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(8, 8, 11, 0.95);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border-subtle);
        padding: 20px;
        gap: 16px;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-links a {
        font-size: 1rem;
        padding: 8px 0;
    }

    section {
        padding: 72px 20px;
    }

    .hero {
        padding: 130px 20px 72px;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-preview {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-card {
        padding: 28px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2.2rem;
    }

    .hero-sub {
        font-size: 0.95rem;
    }

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

    .cases-grid {
        grid-template-columns: 1fr;
    }
}
