/* ==========================================================================
   CSS Variables & Tokens
   ========================================================================== */
:root {
    /* Colors */
    --color-bg: #0a0c10;
    --color-bg-secondary: #12151c;
    --color-surface: rgba(255, 255, 255, 0.03);
    --color-surface-hover: rgba(255, 255, 255, 0.06);
    --color-border: rgba(255, 255, 255, 0.08);
    
    --color-primary: #4f46e5;
    --color-primary-hover: #4338ca;
    --color-secondary: #ec4899;
    
    --color-text: #f8fafc;
    --color-text-muted: #94a3b8;
    
    --color-success: #10b981;
    --color-danger: #ef4444;
    --color-warning: #f59e0b;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    --gradient-text: linear-gradient(to right, #818cf8, #f472b6);
    
    /* Typography */
    --font-primary: 'Outfit', sans-serif;
    --font-secondary: 'Inter', sans-serif;
    
    /* Shadows & Effects */
    --shadow-glass: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
    --blur-glass: blur(16px);
    --shadow-glow: 0 0 25px rgba(79, 70, 229, 0.6);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Layout */
    --container-width: 1200px;
    --border-radius: 16px;
}

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

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

p {
    margin-bottom: 1rem;
    color: var(--color-text-muted);
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Safety net: any element toggled with the `hidden` attribute must actually hide,
   even if it also has a class that sets display:flex/grid/etc. elsewhere. */
[hidden] {
    display: none !important;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center { text-align: center; }
.mt-5 { margin-top: 3rem; }
.fw-bold { font-weight: 700; }
.text-primary { color: var(--color-primary); }
.text-danger { color: var(--color-danger); }
.text-muted { color: var(--color-text-muted); }

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */
.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.lead {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    max-width: 700px;
    margin: 0 auto 2rem;
}

.section {
    padding: 6rem 0;
    position: relative;
}

.section-header {
    margin-bottom: 4rem;
}

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

.glass-card {
    background: var(--color-surface);
    backdrop-filter: var(--blur-glass);
    -webkit-backdrop-filter: var(--blur-glass);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-glass);
    transition: var(--transition-normal);
}

.glass-card:hover {
    background: var(--color-surface-hover);
    transform: translateY(-8px) scale(1.01);
    border-color: rgba(236, 72, 153, 0.3); /* secondary glow */
    box-shadow: var(--shadow-glass), var(--shadow-glow);
}

/* ==========================================================================
   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-primary);
    cursor: pointer;
    transition: var(--transition-normal);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-3px) scale(1.02);
    color: white;
}

.btn-outline {
    --btn-color: var(--color-primary);
    background: transparent;
    border: 2px solid var(--btn-color);
    color: var(--color-text);
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color 0.5s;
}

.btn-outline::before {
    content: "";
    position: absolute;
    z-index: -1;
    background: var(--btn-color);
    height: 300px;
    width: 300px;
    border-radius: 50%;
    top: 100%;
    left: 100%;
    transition: all 0.7s;
}

.btn-outline:hover {
    color: #fff;
    background: transparent;
    border-color: var(--btn-color);
}

.btn-outline:hover::before {
    top: -50px;
    left: -50px;
}

.btn-outline:active::before {
    background: var(--color-primary-hover);
    transition: background 0s;
}

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

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9000;
    padding: 1.5rem 0;
    transition: var(--transition-normal);
}

.navbar.scrolled {
    padding: 1rem 0;
    background: rgba(10, 12, 16, 0.8);
    backdrop-filter: var(--blur-glass);
    -webkit-backdrop-filter: var(--blur-glass);
    border-bottom: 1px solid var(--color-border);
}

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

.logo {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
}

.brand-logo {
    height: 40px; /* Adjust height as needed based on the natural dimensions of the logo */
    width: auto;
    max-width: 100%;
    display: block;
    object-fit: contain;
}

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

.nav-links a {
    color: var(--color-text-muted);
    font-weight: 500;
}

.nav-links a:hover {
    color: white;
}

.nav-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Dropdown CSS */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    right: 0;
    top: calc(100% + 0.5rem);
    background: rgba(18, 21, 28, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    min-width: 220px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 20px rgba(79, 70, 229, 0.3);
    z-index: 9001;
    transform: translateY(15px);
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s ease;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

/* Invisible bridge to prevent hover loss when moving mouse from button to menu */
.dropdown-content::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
}

