/* Custom CSS Variables - Power Balance: Authority meets Disruptive Innovation */
:root {
    --bg-dark: #020617;
    --bg-surface: #0b1329;
    --bg-surface-glass: rgba(11, 19, 41, 0.65);
    --border-color: rgba(0, 240, 255, 0.15);
    --border-color-active: rgba(0, 240, 255, 0.4);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --color-electric-blue: #00f0ff;
    --color-cyber-navy: #3a86ff;
    --color-accent-green: #10b981;
    --color-accent-danger: #ef4444;
    
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    --transition-sharp: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Global Foundations */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

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

/* Scannable Structural Layout Grid Elements */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-small {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* Technical Custom Cursor Logic */
.custom-cursor {
    width: 20px;
    height: 20px;
    border: 1px solid var(--color-electric-blue);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: width 0.2s, height 0.2s;
}

.custom-cursor-dot {
    width: 4px;
    height: 4px;
    background-color: var(--color-electric-blue);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
}

/* Background Terminal Grid Lines */
.terminal-grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(var(--border-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

/* Premium Gradients & Typography Layouts */
h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.text-gradient {
    background: linear-gradient(135deg, var(--color-electric-blue) 0%, var(--color-cyber-navy) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Interactive Component Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.75rem;
    font-family: var(--font-heading);
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: var(--transition-sharp);
    cursor: pointer;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-electric-blue) 0%, var(--color-cyber-navy) 100%);
    color: var(--bg-dark);
    border: none;
    box-shadow: 0 4px 20px rgba(0, 240, 255, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(0, 240, 255, 0.45);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-electric-blue);
    border: 1px solid var(--border-color-active);
}

.btn-secondary:hover {
    background-color: rgba(0, 240, 255, 0.05);
    border-color: var(--color-electric-blue);
}

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

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

.btn-block {
    display: flex;
    width: 100%;
}

/* High-Impact Header Layer */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.brand-logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: 0.1em;
}

.brand-logo span {
    color: var(--color-electric-blue);
    font-weight: 400;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    margin-right: 2rem;
    transition: var(--transition-sharp);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--color-electric-blue);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition-sharp);
}

/* Hero Scaling Section Layer */
.hero-section {
    position: relative;
    padding: 180px 0 100px 0;
    min-height: 90vh;
    display: flex;
    align-items: center;
    z-index: 1;
}

.hero-glow-1 {
    position: absolute;
    top: 10%;
    left: 5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0,240,255,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-glow-2 {
    position: absolute;
    bottom: 5%;
    right: 5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(58,134,255,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    max-width: 750px;
    margin-bottom: 4rem;
}

.badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background-color: rgba(0, 240, 255, 0.05);
    border: 1px solid var(--border-color-active);
    border-radius: 2px;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-electric-blue);
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}

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

.hero-lead {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.5;
}

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

/* Bloomberg Terminal Style Dashboard Node */
.hero-data-dashboard {
    background-color: var(--bg-surface-glass);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    margin-top: 2rem;
}

.dashboard-header {
    background-color: rgba(2, 6, 23, 0.6);
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.dashboard-header .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--text-muted);
}

.dashboard-header .dot:nth-child(1) { background-color: var(--color-accent-danger); }
.dashboard-header .dot:nth-child(2) { background-color: #eab308; }
.dashboard-header .dot:nth-child(3) { background-color: var(--color-accent-green); }

.dashboard-title {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-left: 10px;
    letter-spacing: 0.05em;
}

.dashboard-body {
    padding: 1.5rem;
}

.metric-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.metric-row:last-child { border: none; }

.metric-row .label {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}

.metric-row .value {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-primary);
}

.active-pulse {
    color: var(--color-electric-blue) !important;
    position: relative;
}

/* Performance Statistics Strip Row */
.stats-strip {
    background-color: rgba(11, 19, 41, 0.4);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 3rem 0;
    position: relative;
    z-index: 2;
}

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

.stat-number {
    font-size: 3rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Micro-Interactive Services UI Framework */
.services-hub {
    padding: 100px 0;
    position: relative;
    z-index: 2;
}

.section-header {
    margin-bottom: 4rem;
    max-width: 600px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.section-header.center {
    text-align: center;
    margin: 0 auto 4rem auto;
}

.service-card-interactive {
    background-color: var(--bg-surface-glass);
    border: 1px solid var(--border-color);
    padding: 2.5rem 2rem;
    border-radius: 4px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.service-card-interactive::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--color-electric-blue), var(--color-cyber-navy));
    opacity: 0;
    transition: var(--transition-sharp);
}

.service-card-interactive:hover {
    transform: translateY(-5px);
    border-color: var(--border-color-active);
    background-color: rgba(11, 19, 41, 0.85);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.service-card-interactive:hover::before {
    opacity: 1;
}

.card-num {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--color-electric-blue);
    opacity: 0.5;
    margin-bottom: 1.5rem;
}

.service-card-interactive h3 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.service-card-interactive p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.card-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.85rem;
    font-family: var(--font-heading);
    font-weight: 600;
    transition: var(--transition-sharp);
}

.service-card-interactive:hover .card-link {
    color: var(--color-electric-blue);
}

