/* ============================================
   LOADED.PT — STYLES
   ============================================ */

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Brand Colors */
    --primary: #7289da;
    --primary-dim: rgba(114, 137, 218, 0.15);
    --primary-glow: rgba(114, 137, 218, 0.4);
    --primary-light: #8ca0e6;
    --primary-dark: #5b6fb8;

    /* Background */
    --bg: #0f1117;
    --bg-secondary: #1a1d26;
    --bg-tertiary: #232732;

    /* Text */
    --text: #ffffff;
    --text-secondary: #aab0c0;
    --text-muted: #6c7280;

    /* Borders */
    --border: rgba(170, 176, 192, 0.1);
    --border-strong: rgba(170, 176, 192, 0.2);

    /* Accents */
    --success: #57f287;
    --warning: #fee75c;
    --danger: #ed4245;

    /* Effects */
    --shadow-lg: 0 25px 60px rgba(0, 0, 0, 0.5);
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: var(--primary);
    color: var(--text);
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font-family: inherit; }
img { max-width: 100%; display: block; }

/* ============================================
   UTILITIES
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.highlight {
    color: var(--primary);
    text-shadow: 0 0 40px var(--primary-glow);
    position: relative;
}

.outline-text {
    -webkit-text-stroke: 1.5px var(--text-secondary);
    color: transparent;
    transition: var(--transition);
}

.outline-text:hover {
    -webkit-text-stroke: 1.5px var(--primary);
    text-shadow: 0 0 30px var(--primary-glow);
}

/* ============================================
   CUSTOM CURSOR
   ============================================ */
.cursor-dot, .cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 10000;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background: var(--primary);
    transition: opacity 0.3s ease, transform 0.1s ease;
}

.cursor-ring {
    width: 36px;
    height: 36px;
    border: 2px solid var(--primary);
    transition: opacity 0.3s ease, transform 0.1s ease-out, width 0.2s ease, height 0.2s ease;
}

.cursor-active .cursor-ring {
    width: 60px;
    height: 60px;
    background: var(--primary-dim);
    border-color: var(--primary-light);
}

@media (hover: hover) and (pointer: fine) {
    body { cursor: none; }
    .cursor-dot, .cursor-ring { opacity: 1; }
    a, button, input, textarea, select, .feature-card, .testimonial-card { cursor: none; }
}

/* ============================================
   ANIMATED BACKGROUND
   ============================================ */
.bg-grid {
    position: fixed;
    inset: 0;
    z-index: 0;
    opacity: 0.05;
    background-image:
        linear-gradient(var(--primary) 1px, transparent 1px),
        linear-gradient(90deg, var(--primary) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridMove 25s linear infinite;
    pointer-events: none;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

.floating-particles {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0;
    animation: floatParticle linear infinite;
    box-shadow: 0 0 8px var(--primary-glow);
}

@keyframes floatParticle {
    0% { opacity: 0; transform: translateY(100vh) scale(0); }
    10% { opacity: 0.6; }
    90% { opacity: 0.3; }
    100% { opacity: 0; transform: translateY(-10vh) scale(1); }
}

/* Glow orbs */
.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.25;
    pointer-events: none;
    z-index: 0;
    animation: orbFloat 20s ease-in-out infinite;
}

.glow-orb-1 {
    width: 500px;
    height: 500px;
    background: var(--primary);
    top: -150px;
    left: -150px;
}

.glow-orb-2 {
    width: 400px;
    height: 400px;
    background: #4752c4;
    bottom: -100px;
    right: -100px;
    animation-delay: -7s;
}

.glow-orb-3 {
    width: 350px;
    height: 350px;
    background: var(--primary-light);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.1;
    animation-delay: -14s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(50px, -30px) scale(1.1); }
    66% { transform: translate(-30px, 50px) scale(0.9); }
}

.glow-orb-3 {
    animation: orbFloat3 25s ease-in-out infinite;
}

@keyframes orbFloat3 {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.3); opacity: 0.15; }
}

/* ============================================
   PRELOADER
   ============================================ */
.preloader {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 24px;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-logo {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -1px;
    animation: pulseLogo 1.5s ease-in-out infinite;
}

@keyframes pulseLogo {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.preloader-bar {
    width: 220px;
    height: 3px;
    background: var(--bg-secondary);
    border-radius: 3px;
    overflow: hidden;
}

.preloader-bar-fill {
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 3px;
    box-shadow: 0 0 15px var(--primary-glow);
    animation: loadBar 1.8s ease-in-out forwards;
}

@keyframes loadBar {
    0% { width: 0; }
    100% { width: 100%; }
}

.preloader-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.preloader-text::after {
    content: '';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0% { content: ''; }
    25% { content: '.'; }
    50% { content: '..'; }
    75% { content: '...'; }
}

/* ============================================
   LOGO STYLING
   ============================================ */
.logo-bracket {
    color: var(--primary);
    font-family: 'JetBrains Mono', monospace;
    font-weight: 400;
    opacity: 0.7;
}
.logo-text { color: var(--text); font-weight: 800; }
.logo-dot {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary-glow);
    font-weight: 900;
}
.logo-pt { color: var(--primary); font-weight: 700; }

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 18px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 100;
    transition: all 0.4s ease;
    background: rgba(15, 17, 23, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
}

.nav.scrolled {
    padding: 14px 40px;
    background: rgba(15, 17, 23, 0.9);
    border-bottom-color: var(--border);
}

.nav-logo {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
    transition: transform 0.3s ease;
    z-index: 101;
}

.nav-logo:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 36px;
    align-items: center;
}

.nav-menu a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.3s ease;
    position: relative;
    padding: 4px 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
    box-shadow: 0 0 8px var(--primary-glow);
}

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

