/* --- CSS VARIABLES --- */
:root {
    --bg-main: #050505;
    --bg-surface: #111111;
    --bg-surface-light: #1a1a1b;
    --primary: #ffb703; /* Amarelo ouro */
    --primary-light: #ffc233;
    --accent: #fb8500; /* Laranja */
    --accent-light: #ff9e33;
    --neon: #ffe380;
    --text-main: #ffffff;
    --text-muted: #9ca3af;
    --border-color: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(17, 17, 17, 0.6);
    --glass-border: rgba(255, 255, 255, 0.05);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- RESET & GLOBAL --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- TYPOGRAPHY UTILS --- */
.text-primary { color: var(--primary-light); }
.text-accent { color: var(--accent-light); }
.text-gradient {
    background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.lead {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* --- BACKGROUND EFFECTS --- */
.bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.4;
    pointer-events: none;
}
.glow-1 {
    top: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: var(--accent);
}
.glow-2 {
    top: 20%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: var(--primary);
}
.glow-3 {
    bottom: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 400px;
    background: var(--accent);
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -2;
    pointer-events: none;
}

/* --- GLASSMORPHISM --- */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #111;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(251, 133, 0, 0.3);
}
.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(251, 133, 0, 0.5);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
}
.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.pulse-btn {
    animation: pulse-shadow 2s infinite;
}
@keyframes pulse-shadow {
    0% { box-shadow: 0 0 0 0 rgba(251, 133, 0, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(251, 133, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(251, 133, 0, 0); }
}

/* --- HEADER --- */
.glass-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    padding: 0.5rem 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
}
.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.desktop-nav {
    display: flex;
    gap: 2rem;
}
.desktop-nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
}
.desktop-nav a:hover {
    color: var(--text-main);
}

.header-actions {
    display: flex;
    gap: 1rem;
}

/* --- HERO SECTION --- */
.hero {
    padding: 12rem 0 6rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    background: rgba(251, 133, 0, 0.1);
    border: 1px solid rgba(251, 133, 0, 0.3);
    color: var(--accent-light);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

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

/* Hero Visuals */
.hero-visual {
    position: relative;
}

.dashboard-mockup {
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.mockup-header {
    height: 30px;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    padding: 0 1rem;
    gap: 6px;
    border-bottom: 1px solid var(--border-color);
}
.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.mockup-body {
    flex: 1;
    display: flex;
    background: var(--bg-surface);
}
.sidebar {
    width: 60px;
    border-right: 1px solid var(--border-color);
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
.side-item {
    width: 24px;
    height: 24px;
    background: var(--bg-surface-light);
    border-radius: 6px;
}
.side-item.active { background: var(--primary); }

.main-area {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.top-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.mini-card {
    height: 60px;
    background: var(--bg-surface-light);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}
.charts-area {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
    flex: 1;
}
.chart-box {
    background: var(--bg-surface-light);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
}
.chart-line {
    width: 80%;
    height: 2px;
    background: var(--accent);
    position: relative;
}
.chart-line::after {
    content: '';
    position: absolute;
    right: 0;
    top: -4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary-light);
    box-shadow: 0 0 10px var(--primary-light);
}
.circle-chart {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 10px solid var(--bg-surface);
    border-top-color: var(--primary);
    border-right-color: var(--accent);
}

.float-card {
    position: absolute;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-radius: 12px;
    animation: float 6s ease-in-out infinite;
}
.float-1 {
    top: -20px;
    right: -20px;
}
.float-2 {
    bottom: 20px;
    left: -40px;
    animation-delay: 3s;
}
.float-card h4 {
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}
.float-card span {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.float-card i {
    font-size: 1.5rem;
}

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

/* --- SECTION HEADERS --- */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}
.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.section-header p {
    font-size: 1.125rem;
    color: var(--text-muted);
}

/* --- PROBLEMAS --- */
.problemas {
    padding: 6rem 0;
    background: linear-gradient(to bottom, var(--bg-main), var(--bg-surface));
}
.problemas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.prob-card {
    padding: 2rem;
    background: var(--bg-surface-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: var(--transition);
}
.prob-card:hover {
    border-color: rgba(255, 95, 86, 0.5);
    transform: translateY(-5px);
}
.prob-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 95, 86, 0.1);
    color: #ff5f56;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}
.prob-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}
.prob-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- SOLUÇÕES --- */
.solucoes {
    padding: 6rem 0;
}
.solucoes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.sol-card {
    padding: 2rem;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}
.sol-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}
.sol-icon {
    font-size: 2rem;
    color: var(--primary-light);
    margin-bottom: 1.5rem;
}
.sol-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}
.sol-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    position: relative;
    z-index: 2;
}
.hover-glow {
    position: absolute;
    width: 100px;
    height: 100px;
    background: var(--primary);
    filter: blur(50px);
    border-radius: 50%;
    bottom: -50px;
    right: -50px;
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
}
.sol-card:hover .hover-glow {
    opacity: 0.3;
}

