/* 
  Curli Agência - High-Performance Design System
  Focus: Modern, Tech, Dark Mode, Conversion
*/

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;600;700;800&family=Montserrat:wght@400;700;900&display=swap');

:root {
    /* Color Palette */
    --primary: #E51E25;
    /* Curli Red */
    --primary-glow: rgba(229, 30, 37, 0.4);
    --secondary: #ff0000;
    /* Neon Blue */
    --secondary-glow: rgba(255, 0, 0, 0.5);
    --bg-dark: #0A0A0A;
    /* Deep Black */
    --bg-card: #151515;
    /* Card background */
    --text-main: #FFFFFF;
    --text-muted: #A0A0A0;
    --border-color: rgba(255, 255, 255, 0.1);

    /* Spacing & Transitions */
    --container-width: 1100px;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Sora', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3 {
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Hero Section --- */
/* --- Hero Section --- */
.hero {
    padding: 100px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Adjusting Hero Visuals for Side-by-Side with Grid for Perfect Symmetry */
.hero-visuals {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    align-items: stretch;
    gap: 60px;
    margin-top: 60px;
    text-align: left;
}

.hero-video-side {
    display: flex;
    justify-content: center;
}

.hero-info-side {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 50px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-info-side h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.hero-info-side p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
}

.stat-item h4 {
    font-size: 2rem;
    color: var(--text-main);
    margin-bottom: 5px;
    font-family: 'Montserrat', sans-serif;
}

.stat-item p {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    font-weight: 700;
}

.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    z-index: -1;
    filter: blur(60px);
    opacity: 0.5;
}

.hero-badge {
    display: inline-block;
    background: rgba(229, 30, 37, 0.15);
    color: var(--primary);
    padding: 8px 20px;
    border-radius: 50px;
    border: 1px solid var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: fadeInDown 0.8s ease;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.1;
    animation: fadeInUp 0.8s ease;
}

.hero h1 span {
    color: var(--primary);
    text-shadow: 0 0 20px var(--primary-glow);
}

.hero-subheadline {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 50px;
    animation: fadeInUp 1s ease;
}

/* --- Video Player Container (Vertical 9:16) --- */
.video-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: #000;
}

.video-player {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Custom Video Controls */
.video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    display: flex;
    align-items: center;
    gap: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
}

.video-wrapper:hover .video-controls {
    opacity: 1;
}

.control-btn {
    background: var(--primary-color);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.control-btn:hover {
    transform: scale(1.1);
}

.volume-container {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 80px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
}

/* --- Sections Common --- */
section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
}

.section-title span {
    color: var(--primary);
}

/* --- Institutional & Modular Block --- */
.institutional-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.institutional-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.institutional-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.modular-offer {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 50px;
    border-radius: 30px;
    margin: 60px 0;
    position: relative;
    overflow: hidden;
}

.modular-offer::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: var(--secondary-glow);
    filter: blur(50px);
    z-index: 0;
}

.modular-offer-inner {
    position: relative;
    z-index: 1;
}

.modular-offer h3 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: var(--text-main);
}

/* --- Differentials Grid --- */
.differentials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}

.diff-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
    position: relative;
}

.diff-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.diff-icon {
    width: 50px;
    height: 50px;
    background: rgba(229, 30, 37, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: var(--primary);
}

.diff-card h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.diff-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- Conversion Form --- */
.form-section {
    background: linear-gradient(180deg, var(--bg-dark) 0%, #111 100%);
    position: relative;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 50px;
    border-radius: 30px;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

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

.input-prefix-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-prefix-wrapper span {
    position: absolute;
    left: 15px;
    color: var(--primary-color);
    font-weight: 600;
    font-family: 'Sora', sans-serif;
    pointer-events: none;
}

.input-prefix-wrapper input {
    padding-left: 35px !important;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}

input,
select,
textarea {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-smooth);
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

.submit-btn {
    width: 100%;
    padding: 20px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 20px var(--primary-glow);
    margin-top: 10px;
}

.submit-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 30px var(--primary-glow);
}

/* --- CTA Buttons --- */
.cta-button {
    display: inline-block;
    padding: 18px 40px;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 20px var(--primary-glow);
    border: none;
    cursor: pointer;
    margin-top: 20px;
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px var(--primary-glow);
    background: #f0252c;
}

/* --- Social Media --- */
.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    transition: var(--transition-smooth);
    border: 1px solid var(--border-color);
}

.social-icon:hover {
    background: var(--primary);
    transform: translateY(-5px);
    border-color: var(--primary);
}

.social-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}



.video-wrapper {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

/* --- Responsiveness --- */
@media (max-width: 768px) {
    .institutional-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 60px 0 40px;
    }

    .hero-visuals {
        display: flex;
        flex-direction: column;
        text-align: center;
        gap: 30px;
        grid-template-columns: none;
        align-items: stretch;
    }

    .hero-video-side {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .hero-info-side {
        width: 100%;
        padding: 30px;
    }

    .hero-info-side {
        padding: 30px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .form-container {
        padding: 30px 20px;
    }

    .modular-offer {
        padding: 30px;
    }
}

/* --- Sales Notifications (Social Proof) --- */
.sales-notification {
    position: fixed;
    z-index: 1000;
    background: rgba(15, 15, 15, 0.95);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary);
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 320px;
    backdrop-filter: blur(12px);
    pointer-events: none;
    animation: notificationEnter 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.sales-notification .name {
    font-weight: 700;
    color: var(--text-main);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sales-notification .message {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.4;
}

.sales-notification .amount {
    color: #4CAF50; /* Success Green */
    font-weight: 700;
}

/* Desktop: Bottom Left */
@media (min-width: 769px) {
    .sales-notification {
        bottom: 30px;
        left: 30px;
    }
}

/* Mobile: Top Center (as requested) */
@media (max-width: 768px) {
    .sales-notification {
        top: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: none;
        animation: notificationEnterMobile 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    .sales-notification.hide {
        animation: notificationExitMobile 0.5s ease forwards;
    }
}

@keyframes notificationEnter {
    from { opacity: 0; transform: translateX(-50px) scale(0.9); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes notificationEnterMobile {
    from { opacity: 0; transform: translate(-50%, -30px) scale(0.9); }
    to { opacity: 1; transform: translate(-50%, 0) scale(1); }
}

@keyframes notificationExit {
    from { opacity: 1; transform: scale(1); }
    to { opacity: 0; transform: scale(0.95); filter: blur(5px); }
}

.sales-notification.hide {
    animation: notificationExit 0.5s ease forwards;
}

/* --- Form Success Appearance --- */
.form-success-content {
    text-align: center;
    padding: 20px 0;
    animation: fadeInUp 0.5s ease forwards;
}

.success-icon-circle {
    width: 64px;
    height: 64px;
    background: rgba(76, 175, 80, 0.15);
    color: #4CAF50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.form-success-content h3 {
    color: #4CAF50;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.form-success-content p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}