.nav-menu a:hover::after {
    width: 100%;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: var(--primary);
    color: var(--text);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 20px var(--primary-glow);
    z-index: 101;
}

.nav-cta:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px var(--primary-glow);
}

.nav-cta svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.nav-cta:hover svg {
    transform: translateX(4px);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    z-index: 101;
}

.nav-toggle span {
    width: 26px;
    height: 2px;
    background: var(--text);
    transition: 0.3s ease;
    border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 60px;
    z-index: 2;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    border: 1px solid var(--border-strong);
    border-radius: 50px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--primary);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 36px;
    background: var(--primary-dim);
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.badge-icon {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 var(--primary-glow);
        opacity: 1;
    }
    50% {
        box-shadow: 0 0 0 10px transparent;
        opacity: 0.7;
    }
}

.hero-title {
    font-size: clamp(2.2rem, 7vw, 5.5rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -2px;
}

.hero-title .line {
    display: block;
    overflow: hidden;
}

.hero-title .line > span {
    display: inline-block;
    animation: revealLine 1s cubic-bezier(0.77, 0, 0.175, 1) both;
}

.hero-title .line:nth-child(1) > span { animation-delay: 0.5s; }
.hero-title .line:nth-child(2) > span { animation-delay: 0.7s; }
.hero-title .line:nth-child(3) > span { animation-delay: 0.9s; }

@keyframes revealLine {
    from { transform: translateY(120%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.hero-subtitle {
    margin-top: 28px;
    font-size: clamp(0.95rem, 1.6vw, 1.15rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    font-weight: 400;
    animation: fadeInUp 0.8s ease-out 1.2s both;
}

.hero-subtitle strong {
    color: var(--text);
    font-weight: 600;
}

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

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 1.4s both;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.btn-primary {
    background: var(--primary);
    color: var(--text);
    box-shadow: 0 8px 30px var(--primary-glow);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s ease;
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px var(--primary-glow);
}

.btn-primary:hover::before { left: 100%; }
.btn-primary:hover svg { transform: translateX(5px); }

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border-strong);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    border-color: var(--primary);
    background: var(--primary-dim);
    transform: translateY(-3px);
}

.btn-large {
    padding: 20px 40px;
    font-size: 16px;
    width: 100%;
    justify-content: center;
}

/* ============================================
   HERO DIVIDER & STATS
   ============================================ */
.hero-divider {
    width: 100px;
    height: 2px;
    background: var(--border-strong);
    margin: 60px auto 40px;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out 1.6s both;
}

.hero-divider::after {
    content: '';
    position: absolute;
    top: 0;
    left: -60%;
    width: 60%;
    height: 100%;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
    animation: dividerSlide 3s ease-in-out infinite;
}

@keyframes dividerSlide {
    0% { left: -60%; }
    50% { left: 100%; }
    100% { left: -60%; }
}

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 1.8s both;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    min-width: 130px;
}

.stat-value {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    line-height: 1;
}

.stat-number {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--primary);
    font-family: 'JetBrains Mono', monospace;
    text-shadow: 0 0 20px var(--primary-glow);
    line-height: 1;
}

.stat-plus {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--primary);
    font-family: 'JetBrains Mono', monospace;
    line-height: 1;
    margin-left: 2px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-align: center;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-strong);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 3px;
    text-transform: uppercase;
    animation: fadeIn 1s ease-out 2.2s both;
}

.scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, var(--primary), transparent);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: -50%;
    left: 0;
    width: 100%;
    height: 50%;
    background: var(--primary);
    animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
    0% { top: -50%; }
    100% { top: 100%; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
    position: relative;
    padding: 120px 0;
    z-index: 2;
}

.section-alt {
    background: linear-gradient(180deg, transparent, var(--bg-secondary) 50%, transparent);
}

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

.section-label {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--primary);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 18px;
    padding: 6px 14px;
    background: var(--primary-dim);
    border-radius: 50px;
}

