:root {
    --primary: #f97316;
    /* Premium Orange */
    --primary-glow: rgba(249, 115, 22, 0.4);
    --secondary: #eab308;
    /* Premium Yellow */
    --secondary-glow: rgba(234, 179, 8, 0.4);
    --bg-base: #020617;
    /* Slate 950 - Deepest dark */
    --bg-surface: rgba(15, 23, 42, 0.6);
    --bg-surface-raised: rgba(30, 41, 59, 0.8);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.08);
    --accent: #10b981;
    /* Emerald */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background-color: var(--bg-base);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    -webkit-font-smoothing: antialiased;
}

/* Typography Overrides for Impact */
h1,
h2,
h3,
.logo {
    font-family: 'Outfit', sans-serif;
}

/* Ambient Glow Background */
.glow-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    background: radial-gradient(circle at 15% 50%, rgba(249, 115, 22, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(234, 179, 8, 0.08), transparent 25%);
}

.glow-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
    opacity: 0.03;
    pointer-events: none;
}

.container {
    max-width: 1000px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1rem 7rem 1rem;
    /* Pad bottom for mobile sticky button */
}

/* Header */
.glass-header {
    width: 100%;
    padding: 1rem 2rem;
    background: rgba(2, 6, 23, 0.5);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    position: sticky;
    top: 1rem;
    z-index: 50;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo span {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Hero Section */
.hero-section {
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}

.hero-content {
    max-width: 700px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.badge-glow {
    position: relative;
    display: inline-block;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(249, 115, 22, 0.1);
    border: 1px solid rgba(249, 115, 22, 0.3);
    color: var(--primary);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -1.5px;
}

.hero h1 span {
    background: linear-gradient(135deg, var(--primary), #ec4899);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 550px;
    font-weight: 400;
}

/* Mockup Presentation */
.preview-mockup {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    perspective: 1000px;
}

.mockup-frame {
    background: linear-gradient(180deg, #1e293b, #0f172a);
    padding: 0.5rem;
    border-radius: 32px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.05);
    transform: rotateX(10deg) rotateY(-5deg);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mockup-frame:hover {
    transform: rotateX(0deg) rotateY(0deg) scale(1.02);
}

.mockup-screen {
    background: #020617;
    height: 480px;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background-image: linear-gradient(45deg, rgba(249, 115, 22, 0.1) 0%, transparent 100%);
}

.showcase-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
    background: #000;
}

/* Removido o mockup-screen p */

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    width: 100%;
    margin-top: 3rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bento-large {
        grid-column: span 2;
    }
}

.bento-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2rem;
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}

.bento-box:hover {
    background: var(--bg-surface-raised);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.15);
}

.bento-box .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.bento-box h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: white;
}

.bento-box p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Modern Pricing Card */
.checkout-section {
    width: 100%;
    display: flex;
    justify-content: center;
}

.premium-border {
    position: relative;
    border-radius: 32px;
    padding: 1px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05) 30%, transparent 70%);
}

.card-inner {
    background: #0b1120;
    border-radius: 31px;
    padding: 2.5rem;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.discount-tag {
    display: inline-block;
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent);
    padding: 0.4rem 1rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.original-price {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.price-value {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.price-value h2 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -2px;
    color: white;
}

.period {
    color: var(--text-secondary);
    font-size: 1rem;
}

.benefit-list {
    list-style: none;
    margin-bottom: 2rem;
}

.benefit-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
    font-size: 0.95rem;
}

.benefit-list li:last-child {
    border-bottom: none;
}

/* Formulário de Checkout */
.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.input-wrapper input {
    width: 100%;
    padding: 1.1rem 1.25rem;
    border-radius: 14px;
    background: rgba(2, 6, 23, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: white;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(2, 6, 23, 0.8);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.15), inset 0 2px 4px rgba(0, 0, 0, 0.5);
}

.input-wrapper input::placeholder {
    color: var(--text-secondary);
}

/* Invalid state shake */
.input-error {
    border-color: #ef4444 !important;
    animation: shake 0.4s cubic-bezier(.36, .07, .19, .97) both;
}

@keyframes shake {

    10%,
    90% {
        transform: translate3d(-1px, 0, 0);
    }

    20%,
    80% {
        transform: translate3d(2px, 0, 0);
    }

    30%,
    50%,
    70% {
        transform: translate3d(-4px, 0, 0);
    }

    40%,
    60% {
        transform: translate3d(4px, 0, 0);
    }
}

/* Buttons */
.cta-button {
    width: 100%;
    padding: 1.25rem;
    font-size: 1.15rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    color: white;
    background: var(--primary);
    border: none;
    border-radius: 16px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(249, 115, 22, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.2);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.shimmer-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    100% {
        left: 200%;
    }
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(249, 115, 22, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

.cta-button:active {
    transform: translateY(1px);
}

.secure-checkout {
    margin-top: 1.25rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

/* Utility */
.hidden {
    display: none !important;
}

/* Modals */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    display: flex !important;
    /* Forces flex but controls visibility by opacity */
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.modal-overlay.hidden-overlay {
    opacity: 0;
    pointer-events: none;
}

.modal-content {
    background: #0f172a;
    width: 100%;
    height: auto;
    max-height: 95vh;
    border-radius: 28px 28px 0 0;
    position: absolute;
    bottom: 0;
    padding: 0 1.5rem 2.5rem 1.5rem;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(0);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.hidden-overlay .modal-content {
    transform: translateY(100%);
}

.modal-drag-handle {
    width: 40px;
    height: 5px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    margin: 1rem auto 1.5rem auto;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-header h2 {
    font-size: 1.5rem;
    color: white;
}

.qr-wrapper {
    background: white;
    padding: 1rem;
    border-radius: 20px;
    display: inline-block;
    margin: 0 auto 1.5rem auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.copy-paste-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1rem;
    text-align: left;
}

.copy-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.input-group {
    display: flex;
    gap: 0.5rem;
}

.input-group input {
    flex: 1;
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #020617;
    color: white;
    font-family: monospace;
    font-size: 0.85rem;
}

.copy-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0 1.25rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.status-area {
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: var(--primary);
    background: rgba(249, 115, 22, 0.1);
    padding: 1rem;
    border-radius: 12px;
}

.status-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid var(--primary);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.success-area {
    text-align: center;
    padding: 2rem 0;
}

.success-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-20px);
    }

    60% {
        transform: translateY(-10px);
    }
}

/* Desktop Overrides for Modal & Layout */
@media (min-width: 768px) {
    .modal-content {
        height: auto;
        border-radius: 28px;
        position: relative;
        padding: 3rem;
        max-width: 480px;
        border: 1px solid var(--border-color);
        transform: scale(1);
    }

    .modal-overlay.hidden-overlay .modal-content {
        transform: scale(0.95);
    }

    .modal-drag-handle {
        display: none;
    }

    /* Make button stick to bottom on mobile only, normal on desktop */
    .pricing-card .cta-button {
        position: static;
        width: 100%;
        margin-top: 0;
    }
}

/* Mobile Sticky Button overrides */
@media (max-width: 767px) {
    .pricing-card .cta-button {
        position: fixed;
        bottom: 1.5rem;
        left: 5%;
        width: 90%;
        z-index: 100;
        box-shadow: 0 15px 35px rgba(249, 115, 22, 0.5), 0 0 0 2px rgba(2, 6, 23, 0.8);
    }
}