.dropdown-content a {
    color: var(--color-text);
    padding: 10px 16px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 8px;
    transition: background-color 0.2s, color 0.2s, transform 0.2s;
}

.dropdown-content a i {
    font-size: 1.1rem;
    color: var(--color-primary);
    width: 20px;
    text-align: center;
}

.dropdown-content a:hover {
    background-color: var(--color-surface-hover);
    color: white;
    transform: translateX(4px);
}

.dropdown:hover .dropdown-content {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.hero-bg .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 12, 16, 0.95) 0%, rgba(18, 21, 28, 0.85) 100%);
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.6;
    z-index: 1;
    pointer-events: none;
}

.orb-1 {
    top: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--color-primary) 0%, transparent 70%);
}

.orb-2 {
    bottom: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--color-secondary) 0%, transparent 70%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

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

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

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

.hero-trust {
    display: flex;
    gap: 2rem;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    background: var(--color-surface);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid var(--color-border);
}

.trust-badge i {
    color: var(--color-success);
}

.hero-image {
    width: 100%;
    border-radius: var(--border-radius);
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.6))
            drop-shadow(0 0 40px rgba(79, 70, 229, 0.35));
}

@media (prefers-reduced-motion: reduce) {
    .hero-image { animation: none; }
}

/* Mockup Card */
.mockup-card {
    padding: 0;
    overflow: hidden;
    animation: float 6s ease-in-out infinite;
}

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

.mockup-header {
    background: rgba(0,0,0,0.3);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--color-border);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.mockup-title {
    margin-left: auto;
    margin-right: auto;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    font-family: var(--font-primary);
}

.mockup-body {
    padding: 2rem;
}

.scan-ring {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: conic-gradient(var(--color-primary) 98%, transparent 0);
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: var(--shadow-glow);
}

.scan-ring::before {
    content: '';
    position: absolute;
    inset: 10px;
    background: var(--color-bg-secondary);
    border-radius: 50%;
}

.ring-inner {
    position: relative;
    z-index: 1;
    text-align: center;
}

.scan-score {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    font-family: var(--font-primary);
    color: white;
}

.scan-status {
    color: var(--color-success);
    font-size: 0.875rem;
    font-weight: 600;
}

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

.stat-item {
    background: var(--color-surface);
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--color-border);
}

