/* Custom CSS Variables & Design Tokens */
:root {
    --bg-dark: #030008;
    --bg-deep: #070212;
    --bg-card: rgba(13, 5, 26, 0.55);
    --bg-card-hover: rgba(22, 10, 43, 0.75);
    
    --primary: #9d4edd;
    --primary-light: #c77dff;
    --primary-dark: #5a189a;
    --primary-glow: rgba(157, 78, 221, 0.45);
    
    --text-primary: #f8f7f9;
    --text-secondary: #b5afbf;
    --text-muted: #746d7e;
    
    --border-color: rgba(157, 78, 221, 0.12);
    --border-color-hover: rgba(157, 78, 221, 0.35);
    
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Language Toggle Logic */
body.lang-en .pt-text { display: none !important; }
body.lang-pt .en-text { display: none !important; }

/* Reset & Scrollbar */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-sans);
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-dark);
    border-radius: 4px;
    border: 2px solid var(--bg-dark);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Background & Canvas Setup */
#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(circle at 50% 50%, var(--bg-deep) 0%, var(--bg-dark) 100%);
}

/* Custom Cursor */
.custom-cursor {
    width: 8px;
    height: 8px;
    background: #ffffff;
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
    display: none; /* Enabled on mousemove */
}

.custom-cursor-glow {
    width: 36px;
    height: 36px;
    background: rgba(157, 78, 221, 0.08);
    border: 1px solid rgba(157, 78, 221, 0.3);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%);
    filter: blur(1px);
    box-shadow: 0 0 12px var(--primary-glow);
    display: none; /* Enabled on mousemove */
}

/* Typography and Common Layout Elements */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 8rem 0;
    position: relative;
}

.section-title {
    font-size: 2.75rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 3.5rem;
}

.text-center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 99px;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(157, 78, 221, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 25px var(--primary-glow);
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: rgba(157, 78, 221, 0.08);
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(157, 78, 221, 0.15);
    transform: translateY(-2px);
}

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

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(3, 0, 8, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(157, 78, 221, 0.08);
    transition: var(--transition-smooth);
}

.header-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #ffffff;
}

.scissors-icon {
    color: var(--primary-light);
    filter: drop-shadow(0 0 6px rgba(199, 125, 255, 0.6));
    animation: pulseGlow 3s infinite ease-in-out;
}

.logo-text {
    font-weight: 800;
    letter-spacing: 0.1em;
    font-size: 1.25rem;
}

.logo-text .dot {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2.2rem;
}

.nav-item {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
    padding: 0.25rem 0;
}

.nav-item:hover {
    color: #ffffff;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--primary);
    transition: var(--transition-fast);
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Language Toggle Button */
.lang-toggle-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 99px;
    padding: 0.4rem 0.9rem;
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: var(--transition-smooth);
}

.lang-toggle-btn:hover {
    border-color: var(--primary-light);
    background: rgba(157, 78, 221, 0.05);
}

.lang-option {
    transition: var(--transition-fast);
}

.lang-option.active {
    color: var(--primary-light);
    text-shadow: 0 0 5px rgba(199, 125, 255, 0.5);
}

.lang-separator {
    opacity: 0.4;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 2rem;
    position: relative;
}

.hero-eyebrow {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--primary-light);
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(199, 125, 255, 0.4);
}

.hero-title {
    font-size: 6rem;
    font-weight: 300;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #ffffff;
    max-width: 1000px;
}