.section-title {
    font-size: clamp(1.8rem, 4.5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: clamp(0.95rem, 1.4vw, 1.1rem);
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-paragraph {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-paragraph strong {
    color: var(--text);
    font-weight: 600;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 32px;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: var(--transition);
}

.about-feature:hover {
    border-color: var(--primary);
    transform: translateX(4px);
    background: var(--primary-dim);
}

.about-feature svg {
    width: 18px;
    height: 18px;
    color: var(--primary);
    flex-shrink: 0;
}

.about-feature span {
    font-size: 14px;
    font-weight: 500;
}

/* Code Window */
.code-window {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: transform 0.4s ease;
}

.code-window:hover {
    transform: translateY(-5px);
}

.code-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border);
}

.code-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.code-dot.red { background: #ff5f57; }
.code-dot.yellow { background: #ffbd2e; }
.code-dot.green { background: #28c840; }

.code-title {
    margin-left: 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--text-muted);
}

.code-body {
    padding: 22px 20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    line-height: 1.9;
}

.code-line {
    display: flex;
    gap: 16px;
    color: var(--text-secondary);
}

.code-num {
    color: var(--text-muted);
    user-select: none;
    min-width: 18px;
}

.code-keyword { color: #c678dd; }
.code-var { color: var(--primary); }
.code-prop { color: #e06c75; }
.code-string { color: #98c379; }
.code-func { color: #61afef; }

.code-cursor {
    color: var(--primary);
    animation: blink 1s steps(2) infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* ============================================
   FEATURES GRID
   ============================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px 28px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-dim) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 50px rgba(114, 137, 218, 0.15);
}

.feature-card:hover::before { opacity: 1; }

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--primary-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.feature-card:hover .feature-icon {
    background: var(--primary);
    transform: rotate(-8deg) scale(1.1);
}

.feature-icon svg {
    width: 26px;
    height: 26px;
    color: var(--primary);
    transition: color 0.3s ease;
}

.feature-card:hover .feature-icon svg {
    color: var(--text);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.feature-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

/* ============================================
   PROCESS TIMELINE
   ============================================ */
.process-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.process-step {
    display: flex;
    gap: 28px;
    align-items: flex-start;
    padding: 32px 0;
    position: relative;
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.process-step.visible {
    opacity: 1;
    transform: translateX(0);
}

.step-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    width: 80px;
    height: 80px;
    border: 2px solid var(--primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--bg-secondary);
    box-shadow: 0 0 30px var(--primary-glow);
    position: relative;
    z-index: 2;
    transition: var(--transition);
}

.process-step:hover .step-number {
    transform: scale(1.1) rotate(-5deg);
    background: var(--primary);
    color: var(--text);
}

.step-content {
    flex: 1;
    padding-top: 8px;
}

.step-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.step-desc {
    color: var(--text-secondary);
    line-height: 1.7;
}

.step-line {
    position: absolute;
    left: 39px;
    top: 110px;
    width: 2px;
    height: calc(100% - 40px);
    background: linear-gradient(to bottom, var(--primary), transparent);
    opacity: 0.4;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.testimonial-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px 28px;
    transition: var(--transition);
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: 0 20px 50px rgba(114, 137, 218, 0.15);
}

.testimonial-card.featured {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(114, 137, 218, 0.08) 100%);
    border-color: var(--primary);
}

.testimonial-rating {
    display: flex;
    gap: 4px;
    margin-bottom: 18px;
}

.testimonial-rating svg {
    width: 18px;
    height: 18px;
    color: var(--primary);
}

.testimonial-text {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: var(--text);
    box-shadow: 0 4px 15px var(--primary-glow);
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 700;
    font-size: 14px;
}

.author-role {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ============================================
   DEMO FORM
   ============================================ */
.section-demo {
    background: linear-gradient(180deg, transparent, rgba(114, 137, 218, 0.05));
}

.demo-form {
    max-width: 720px;
    margin: 0 auto;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 44px 40px;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.demo-form::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(135deg, var(--primary), transparent, var(--primary));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.3;
    pointer-events: none;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.form-row .form-group {
    margin-bottom: 0;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.required {
    color: var(--primary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg);
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    color: var(--text);
    font-size: 14px;
    transition: all 0.3s ease;
}

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

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-tertiary);
    box-shadow: 0 0 0 4px var(--primary-dim);
}

.form-group select {
    cursor: pointer;
    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='%23aab0c0' 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 16px center;
    padding-right: 40px;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.form-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}

.form-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--bg);
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 13px;
}

.form-option:hover {
    border-color: var(--primary);
    background: var(--primary-dim);
}

.form-option input[type="radio"],
.form-option input[type="checkbox"] {
    accent-color: var(--primary);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.form-option:has(input:checked) {
    border-color: var(--primary);
    background: var(--primary-dim);
}

.form-consent {
    margin-top: 10px;
}

.form-consent .form-option {
    width: 100%;
}

.form-success {
    display: none;
    text-align: center;
    padding: 30px 20px;
    margin-top: 24px;
    background: rgba(87, 242, 135, 0.1);
    border: 1px solid var(--success);
    border-radius: 14px;
}

.form-success.show { display: block; }

.form-success svg {
    width: 48px;
    height: 48px;
    color: var(--success);
    margin-bottom: 14px;
}

.form-success h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

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

/* ============================================
   FOOTER
   ============================================ */
.footer {
    position: relative;
    z-index: 2;
    padding: 80px 0 30px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-brand p {
    margin-top: 16px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 320px;
}

.footer-col h4 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 18px;
    font-weight: 700;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col a {
    color: var(--text-secondary);
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--primary);
}

.footer-col li {
    color: var(--text-secondary);
    font-size: 14px;
}

.footer-status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-secondary);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulseGreen 2s ease-in-out infinite;
}

@keyframes pulseGreen {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(87, 242, 135, 0.4);
        opacity: 1;
    }
    50% {
        box-shadow: 0 0 0 10px transparent;
        opacity: 0.7;
    }
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-muted);
}

.heart {
    color: var(--primary);
    animation: heartBeat 1.5s ease-in-out infinite;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.fade-in-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE - TABLET
   ============================================ */
@media (max-width: 968px) {
    .nav { padding: 14px 24px; }
    .nav.scrolled { padding: 12px 24px; }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--bg-secondary);
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 32px 32px;
        gap: 24px;
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        border-left: 1px solid var(--border);
        backdrop-filter: blur(20px);
    }

    .nav-menu.active { right: 0; }

    .nav-menu a { font-size: 18px; }

    .nav-toggle { display: flex; }

    .nav-cta {
        padding: 8px 16px;
        font-size: 13px;
    }

    .nav-cta span { display: none; }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-visual {
        order: -1;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .section { padding: 80px 0; }

    .hero { padding: 100px 20px 60px; }

    .hero-stats {
        gap: 16px;
    }

    .stat-divider {
        display: none;
    }
}

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */
@media (max-width: 640px) {
    .nav { padding: 12px 18px; }
    .nav.scrolled { padding: 10px 18px; }

    .nav-logo { font-size: 17px; }
    .nav-cta { display: none; }

    .hero { padding: 90px 16px 50px; }

    .hero-title { letter-spacing: -1px; }
    .hero-subtitle { font-size: 0.95rem; }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 22px;
    }

    .container { padding: 0 18px; }
    .section { padding: 70px 0; }

    .section-header { margin-bottom: 50px; }

    .features-grid { grid-template-columns: 1fr; gap: 16px; }
    .feature-card { padding: 26px 22px; }

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

    .process-step {
        flex-direction: column;
        gap: 16px;
        padding: 24px 0;
        align-items: flex-start;
    }

    .step-number {
        width: 64px;
        height: 64px;
        font-size: 1.4rem;
        border-radius: 16px;
    }

    .step-line {
        display: none;
    }

    .demo-form {
        padding: 32px 22px;
        border-radius: 16px;
    }

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

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

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

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand p {
        margin-left: auto;
        margin-right: auto;
    }

    .footer-col ul {
        align-items: center;
    }

    .footer-status {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .code-body {
        font-size: 12px;
        padding: 16px 14px;
    }

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

    .scroll-indicator {
        display: none;
    }
}

/* ============================================
   PRINT
   ============================================ */
@media print {
    .nav, .preloader, .cursor-dot, .cursor-ring,
    .bg-grid, .floating-particles, .glow-orb,
    .scroll-indicator {
        display: none !important;
    }
    body { background: white; color: black; }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   ADIÇÕES v2 — Hero compacto, cupão, novos formulários
   ============================================ */

/* Hero mais compacto, para o form ficar mais visível */
.hero.hero-compact {
    min-height: 70vh;
    padding-top: 100px;
    padding-bottom: 40px;
}
.hero.hero-compact .hero-content {
    max-width: 980px;
}
@media (min-width: 1024px) {
    .hero.hero-compact { min-height: 78vh; }
}

/* Form-options em grelha */
.form-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}
.form-options-grid .form-option {
    margin: 0;
    padding: 14px 16px;
    text-align: center;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    background: rgba(15, 17, 23, 0.5);
    transition: var(--transition);
    cursor: pointer;
}
.form-options-grid .form-option:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(114, 137, 218, 0.15);
}
.form-options-grid .form-option input[type="radio"] {
    display: none;
}
.form-options-grid .form-option:has(input:checked) {
    border-color: var(--primary);
    background: var(--primary-dim);
    box-shadow: 0 0 0 1px var(--primary), 0 8px 20px rgba(114,137,218,0.25);
}

/* Cupão */
.coupon-wrap {
    display: flex;
    gap: 10px;
    align-items: stretch;
}
.coupon-wrap input {
    flex: 1;
}
.btn.btn-coupon {
    padding: 0 20px;
    font-size: 14px;
    white-space: nowrap;
    border-radius: 12px;
}
.coupon-msg {
    margin-top: 8px;
    font-size: 14px;
    min-height: 20px;
    font-weight: 500;
}
.coupon-msg-ok  { color: var(--success); }
.coupon-msg-err { color: var(--danger); }
.coupon-msg-loading { color: var(--text-secondary); }

.optional {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 0.85em;
}

/* Form demo mais perto do topo (versão alternativa) */
.section-demo-top {
    padding-top: 20px !important;
    padding-bottom: 80px;
    position: relative;
    z-index: 2;
}
.section-demo-top .section-header {
    margin-bottom: 32px;
}
.section-demo-top .demo-form {
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), 0 0 60px rgba(114, 137, 218, 0.08);
    border: 1px solid rgba(114, 137, 218, 0.18);
}