.stat-item i {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.stat-item span {
    display: block;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-top: 0.25rem;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-content p {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.about-image-card {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(145deg, var(--color-surface), rgba(59, 130, 246, 0.05));
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    color: var(--color-primary);
    box-shadow: var(--shadow-glow);
}

/* ==========================================================================
   Features Section
   ========================================================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

@media (max-width: 992px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
    .features-grid { grid-template-columns: 1fr; }
}

.feature-card {
    text-align: left;
    height: 100%;
}

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.feature-icon.rocket { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.feature-icon.hdd { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; }
.feature-icon.shield { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.feature-icon.gamepad { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.feature-icon.globe { background: rgba(236, 72, 153, 0.1); color: #ec4899; }
.feature-icon.bolt { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
.feature-icon.sync { background: rgba(6, 182, 212, 0.1); color: #06b6d4; }
.feature-icon.wrench { background: rgba(99, 102, 241, 0.1); color: #6366f1; }

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

.feature-card p {
    font-size: 0.875rem;
    margin-bottom: 0;
}

/* ==========================================================================
   Experts Section
   ========================================================================== */
.experts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.experts-list {
    margin: 2rem 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

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

.quote-box {
    background: var(--color-surface);
    padding: 1.5rem;
    border-left: 4px solid var(--color-primary);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    position: relative;
}

.quote-icon {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    color: rgba(255,255,255,0.05);
}

.quote-box p {
    margin: 0;
    font-size: 1.125rem;
    font-style: italic;
    color: white;
}

/* Chat Mockup */
.expert-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.agent-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.avatar {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.status.online {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--color-success);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.status.online::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--color-success);
    border-radius: 50%;
    display: block;
}

.chat-bubble {
    padding: 1rem;
    border-radius: 16px;
    max-width: 80%;
    font-size: 0.875rem;
}

.chat-bubble.received {
    background: var(--color-surface);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.chat-bubble.sent {
    background: var(--color-primary);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

/* ==========================================================================
   Stats & Why Us
   ========================================================================== */
.stats-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3rem;
    background: linear-gradient(to right, var(--color-surface), rgba(59, 130, 246, 0.1), var(--color-surface));
}

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

.stat-block h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: white;
}

.stat-block p {
    margin: 0;
    color: var(--color-primary);
    font-weight: 600;
}

.stat-divider {
    width: 1px;
    height: 60px;
    background: var(--color-border);
}

.check-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.125rem;
    font-weight: 500;
}

.check-item i {
    color: var(--color-success);
    font-size: 1.5rem;
}

/* ==========================================================================
   Compare Section
   ========================================================================== */
.table-responsive {
    overflow-x: auto;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
}

.compare-table th,
.compare-table td {
    padding: 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

.compare-table th {
    font-family: var(--font-primary);
    font-size: 1.25rem;
    font-weight: 600;
}

.compare-table td:first-child {
    text-align: left;
    font-weight: 500;
    color: white;
}

.brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(59, 130, 246, 0.2);
    color: var(--color-primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.highlight-col {
    background: rgba(59, 130, 246, 0.05);
    border-radius: 16px 16px 0 0;
}

.highlight-cell {
    background: rgba(59, 130, 246, 0.05);
}

.highlight-text {
    color: var(--color-primary);
    font-weight: 700;
    font-size: 1.125rem;
}

.table-footer-row td {
    border-bottom: none;
    padding-top: 2rem;
}

.table-footer-row .highlight-cell {
    border-radius: 0 0 16px 16px;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta-card {
    text-align: center;
    padding: 5rem 2rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(59, 130, 246, 0.2);
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 50%);
    z-index: 0;
}

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

.cta-content h2 {
    font-size: 3rem;
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
}

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

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    position: relative;
    background: var(--color-bg-secondary);
    padding: 0;
    border-top: 1px solid var(--color-border);
}

.footer-trust-strip {
    border-bottom: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.02);
}

.footer-trust-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 2.5rem;
    padding: 1.25rem 0;
}

.footer-trust-inner span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

.footer-trust-inner i {
    color: #3b82f6;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.4fr 3fr;
    gap: 4rem;
    padding: 4rem 0;
}

.footer-brand p {
    margin-top: 1rem;
    max-width: 300px;
}

.footer-download-badges {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.footer-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    transition: var(--transition-normal);
}

.footer-download-btn:hover {
    background: var(--color-surface-hover);
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.75rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    font-size: 0.9rem;
    transition: var(--transition-normal);
}

.footer-social a:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    color: #fff;
    transform: translateY(-3px);
}

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

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

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

.footer-links a {
    color: var(--color-text-muted);
    transition: var(--transition-normal);
}

.footer-links a:hover {
    color: var(--color-primary);
    padding-left: 5px;
}

.footer-bottom {
    padding: 1.5rem 0;
    border-top: 1px solid var(--color-border);
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-links a {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

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

.back-to-top {
    position: fixed;
    right: 1.75rem;
    bottom: 1.75rem;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: #fff;
    font-size: 1rem;
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    box-shadow: 0 10px 28px rgba(79, 70, 229, 0.6);
    transform: translateY(-3px);
}

/* ==========================================================================
   Legal / Static Pages (Privacy, Terms, Sitemap)
   ========================================================================== */
.legal-hero {
    padding: 11rem 0 3rem;
    text-align: center;
}

.legal-hero h1 {
    font-size: 2.75rem;
    margin-bottom: 1rem;
}

.legal-updated {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    padding: 0.4rem 1.1rem;
    border-radius: 999px;
}

.legal-content {
    max-width: 820px;
    margin: 0 auto;
    padding-bottom: 2rem;
}

.legal-content h2 {
    font-size: 1.4rem;
    margin-top: 2.75rem;
    margin-bottom: 1rem;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content p {
    line-height: 1.8;
    margin-bottom: 1.1rem;
}

.legal-content ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin: 0 0 1.1rem;
}

.legal-content li {
    color: var(--color-text-muted);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.legal-content a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2.5rem;
    max-width: 1080px;
    margin: 0 auto;
}

.sitemap-grid .link-group h4 {
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--color-border);
}

.sitemap-grid .link-group ul {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.sitemap-grid .link-group a {
    color: var(--color-text-muted);
}

.sitemap-grid .link-group a:hover {
    color: var(--color-primary);
    padding-left: 5px;
}

@media (max-width: 768px) {
    .legal-hero { padding-top: 9rem; }
    .legal-hero h1 { font-size: 2rem; }
    .sitemap-grid { grid-template-columns: repeat(2, 1fr); }
}

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

/* ==========================================================================
   Nav Auth (Login / Dashboard)
   ========================================================================== */
.nav-login-link {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-text);
    padding: 0.6rem 0.5rem;
}

.nav-login-link:hover {
    color: var(--color-primary);
}

.nav-dashboard-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-text);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    padding: 0.55rem 1rem;
    border-radius: 10px;
}

