/* Landing — Viral captions showcase */

.viral-captions-section {
    position: relative;
    z-index: 10;
    padding: 4rem 1rem 5rem;
    overflow: hidden;
    background: transparent;
}

@media (min-width: 640px) {
    .viral-captions-section {
        padding: 5rem 1.5rem 6rem;
    }
}

.viral-captions-inner {
    position: relative;
    max-width: 56rem;
    margin: 0 auto;
}

/* —— Hero —— */
.viral-hero {
    position: relative;
    margin-bottom: 2.5rem;
    text-align: center;
}

.viral-hero-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 1.1rem;
    padding: 0.45rem 1rem;
    border-radius: 9999px;
    border: 1px solid rgba(34, 197, 94, 0.4);
    background: rgba(34, 197, 94, 0.1);
    color: #86efac;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.viral-hero-badge-pulse {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.45);
    animation: viral-badge-pulse 1.6s ease-in-out infinite;
}

@keyframes viral-badge-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.55; transform: scale(0.85); }
}

.viral-hero-title {
    position: relative;
    margin: 0 0 0.85rem;
    font-size: clamp(2rem, 6vw, 3.35rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.viral-hero-title-line {
    display: block;
    color: #fff;
}

.viral-hero-title-accent {
    display: block;
    color: #22c55e;
}

.viral-hero-lead {
    position: relative;
    max-width: 34rem;
    margin: 0 auto 1.25rem;
    color: #cbd5e1;
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    line-height: 1.55;
}

.viral-hero-platforms {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.viral-platform-pill {
    padding: 0.3rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.75);
}

.viral-platform-pill--tiktok { border-color: rgba(254, 44, 85, 0.35); color: #ff8fa8; }
.viral-platform-pill--reels { border-color: rgba(225, 48, 108, 0.35); color: #f472b6; }
.viral-platform-pill--shorts { border-color: rgba(255, 0, 0, 0.35); color: #fca5a5; }

/* —— Caption stage (no phone) —— */
.viral-showcase {
    margin-bottom: 2rem;
}

.viral-showcase-hint {
    margin: 0 0 1rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.viral-caption-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: clamp(120px, 22vw, 168px);
    margin-bottom: 1.25rem;
    padding: 1.75rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: transparent;
    transition: border-color 0.35s ease;
}

.viral-caption-stage-bg {
    display: none;
}

.viral-caption-line {
    position: relative;
    z-index: 1;
    display: inline-block;
    max-width: 100%;
    text-align: center;
    line-height: 1.25;
    font-size: clamp(1.35rem, 4.5vw, 2.35rem);
    transition: font-family 0.25s ease;
}

.viral-caption-word {
    display: inline-block;
    margin: 0 0.14em;
    transition: color 0.15s ease, transform 0.15s ease, text-shadow 0.15s ease, background 0.15s ease;
}

/* Preset: Anime */
.viral-caption-stage[data-preset="anime"] {
    border-color: rgba(255, 105, 180, 0.28);
}
.viral-caption-stage[data-preset="anime"] .viral-caption-line {
    padding: 0.45rem 0.85rem;
    border-radius: 0.5rem;
    background: rgba(255, 105, 180, 0.92);
    font-family: 'Arial Black', Arial, sans-serif;
    font-weight: 900;
}
.viral-caption-stage[data-preset="anime"] .viral-caption-word {
    color: #fff;
    -webkit-text-stroke: 1px #000;
    text-shadow: 1px 1px 0 #000, -1px -1px 0 #000;
}
.viral-caption-stage[data-preset="anime"] .viral-caption-word.is-active {
    color: #ffff00;
    animation: viral-word-bounce 0.45s ease;
}

/* Preset: TikTok Neon */
.viral-caption-stage[data-preset="tiktok-neon"] {
    border-color: rgba(254, 44, 85, 0.28);
}
.viral-caption-stage[data-preset="tiktok-neon"] .viral-caption-line {
    font-family: Montserrat, 'Segoe UI', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
}
.viral-caption-stage[data-preset="tiktok-neon"] .viral-caption-word {
    color: #fff;
    -webkit-text-stroke: 1px #000;
    text-shadow: 2px 2px 0 #000;
}
.viral-caption-stage[data-preset="tiktok-neon"] .viral-caption-word.is-active {
    color: #fe2c55;
    text-shadow: 0 0 16px rgba(254, 44, 85, 0.6), 2px 2px 0 #000;
    animation: viral-word-bounce 0.45s ease;
}

/* Preset: Hormozi */
.viral-caption-stage[data-preset="hormozi"] {
    border-color: rgba(255, 255, 0, 0.2);
}
.viral-caption-stage[data-preset="hormozi"] .viral-caption-line {
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
}
.viral-caption-stage[data-preset="hormozi"] .viral-caption-word {
    color: #fff;
    -webkit-text-stroke: 1px #000;
    text-shadow: 2px 2px 0 #000;
}
.viral-caption-stage[data-preset="hormozi"] .viral-caption-word.is-active {
    color: #ffff00;
    transform: scale(1.08);
}

/* Preset: Neon Cyber */
.viral-caption-stage[data-preset="neon"] {
    border-color: rgba(0, 255, 255, 0.2);
}
.viral-caption-stage[data-preset="neon"] .viral-caption-line {
    font-family: Orbitron, 'Courier New', monospace;
    font-weight: 700;
}
.viral-caption-stage[data-preset="neon"] .viral-caption-word {
    color: #00ffff;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.45);
}
.viral-caption-stage[data-preset="neon"] .viral-caption-word.is-active {
    color: #ff00ff;
    text-shadow: 0 0 18px rgba(255, 0, 255, 0.65);
    animation: viral-neon-pulse 0.8s ease;
}

/* Preset: Gaming */
.viral-caption-stage[data-preset="gaming"] {
    border-color: rgba(0, 255, 0, 0.2);
}
.viral-caption-stage[data-preset="gaming"] .viral-caption-line {
    font-family: 'Courier New', Courier, monospace;
    font-weight: 800;
    text-transform: uppercase;
}
.viral-caption-stage[data-preset="gaming"] .viral-caption-word {
    color: #00ff00;
    text-shadow: 0 0 6px rgba(0, 255, 0, 0.35);
}
.viral-caption-stage[data-preset="gaming"] .viral-caption-word.is-active {
    color: #ff0000;
    text-shadow: 0 0 12px rgba(255, 0, 0, 0.55);
    animation: viral-word-glitch 0.35s steps(2) 1;
}

@keyframes viral-word-bounce {
    0%, 100% { transform: scale(1); }
    40% { transform: scale(1.16); }
    70% { transform: scale(0.97); }
}

@keyframes viral-neon-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; filter: brightness(1.2); }
}

@keyframes viral-word-glitch {
    0% { transform: translate(0); }
    25% { transform: translate(-2px, 1px); }
    50% { transform: translate(2px, -1px); }
    75% { transform: translate(-1px, -1px); }
    100% { transform: translate(0); }
}

/* Preset picker */
.viral-preset-picker {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.55rem;
}

.viral-preset-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.85rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, color 0.2s, transform 0.2s;
}

.viral-preset-tab:hover {
    border-color: rgba(255, 255, 255, 0.22);
    color: #fff;
    transform: translateY(-1px);
}

.viral-preset-tab.is-active {
    border-color: rgba(34, 197, 94, 0.45);
    background: rgba(34, 197, 94, 0.1);
    color: #fff;
}

.viral-preset-swatch {
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--swatch) 0%, var(--swatch-active) 100%);
}