/* Stats section standalone */
.hero-stats-section {
    padding: 30px 0 80px !important;
}
.hero-stats-standalone {
    margin: 0 auto;
    max-width: 800px;
    padding: 30px 40px;
    background: rgba(26, 29, 38, 0.5);
    border: 1px solid var(--border);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

/* Erro global do form */
.form-error-global {
    display: none;
    margin-top: 16px;
    padding: 12px 16px;
    background: rgba(237, 66, 69, 0.1);
    border: 1px solid rgba(237, 66, 69, 0.3);
    border-radius: 10px;
    color: var(--danger);
    font-size: 14px;
    text-align: center;
}

/* ============================================
   v3 — REFER-A-FRIEND BANNER
   ============================================ */
.refer-banner {
    position: fixed;
    top: 70px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    z-index: 95;
    width: calc(100% - 28px);
    max-width: 720px;
    opacity: 0;
    animation: referSlideIn 0.6s cubic-bezier(.2,.9,.3,1.4) 1.6s forwards;
}
@keyframes referSlideIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-30px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.refer-banner.refer-hidden {
    opacity: 0;
    transform: translateX(-50%) translateY(-40px);
    pointer-events: none;
    transition: all .35s;
}
.refer-banner-inner {
    background: linear-gradient(135deg, rgba(114,137,218,0.95), rgba(142,160,232,0.95));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 16px;
    padding: 12px 14px 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 20px 50px rgba(114,137,218,0.4), 0 0 0 1px rgba(255,255,255,0.08) inset;
    color: #fff;
}
.refer-avatar {
    width: 42px; height: 42px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 17px;
    color: #fff;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25), 0 0 0 3px rgba(255,255,255,0.18);
    flex-shrink: 0;
    animation: referPulse 2.5s ease-in-out infinite;
}
@keyframes referPulse {
    0%, 100% { box-shadow: 0 4px 14px rgba(0,0,0,0.25), 0 0 0 3px rgba(255,255,255,0.18); }
    50%      { box-shadow: 0 4px 14px rgba(0,0,0,0.25), 0 0 0 7px rgba(255,255,255,0); }
}
.refer-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.45;
    min-width: 0;
}
.refer-text strong { font-weight: 800; }
.refer-percent {
    display: inline-block;
    font-weight: 800;
    background: rgba(255,255,255,0.22);
    padding: 2px 8px;
    border-radius: 8px;
    margin: 0 2px;
}
.refer-code-pill {
    display: inline-block;
    margin-left: 4px;
    font-size: 12px;
    opacity: 0.92;
}
.refer-code-pill code {
    background: rgba(0,0,0,0.25);
    padding: 1px 8px;
    border-radius: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    letter-spacing: 0.04em;
}
.refer-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #0a0a0f;
    color: #fff;
    padding: 9px 16px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    white-space: nowrap;
    transition: all .25s;
    flex-shrink: 0;
}
.refer-cta:hover {
    background: #fff;
    color: #7289da;
    transform: translateY(-2px);
}
.refer-cta svg { width: 14px; height: 14px; }
.refer-close {
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    width: 28px; height: 28px;
    border-radius: 50%;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
    transition: all .2s;
}
.refer-close:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg);
}
.coupon-prefilled {
    background: rgba(87,242,135,0.08) !important;
    border-color: rgba(87,242,135,0.5) !important;
    font-weight: 700 !important;
}
@media (max-width: 640px) {
    .refer-banner { top: 65px; width: calc(100% - 16px); }
    .refer-banner-inner { flex-wrap: wrap; padding: 12px; gap: 10px; }
    .refer-text { font-size: 13px; flex: 1 1 100%; order: 2; }
    .refer-avatar { width: 38px; height: 38px; font-size: 15px; order: 1; }
    .refer-cta { order: 3; flex: 1; justify-content: center; }
    .refer-close { order: 1; position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; font-size: 14px; }
}

