/* ============================================
   REVOLUTIONARY LANDING PAGE - ADASYSTEMS
   Bento Grid + Glassmorphism + Dark-First
   ============================================ */

/* CSS Variables for theming */
:root {
    --landing-bg: #030712;
    --landing-bg-secondary: #0a0f1a;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-hover: rgba(255, 255, 255, 0.06);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent-primary: #06b6d4;
    --accent-secondary: #8b5cf6;
    --accent-tertiary: #10b981;
    --accent-warning: #f59e0b;
    --accent-danger: #ef4444;
    --glow-primary: rgba(6, 182, 212, 0.4);
    --glow-secondary: rgba(139, 92, 246, 0.4);
    --grid-color: rgba(255, 255, 255, 0.02);
}

html:not(.dark) {
    --landing-bg: #f8fafc;
    --landing-bg-secondary: #f1f5f9;
    --glass-bg: rgba(0, 0, 0, 0.03);
    --glass-border: rgba(0, 0, 0, 0.08);
    --glass-hover: rgba(0, 0, 0, 0.06);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --glow-primary: rgba(6, 182, 212, 0.2);
    --glow-secondary: rgba(139, 92, 246, 0.2);
    --grid-color: rgba(0, 0, 0, 0.03);
}

/* Base Landing Styles */
.landing-wrapper {
    background: var(--landing-bg);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Animated Grid Background */
.landing-wrapper::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

/* Floating Gradient Orbs */
.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--glow-primary);
    top: -200px;
    right: -200px;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: var(--glow-secondary);
    bottom: -150px;
    left: -150px;
    animation-delay: -10s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: rgba(16, 185, 129, 0.3);
    top: 50%;
    left: 50%;
    animation-delay: -5s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(20px, 30px) scale(1.02); }
}

/* Container */
.landing-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* ============================================
   HERO SECTION - Bento Style
   ============================================ */
.hero-bento {
    padding: 40px 0 40px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    grid-template-rows: auto auto;
    gap: 20px;
}

/* Glass Card Base */
.glass-card {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 32px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

html:not(.dark) .glass-card {
    background: rgba(255, 255, 255, 0.85);
}

@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
    .glass-card {
        background: var(--glass-bg);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }
    html:not(.dark) .glass-card {
        background: var(--glass-bg);
    }
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

.glass-card:hover {
    background: var(--glass-hover);
    border-color: rgba(6, 182, 212, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 60px var(--glow-primary);
}

/* Hero Main Card */
.hero-main {
    grid-row: span 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(139, 92, 246, 0.15));
    border: 1px solid rgba(6, 182, 212, 0.3);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: 24px;
    width: fit-content;
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(6, 182, 212, 0.2); }
    50% { box-shadow: 0 0 30px rgba(6, 182, 212, 0.4); }
}

.hero-badge i {
    font-size: 12px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-primary) 50%, var(--accent-secondary) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 8s ease infinite;
}

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

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-glow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary-glow {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    box-shadow: 0 4px 20px var(--glow-primary);
}

.btn-primary-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--glow-primary);
}

.btn-secondary-glow {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
}

.btn-secondary-glow:hover {
    background: var(--glass-hover);
    border-color: var(--accent-primary);
}

/* Hero Stats Card */
.hero-stats-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stats-grid-mini {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-tertiary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

/* Hero Trust Card */
.hero-trust-card {
    display: flex;
    align-items: center;
    gap: 24px;
}

.trust-logos {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
}

.trust-item i {
    font-size: 20px;
    color: var(--accent-primary);
}

/* ============================================
   LIVE STATS SECTION
   ============================================ */
.stats-section {
    padding: 40px 0;
}

.stats-bento {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.stats-chart-card {
    padding: 32px;
}

.stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.stats-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stats-title h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--accent-tertiary);
    font-weight: 600;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-tertiary);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.stats-period {
    font-size: 13px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 16px;
    border-radius: 8px;
}

.chart-wrapper {
    height: 280px;
    position: relative;
}

.stats-legend {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 4px;
}

