/*
Plugin Name: Singulativo Landing Page
Version: 1.1.1
Description: CSS com namespace para evitar conflitos com WordPress
*/

/* Estilos globais apenas para páginas do plugin */
.singulativo-page {
    --primary: #5a55d5;
    --secondary: #807bf4;
    --light: #d2d1f7;
    --dark: #1a1a2e;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
}

.singulativo-page.light-theme {
    --bg-main: #f5f5f7;
    --bg-card: rgba(255, 255, 255, 0.9);
    --text-primary: #1a1a2e;
    --text-secondary: #4a4a6a;
    --text-light: #6a6a8a;
    --border-color: rgba(90, 85, 213, 0.15);
    --dock-bg: rgba(255, 255, 255, 0.9);
    --dock-item: rgba(240, 240, 240, 1);
    --magnet-bg: rgba(226, 225, 247, 0.6);
    --magnet-hover: rgba(210, 209, 247, 0.8);
}

.singulativo-page.dark-theme {
    --bg-main: #1a1a2e;
    --bg-card: rgba(255, 255, 255, 0.03);
    --text-primary: #ffffff;
    --text-secondary: #d2d1f7;
    --text-light: #d2d1f7;
    --border-color: rgba(210, 209, 247, 0.1);
    --dock-bg: rgba(26, 26, 46, 0.9);
    --dock-item: rgba(50, 50, 70, 1);
    --magnet-bg: rgba(90, 85, 213, 0.2);
    --magnet-hover: rgba(128, 123, 244, 0.3);
}

/* Background */
.singulativo-page {
    background: var(--bg-main);
    transition: background-color 0.3s ease;
}

#dotted-surface {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.surface-overlay {
    position: fixed;
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(90, 85, 213, 0.15), transparent 50%);
    filter: blur(30px);
    z-index: 1;
    pointer-events: none;
}

/* Wrapper */
#singulativo-landing-wrapper {
    position: relative;
    z-index: 2;
}

/* Dock Menu */
.dock-container {
    position: fixed;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    max-width: 90%;
}

.dock {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: var(--dock-bg);
    backdrop-filter: blur(20px);
    border-radius: 1.5rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.dock-item {
    position: relative;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dock-item);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dock-item:hover {
    transform: translateY(-8px) scale(1.2);
    z-index: 10;
}

.dock-item svg {
    width: 24px !important;
    height: 24px !important;
    color: var(--text-primary);
    stroke-width: 2;
    flex-shrink: 0;
}

.dock-label {
    position: absolute;
    bottom: calc(100% + 0.5rem);
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    padding: 0.4rem 0.8rem;
    background: var(--dock-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
    color: var(--text-primary);
}

.dock-item:hover .dock-label {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

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

/* Section spacing */
.singulativo-section {
    padding: 6rem 5%;
    position: relative;
    z-index: 2;
}

/* Badges - CORRIGIDO */
.section-badge,
.ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.5rem;
    background: rgba(90, 85, 213, 0.15);
    border: 1px solid rgba(90, 85, 213, 0.3);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease;
}

.section-badge svg,
.ai-badge svg {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px;
    min-height: 20px;
    flex-shrink: 0;
}

/* Magnetize Button */
.magnetize-button {
    position: relative;
    min-width: 240px;
    padding: 1.1rem 3rem;
    border-radius: 9999px;
    border: 2px solid var(--primary);
    background: var(--magnet-bg);
    backdrop-filter: blur(10px);
    color: var(--primary);
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    overflow: visible;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.magnetize-button:hover {
    background: var(--magnet-hover);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 30px rgba(90, 85, 213, 0.4);
}

.magnetize-button .magnet-icon {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px;
    min-height: 24px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.magnetize-button:hover .magnet-icon {
    transform: scale(1.15) rotate(8deg);
}

.magnet-particle {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.35;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    box-shadow: 0 0 8px rgba(90, 85, 213, 0.4);
}

.magnetize-button:hover .magnet-particle {
    opacity: 1;
    box-shadow: 0 0 12px rgba(90, 85, 213, 0.8);
}

/* Like Animation */
.like-particle {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    font-size: 2rem;
    animation: likeFloat 1.5s ease-out forwards;
}

@keyframes likeFloat {
    0% {
        opacity: 1;
        transform: translateY(0) scale(0.5) rotate(0deg);
    }
    50% {
        opacity: 0.8;
        transform: translateY(-80px) scale(1.2) rotate(15deg);
    }
    100% {
        opacity: 0;
        transform: translateY(-150px) scale(0.8) rotate(30deg);
    }
}

/* Buttons */
.interactive-button {
    position: relative;
    min-width: 200px;
    padding: 0.9rem 2.5rem;
    border-radius: 9999px;
    border: 2px solid var(--primary);
    background: var(--primary);
    color: var(--white);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.interactive-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(90, 85, 213, 0.4);
    text-decoration: none;
}

.button-text {
    display: inline-block;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.interactive-button:hover .button-text {
    transform: translateX(-8px);
}

.button-arrow {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px;
    min-height: 20px;
    stroke-width: 2;
    margin-left: 0;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.interactive-button:hover .button-arrow {
    opacity: 1;
    transform: translateX(0);
    margin-left: 0.5rem;
}

/* Hero Section */
.typewriter-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 5% 4rem;
}

.typewriter-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.typewriter-wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    min-height: 200px;
}

.typewriter-text {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.2;
    text-align: center;
    max-width: 100%;
    color: var(--text-primary);
}

.typewriter-text .highlight-text {
    color: var(--primary);
}

.typewriter-cursor {
    display: inline-block;
    width: 4px;
    height: clamp(2rem, 5vw, 3rem);
    background: var(--primary);
    border-radius: 2px;
    animation: cursorBlink 0.8s ease-in-out infinite alternate;
    margin-left: 2px;
    vertical-align: text-bottom;
}

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

.hero-content {
    max-width: 1000px;
    margin: 0 auto;
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-content.visible {
    opacity: 1;
}

.hero-content .subtitle {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-weight: 400;
    line-height: 1.7;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Problem Section */
.problem-section {
    background: linear-gradient(180deg, transparent, rgba(90, 85, 213, 0.03));
}

.problem-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.problem-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 2rem;
    color: var(--text-primary);
    animation: fadeInUp 0.8s ease;
}

.problem-title .question {
    color: var(--primary);
}

.problem-text {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease;
}

.problem-highlight {
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    font-weight: 700;
    color: var(--primary);
    margin-top: 2rem;
    animation: fadeInUp 1.2s ease;
}

/* AI Section - CORRIGIDO */
.ai-section {
    background: linear-gradient(180deg, rgba(90, 85, 213, 0.05), transparent);
}

.ai-container {
    max-width: 1200px;
    margin: 0 auto;
}

.ai-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: flex-start;
    margin-top: 2rem;
}

.ai-text-column {
    animation: fadeInUp 0.8s ease;
}

.ai-text-column h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    line-height: 1.2;
}

.ai-text-column .highlight {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ai-text-column p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.ai-features-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    animation: fadeInUp 1s ease;
}

.ai-feature {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.ai-feature-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: 16px;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.ai-feature-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.ai-feature-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-light);
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeInUp 0.8s ease;
}

.section-header h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-header p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* Cards */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.content-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2.5rem;
    transition: all 0.4s;
    animation: fadeInUp 0.8s ease;
    position: relative;
    overflow: hidden;
}

.content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s;
}