.nav-dashboard-link:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.nav-dashboard-link[hidden] {
    display: none;
}

.nav-guest-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-guest-links[hidden] {
    display: none;
}

.nav-signup-link {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-text);
    border: 1px solid var(--color-primary);
    padding: 0.55rem 1rem;
    border-radius: 10px;
}

.nav-signup-link:hover {
    background: rgba(79, 70, 229, 0.12);
    color: var(--color-text);
}

.nav-profile-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    padding: 0.4rem 1rem 0.4rem 0.4rem;
    border-radius: 999px;
    color: var(--color-text);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-normal);
}

.nav-profile:hover .nav-profile-trigger {
    border-color: var(--color-primary);
    background: var(--color-surface-hover);
}

.nav-profile-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.nav-profile-trigger .fa-chevron-down {
    font-size: 0.65rem;
    color: var(--color-text-muted);
    transition: transform 0.25s ease;
}

.nav-profile:hover .nav-profile-trigger .fa-chevron-down {
    transform: rotate(180deg);
}

/* ==========================================================================
   Auth Modal (Login / Signup / OTP)
   ========================================================================== */
.auth-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.auth-modal-overlay[hidden] {
    display: none;
}

.auth-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 7, 12, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.auth-modal-card {
    position: relative;
    width: 100%;
    max-width: 420px;
    max-height: 90vh;
    overflow-y: auto;
    background: #12151c;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: 2.25rem 2rem;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.auth-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-normal);
    z-index: 1;
}

.auth-modal-close:hover {
    color: var(--color-text);
    border-color: var(--color-primary);
}

.auth-modal-card h2 {
    font-size: 1.5rem;
    margin-bottom: 0.35rem;
}

.auth-modal-sub {
    color: var(--color-text-muted);
    font-size: 0.875rem;
    margin-bottom: 1.75rem;
}

.auth-field {
    margin-bottom: 1.1rem;
}

.auth-field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--color-text-muted);
}

.auth-field input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    color: var(--color-text);
    font-family: var(--font-secondary);
    font-size: 0.95rem;
    transition: border-color 0.2s ease;
}

.auth-field input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.auth-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    font-size: 0.85rem;
    padding: 0.65rem 0.9rem;
    border-radius: 10px;
    margin-bottom: 1.1rem;
}

.auth-switch {
    text-align: center;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-top: 1.5rem;
}

.auth-switch a {
    font-weight: 600;
}

.otp-hint {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: 1.1rem;
    line-height: 1.5;
}

.auth-resend {
    text-align: center;
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

/* ==========================================================================
   Dashboard
   ========================================================================== */
/* ---- Sidebar app shell ---- */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
    background: var(--color-bg);
}

.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1090;
}

.dashboard-sidebar {
    width: 264px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    background: #0d0f16;
    border-right: 1px solid var(--color-border);
    padding: 1.5rem 1.25rem;
    position: sticky;
    top: 0;
    height: 100vh;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-text);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

