/* --- DESIGN TOKENS & VARIABLES --- */
:root {
    /* Brand Palette */
    --tangerine: #fb923c;
    --tangerine-dark: #ea580c;
    --pink: #f43f5e;
    --cyan: #22d3ee;
    --yellow: #facc15;
    
    /* Neutrals */
    --text-dark: #1e1b4b;
    --text-light: #f8fafc;
    --bg-dark: #0f172a;
    
    /* Typography */
    --font-display: 'Quicksand', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-script: 'Caveat', cursive;
}

/* --- RESETS & BASICS --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    background-color: var(--bg-dark);
}

.hidden {
    display: none !important;
}

/* --- BACKGROUND & TEXTURES --- */
.bg-image {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('https://offertabs.s3.amazonaws.com/offer/27mncb/site/media/69f10d06855993.68494593.jpg');
    background-size: cover;
    background-position: center;
    z-index: -3;
}

.gradient-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    /* Deep blue/purple gradient mapping to the vivid sunset, adding readability */
    background: linear-gradient(135deg, rgba(30, 27, 75, 0.7) 0%, rgba(244, 63, 94, 0.4) 100%);
    z-index: -2;
}

.halftone-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(#000 1.5px, transparent 1.5px);
    background-size: 8px 8px;
    opacity: 0.15;
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: -1;
}

/* --- LAYOUT & CONTAINERS --- */
.site-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* --- RIBBON --- */
.steps-ribbon {
    width: 100%;
    background: linear-gradient(90deg, var(--tangerine), var(--pink), var(--cyan));
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 12px 20px;
    gap: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    position: relative;
    z-index: 10;
}

.step {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 0.95rem;
    font-weight: 500;
}

.step-num {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(4px);
    width: 28px; height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: var(--font-display);
}

/* --- HERO GRID --- */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-top: 20px;
}

@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* --- TYPOGRAPHY --- */
.brand-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 999px;
    color: var(--yellow);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    backdrop-filter: blur(8px);
}

.main-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    color: white;
    margin-bottom: 12px;
    text-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.subtitle {
    font-family: var(--font-script);
    font-size: 2.2rem;
    color: var(--cyan);
    margin-bottom: 30px;
    transform: rotate(-2deg);
}

/* --- PRIZE BOX --- */
.prize-ribbon {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.9) 0%, rgba(251, 146, 60, 0.9) 100%);
    padding: 16px 24px;
    border-radius: 16px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(250, 204, 21, 0.3);
    transform: rotate(-1deg);
}

.prize-icon {
    font-size: 2.5rem;
}

.prize-text strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--text-dark);
    line-height: 1.2;
}

.prize-text span {
    font-size: 0.95rem;
    color: rgba(30, 27, 75, 0.8);
    font-weight: 500;
}

/* --- GLASSMORPHISM CARDS --- */
.glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* --- FORM STYLES --- */
.form-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form-desc {
    color: #475569;
    margin-bottom: 24px;
    font-size: 0.95rem;
}

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

label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #334155;
}

input[type="text"],
input[type="email"] {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 1rem;
    background: white;
    transition: all 0.3s ease;
}

input:focus {
    outline: none;
    border-color: var(--pink);
    box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.1);
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon .icon {
    position: absolute;
    left: 16px;
    color: #94a3b8;
    font-weight: 600;
}

.input-with-icon input {
    padding-left: 36px;
}

.error-box {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #ef4444;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

/* --- BUTTONS --- */
.btn-primary {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--pink), var(--tangerine));
    color: white;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(244, 63, 94, 0.3);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(244, 63, 94, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-loader {
    width: 20px; height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* --- RIGHT COLUMN VISUALS --- */
.visual-cluster {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    min-height: 500px;
}

.wordmark {
    position: absolute;
    top: 50px;
    left: -40px;
    font-family: var(--font-script);
    font-size: 5rem;
    color: var(--yellow);
    text-shadow: 2px 4px 0px var(--pink), 0 10px 20px rgba(0,0,0,0.3);
    transform: rotate(-10deg);
    z-index: 5;
    pointer-events: none;
}

@media (max-width: 992px) {
    .wordmark {
        left: 50%;
        transform: translateX(-50%) rotate(-5deg);
        top: -30px;
        font-size: 4rem;
    }
}

/* Phone Mockup */
.phone-mockup {
    width: 300px;
    height: 600px;
    background: white;
    border-radius: 40px;
    border: 12px solid #1e293b;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), inset 0 0 0 2px #334155;
    position: relative;
    overflow: hidden;
    z-index: 2;
    transform: rotate(3deg);
    transition: transform 0.3s ease;
}

.phone-mockup:hover {
    transform: rotate(0deg) translateY(-10px);
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 25px;
    background: #1e293b;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
}

.phone-header {
    padding: 40px 16px 12px;
    border-bottom: 1px solid #e2e8f0;
    background: white;
}

.phone-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pp-img {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--tangerine), var(--pink));
}

.pp-text strong {
    font-family: var(--font-display);
    font-size: 1rem;
}

.pp-text span {
    font-size: 0.8rem;
    color: #64748b;
}

.feed-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Stats Panel */
.stats-panel {
    position: absolute;
    bottom: 40px;
    right: -20px;
    background: white;
    padding: 16px 24px;
    border-radius: 16px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    z-index: 6;
    border-left: 6px solid var(--cyan);
}

@media (max-width: 992px) {
    .stats-panel {
        right: 50%;
        transform: translateX(50%);
        bottom: -20px;
    }
}

.stat-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: var(--pink);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- POST ENTRY STATES --- */
.success-icon {
    width: 80px; height: 80px;
    background: #10b981;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto 20px;
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
}

.text-center {
    text-align: center;
}

.bonus-box {
    margin-top: 30px;
    padding: 24px;
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 16px;
}

.bonus-box h4 {
    color: var(--text-dark);
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.bonus-box p {
    font-size: 0.9rem;
    color: #475569;
    margin-bottom: 16px;
}

.share-row {
    display: flex;
    gap: 8px;
}

.share-row input {
    flex: 1;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: white;
    font-family: monospace;
    color: #475569;
}

.btn-secondary {
    padding: 0 20px;
    background: var(--text-dark);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-secondary:hover {
    background: #334155;
}

/* --- ANIMATIONS --- */
.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

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

.float-anim {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px) rotate(-10deg); }
    50% { transform: translateY(-15px) rotate(-10deg); }
    100% { transform: translateY(0px) rotate(-10deg); }
}

.slide-up-anim {
    animation: slideUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(50px) rotate(3deg); }
    to { opacity: 1; transform: translateY(0) rotate(3deg); }
}

.pulse-anim {
    animation: popIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.5s;
    opacity: 0;
}

@keyframes popIn {
    0% { opacity: 0; transform: scale(0.8) translateY(20px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* --- FOOTER SLOT --- */
#wbx-powered-by-slot {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 20px;
    margin-top: auto;
    z-index: 10;
}