.legend-dot.previous { background: #475569; }
.legend-dot.current { background: var(--accent-primary); }

/* Stats Summary Cards */
.stats-summary {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.summary-card {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
}

.summary-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.summary-icon.cyan { background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(6, 182, 212, 0.1)); color: var(--accent-primary); }
.summary-icon.purple { background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(139, 92, 246, 0.1)); color: var(--accent-secondary); }
.summary-icon.green { background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.1)); color: var(--accent-tertiary); }

.summary-content .summary-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 4px;
}

.summary-content p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

/* ============================================
   FEATURES BENTO GRID
   ============================================ */
.features-section {
    padding: 60px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.features-bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Feature Cards */
.feature-card {
    padding: 28px;
    display: flex;
    flex-direction: column;
}

.feature-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
    position: relative;
}

.feature-icon-wrap::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover .feature-icon-wrap::after {
    opacity: 1;
}

.icon-cyan { background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(6, 182, 212, 0.1)); color: var(--accent-primary); }
.icon-purple { background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(139, 92, 246, 0.1)); color: var(--accent-secondary); }
.icon-green { background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.1)); color: var(--accent-tertiary); }
.icon-orange { background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.1)); color: var(--accent-warning); }
.icon-red { background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(239, 68, 68, 0.1)); color: var(--accent-danger); }
.icon-blue { background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0.1)); color: #3b82f6; }

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.feature-card.featured h3 {
    font-size: 1.75rem;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
    flex-grow: 1;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 13px;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list li i {
    color: var(--accent-tertiary);
    font-size: 12px;
}

/* ============================================
   COMPLIANCE SECTION
   ============================================ */
.compliance-section {
    padding: 60px 0;
}

.compliance-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.compliance-card {
    padding: 32px;
    text-align: center;
    text-decoration: none;
}

.compliance-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(139, 92, 246, 0.15));
    color: var(--accent-primary);
}

.compliance-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.compliance-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================
   USP SECTION (Why Choose Us)
   ============================================ */
.usp-section {
    padding: 60px 0;
}

.usp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.usp-card {
    padding: 40px 32px;
    text-align: center;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(6, 182, 212, 0.05));
}

.usp-icon {
    width: 80px;
    height: 80px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, var(--accent-tertiary), var(--accent-primary));
    color: white;
}

.usp-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.usp-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    padding: 80px 0;
}

.cta-card {
    padding: 64px;
    text-align: center;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(139, 92, 246, 0.1));
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

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

.cta-card h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.cta-card p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-main {
        grid-row: auto;
    }

    .features-bento {
        grid-template-columns: repeat(2, 1fr);
    }

    .compliance-grid {
        grid-template-columns: 1fr;
    }

    .usp-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-main {
        padding: 32px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn-glow {
        width: 100%;
        justify-content: center;
    }

    .stats-bento {
        grid-template-columns: 1fr;
    }

    .features-bento {
        grid-template-columns: 1fr;
    }

    .cta-card {
        padding: 40px 24px;
    }
}

@media (max-width: 480px) {
    .stats-grid-mini {
        grid-template-columns: 1fr;
    }

    .trust-logos {
        justify-content: center;
    }
}

/* Override footer styles for landing page */
.footer {
    position: relative;
    z-index: 100;
}

html.dark .footer {
    background: #030712 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html:not(.dark) .footer {
    background: #f8fafc !important;
    border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
}

.footer-content {
    position: relative;
    z-index: 100;
}

html.dark .footer-section .footer-title {
    color: #f8fafc !important;
}

html:not(.dark) .footer-section .footer-title {
    color: #0f172a !important;
}

html.dark .footer-section a,
html.dark .footer-section p,
html.dark .footer-link-btn {
    color: #94a3b8 !important;
}

html:not(.dark) .footer-section a,
html:not(.dark) .footer-section p,
html:not(.dark) .footer-link-btn {
    color: #475569 !important;
}

.footer-section a:hover,
.footer-link-btn:hover {
    color: #06b6d4 !important;
}

html.dark .footer-bottom {
    border-top-color: rgba(255, 255, 255, 0.08) !important;
    color: #64748b !important;
}

html:not(.dark) .footer-bottom {
    border-top-color: rgba(0, 0, 0, 0.08) !important;
    color: #64748b !important;
}
