/**
 * style.css - Estilização do MindMap
 * Landing Page + App - Design Profissional com Animações
 */

/* Reset CSS básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #4A90E2;
    --primary-dark: #357ABD;
    --primary-light: #6BA3E8;
    --secondary: #94A3B8;
    --background: #FFFFFF;
    --surface: #F8FAFC;
    --border: #E2E8F0;
    --text-primary: #1E293B;
    --text-secondary: #64748B;
    --text-muted: #94A3B8;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', 'Helvetica Neue', Arial, sans-serif;
    overflow-x: hidden;
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Background Pattern */
.background-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.02;
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
}

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

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

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

/* Buttons */
.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(74, 144, 226, 0.4);
}

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

.btn-secondary {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.15);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(74, 144, 226, 0.3);
}

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

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

/* Landing Header */
.landing-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.landing-header .container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.landing-logo {
    max-height: 50px;
    width: auto;
    object-fit: contain;
}

/* Hero Section */
.hero {
    background: var(--gradient-1);
    color: white;
    padding: 10rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
    margin-top: 80px; /* Espaço para o header fixo */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: pulse 4s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    animation: gradient 15s ease infinite;
    background-size: 200% 200%;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease-out;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease-out 0.2s both;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero .btn-primary,
.hero .btn-secondary {
    margin-top: 0;
}

/* Features Sections */
.features {
    padding: 8rem 0;
    background: white;
    position: relative;
}

.features-alt {
    background: var(--surface);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    animation: fadeInUp 0.6s ease-out;
}

.section-description {
    font-size: 1.25rem;
    text-align: center;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.8;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    animation: fadeInUp 0.6s ease-out;
}

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

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

.feature-card:nth-child(1) {
    animation-delay: 0.1s;
}

.feature-card:nth-child(2) {
    animation-delay: 0.2s;
}

.feature-card:nth-child(3) {
    animation-delay: 0.3s;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1.5rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.1) 0%, rgba(74, 144, 226, 0.05) 100%);
    border-radius: 12px;
    transition: all 0.3s ease;
    animation: float 3s ease-in-out infinite;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.2) 0%, rgba(74, 144, 226, 0.1) 100%);
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Problem Solving Section */
.problem-solving {
    padding: 8rem 0;
    background: var(--gradient-2);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.problem-solving::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: pulse 5s ease-in-out infinite;
}

.problem-solving .container {
    position: relative;
    z-index: 1;
}

.problem-solving .section-title,
.problem-solving .section-description {
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Sharing Section */
.sharing {
    padding: 8rem 0;
    background: white;
    text-align: center;
    position: relative;
}

.sharing::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

/* Quick Start Section */
.quick-start {
    padding: 8rem 0;
    background: var(--surface);
    text-align: center;
    position: relative;
}

/* Security Section */
.security {
    padding: 8rem 0;
    background: white;
    text-align: center;
    position: relative;
}

.security-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.security-item {
    padding: 2rem 1.5rem;
    background: var(--surface);
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    animation: fadeInUp 0.6s ease-out;
}

.security-item:nth-child(1) { animation-delay: 0.1s; }
.security-item:nth-child(2) { animation-delay: 0.2s; }
.security-item:nth-child(3) { animation-delay: 0.3s; }
.security-item:nth-child(4) { animation-delay: 0.4s; }
.security-item:nth-child(5) { animation-delay: 0.5s; }

.security-item:hover {
    transform: translateY(-6px);
    border-color: var(--primary-light);
    box-shadow: var(--shadow-lg);
    background: white;
}

.security-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.1) 0%, rgba(74, 144, 226, 0.05) 100%);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.security-item:hover .security-icon {
    transform: scale(1.1);
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.2) 0%, rgba(74, 144, 226, 0.1) 100%);
}

.security-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Use Cases Section */
.use-cases {
    padding: 8rem 0;
    background: var(--surface);
    position: relative;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.use-case-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out;
}

.use-case-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(74, 144, 226, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(30px, -30px);
    transition: transform 0.4s ease;
}

.use-case-card:hover::after {
    transform: translate(20px, -20px) scale(1.2);
}

.use-case-card:nth-child(1) { animation-delay: 0.1s; }
.use-case-card:nth-child(2) { animation-delay: 0.2s; }
.use-case-card:nth-child(3) { animation-delay: 0.3s; }
.use-case-card:nth-child(4) { animation-delay: 0.4s; }

.use-case-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.use-case-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--primary);
    position: relative;
    z-index: 1;
}

.use-case-card ul {
    list-style: none;
    padding: 0;
    position: relative;
    z-index: 1;
}

.use-case-card li {
    padding: 0.75rem 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
    position: relative;
    padding-left: 1.5rem;
    transition: color 0.3s ease;
}

.use-case-card li:last-child {
    border-bottom: none;
}

.use-case-card:hover li {
    color: var(--text-primary);
}

.check-icon {
    position: absolute;
    left: 0;
    top: 0.75rem;
    width: 16px;
    height: 16px;
    display: inline-block;
}

.check-icon:before {
    content: "";
    position: absolute;
    left: 2px;
    top: 4px;
    width: 8px;
    height: 4px;
    border: 2px solid var(--primary);
    border-top: none;
    border-right: none;
    transform: rotate(-45deg);
    transition: all 0.3s ease;
}

.use-case-card:hover .check-icon:before {
    border-color: var(--primary-dark);
    width: 10px;
    height: 5px;
}