/* ============================================
   v3 — TESTIMONIALS extras (título + edited)
   ============================================ */
.testimonial-title {
    font-size: 17px;
    margin: 4px 0 8px;
    font-weight: 700;
    color: var(--text, #fff);
}
.testimonial-edited {
    margin-left: auto;
    font-size: 11px;
    color: var(--text-muted, #aab0c0);
    opacity: 0.7;
    font-family: 'JetBrains Mono', monospace;
}
.testimonial-author { align-items: center; }

/* ============================================
   v3 — SCROLL REVEAL ANIMATIONS
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(.2,.9,.3,1), transform 0.7s cubic-bezier(.2,.9,.3,1);
    will-change: opacity, transform;
}
.reveal-in {
    opacity: 1;
    transform: translateY(0);
}

/* Variantes laterais */
.feature-card.reveal,
.about-feature.reveal {
    transform: translateY(50px) scale(0.96);
}
.feature-card.reveal-in,
.about-feature.reveal-in {
    transform: translateY(0) scale(1);
}
.testimonial-card.reveal {
    transform: translateY(40px) rotate(-1deg);
}
.testimonial-card.reveal-in {
    transform: translateY(0) rotate(0);
}
.process-step.reveal {
    transform: translateX(-40px);
}
.process-step.reveal-in {
    transform: translateX(0);
}
.refer-banner.reveal { transform: translateX(-50%) translateY(-30px); opacity: 0; }
.refer-banner.reveal-in { transform: translateX(-50%) translateY(0); opacity: 1; }

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1 !important; transform: none !important; }
}

/* ============================================
   v3 — MOBILE: substituir hover por tap-active e animações on-scroll
   ============================================ */