.hero-serif-title {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 700;
    background: linear-gradient(180deg, #ffffff 30%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    margin-top: 0.25rem;
    padding: 0.15em 0.35em; /* Padding vertical e horizontal para evitar cortes nos extremos do itálico */
    line-height: 1.25;
    text-shadow: 0 0 50px rgba(157, 78, 221, 0.3);
}

.hero-subtitle {
    font-size: 1.4rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-bottom: 3.5rem;
    text-transform: lowercase;
}

.hero-ctas {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.hero-scroll-hint {
    position: absolute;
    bottom: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.hero-scroll-hint:hover {
    color: #ffffff;
}

.scroll-arrow {
    animation: bounce 2s infinite;
}

/* Stats Section */
.stats-section {
    padding: 4rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(180deg, rgba(3, 0, 8, 0.2) 0%, rgba(13, 5, 26, 0.2) 100%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-card {
    padding: 1.5rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.5rem;
    font-family: var(--font-sans);
    white-space: nowrap; /* Impede a quebra de linha em estatísticas como B2B SaaS */
    background: linear-gradient(135deg, #ffffff 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 5rem;
    align-items: center;
}

.about-bio {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.about-bio strong {
    color: #ffffff;
}

.tools-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin-bottom: 1.2rem;
    font-weight: 700;
}

.tools-grid {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.tool-badge {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 0.6rem 1.2rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.tool-badge:hover {
    border-color: var(--border-color-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(157, 78, 221, 0.08);
}

.tool-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.tool-dot.purple { background-color: var(--primary-light); box-shadow: 0 0 8px var(--primary-light); }
.tool-dot.blue { background-color: #38bdf8; box-shadow: 0 0 8px #38bdf8; }
.tool-dot.orange { background-color: #fb923c; box-shadow: 0 0 8px #fb923c; }

/* Interactive 3D Visual Card (About) */
.about-visual {
    perspective: 1000px;
    height: 380px;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.visual-card-3d {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.1s ease;
}

.visual-glow {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(157, 78, 221, 0.18) 0%, transparent 70%);
    filter: blur(20px);
    z-index: 1;
    pointer-events: none;
}

.visual-inner {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    z-index: 2;
    overflow: hidden;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.visual-scissors {
    width: 110px;
    height: 110px;
    color: var(--primary-light);
    filter: drop-shadow(0 0 15px rgba(199, 125, 255, 0.5));
    margin-bottom: 2.5rem;
    animation: scissorHover 6s ease-in-out infinite;
}

.visual-lines {
    width: 100%;
}

.line-row {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
}

.line-row:last-child {
    border-bottom: none;
}

.line-tag {
    color: var(--text-muted);
    font-weight: 500;
}

.line-val {
    color: #ffffff;
    font-weight: 600;
}

/* Bento Grid Values Section */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 240px;
    gap: 1.5rem;
}

.bento-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    overflow: hidden;
    padding: 2.2rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
}

.bento-card:hover {
    border-color: var(--border-color-hover);
    transform: scale(1.025) translateY(-2px);
    box-shadow: 0 12px 30px rgba(157, 78, 221, 0.12);
}

.bento-card.x-large {
    grid-column: span 2;
}

.bento-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(157, 78, 221, 0.12) 0%, transparent 60%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.bento-card:hover .bento-glow {
    opacity: 1;
}

.bento-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.bento-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(157, 78, 221, 0.1);
    color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: auto; /* Pushes content down */
}

.bento-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: #ffffff;
}

.bento-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Works / Portfolio Showcase */
.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.video-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.video-card:hover {
    border-color: var(--border-color-hover);
    transform: scale(1.035) translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(157, 78, 221, 0.18);
}

.video-thumbnail-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.25rem;
    transition: var(--transition-smooth);
}

.video-card:hover .video-thumbnail {
    transform: scale(1.04);
}

.video-thumbnail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(3, 0, 8, 0.4) 0%, rgba(3, 0, 8, 0.85) 100%);
    z-index: 1;
}

.video-badge {
    position: relative;
    z-index: 2;
    align-self: flex-start;
    background: rgba(157, 78, 221, 0.2);
    border: 1px solid rgba(199, 125, 255, 0.3);
    color: var(--primary-light);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.7rem;
    border-radius: 99px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    backdrop-filter: blur(4px);
}

.video-preview-title {
    position: relative;
    z-index: 2;
    font-family: var(--font-serif);
    font-weight: 700;
    font-style: italic;
    font-size: 1.4rem;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    align-self: center;
    margin-top: 1rem;
}

.play-btn-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.85);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #ffffff;
    color: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    opacity: 0;
    transition: var(--transition-smooth);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.5);
}

.video-card:hover .play-btn-circle {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.video-info {
    padding: 1.5rem;
}

.video-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
    line-height: 1.4;
    transition: var(--transition-fast);
}

.video-card:hover .video-title {
    color: var(--primary-light);
}

.video-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.video-tag {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    font-weight: 500;
}

/* Professional Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 4rem auto 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary) 0%, rgba(157, 78, 221, 0.05) 100%);
}

.timeline-item {
    position: relative;
    padding-left: 3rem;
    margin-bottom: 3.5rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -5px;
    top: 0.35rem;
    width: 12px;
    height: 12px;
    background: var(--primary-light);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-light);
    transition: var(--transition-smooth);
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.3);
    background: #ffffff;
    box-shadow: 0 0 15px #ffffff;
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
}

.timeline-item:hover .timeline-content {
    border-color: var(--border-color-hover);
    box-shadow: 0 10px 25px rgba(157, 78, 221, 0.05);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.timeline-role {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
}

.timeline-company {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.timeline-company a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

.timeline-company a:hover {
    text-shadow: 0 0 8px rgba(199, 125, 255, 0.5);
}

.timeline-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Call to Action Container */
.cta-container {
    max-width: 1000px;
}

.cta-card {
    position: relative;
    background: linear-gradient(135deg, rgba(22, 10, 43, 0.6) 0%, rgba(7, 2, 18, 0.8) 100%);
    border: 1px solid var(--border-color-hover);
    border-radius: 32px;
    padding: 4.5rem;
    text-align: center;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4), 0 0 30px rgba(157, 78, 221, 0.15);
}

.cta-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(157, 78, 221, 0.22) 0%, transparent 60%);
    filter: blur(30px);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-title {
    font-size: 2.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cta-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto 3rem auto;
}