.content-card:hover {
    border-color: var(--primary);
    box-shadow: 0 20px 60px rgba(90, 85, 213, 0.25);
    transform: translateY(-8px);
}

.content-card:hover::before {
    transform: scaleX(1);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.card-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
}

.card-info h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.card-info .card-meta {
    font-size: 0.9rem;
    color: var(--text-light);
    opacity: 0.7;
}

.card-content {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.card-footer {
    display: flex;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.card-stats {
    display: flex;
    gap: 1.5rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.stat-icon {
    font-size: 1.1rem;
}

/* Text Rotate */
.text-rotate-container {
    display: inline-flex;
    position: relative;
    vertical-align: middle;
    overflow: hidden;
    min-width: 120px;
}

.text-rotate {
    display: inline-block;
}

@keyframes textRotateUp {
    0%, 25% { transform: translateY(0); opacity: 1; }
    30%, 45% { transform: translateY(-100%); opacity: 0; }
    50%, 75% { transform: translateY(100%); opacity: 0; }
    80%, 100% { transform: translateY(0); opacity: 1; }
}

.card-tags {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.tag {
    padding: 0.4rem 1rem;
    background: rgba(90, 85, 213, 0.15);
    border: 1px solid rgba(90, 85, 213, 0.3);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
}

/* CTA Section */
.cta-section {
    background: var(--gradient);
    border-radius: 30px;
    padding: 5rem 3rem;
    text-align: center;
    margin: 4rem auto;
    max-width: 1200px;
}

.cta-section h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 1.5rem;
    color: var(--white);
}

.cta-section p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: 2.5rem;
    opacity: 0.9;
    color: var(--white);
}

/* Fade-in */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

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

/* Responsive */
@media (max-width: 968px) {
    .ai-content-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }
    .dock {
        gap: 0.5rem;
        padding: 0.5rem 0.75rem;
    }
    .dock-item {
        width: 40px;
        height: 40px;
    }
    .dock-item svg {
        width: 20px !important;
        height: 20px !important;
    }
    .magnetize-button {
        min-width: 200px;
        padding: 1rem 2.5rem;
        font-size: 1rem;
    }
}