/* --- DIFERENCIAL --- */
.diferencial {
    padding: 6rem 0;
    background: var(--bg-surface);
}
.diff-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.code-editor {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.file-name {
    margin-left: auto;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.code-lines {
    padding: 1.5rem;
    line-height: 1.5;
    overflow-x: auto;
}
.c-keyword { color: #ff7b72; }
.c-class { color: #d2a8ff; }
.c-func { color: #79c0ff; }
.c-var { color: #79c0ff; }
.c-string { color: #a5d6ff; }

.features-list {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.features-list li {
    display: flex;
    gap: 1rem;
}
.features-list i {
    font-size: 1.5rem;
    margin-top: 0.2rem;
}
.features-list h4 {
    margin-bottom: 0.25rem;
}
.features-list p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- EMPHASIS SECTION --- */
.emphasis-section {
    padding: 8rem 0;
    background: linear-gradient(to bottom, var(--bg-surface), var(--bg-main));
    position: relative;
}
.emphasis-section::before,
.emphasis-section::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
    left: 0;
}
.emphasis-section::before { top: 0; }
.emphasis-section::after { bottom: 0; }

.text-center {
    text-align: center;
}

.emphasis-text {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.3;
    font-style: italic;
    color: var(--text-main);
    max-width: 900px;
    margin: 0 auto;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

@media (max-width: 768px) {
    .emphasis-text {
        font-size: 2rem;
    }
}

/* --- COMO FUNCIONA --- */
.como-funciona {
    padding: 6rem 0;
}
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}
.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
    transform: translateX(-50%);
}
.timeline-item {
    display: flex;
    justify-content: flex-end;
    padding-right: 50%;
    position: relative;
    margin-bottom: 3rem;
}
.timeline-item:nth-child(odd) {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: 50%;
}
.timeline-number {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--bg-main);
    border: 2px solid var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--accent-light);
    z-index: 2;
}
.timeline-content {
    width: 90%;
    padding: 2rem;
}
.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
}
.timeline-content h3 {
    margin-bottom: 1rem;
    color: var(--primary-light);
}
.timeline-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- CASES --- */
.cases {
    padding: 6rem 0;
    background: var(--bg-surface);
}
.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}
.case-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.case-img-wrapper {
    height: 240px;
    width: 100%;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.case-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.5s ease;
    cursor: zoom-in;
}

.case-card:hover .case-img-wrapper img {
    transform: scale(1.05);
}

/* Mini Mockups inside Cases */
.mock-dash {
    width: 80%;
    height: 80%;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
}
.m-header { height: 15px; border-bottom: 1px solid var(--border-color); }
.m-body { display: flex; flex: 1; }
.m-sidebar { width: 20px; border-right: 1px solid var(--border-color); }
.m-content { flex: 1; padding: 10px; display: flex; flex-direction: column; gap: 10px; }
.m-cards { display: flex; gap: 5px; }
.m-cards span { flex: 1; height: 30px; background: var(--bg-surface-light); border-radius: 4px; }
.m-table { flex: 1; background: var(--bg-surface-light); border-radius: 4px; }
.m-chart { height: 60px; background: var(--bg-surface-light); border-radius: 4px; }
.m-content.full { padding: 10px; }
.m-content.kanban { flex-direction: row; }
.k-col { flex: 1; background: var(--bg-surface-light); border-radius: 4px; padding: 5px; display: flex; flex-direction: column; gap: 5px; }
.k-col span { height: 20px; background: var(--bg-main); border-radius: 2px; }

.accent-theme .m-chart { border-bottom: 2px solid var(--accent); }
.primary-theme .k-col span { border-left: 2px solid var(--primary); }

.case-info {
    padding: 2rem;
}
.case-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.case-tags span {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    background: rgba(255,255,255,0.05);
    border-radius: 50px;
    color: var(--text-muted);
}
.case-info h3 {
    margin-bottom: 1rem;
}
.case-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- TECNOLOGIA --- */
.tecnologia {
    padding: 6rem 0;
}
.tech-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 4rem;
    align-items: center;
}
.tech-list {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.tech-list li {
    color: var(--text-muted);
}
.tech-icons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.t-icon {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--text-main);
    transition: var(--transition);
}
.t-icon:hover {
    transform: scale(1.1);
    background: var(--glass-bg);
    border-color: var(--primary);
    color: var(--primary-light);
}

/* --- CTA FINAL --- */
.cta-final {
    padding: 8rem 0;
    position: relative;
    text-align: center;
}
.cta-box {
    padding: 5rem 2rem;
    max-width: 800px;
    margin: 0 auto;
}
.cta-box h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.cta-box p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
}
.cta-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}
.cta-subtext {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* --- CTA FORM --- */
.cta-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 500px;
    margin: 2rem auto 0;
    width: 100%;
}