.cta-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* Footer Section */
.footer-area {
    padding: 4rem 0;
    border-top: 1px solid var(--border-color);
    background: rgba(3, 0, 8, 0.9);
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-brand .logo {
    font-size: 1.1rem;
}

.footer-tagline {
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.footer-credits {
    text-align: right;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-credits p {
    margin-bottom: 0.25rem;
}

.footer-subcredits {
    font-size: 0.75rem;
}

/* YouTube Video Modal */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.video-modal.active {
    opacity: 1;
    pointer-events: all;
}

.video-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 0, 8, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.video-modal-container {
    position: relative;
    width: 90%;
    max-width: 960px;
    aspect-ratio: 16 / 9;
    background: #000000;
    border-radius: 16px;
    border: 1px solid rgba(157, 78, 221, 0.25);
    overflow: hidden;
    z-index: 2;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 30px rgba(157, 78, 221, 0.2);
}

.video-modal.active .video-modal-container {
    transform: scale(1);
}

.video-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: var(--transition-fast);
}

.video-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #ffffff;
    transform: rotate(90deg);
}

.video-modal-player {
    width: 100%;
    height: 100%;
}

.video-modal-player iframe {
    width: 100%;
    height: 100%;
}

/* Animations */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-6px);
    }
    60% {
        transform: translateY(-3px);
    }
}

@keyframes scissorHover {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(5deg);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        filter: drop-shadow(0 0 4px rgba(199, 125, 255, 0.4));
        opacity: 0.85;
    }
    50% {
        filter: drop-shadow(0 0 10px rgba(199, 125, 255, 0.8));
        opacity: 1;
    }
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 4.5rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 2.4rem; /* Reduz ligeiramente em telas menores para garantir que B2B SaaS caiba sem quebra */
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-visual {
        max-width: 500px;
        margin: 0 auto;
        height: 320px;
    }
    
    .bento-grid {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 220px;
    }
    
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    section {
        padding: 5rem 0;
    }
    
    .header-container {
        padding: 1rem 1.5rem;
    }
    
    .nav-links {
        display: none; /* Can add a slide-out menu or rely on simple mobile UX */
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2.5rem;
    }
    
    .hero-ctas {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }
    
    .bento-card.x-large {
        grid-column: span 1;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .timeline::before {
        left: 10px;
    }
    
    .timeline-item {
        padding-left: 2rem;
    }
    
    .timeline-dot {
        left: 5px;
    }
    
    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .cta-card {
        padding: 2.5rem 1.5rem;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-grid {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-credits {
        text-align: center;
    }
}

/* Scroll Reveal Animations (Intersection Observer) */
.reveal-in {
    opacity: 0;
    transform: translateY(30px);
    will-change: transform, opacity;
    transition: opacity 1.0s cubic-bezier(0.16, 1, 0.3, 1), transform 1.0s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Staggered delay helpers */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.22s; }
.reveal-delay-3 { transition-delay: 0.35s; }
.reveal-delay-4 { transition-delay: 0.48s; }

/* Overriding reveal transforms on Hover to enable Zoom Scale animations */
.bento-card.reveal-visible:hover {
    border-color: var(--border-color-hover);
    transform: scale(1.025) translateY(-2px);
    box-shadow: 0 12px 30px rgba(157, 78, 221, 0.15);
}

.video-card.reveal-visible:hover {
    border-color: var(--border-color-hover);
    transform: scale(1.035) translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(157, 78, 221, 0.2);
}

/* Hide default browser cursor globally to show only custom glowing circles */
html, body, a, button, input, textarea, select, iframe, .video-card, .bento-card, .timeline-item, * {
    cursor: none !important;
}

