/*
  ========================================
  CFDIAnalyzer | Premium Tech Landing Page
  ========================================
*/

/* --- Variables & Theming --- */
:root {
    --bg-main: #ffffff;
    --bg-secondary: #f4f6f9;
    --bg-tertiary: #eaeef3;
    
    --primary-color: #00b3cc;
    --primary-glow: rgba(0, 179, 204, 0.2);
    --secondary-color: #7033ff;
    --secondary-glow: rgba(112, 51, 255, 0.2);
    
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-tertiary: #64748b;
    
    --border-color: rgba(0, 0, 0, 0.08);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(0, 0, 0, 0.05);

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    
    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    --transition-slow: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.06);
    --shadow-glow-primary: 0 0 20px var(--primary-glow);
    --shadow-glow-secondary: 0 0 20px var(--secondary-glow);
}

/* --- Base Reset & Typography --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

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

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

/* --- Utilities --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.container-sm {
    max-width: 800px;
}

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

.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--secondary-color) !important; }

/* Grids */
.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

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

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

/* Spacing */
.section { padding: 8rem 0; position: relative; z-index: 2; }
.mt-section { margin-top: 4rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    border-radius: var(--radius-sm);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition-medium);
    z-index: 2;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    box-shadow: var(--shadow-glow-secondary);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: 0.5s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(112, 51, 255, 0.4);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-green {
    background: #0A5D53;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(10, 93, 83, 0.3);
}

.btn-green::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: 0.5s;
}

.btn-green:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(10, 93, 83, 0.5);
}

.btn-green:hover::before {
    left: 100%;
}

.btn-orange {
    background: #F47A1F;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(244, 122, 31, 0.3);
}

.btn-orange::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: 0.5s;
}

.btn-orange:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(244, 122, 31, 0.5);
}

.btn-orange:hover::before {
    left: 100%;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    border-color: var(--primary-color);
    background: rgba(0, 179, 204, 0.05);
    transform: translateY(-2px);
}

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

/* --- Glassmorphism Elements --- */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    box-shadow: var(--shadow-glass);
    transition: var(--transition-medium);
    position: relative;
    overflow: hidden;
}

/* Moving glow inside cards */
.glass-card::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle at center, rgba(0,0,0,0.02) 0%, transparent 50%);
    opacity: 0;
    transition: 0.5s;
    pointer-events: none;
}

.glass-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 179, 204, 0.3);
    box-shadow: var(--shadow-glow-primary);
}

.glass-card:hover::after {
    opacity: 1;
}

/* Background Ambient Glows */
.bg-glow-1, .bg-glow-2 {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    z-index: 0;
    pointer-events: none;
    opacity: 0.3;
}

.bg-glow-1 {
    top: -10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--secondary-color), transparent 70%);
}

.bg-glow-2 {
    bottom: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--primary-color), transparent 70%);
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    padding: 1rem 0;
    z-index: 1000;
    transition: var(--transition-fast);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

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

.brand-logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    border-radius: 8px; /* Added for correct block presentation on light bg */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

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

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px; left: 0;
    width: 0; height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: var(--transition-fast);
}

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

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 2rem;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    padding: 2rem 5%;
    flex-direction: column;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 5rem;
    position: relative;
    z-index: 2;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(0, 179, 204, 0.1);
    border: 1px solid rgba(0, 179, 204, 0.3);
    color: var(--primary-color);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 4rem;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
    background: linear-gradient(180deg, #1e293b 0%, rgba(30, 41, 59, 0.7) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
    align-items: center;
}

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

.tag {
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    font-family: 'Outfit';
    font-weight: 600;
}

.glass-image-container {
    position: relative;
    border-radius: var(--radius-lg);
    padding: 1rem;
    background: linear-gradient(145deg, rgba(255,255,255,1), rgba(244,246,249,1));
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-glass), 0 0 40px rgba(0,179,204,0.1);
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: var(--transition-slow);
}

.glass-image-container:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.dashboard-img {
    width: 100%;
    height: auto;
    border-radius: calc(var(--radius-lg) - 0.5rem);
    display: block;
}

/* --- Solutions Section --- */
.section-title {
    font-size: 3rem;
}

.section-desc {
    font-size: 1.15rem;
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    background: rgba(0, 179, 204, 0.1);
    display: inline-flex;
    padding: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 179, 204, 0.2);
}

.feature-title {
    font-size: 1.5rem;
}

.feature-text {
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* --- About Section --- */
.about-img {
    width: 100%;
    height: auto;
    box-shadow: var(--shadow-glass);
}

.main-border-radius {
    border-radius: var(--radius-lg);
}

.mission-vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.glass-panel {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: var(--radius-md);
}

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

.panel-header h4 {
    margin-bottom: 0;
    font-size: 1.2rem;
}

.panel-header i {
    font-size: 1.5rem;
}

.glass-panel p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* --- Why Us Section --- */
.step-card {
    background: var(--bg-secondary);
    padding: 3rem 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    position: relative;
    transition: var(--transition-medium);
}

.step-card:hover {
    border-color: rgba(112, 51, 255, 0.3);
    background: var(--bg-tertiary);
}

.step-number {
    font-family: 'Outfit', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    color: transparent;
    -webkit-text-stroke: 1px rgba(0,0,0,0.1);
    position: absolute;
    top: -20px; right: 20px;
    z-index: 1;
}

.step-card h3, .step-card p {
    position: relative;
    z-index: 2;
}

.step-title {
    font-size: 1.3rem;
    color: var(--text-primary);
}

/* --- CTA Section --- */
.cta-box {
    padding: 5rem 3rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(244, 246, 249, 0.9));
    border: 1px solid rgba(112, 51, 255, 0.2);
}

.cta-title {
    font-size: 2.5rem;
}

.cta-desc {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
}

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

/* --- Footer --- */
.footer {
    background: var(--bg-secondary);
    padding: 5rem 0 2rem 0;
    border-top: 1px solid var(--border-color);
    position: relative;
    z-index: 2;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo {
    font-size: 1.8rem;
}

.footer h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 0.8rem;
}

.footer ul li a:hover {
    color: var(--primary-color);
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-secondary);
}

.contact-list i {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
}

/* --- Animations & Resposiveness --- */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: var(--transition-slow);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: var(--transition-slow);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: var(--transition-slow);
}

.reveal-visible {
    opacity: 1;
    transform: translate(0, 0);
}

@media (max-width: 992px) {
    .grid-2-col, .grid-3-col {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-container {
        flex-direction: column-reverse;
        padding-top: 4rem;
    }
    
    .mission-vision-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links, .nav-cta {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .mobile-menu.active {
        display: flex;
    }
}