.sidebar-brand .brand-logo {
    width: 32px;
    height: 32px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    flex-grow: 1;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.9rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

.sidebar-link i {
    width: 18px;
    text-align: center;
    color: var(--color-text-muted);
}

.sidebar-link:hover {
    background: var(--color-surface);
    color: var(--color-text);
}

.sidebar-link.active {
    background: rgba(79, 70, 229, 0.15);
    color: var(--color-text);
}

.sidebar-link.active i {
    color: var(--color-primary);
}

.sidebar-footer {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding-top: 1.25rem;
    margin-top: 1.25rem;
    border-top: 1px solid var(--color-border);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.9rem 1rem;
}

.sidebar-user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebar-user-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sidebar-user-name {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-plan {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.sidebar-logout:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
}

.sidebar-logout:hover i {
    color: #f87171;
}

.dashboard-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.dashboard-topbar {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 2rem;
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    background: rgba(10, 12, 16, 0.85);
    backdrop-filter: var(--blur-glass);
    -webkit-backdrop-filter: var(--blur-glass);
    z-index: 10;
}

.dashboard-topbar h1 {
    font-size: 1.25rem;
    margin: 0;
}

.sidebar-toggle {
    display: none;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    cursor: pointer;
    flex-shrink: 0;
}

.dashboard-body {
    padding: 2rem;
    flex: 1;
}

.dashboard-welcome {
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

.dashboard-section {
    max-width: 1100px;
}

@media (max-width: 992px) {
    .dashboard-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        z-index: 1100;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
    }

    .dashboard-sidebar.is-open {
        transform: translateX(0);
    }

    .sidebar-backdrop.is-open {
        display: block;
    }

    .sidebar-toggle {
        display: flex;
    }

    .dashboard-body {
        padding: 1.5rem 1.25rem;
    }

    .dashboard-topbar {
        padding: 1rem 1.25rem;
    }
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
    align-items: stretch;
}

.dashboard-card {
    background: #12151c;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 1.75rem;
}

.dashboard-card h3 {
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.plan-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    background: var(--gradient-primary);
    color: #fff;
}

.plan-badge.is-free {
    background: var(--color-surface);
    color: var(--color-text-muted);
    border: 1px solid var(--color-border);
}

.plan-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.plan-detail-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 1.5rem;
}

.plan-detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9rem;
    gap: 1rem;
}

.plan-detail-row span:first-child {
    color: var(--color-text-muted);
}

.license-key-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 0.7rem 1rem;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
}

.license-key-box button {
    flex-shrink: 0;
    background: none;
    border: none;
    color: var(--color-primary);
    cursor: pointer;
    font-size: 0.9rem;
}

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

.analytics-stats-row {
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 1.5rem;
}

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

@media (max-width: 576px) {
    .analytics-stats-row {
        grid-template-columns: 1fr;
    }
}

.dashboard-stat {
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 1.25rem 0.5rem;
}