@media (hover: none), (pointer: coarse) {
    .feature-card.tap-active,
    .testimonial-card.tap-active {
        transform: translateY(-4px) scale(1.02) !important;
        border-color: rgba(114,137,218,0.4) !important;
        box-shadow: 0 18px 40px rgba(114,137,218,0.25) !important;
    }
    .feature-card.tap-active .feature-icon {
        transform: scale(1.18) rotate(-4deg);
    }
    .process-step.tap-active .step-number {
        background: var(--primary, #7289da);
        color: #fff;
        transform: scale(1.08);
    }
    .about-feature.tap-active {
        background: rgba(114,137,218,0.1);
        transform: translateX(4px);
    }

    /* Animações contínuas em mobile */
    .feature-card.reveal-in .feature-icon {
        animation: floatY 5s ease-in-out infinite;
    }
    .feature-card:nth-child(odd).reveal-in .feature-icon { animation-delay: 0s; }
    .feature-card:nth-child(even).reveal-in .feature-icon { animation-delay: 1.2s; }

    @keyframes floatY {
        0%, 100% { transform: translateY(0); }
        50%      { transform: translateY(-6px); }
    }

    .nav-cta:not(.no-pulse) {
        animation: ctaPulse 2.8s ease-in-out infinite;
    }
    @keyframes ctaPulse {
        0%, 100% { box-shadow: 0 4px 16px rgba(114,137,218,0.4); }
        50%      { box-shadow: 0 4px 32px rgba(114,137,218,0.7); }
    }
}

/* ============================================
   v3 — Demo placeholder / utility
   ============================================ */
body[data-ref-code] .demo-form { 
    border: 1px solid rgba(87,242,135,0.3);
    box-shadow: 0 0 0 4px rgba(87,242,135,0.05);
}

/* ============================================================
   v5 — Conversion (popups, audit, simulator, before/after, toast)
   ============================================================ */

/* ---------- POPUPS ---------- */
.conv-popup-backdrop {
    position: fixed; inset: 0; background: rgba(3, 6, 20, 0.72);
    backdrop-filter: blur(6px); z-index: 9998; opacity: 0;
    transition: opacity .26s ease;
}
.conv-popup-backdrop.open { opacity: 1; }

.conv-popup {
    position: fixed; top: 50%; left: 50%;
    transform: translate(-50%, -46%) scale(.94);
    z-index: 9999; width: min(560px, calc(100vw - 32px));
    max-height: calc(100vh - 32px); overflow: auto;
    background: var(--conv-bg, #161b2d);
    color: #fff; border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 24px 60px rgba(0,0,0,0.55);
    opacity: 0; transition: opacity .26s ease, transform .28s cubic-bezier(.2,.9,.3,1.4);
}
.conv-popup.open { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.conv-popup-close {
    position: absolute; top: 12px; right: 14px; z-index: 2;
    width: 34px; height: 34px; border-radius: 50%;
    border: 0; background: rgba(255,255,255,0.08); color: #fff;
    font-size: 22px; line-height: 1; cursor: pointer;
    transition: background .2s;
}
.conv-popup-close:hover { background: rgba(255,255,255,0.16); }

.conv-popup-inner { display: grid; grid-template-columns: 1fr; gap: 0; }
.conv-popup-image {
    width: 100%; max-height: 180px; object-fit: cover;
    border-top-left-radius: 18px; border-top-right-radius: 18px;
}
.conv-popup-content { padding: 26px 26px 24px; }
.conv-popup-title { font-size: 24px; font-weight: 800; margin: 0 0 6px; }
.conv-popup-subtitle { font-size: 15px; color: rgba(255,255,255,0.72); margin: 0 0 10px; }
.conv-popup-body { font-size: 14px; color: rgba(255,255,255,0.62); margin: 0 0 18px; line-height: 1.55; }

.conv-popup-coupon {
    display: flex; align-items: center; gap: 10px;
    background: rgba(255,255,255,0.06);
    border: 1px dashed var(--conv-accent, #7289da);
    padding: 10px 12px; border-radius: 12px; margin: 0 0 18px;
    flex-wrap: wrap;
}
.conv-popup-coupon-label { font-size: 11px; opacity: 0.75; text-transform: uppercase; letter-spacing: 1px; }
.conv-popup-coupon-code {
    font-family: 'JetBrains Mono', monospace; font-size: 18px; font-weight: 700;
    color: var(--conv-accent, #7289da); letter-spacing: 1px;
}
.conv-popup-coupon-copy {
    margin-left: auto; padding: 6px 12px; border-radius: 8px;
    background: var(--conv-accent, #7289da); color: #fff; border: 0;
    cursor: pointer; font-weight: 600; font-size: 12px;
}
.conv-popup-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.conv-popup-cta, .conv-popup-cta2 { flex: 1 1 auto; text-align: center; }
.conv-popup-cta { background: var(--conv-accent, #7289da) !important; border-color: var(--conv-accent, #7289da) !important; }

/* ---------- AUDIT BOX (in hero) ---------- */
.audit-box {
    margin-top: 30px; padding: 22px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px;
    max-width: 720px;
    backdrop-filter: blur(6px);
    margin-left: auto;
    margin-right: auto;
}
.audit-box-head { margin-bottom: 14px; }
.audit-badge {
    display: inline-block; padding: 4px 10px;
    background: rgba(114,137,218,0.15); color: #7289da;
    border-radius: 20px; font-size: 11px; font-weight: 700;
    letter-spacing: 0.6px; margin-bottom: 8px;
}
.audit-box-head h3 { font-size: 18px; margin: 0 0 4px; font-weight: 700; }
.audit-box-head p { font-size: 13px; color: var(--text-muted); margin: 0; }

.audit-form { width: 100%; }
.audit-input-wrap {
    display: flex; align-items: center; gap: 8px;
    background: rgba(0,0,0,0.28);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px; padding: 6px 6px 6px 14px;
    transition: border-color .2s;
}
.audit-input-wrap:focus-within { border-color: #7289da; }
.audit-icon { width: 18px; height: 18px; color: var(--text-muted); flex-shrink: 0; }
#auditUrl {
    flex: 1; background: transparent; border: 0; color: #fff;
    font-size: 14px; padding: 12px 4px; outline: none; min-width: 0;
}
#auditBtn { flex-shrink: 0; padding: 10px 18px !important; }
#auditBtn.loading { opacity: 0.6; cursor: wait; }

.audit-result {
    margin-top: 20px;
    background: rgba(0,0,0,0.28);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 14px; padding: 20px;
    opacity: 0; transform: translateY(6px);
    transition: opacity .3s, transform .3s;
}
.audit-result.show { opacity: 1; transform: translateY(0); }

.audit-loading { text-align: center; padding: 20px; color: var(--text-muted); }
.audit-loader {
    display: inline-block; width: 32px; height: 32px;
    border: 3px solid rgba(255,255,255,0.1);
    border-top-color: #7289da; border-radius: 50%;
    animation: auditSpin 0.9s linear infinite;
    margin-bottom: 10px;
}
@keyframes auditSpin { to { transform: rotate(360deg); } }

.audit-error { padding: 16px; color: #ed4245; }
.audit-error strong { display: block; margin-bottom: 6px; }

.audit-header {
    display: flex; align-items: center; gap: 16px;
    padding-bottom: 14px; margin-bottom: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.audit-score-circle {
    flex-shrink: 0; width: 84px; height: 84px; border-radius: 50%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: linear-gradient(135deg, rgba(114,137,218,0.2), rgba(87,242,135,0.15));
    border: 2px solid rgba(255,255,255,0.1);
    position: relative;
}
.audit-header-good .audit-score-circle { background: linear-gradient(135deg, rgba(87,242,135,0.25), rgba(87,242,135,0.1)); border-color: rgba(87,242,135,0.5); }
.audit-header-warn .audit-score-circle { background: linear-gradient(135deg, rgba(254,231,92,0.25), rgba(254,231,92,0.1)); border-color: rgba(254,231,92,0.5); }
.audit-header-bad .audit-score-circle  { background: linear-gradient(135deg, rgba(237,66,69,0.25), rgba(237,66,69,0.1)); border-color: rgba(237,66,69,0.5); }
.audit-score-num { font-weight: 800; font-size: 18px; color: #fff; }
.audit-score-emoji { font-size: 18px; }

.audit-header-text h4 { margin: 0 0 4px; font-size: 15px; }
.audit-header-text h4 a { color: #7289da; text-decoration: none; word-break: break-word; }
.audit-header-text p { margin: 0; font-size: 12px; color: var(--text-muted); }

.audit-checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.audit-check {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 10px 12px; background: rgba(255,255,255,0.03);
    border-radius: 10px; font-size: 13px;
}
.audit-check.ok { border-left: 3px solid #57f287; }
.audit-check.ko { border-left: 3px solid #ed4245; }
.audit-check-icon {
    flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.06);
}
.audit-check-icon svg { width: 12px; height: 12px; }
.audit-check.ok .audit-check-icon { background: rgba(87,242,135,0.15); color: #57f287; }
.audit-check.ko .audit-check-icon { background: rgba(237,66,69,0.15); color: #ed4245; }
.audit-check strong { display: block; margin-bottom: 2px; color: #fff; font-size: 13px; }
.audit-check span { color: var(--text-muted); }

.audit-cta {
    margin-top: 18px; padding: 18px;
    background: linear-gradient(135deg, rgba(114,137,218,0.12), rgba(87,242,135,0.08));
    border-radius: 12px; text-align: center;
}
.audit-cta p { margin: 0 0 12px; font-size: 14px; }

/* --- Análise técnica avançada --- */
.audit-advanced {
    margin-top: 20px;
    padding: 20px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(114,137,218,0.06), rgba(255,255,255,0.02));
    border: 1px solid rgba(114,137,218,0.20);
}
.audit-advanced-head { margin-bottom: 14px; }
.audit-advanced-badge {
    display: inline-block; padding: 4px 10px; border-radius: 999px;
    background: rgba(114,137,218,0.18); color: #a9baed;
    font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
    margin-bottom: 10px;
}
.audit-advanced-head h5 {
    margin: 0 0 6px; font-size: 15px; color: #fff;
}
.audit-advanced-summary {
    margin: 0; font-size: 13px; line-height: 1.55; color: var(--text-muted);
}
.audit-advanced-list {
    list-style: none; padding: 0; margin: 14px 0 12px;
    display: grid; gap: 8px;
}
.audit-advanced-item {
    display: grid; grid-template-columns: 22px 1fr; gap: 10px;
    padding: 10px 12px; border-radius: 10px;
    background: rgba(255,255,255,0.03);
    border-left: 3px solid transparent;
    font-size: 12.5px;
}
.audit-advanced-item.ok { border-left-color: #57f287; }
.audit-advanced-item.ko { border-left-color: #f59f00; }
.audit-advanced-icon {
    width: 20px; height: 20px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.audit-advanced-icon svg { width: 11px; height: 11px; }
.audit-advanced-item.ok .audit-advanced-icon { background: rgba(87,242,135,0.15); color: #57f287; }
.audit-advanced-item.ko .audit-advanced-icon { background: rgba(245,159,0,0.18); color: #ffb84d; }
.audit-advanced-item strong { display: block; color: #fff; margin-bottom: 2px; font-size: 12.5px; }
.audit-advanced-item span { color: var(--text-muted); line-height: 1.5; }
.audit-advanced-foot {
    margin: 12px 0 0; padding: 12px 14px;
    background: rgba(114,137,218,0.10);
    border-radius: 10px;
    font-size: 13px; line-height: 1.55; color: #cbd5f0;
}

/* ---------- SIMULATOR ---------- */
.section-simulator { padding-top: 40px; padding-bottom: 40px; }
.simulator-wrap {
    display: grid; grid-template-columns: 1fr 340px; gap: 24px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px; padding: 26px;
}
.simulator-form { display: grid; gap: 24px; }
.sim-step { display: grid; gap: 8px; }
.sim-step-inline { grid-template-columns: 1fr 1fr; gap: 16px; }
.sim-label {
    font-size: 12px; text-transform: uppercase; letter-spacing: 0.6px;
    color: var(--text-muted); font-weight: 600;
}
.sim-options, .sim-features {
    display: flex; flex-wrap: wrap; gap: 8px;
}
.sim-opt, .sim-feature {
    position: relative; cursor: pointer;
    padding: 10px 14px; border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px; background: rgba(255,255,255,0.02);
    font-size: 13px; transition: all .2s;
    user-select: none;
}
.sim-opt input, .sim-feature input { position: absolute; opacity: 0; pointer-events: none; }
.sim-opt:hover, .sim-feature:hover { border-color: rgba(114,137,218,0.4); background: rgba(114,137,218,0.06); }
.sim-opt:has(input:checked), .sim-feature:has(input:checked) {
    border-color: #7289da; background: rgba(114,137,218,0.18); color: #fff;
}
.sim-slider-wrap { display: flex; align-items: center; gap: 14px; }
.sim-slider-wrap input[type="range"] { flex: 1; accent-color: #7289da; }
.sim-slider-value {
    min-width: 42px; text-align: center;
    background: rgba(114,137,218,0.2); color: #7289da;
    padding: 6px 10px; border-radius: 8px; font-weight: 700;
}
.sim-step-inline select {
    width: 100%; padding: 10px 12px; border-radius: 10px;
    background: rgba(0,0,0,0.28); color: #fff;
    border: 1px solid rgba(255,255,255,0.08); font-size: 13px;
}

.simulator-result {
    background: linear-gradient(160deg, rgba(114,137,218,0.15), rgba(87,242,135,0.08));
    border-radius: 14px; padding: 22px;
    display: flex; flex-direction: column; gap: 12px;
    position: sticky; top: 84px; height: fit-content;
    border: 1px solid rgba(114,137,218,0.25);
}
.sim-result-label {
    font-size: 11px; letter-spacing: 1px; text-transform: uppercase;
    color: var(--text-muted); font-weight: 700;
}
.sim-result-value {
    font-size: 28px; font-weight: 800; line-height: 1.1;
    background: linear-gradient(90deg, #7289da, #57f287);
    -webkit-background-clip: text; background-clip: text;
    color: transparent; letter-spacing: -0.5px;
}
.sim-result-hint { font-size: 12px; color: var(--text-muted); margin: 0; }
.sim-breakdown {
    list-style: none; padding: 12px 0 0; margin: 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: grid; gap: 4px; font-size: 12px;
}
.sim-breakdown li {
    display: flex; justify-content: space-between; gap: 10px;
    color: var(--text-muted);
}
.sim-breakdown li strong { color: #fff; }
.sim-cta { justify-content: center; }
.sim-disclaimer { font-size: 11px; color: var(--text-muted); margin: 0; opacity: 0.7; }

@media (max-width: 900px) {
    .simulator-wrap { grid-template-columns: 1fr; padding: 18px; }
    .simulator-result { position: static; }
    .sim-step-inline { grid-template-columns: 1fr; }
}

/* ---------- BEFORE / AFTER SLIDER ---------- */
.section-beforeafter { padding-top: 60px; padding-bottom: 60px; }

.ba-slider-wrap {
    position: relative;
    max-width: 1000px; margin: 0 auto;
}
.ba-track { position: relative; min-height: 460px; }
.ba-slide {
    position: absolute; inset: 0;
    opacity: 0; pointer-events: none;
    transition: opacity .5s ease;
}
.ba-slide.active { opacity: 1; pointer-events: auto; position: relative; }

.ba-slide-header { text-align: center; margin-bottom: 18px; }
.ba-slide-header h3 { font-size: 20px; margin: 0 0 4px; }
.ba-slide-header p { font-size: 13px; color: var(--text-muted); margin: 0; }

.ba-compare {
    position: relative; overflow: hidden;
    border-radius: 14px; user-select: none;
    aspect-ratio: 16/9;
    cursor: ew-resize;
    background: #000;
    border: 1px solid rgba(255,255,255,0.08);
    max-height: 560px;
}
.ba-img {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%; object-fit: cover;
    pointer-events: none;
    -webkit-user-drag: none;
}
.ba-before-wrap {
    position: absolute; top: 0; left: 0;
    width: 50%; height: 100%; overflow: hidden;
    transition: width 0s;
}
.ba-before-wrap .ba-img-before { width: 100vw; max-width: 1000px; }
.ba-handle {
    position: absolute; top: 0; left: 50%;
    width: 4px; height: 100%;
    background: #fff;
    transform: translateX(-50%);
    pointer-events: none;
    box-shadow: 0 0 22px rgba(0,0,0,0.5);
}
.ba-handle-btn {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 42px; height: 42px; border-radius: 50%;
    background: #fff; color: #161b2d;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 14px rgba(0,0,0,0.4);
    pointer-events: none;
}
.ba-handle-btn svg { width: 20px; height: 20px; }

.ba-tag {
    position: absolute; top: 14px;
    padding: 6px 12px; font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.5px;
    border-radius: 20px;
    background: rgba(0,0,0,0.6); color: #fff;
    backdrop-filter: blur(4px);
    pointer-events: none;
}
.ba-tag-before { left: 14px; }
.ba-tag-after { right: 14px; background: rgba(114,137,218,0.7); }

.ba-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(0,0,0,0.6); color: #fff; border: 0;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 5;
    transition: background .2s;
}
.ba-nav:hover { background: #7289da; }
.ba-nav-prev { left: -18px; }
.ba-nav-next { right: -18px; }
.ba-nav svg { width: 22px; height: 22px; }

.ba-dots {
    display: flex; justify-content: center; gap: 8px;
    margin-top: 16px;
}
.ba-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: rgba(255,255,255,0.2); border: 0;
    cursor: pointer; padding: 0;
    transition: background .2s;
}
.ba-dot.active { background: #7289da; width: 26px; border-radius: 6px; }

@media (max-width: 640px) {
    .ba-nav { display: none; }
    .ba-compare { aspect-ratio: 4/3; }
}

/* ---------- DELIVERED TOAST (canto) ---------- */
.delivered-toast {
    position: fixed; bottom: 20px; left: 20px; z-index: 9997;
    max-width: 320px;
    transform: translateY(120%);
    transition: transform .5s cubic-bezier(.2,.9,.3,1.4);
}
.delivered-toast.show { transform: translateY(0); }

.delivered-toast-inner {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px 12px 12px;
    background: rgba(21, 26, 43, 0.94);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(87,242,135,0.3);
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.delivered-toast-icon {
    flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%;
    background: rgba(87,242,135,0.18); color: #57f287;
    display: flex; align-items: center; justify-content: center;
}
.delivered-toast-icon svg { width: 16px; height: 16px; }
.delivered-toast-body { flex: 1; min-width: 0; }
.delivered-toast-body strong { display: block; font-size: 12px; color: #57f287; margin-bottom: 2px; letter-spacing: 0.3px; }
.delivered-toast-body span {
    display: block; font-size: 12px; color: var(--text-muted);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.delivered-toast-close {
    background: transparent; border: 0; color: var(--text-muted);
    font-size: 18px; cursor: pointer; padding: 0 4px;
    align-self: flex-start;
}

@media (max-width: 480px) {
    .delivered-toast { left: 10px; right: 10px; max-width: none; bottom: 12px; }
}