/* Testimonials Section */
.testimonials {
    padding: 8rem 0;
    background: white;
    position: relative;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.testimonial-card {
    background: var(--surface);
    padding: 2.5rem;
    border-radius: 16px;
    border-left: 4px solid var(--primary);
    transition: all 0.3s ease;
    position: relative;
    animation: fadeInUp 0.6s ease-out;
}

.testimonial-card:nth-child(1) { animation-delay: 0.1s; }
.testimonial-card:nth-child(2) { animation-delay: 0.2s; }
.testimonial-card:nth-child(3) { animation-delay: 0.3s; }

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    background: white;
    border-left-width: 6px;
}

.testimonial-stars {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.testimonial-stars svg {
    width: 120px;
    height: 20px;
}

.testimonial-text {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-style: italic;
    font-size: 1.05rem;
}

.testimonial-author {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
}

/* CTA Section */
.cta {
    padding: 10rem 0;
    background: var(--gradient-1);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: pulse 4s ease-in-out infinite;
}

.cta .container {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: fadeInUp 0.6s ease-out;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.cta-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.cta .btn-primary {
    animation: fadeInUp 0.6s ease-out 0.4s both;
    background: white;
    color: var(--primary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.cta .btn-primary:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* App Section */
#app-section {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

#map-container {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

/* Canvas para conexões */
#connections-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Container de nós */
#nodes-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

/* Nó do mapa mental */
.mindmap-node {
    position: absolute;
    min-width: 120px;
    min-height: 40px;
    background: #FFFFFF;
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    padding: 10px 18px;
    cursor: move;
    pointer-events: all;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.mindmap-node:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.08);
    border-color: #6BA3E8;
    transform: translateY(-2px);
}

.mindmap-node.selected {
    border-color: #4A90E2;
    box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.15), 0 8px 20px rgba(74, 144, 226, 0.2);
    transform: translateY(-2px);
    background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
}

.mindmap-node.root-node {
    border-width: 3px;
    font-weight: 600;
    font-size: 1.1rem;
    background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
    box-shadow: 0 4px 16px rgba(74, 144, 226, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mindmap-node.dragging {
    opacity: 0.9;
    transform: scale(1.05);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2), 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
}

.mindmap-node-content {
    width: 100%;
    height: 100%;
    outline: none;
    border: none;
    background: transparent;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', sans-serif;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #1E293B;
    overflow: hidden;
    line-height: 1.6;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    word-wrap: break-word;
    white-space: pre-wrap;
    transition: all 0.2s ease;
}

.mindmap-node-content:focus {
    outline: 3px solid rgba(74, 144, 226, 0.3);
    outline-offset: 3px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.5);
}

.mindmap-node-content[contenteditable="true"] {
    cursor: text;
    user-select: text;
}

/* Botão '+' para adicionar filho */
.node-add-button {
    position: absolute;
    right: -18px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    color: white;
    border: 3px solid white;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.4), 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    pointer-events: all;
    line-height: 1;
    padding: 0;
}

.node-add-button:hover {
    background: linear-gradient(135deg, #357ABD 0%, #2a5f8f 100%);
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.5), 0 4px 12px rgba(0, 0, 0, 0.3);
}

.node-add-button:active {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.4);
}

/* Botão de expandir/colapsar */
.node-collapse-button {
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
    color: var(--primary);
    border: 2px solid var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.25), 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    pointer-events: all;
    padding: 0;
    opacity: 0.9;
}

.node-collapse-button:hover {
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    border-color: #357ABD;
    color: white;
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 4px 16px rgba(74, 144, 226, 0.4), 0 2px 8px rgba(0, 0, 0, 0.15);
    opacity: 1;
}

.node-collapse-button:active {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.3);
}

/* Menu de Direção */
.direction-menu {
    position: fixed;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 0.5rem;
    z-index: 10000;
    min-width: 160px;
    animation: slideDown 0.2s ease-out;
}

.direction-menu-item {
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9375rem;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.direction-menu-item:hover {
    background: rgba(74, 144, 226, 0.1);
    color: #4A90E2;
}

.direction-menu-item.active {
    background: rgba(74, 144, 226, 0.15);
    color: #4A90E2;
    font-weight: 600;
}

.direction-icon {
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
    display: inline-block;
}

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

.node-collapse-button svg {
    width: 12px;
    height: 12px;
    transition: transform 0.2s ease;
}

.node-collapse-button.collapsed svg {
    transform: rotate(0deg);
}

.node-collapse-button:not(.collapsed) svg {
    transform: rotate(0deg);
}

/* Animação suave ao mudar estado */
.node-collapse-button svg circle,
.node-collapse-button svg line {
    transition: all 0.2s ease;
}

.mindmap-node.collapsed {
    opacity: 0.9;
}

.mindmap-node {
    position: relative;
}

/* Handles de redimensionamento */
.resize-handle {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border: 2px solid white;
    border-radius: 50%;
    cursor: nwse-resize;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.resize-handle:hover {
    background: var(--primary-dark);
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.4);
}

.resize-handle-nw {
    top: -6px;
    left: -6px;
    cursor: nwse-resize;
}

.resize-handle-ne {
    top: -6px;
    right: -6px;
    cursor: nesw-resize;
}

.resize-handle-sw {
    bottom: -6px;
    left: -6px;
    cursor: nesw-resize;
}

.resize-handle-se {
    bottom: -6px;
    right: -6px;
    cursor: nwse-resize;
}

/* Scroll Animations */
@media (prefers-reduced-motion: no-preference) {
    .feature-card,
    .security-item,
    .use-case-card,
    .testimonial-card {
        opacity: 0;
        animation: fadeInUp 0.6s ease-out forwards;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        padding: 6rem 0;
        min-height: auto;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .features,
    .problem-solving,
    .sharing,
    .quick-start,
    .security,
    .use-cases,
    .testimonials,
    .cta {
        padding: 4rem 0;
    }
    
    .features-grid,
    .use-cases-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .feature-card,
    .use-case-card {
        padding: 2rem;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}