.form-group {
    width: 100%;
}

.cta-form input,
.cta-form textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
    outline: none;
}

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

.cta-form input:focus,
.cta-form textarea:focus {
    border-color: var(--primary-light);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 10px rgba(255, 183, 3, 0.2);
}

.cta-form textarea {
    resize: vertical;
    min-height: 100px;
}

.w-100 {
    width: 100%;
}

.cta-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 0.5rem 0;
    color: var(--text-muted);
}
.cta-divider::before,
.cta-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}
.cta-divider span {
    padding: 0 1rem;
    font-size: 0.9rem;
}

/* --- FOOTER --- */
footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem;
}
.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}
.footer-brand .slogan {
    color: var(--text-muted);
    margin-top: 1rem;
    max-width: 300px;
}
.footer-links, .footer-contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.footer-links h4, .footer-contact h4 {
    margin-bottom: 0.5rem;
}
.footer-links a, .footer-contact a {
    color: var(--text-muted);
    font-size: 0.95rem;
}
.footer-links a:hover, .footer-contact a:hover {
    color: var(--primary-light);
}
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}
.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.2rem;
}
.social-links a:hover {
    background: var(--primary);
    color: white;
}
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}
.footer-legal {
    display: flex;
    gap: 2rem;
}

/* --- UTILITIES & ANIMATIONS --- */
.pulse {
    animation: pulse-op 2s infinite alternate;
}
@keyframes pulse-op {
    from { opacity: 0.6; }
    to { opacity: 1; }
}

/* Scroll Reveals */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay { transition-delay: 0.2s; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }

/* --- APP BOTTOM NAV --- */
.bottom-nav {
    display: none;
}
.mobile-header-action {
    display: none;
}

/* --- MOBILE NAVIGATION OVERLAY --- */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(5, 5, 5, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 99;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 2rem;
    padding-top: 120px;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.mobile-nav.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav a {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-main);
}

.mobile-nav a:hover {
    color: var(--primary-light);
}

.mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 80%;
    max-width: 300px;
    margin-top: 2rem;
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .desktop-nav, .header-actions {
        display: none;
    }
    
    /* Show Bottom Nav and Header Action */
    .mobile-header-action {
        display: block;
    }
    
    .bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 75px;
        background: rgba(17, 17, 17, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid var(--border-color);
        z-index: 1000;
        justify-content: space-around;
        align-items: center;
        padding-bottom: 5px; /* small safe area */
    }

    .bn-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        color: var(--text-muted);
        font-size: 0.7rem;
        flex: 1;
        transition: var(--transition);
        cursor: pointer;
    }

    .bn-item.active {
        color: var(--primary-light);
    }
    
    .bn-action {
        position: relative;
        top: -20px;
    }
    
    .bn-action-btn {
        width: 60px;
        height: 60px;
        background: linear-gradient(135deg, var(--primary), var(--accent));
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        box-shadow: 0 4px 15px rgba(251, 133, 0, 0.4);
    }

    .whatsapp-floating-container {
        display: none !important; /* Hide old whatsapp floating on mobile */
    }
    
    body {
        padding-bottom: 75px; /* Prevent content hiding behind bottom nav */
    }



    .hero-container, .diff-container, .tech-content {
        grid-template-columns: 1fr;
    }
    .hero {
        padding-top: 8rem;
        text-align: center;
    }
    .hero-buttons {
        flex-direction: column;
        justify-content: center;
        width: 100%;
    }
    .hero-buttons .btn {
        width: 100%;
    }
    .hero-stats {
        justify-content: center;
    }
    .hero p {
        margin: 0 auto 2.5rem;
    }
    .timeline::before {
        left: 30px;
    }
    .timeline-line {
        left: 30px;
    }
    .timeline-item, .timeline-item:nth-child(odd) {
        justify-content: flex-end;
        padding-right: 0;
        padding-left: 80px;
    }
    .timeline-number {
        left: 30px;
    }
    .timeline-content {
        width: 100%;
    }
    .footer-top {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero-buttons {
        flex-direction: column;
    }
    .tech-icons {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* --- MODAL LIGHTBOX --- */
.modal {
    display: none; 
    position: fixed; 
    z-index: 9999; 
    left: 0;
    top: 0;
    width: 100vw; 
    height: 100vh; 
    overflow: hidden; 
    background-color: rgba(0,0,0,0.85); 
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    opacity: 1;
}

.modal-content {
    display: block;
    width: auto;
    max-width: 90%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.modal.show .modal-content {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #fff;
    cursor: pointer;
    transition: var(--transition);
    background: rgba(255,255,255,0.1);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.close-modal:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.1);
}

/* --- WHATSAPP FLOATING BUTTON --- */
.whatsapp-floating-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.whatsapp-floating-tooltip {
    background: #fff;
    color: #333;
    padding: 15px 20px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    margin-bottom: 15px;
    position: relative;
    max-width: 250px;
    font-size: 0.95rem;
    line-height: 1.4;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.whatsapp-floating-tooltip.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    animation: floatTooltip 2.5s infinite ease-in-out 0.4s;
}

.whatsapp-floating-tooltip::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 25px;
    border-width: 10px 10px 0;
    border-style: solid;
    border-color: #fff transparent transparent transparent;
    display: block;
    width: 0;
}

.close-tooltip {
    position: absolute;
    top: 5px;
    right: 5px;
    color: #999;
    cursor: pointer;
    background: none;
    border: none;
    padding: 2px;
    transition: color 0.2s;
}

.close-tooltip svg {
    width: 16px;
    height: 16px;
}

.close-tooltip:hover {
    color: #333;
}

.wa-typing {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px;
}

.wa-typing .dot {
    width: 6px;
    height: 6px;
    background-color: #aaa;
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out both;
}

.wa-typing .dot:nth-child(1) { animation-delay: -0.32s; }
.wa-typing .dot:nth-child(2) { animation-delay: -0.16s; }

.wa-message-text {
    margin: 0;
}

@keyframes typingBounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

.whatsapp-floating-btn {
    background-color: #25d366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.whatsapp-floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    color: #fff;
}

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

@media (max-width: 768px) {
    .whatsapp-floating-container {
        bottom: 20px;
        right: 20px;
    }
}