/* Verticals Segment Switcher Component */
.verticals-showcase {
    padding: 100px 0;
    background-color: rgba(2, 6, 23, 0.5);
    border-top: 1px solid var(--border-color);
    position: relative;
    z-index: 2;
}

.tabs-nav {
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1px;
    margin-bottom: 3rem;
    overflow-x: auto;
}

.tab-btn {
    background: none;
    border: 1px solid transparent;
    color: var(--text-secondary);
    padding: 1rem 1.5rem;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-sharp);
    white-space: nowrap;
    border-radius: 4px 4px 0 0;
}

.tab-btn:hover {
    color: var(--text-primary);
    background-color: rgba(255,255,255,0.02);
}

.tab-btn.active {
    color: var(--color-electric-blue);
    border-color: var(--border-color) var(--border-color) var(--bg-dark) var(--border-color);
    background-color: var(--bg-dark);
    position: relative;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
    animation: panelFade 0.4s ease forwards;
}

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

.panel-inner {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.panel-text h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.panel-text p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.panel-bullets {
    list-style: none;
    margin-bottom: 2rem;
}

.panel-bullets li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.panel-bullets li::before {
    content: '//';
    position: absolute;
    left: 0;
    color: var(--color-electric-blue);
    font-family: var(--font-heading);
    font-weight: 700;
}

.inline-cta {
    font-size: 0.85rem;
    padding: 0.6rem 1.2rem;
}

.panel-visual {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color-active);
    border-radius: 4px;
    padding: 3rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.data-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.data-value {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-electric-blue);
}

/* Strategic Differentiation Layout Grid Elements */
.differentiation-section {
    padding: 100px 0;
    position: relative;
    z-index: 2;
}

.sticky-side {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.sticky-side h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.sticky-side .lead {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.terminal-box {
    background-color: rgba(2, 6, 23, 0.9);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 4px;
    padding: 1.25rem;
    font-family: monospace;
    font-size: 0.85rem;
}

.terminal-line {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.terminal-line:last-child { margin-bottom: 0; }
.t-accent { color: var(--color-electric-blue); }
.t-success { color: var(--color-accent-green); }
.t-danger { color: var(--color-accent-danger); }

.diff-card {
    background-color: var(--bg-surface-glass);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.diff-card:last-child { margin-bottom: 0; }

.diff-card h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.diff-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Premium Lead-Focused Forms Layer */
.contact-form-section {
    padding: 100px 0;
    border-top: 1px solid var(--border-color);
    position: relative;
    z-index: 2;
}

.glass-form-wrapper {
    background-color: var(--bg-surface-glass);
    border: 1px solid var(--border-color-active);
    padding: 3.5rem;
    border-radius: 6px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
}

.form-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    background-color: rgba(2, 6, 23, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 1rem;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-sharp);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--color-electric-blue);
    background-color: rgba(2, 6, 23, 0.8);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.1);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2rem;
}

/* Global Corporate Footer Elements */
.global-footer {
    background-color: #01040f;
    border-top: 1px solid var(--border-color);
    padding: 5rem 0 2rem 0;
    position: relative;
    z-index: 2;
}

.footer-brand-side .footer-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 1rem;
    line-height: 1.6;
}

.global-footer h5 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition-sharp);
}

.footer-links a:hover {
    color: var(--color-electric-blue);
}

.legal-notice {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 1.5rem;
    font-family: var(--font-heading);
}

.footer-bottom {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.03);
}

.split-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.legal-sub-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 1.5rem;
    transition: var(--transition-sharp);
}

.legal-sub-links a:hover {
    color: var(--text-secondary);
}

/* Floating Action Micro-Interactions */
.whatsapp-floating-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    background-color: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    z-index: 99;
    transition: var(--transition-sharp);
}

.whatsapp-floating-widget:hover {
    transform: scale(1.08) translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.whatsapp-icon {
    width: 28px;
    height: 28px;
    fill: #fff;
}

/* Engine Optimization Reveal Keyframes */
.reveal, .reveal-delay-1, .reveal-delay-2, .reveal-delay-3 {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible, .reveal-delay-1.visible, .reveal-delay-2.visible, .reveal-delay-3.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Responsive Grid Adaptations (Mobile-First Structure) */
@media (max-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .panel-inner { grid-template-columns: 1fr; gap: 2rem; }
    .hero-section h1 { font-size: 3rem; }
}

@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4, .form-grid-2 { grid-template-columns: 1fr; }
    .differentiation-section .grid-2 { display: flex; flex-direction: column; }
    .sticky-side { position: relative; top: 0; }
    .hero-section h1 { font-size: 2.5rem; }
    .glass-form-wrapper { padding: 2rem 1.5rem; }
    
    .mobile-menu-toggle { display: flex; z-index: 101; }
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--bg-surface);
        display: flex;
        flex-direction: column;
        padding: 100px 2rem;
        transition: var(--transition-smooth);
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }
    .nav-links.active { right: 0; }
    .nav-links a { margin-bottom: 1.5rem; font-size: 1.1rem; }
    .nav-cta { display: none; }
    .custom-cursor, .custom-cursor-dot { display: none; }
    .split-bottom { flex-direction: column; gap: 1rem; text-align: center; }
    .legal-sub-links a { margin: 0 0.75rem; }
}