.dashboard-stat .value {
    font-size: 1.75rem;
    font-weight: 800;
    font-family: var(--font-primary);
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dashboard-stat .label {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: 0.35rem;
}

.app-actions {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.payments-table-wrap {
    overflow-x: auto;
}

.payments-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.payments-table th {
    text-align: left;
    color: var(--color-text-muted);
    font-weight: 600;
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid var(--color-border);
    white-space: nowrap;
}

.payments-table td {
    padding: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    white-space: nowrap;
}

.status-pill {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: capitalize;
}

.status-pill.success {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

.status-pill.failed {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

.dashboard-empty {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    text-align: center;
    padding: 1.5rem 0;
}

.dashboard-loading {
    text-align: center;
    padding: 5rem 0;
    color: var(--color-text-muted);
}

.upgrade-note {
    text-align: center;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-top: -1rem;
    margin-bottom: 2rem;
}

@media (max-width: 992px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
/* Responsive design logic moved to bottom of file */

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 300px;
        max-width: 100%;
        background: rgba(18, 21, 28, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 6rem 1.5rem 2rem;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.8);
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        display: flex;
        z-index: 10000;
        border-left: 1px solid rgba(255, 255, 255, 0.05);
        list-style: none;
    }
    
    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links li {
        width: 100%;
        opacity: 0;
        transform: translateX(30px);
        transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    .nav-links.active li {
        opacity: 1;
        transform: translateX(0);
    }
    
    /* Staggered slide-in animation */
    .nav-links.active li:nth-child(1) { transition-delay: 0.1s; }
    .nav-links.active li:nth-child(2) { transition-delay: 0.15s; }
    .nav-links.active li:nth-child(3) { transition-delay: 0.2s; }
    .nav-links.active li:nth-child(4) { transition-delay: 0.25s; }
    .nav-links.active li:nth-child(5) { transition-delay: 0.3s; }
    
    .nav-links a {
        display: block;
        font-size: 1.5rem;
        font-weight: 600;
        padding: 1.25rem 1rem;
        width: 100%;
        text-align: left;
        color: var(--color-text);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        transition: all 0.3s ease;
        position: relative;
        text-decoration: none;
    }
    
    .nav-links a::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        height: 100%;
        width: 3px;
        background: var(--gradient-primary);
        transform: scaleY(0);
        transition: transform 0.3s ease;
        border-radius: 4px;
    }
    
    .nav-links a:hover,
    .nav-links a:active {
        color: var(--color-primary);
        background: rgba(79, 70, 229, 0.05);
        padding-left: 1.5rem;
        border-radius: 8px;
        border-bottom-color: transparent;
    }
    
    .nav-links a:hover::before,
    .nav-links a:active::before {
        transform: scaleY(1);
    }
    
    .nav-links li:last-child a {
        border-bottom: none;
    }
    
    .nav-buttons {
        display: flex;
        gap: 0.5rem;
        z-index: 10001; /* Stay above the menu if they stay in header */
    }
    
    .nav-buttons .btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
    
    @media (max-width: 480px) {
        .logo span {
            display: none; /* Hide brand text on very small screens to fit buttons */
        }
    }
    
    .hamburger {
        display: block;
        z-index: 10001; /* Must be above the fixed menu to toggle it off */
        position: relative;
    }
    
    .hero {
        padding-top: 100px;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-trust {
        flex-direction: column;
        gap: 1rem;
    }
    
    .section {
        padding: 4rem 0;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .experts-list {
        grid-template-columns: 1fr;
    }
    
    .cta-actions {
        flex-direction: column;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   New Layout Styles (Matching Screenshot)
   ========================================================================== */

.dark-section {
    background-color: #0b0e14;
    color: #f8fafc;
}

.light-section {
    background-color: #ffffff;
    color: #1e293b;
    padding: 6rem 0;
}

.light-section .text-block-title {
    font-size: 2.5rem;
    color: #0f172a;
    margin-bottom: 1.5rem;
}

.light-section .text-block-content {
    font-size: 1.125rem;
    color: #475569;
    max-width: 1000px;
    line-height: 1.8;
}

/* Premium Card Styles (from screenshot) */
.premium-card {
    background: #12151c;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 2rem 1.75rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.premium-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(79, 70, 229, 0.25);
    border-color: rgba(79, 70, 229, 0.4);
}

.features-grid .feature-card {
    text-align: left;
}

.feature-card .feature-icon {
    font-size: 3rem;
    color: #3b82f6;
    margin-bottom: 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.feature-card .feature-icon::before {
    content: "";
    position: absolute;
    inset: 8px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.35), transparent 70%);
    filter: blur(10px);
    z-index: 0;
}

/* 3D rendered icons (Fluent 3D — MIT licensed) */
.feature-card .feature-icon img {
    position: relative;
    z-index: 1;
    width: 64px;
    height: 64px;
    object-fit: contain;
    filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.5))
            drop-shadow(0 0 18px rgba(79, 70, 229, 0.3));
    transform: translateZ(40px);
    transform-style: preserve-3d;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    animation: iconFloat 5s ease-in-out infinite;
    will-change: transform;
}

.features-grid .feature-card:nth-child(2n) .feature-icon img { animation-delay: -1.2s; }
.features-grid .feature-card:nth-child(3n) .feature-icon img { animation-delay: -2.4s; }
.features-grid .feature-card:nth-child(4n) .feature-icon img { animation-delay: -3.6s; }

.feature-card:hover .feature-icon img {
    transform: translateZ(60px) scale(1.12) rotate(-4deg);
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0) translateZ(40px); }
    50%      { transform: translateY(-10px) translateZ(40px); }
}

/* 3D depth for the feature grid + interactive tilt (see script.js) */
.features-grid {
    perspective: 1200px;
}

.features-grid .feature-card {
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.3s ease, border-color 0.3s ease;
}

.features-grid .feature-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(
        circle at var(--mx, 50%) var(--my, 0%),
        rgba(129, 140, 248, 0.18),
        transparent 45%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.features-grid .feature-card:hover::after { opacity: 1; }

.feature-card h3,
.feature-card p {
    transform: translateZ(25px);
}

@media (prefers-reduced-motion: reduce) {
    .feature-card .feature-icon img { animation: none; }
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0;
    line-height: 1.3;
}

.feature-card h3::after {
    content: "";
    display: block;
    width: 28px;
    height: 3px;
    border-radius: 2px;
    margin: 0.75rem 0 1rem;
    background: linear-gradient(90deg, #3b82f6, #6366f1);
    transform: translateZ(25px);
}

.feature-card p {
    font-size: 0.875rem;
    color: #94a3b8;
    margin: 0;
}

/* Generic Split Layout */
.split-layout {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.split-left, .split-right {
    flex: 1;
}

.rounded-image {
    width: 100%;
    border-radius: 16px;
    display: block;
}

.shadow-glow {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(79, 70, 229, 0.3);
}

.feature-list {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-pill {
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
}

.feature-pill i {
    font-size: 1.25rem;
}

.feature-pill:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.1);
    border-color: var(--color-primary);
}

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

.stat-pill {
    text-align: center;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 16px;
}

.stat-pill:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.1);
    border-color: var(--color-primary);
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.stat-pill h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* Trust Badge over image */
.image-wrapper-glow {
    position: relative;
    border-radius: 16px;
    margin-top: 2rem;
}

.text-warning {
    color: #fbbf24;
}

.image-wrapper-glow .trust-badge {
    position: absolute;
    top: -20px;
    right: -20px;
    padding: 1rem 1.5rem;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: floatPopup 4s ease-in-out infinite reverse;
    z-index: 2;
    background: rgba(18, 21, 28, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.image-wrapper-glow .trust-badge .stars {
    display: flex;
    gap: 0.25rem;
    font-size: 1.1rem;
}

.image-wrapper-glow .trust-badge span {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Software + Real Experts Layout */
.experts-split-layout {
    display: flex;
    gap: 4rem;
    margin-bottom: 3rem;
}

.experts-left {
    flex: 1;
    max-width: 400px;
}

.experts-title {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.experts-subtitle {
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
}

.agent-image-wrapper {
    position: relative;
    border-radius: 16px;
    /* overflow: hidden removed so chat popup can overhang */
    margin-bottom: 2rem; /* Add some space at the bottom for the overhanging popup */
}

.agent-img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 16px;
    display: block;
}

.chat-popup {
    position: absolute;
    bottom: -15px;
    right: -15px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 20px 20px 0 20px; /* Rounded top-left, top-right, bottom-left, square bottom-right */
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.4);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: floatPopup 3s ease-in-out infinite;
    z-index: 2;
}

.chat-popup i {
    font-size: 1.2rem;
}

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

.experts-right {
    flex: 2;
}

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

.support-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 0;
    padding: 1.25rem 1.1rem;
    background: #12151c;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.support-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(79, 70, 229, 0.25);
    border-color: rgba(79, 70, 229, 0.4);
}

.icon-box {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    margin-bottom: 0.9rem;
}

.icon-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.support-text h4 {
    font-size: 1rem;
    margin-bottom: 0;
    line-height: 1.3;
}

.support-text h4::after {
    content: "";
    display: block;
    width: 24px;
    height: 3px;
    border-radius: 2px;
    margin: 0.6rem 0 0.7rem;
    background: linear-gradient(90deg, #3b82f6, #6366f1);
}

.support-text p {
    font-size: 0.8rem;
    color: #94a3b8;
    margin: 0;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .support-list { grid-template-columns: repeat(2, 1fr); }
}

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

/* ==========================================================================
   Pricing Section
   ========================================================================== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1080px;
    margin: 0 auto;
    align-items: start;
}

.pricing-card {
    position: relative;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.pricing-card.popular {
    border-color: rgba(79, 70, 229, 0.5);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5), 0 0 24px rgba(79, 70, 229, 0.3);
}

@media (min-width: 769px) {
    .pricing-card.popular {
        transform: scale(1.05);
    }
}

.popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    white-space: nowrap;
}

.pricing-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.pricing-card .price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.2rem;
    margin-bottom: 0.75rem;
}

.pricing-card .currency {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

.pricing-card .amount {
    font-size: 2.75rem;
    font-weight: 800;
    font-family: var(--font-primary);
    transition: opacity 0.2s ease;
}

.pricing-card .period {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.pricing-tagline {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 1.75rem;
    min-height: 2.6em;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    flex-grow: 1;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.pricing-features li i {
    color: var(--color-success);
    margin-top: 0.2rem;
    flex-shrink: 0;
}

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

@media (max-width: 992px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
    }

    .pricing-card.popular {
        transform: none;
    }
}

/* ==========================================================================
   Testimonials Section (Swiper)
   ========================================================================== */
.testimonials-section {
    padding-bottom: 8rem;
}

.testimonials-slider {
    padding-bottom: 3rem; /* Space for pagination */
}

.testimonial-card {
    padding: 2.5rem 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.testimonial-card .stars {
    display: flex;
    gap: 0.25rem;
    font-size: 1.25rem;
}

.testimonial-card .quote {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--color-text);
    font-style: italic;
    flex-grow: 1; /* Pushes author to bottom */
}

.testimonial-card .author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
}

.author-avatar-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-primary);
}

.author-info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
}

.author-info span {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* Swiper Overrides */
.swiper-pagination-bullet {
    background-color: var(--color-text-muted);
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    background: var(--gradient-primary);
    opacity: 1;
}

.quote-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 3rem;
    margin-top: 2rem;
}

.quote-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quote-mark {
    color: #3b82f6;
    font-size: 1.5rem;
}

.quote-content p {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 500;
    color: #f8fafc;
}

.quote-icon-right {
    font-size: 2rem;
    color: rgba(59, 130, 246, 0.5);
}

@media (max-width: 992px) {
    .hero {
        align-items: flex-start;
        padding-top: 140px;
        padding-bottom: 60px;
        min-height: auto;
    }

    .hero-content, 
    .footer-content,
    .section .about-grid, 
    .section .experts-grid, 
    .section .split-layout, 
    .section .support-list, 
    .section .stats-grid,
    .section .experts-split-layout {
        grid-template-columns: 1fr;
        flex-direction: column;
        gap: 3rem;
        text-align: center;
    }

    .hero-text-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .section .reverse-mobile {
        flex-direction: column-reverse;
    }
    
    .hero-title {
        font-size: 3rem;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        text-align: left;
    }

    .footer-download-badges,
    .footer-social {
        justify-content: center;
    }

    .footer-brand p {
        max-width: none;
        margin-left: auto;
        margin-right: auto;
    }

    .footer-bottom-inner {
        justify-content: center;
        text-align: center;
    }

    .stats-banner {
        flex-wrap: wrap;
        gap: 2rem;
        justify-content: center;
    }
    
    .stat-divider {
        display: none;
    }
    
    .stat-block {
        width: 40%;
    }
    
    .experts-left {
        max-width: 100%;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .split-left, .split-right {
        width: 100%;
    }
    
    .feature-list {
        align-items: center;
    }
    
    .feature-pill {
        width: 100%;
        justify-content: center;
    }

    .agent-image-wrapper {
        margin-bottom: 3rem;
        width: 100%;
    }

    .image-wrapper-glow .trust-badge, .chat-popup {
        right: 10px; /* Fix horizontal overflow */
    }
    
    .image-wrapper-glow .trust-badge {
        top: -10px;
    }
    
    .chat-popup {
        bottom: 10px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .section-header h2 {
        font-size: 2rem;
    }
    .stat-pill h3 {
        font-size: 2rem;
    }
    .testimonials-section {
        padding-bottom: 4rem;
    }
    .cta-content h2 {
        font-size: 2.25rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    .lead {
        font-size: 1rem;
    }
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
    .cta-actions .btn {
        width: 100%;
        justify-content: center;
    }
    .quote-bar {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    .stat-block {
        width: 100%;
    }
    .cta-content h2 {
        font-size: 1.75rem;
    }
    .stat-pill {
        padding: 1rem;
    }
    .mockup-stats {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}