.viral-preset-dots {
    display: flex;
    justify-content: center;
    gap: 0.35rem;
    margin-top: 1rem;
}

.viral-preset-dot {
    width: 0.35rem;
    height: 0.35rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: background 0.25s, transform 0.25s;
}

.viral-preset-dot.is-active {
    background: #22c55e;
    transform: scale(1.35);
}

/* —— Features + CTA —— */
.viral-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2.5rem;
    text-align: center;
}

.viral-captions-list {
    list-style: none;
    margin: 0 0 0.5rem;
    padding: 0;
    max-width: 32rem;
}

.viral-captions-list li {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0.65rem;
    color: #d1d5db;
    font-size: 0.95rem;
    line-height: 1.5;
}

.viral-captions-list li + li {
    margin-top: 0.55rem;
}

.viral-captions-list li::before {
    content: '✓';
    flex-shrink: 0;
    color: #22c55e;
    font-weight: 700;
}

.viral-captions-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding: 0.9rem 1.6rem;
    border-radius: 0.75rem;
    background: #16a34a;
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.viral-captions-cta:hover {
    background: #22c55e;
    transform: translateY(-1px);
}

/* —— Platform note (bottom) —— */
.viral-platform-block {
    padding: 1.35rem 1.25rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: transparent;
}

.viral-platform-title {
    margin: 0 0 0.55rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.viral-platform-desc {
    margin: 0;
    color: rgba(203, 213, 225, 0.85);
    font-size: 0.88rem;
    line-height: 1.65;
}

@media (prefers-reduced-motion: reduce) {
    .viral-hero-title-accent,
    .viral-hero-badge-pulse {
        animation: none;
    }
    .viral-caption-word.is-active {
        animation: none !important;
    }
}
