/* Google Fonts loaded via HTML to prevent render blocking */

:root {
    --bg-color: #060913;
    --card-bg: rgba(255, 255, 255, 0.02);
    --card-hover-bg: rgba(255, 255, 255, 0.04);
    --border-color: rgba(255, 255, 255, 0.05);
    --border-hover: rgba(255, 255, 255, 0.12);
    --primary-color: #36bb91;
    --primary-hover: #2ba47d;
    --primary-glow: rgba(54, 187, 145, 0.25);
    --accent-color: #00f2fe;
    --accent-gradient: linear-gradient(135deg, #36bb91 0%, #00f2fe 100%);
    --bg-gradient: radial-gradient(circle at top right, rgba(54, 187, 145, 0.08) 0%, rgba(6, 9, 19, 0) 60%),
                  radial-gradient(circle at bottom left, rgba(0, 242, 254, 0.05) 0%, rgba(6, 9, 19, 0) 50%);
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --white: #ffffff;
    --font-body: 'Inter', sans-serif;
    --font-head: 'Outfit', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    background-color: var(--bg-color);
    background-image: var(--bg-gradient);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    width: 100%;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.5rem;
    letter-spacing: -0.01em;
}

p {
    color: var(--text-muted);
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 99px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    outline: none;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #ffffff;
    box-shadow: 0 4px 20px var(--primary-glow);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #00f2fe 0%, #36bb91 100%);
    opacity: 0;
    z-index: -1;
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(54, 187, 145, 0.4);
    color: #ffffff;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    color: var(--white);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

/* Floating Glass Navbar */
.navbar {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 3rem);
    max-width: 1200px;
    background: rgba(6, 9, 19, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 99px;
    padding: 0.75rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(6, 9, 19, 0.85);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.nav-brand {
    display: flex;
    align-items: center;
}

.nav-brand img {
    height: 32px;
}

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

.nav-link {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
}

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

/* Responsive Navbar Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--text-main);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding: 12rem 0 6rem;
    position: relative;
    transition: background-color 0.3s ease;
}

body.light-mode .hero {
    background-color: #ffffff; /* Pure white background in light mode */
}

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

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-tagline {
    background: rgba(54, 187, 145, 0.1);
    color: var(--primary-color);
    padding: 0.4rem 1.2rem;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    display: inline-block;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(54, 187, 145, 0.2);
}

.hero h1 {
    width: 100%;
    margin-bottom: 1.5rem;
    line-height: 1.15;
    font-size: 3.2rem;
}

.hero h1 span {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    color: var(--text-muted);
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    margin-bottom: 3rem;
    width: 100%;
}

.mobile-only-ctas {
    display: none !important;
}

.btn-play-dashboard {
    background: transparent !important;
    color: var(--white) !important;
    border: 1px solid var(--white) !important;
}

body.light-mode .btn-play-dashboard {
    color: #0f172a !important;
    border-color: #0f172a !important;
}

.btn-play-dashboard:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    transform: translateY(-2px);
}

body.light-mode .btn-play-dashboard:hover {
    background: rgba(15, 23, 42, 0.04) !important;
}

/* Hero Stats Bar */
.hero-stats-bar {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem 1rem;
    margin-top: 5rem;
    gap: 1rem;
    align-items: center;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

body.light-mode .hero-stats-bar {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.hero-stats-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0 1rem;
}

.hero-stats-item:not(:last-child) {
    border-right: 1px solid var(--border-color);
}

body.light-mode .hero-stats-item:not(:last-child) {
    border-right-color: rgba(0, 0, 0, 0.08);
}

.hero-stats-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(54, 187, 145, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.hero-stats-info {
    display: flex;
    flex-direction: column;
}

.hero-stats-val {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.2;
}

.hero-stats-lbl {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: float-hero 6s ease-in-out infinite;
    width: 100%;
}

.hero-image-wrapper img {
    width: 100%;
    max-width: 720px;
    height: auto;
    display: block;
    filter: drop-shadow(0 20px 40px rgba(0, 242, 254, 0.12));
    border-radius: 16px;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.hero-image-wrapper img:hover {
    transform: scale(1.01) translateY(-4px);
    filter: drop-shadow(0 25px 50px rgba(0, 242, 254, 0.18));
}

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

/* Responsiveness for Hero Grid */
@media (max-width: 1024px) {
    .hero {
        padding: 10rem 0 4rem;
    }
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3.5rem;
    }
    .hero-content {
        align-items: center;
    }
    .hero h1 {
        font-size: 2.8rem;
    }
    .hero-ctas {
        justify-content: center;
    }
    .desktop-only-ctas {
        display: none !important;
    }
    .mobile-only-ctas {
        display: flex !important;
        justify-content: center;
        margin-top: 2rem;
        margin-bottom: 0;
    }
    .hero-stats-bar {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
        margin-top: 4rem;
    }
    .hero-stats-item {
        justify-content: center;
    }
    .hero-stats-item:nth-child(3):not(:last-child) {
        border-right: none;
    }
}

@media (max-width: 768px) {
    .hero-stats-bar {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    .hero-stats-item {
        justify-content: flex-start;
        padding: 0;
        width: 100%;
    }
    .hero-stats-item:not(:last-child) {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 1rem;
    }
    body.light-mode .hero-stats-item:not(:last-child) {
        border-bottom-color: rgba(0, 0, 0, 0.08);
    }
}

/* Glassmorphism Cards */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card:hover {
    background: var(--card-hover-bg);
    border-color: var(--border-hover);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

/* Features Grid */
.features {
    padding: 6rem 0;
}

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

.section-header span {
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    display: inline-block;
    margin-bottom: 0.5rem;
}

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

.section-header p {
    max-width: 600px;
    margin: 0 auto;
}

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

.feature-card {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.feature-icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(54, 187, 145, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.5rem;
    border: 1px solid rgba(54, 187, 145, 0.2);
}

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

.feature-card p {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Strikes Visualizer Section */
.preview-section {
    padding: 6rem 0;
    position: relative;
}

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

.preview-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* CSS-only Dashboard Widget */
.dashboard-mockup {
    background: #0d1222;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 40px rgba(54, 187, 145, 0.05);
}

.mock-header {
    background: #080b15;
    padding: 0.8rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
}

.mock-dots {
    display: flex;
    gap: 6px;
}

.mock-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.mock-dot.red { background-color: #ef4444; }
.mock-dot.yellow { background-color: #eab308; }
.mock-dot.green { background-color: #22c55e; }

.mock-title {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: monospace;
}

.mock-body {
    padding: 1.5rem;
    font-family: monospace;
    font-size: 0.8rem;
}

.mock-table {
    width: 100%;
    border-collapse: collapse;
    color: #e2e8f0;
}

.mock-table th, .mock-table td {
    padding: 0.6rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.mock-table th {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.badge-up {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    display: inline-block;
}

.badge-down {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    display: inline-block;
}

.live-pulse {
    width: 6px;
    height: 6px;
    background-color: #22c55e;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
    box-shadow: 0 0 8px #22c55e;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 12px #22c55e; }
    100% { transform: scale(0.95); opacity: 0.5; }
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.pricing-card {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.pricing-card.recommended {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(54, 187, 145, 0.15);
}

.pricing-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--accent-gradient);
    color: #060913;
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 700;
}

.pricing-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.pricing-header p {
    font-size: 0.9rem;
}

.price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-top: 1rem;
}

.price-currency {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.price-amount {
    font-size: 3rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
}

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

.pricing-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-size: 0.9rem;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
}

.pricing-features li::before {
    content: '✓';
    color: var(--primary-color);
    font-weight: bold;
}

/* Testimonial Section */
.testimonials {
    padding: 6rem 0;
    text-align: center;
}

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

.testimonial-card-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 2.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    height: 100%;
    transition: var(--transition);
}

.testimonial-card-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 242, 254, 0.05);
}

.quote-text-item {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

body.light-mode .testimonial-card-item {
    background: #ffffff;
    border-color: #e5e7eb;
}

body.light-mode .quote-text-item {
    color: #4b5563;
}

.testimonial-card {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.quote-text {
    font-size: 1.5rem;
    font-style: italic;
    color: var(--white);
    line-height: 1.5;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.client-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #060913;
    font-weight: 700;
    font-size: 1.1rem;
}

.client-details {
    text-align: left;
}

.client-name {
    font-weight: 600;
    color: var(--white);
}

.client-role {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Blog Section */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.blog-card {
    display: flex;
    flex-direction: column;
    padding: 0;
    height: 100%;
}

.blog-img {
    height: 200px;
    width: 100%;
    object-fit: cover;
    border-top-left-radius: 19px;
    border-top-right-radius: 19px;
    border-bottom: 1px solid var(--border-color);
}

.blog-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex-grow: 1;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.blog-category {
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.blog-card h3 {
    font-size: 1.25rem;
    line-height: 1.4;
}

.blog-card p {
    font-size: 0.9rem;
    flex-grow: 1;
}

/* Contact Page Layout */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    margin-top: 4rem;
}

.contact-info-column {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.contact-item {
    display: flex;
    gap: 1.25rem;
}

.contact-icon {
    width: 44px;
    height: 44px;
    background: rgba(54, 187, 145, 0.08);
    border: 1px solid rgba(54, 187, 145, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.contact-details h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.hours-table {
    width: 100%;
    margin-top: 0.5rem;
    border-collapse: collapse;
}

.hours-table tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.hours-table td {
    padding: 0.4rem 0;
    font-size: 0.9rem;
}

.hours-table td:last-child {
    text-align: right;
    color: var(--text-muted);
}

/* Forms (Contact Form & Newsletter) */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    width: 100%;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
}

.form-control {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 0.85rem 1.2rem;
    border-radius: 10px;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
    width: 100%;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(54, 187, 145, 0.15);
    outline: none;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Footer styling */
footer {
    border-top: 1px solid var(--border-color);
    padding: 5rem 0 2rem;
    background: #04060c;
    margin-top: 6rem;
}

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

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-column img {
    height: 32px;
    align-self: flex-start;
}

.footer-column h4 {
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-size: 0.9rem;
}

.footer-link {
    color: var(--text-muted);
}

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

.newsletter-box {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.newsletter-form {
    display: flex;
    gap: 8px;
    width: 100%;
}

.newsletter-form .form-control {
    flex-grow: 1;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

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

/* Interactive Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 6, 12, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    background: #0c101d;
    border: 1px solid var(--border-color);
    width: 100%;
    max-width: 480px;
    border-radius: 20px;
    overflow: hidden;
    transform: scale(0.9);
    transition: var(--transition);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

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

.modal-header {
    background: #080b15;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: var(--white);
}

.modal-body {
    padding: 2rem;
}

/* Page Header Subpage Template */
.subpage-header {
    padding: 8rem 0 3rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.subpage-header h1 {
    font-size: 3rem;
    margin-bottom: 0.75rem;
}

.breadcrumbs {
    display: flex;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

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

/* Responsiveness */
@media (max-width: 1024px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2.2rem; }
    .features-grid, .pricing-grid, .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .preview-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    html { font-size: 15px; }
    h1 { font-size: 2.5rem; }

    /* === MOBILE NAVBAR: [☰]  [  LOGO  ]  [🌙 Demo] === */
    .navbar {
        padding: 0.65rem 1.1rem;
        position: fixed; /* keep fixed */
    }

    /* Re-order flex items */
    .nav-toggle {
        display: flex;
        order: 1;
        flex: 0 0 auto;    /* don't grow/shrink */
    }

    .nav-brand {
        order: 2;
        flex: 1;           /* fill middle space */
        display: flex;
        justify-content: center;  /* center logo inside that space */
        position: static;         /* REMOVE the absolute positioning */
        transform: none;
    }

    .nav-cta {
        order: 3;
        flex: 0 0 auto;    /* don't grow/shrink */
    }

    /* Dropdown menu */
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        width: 100%;
        background: rgba(6, 9, 19, 0.95);
        border: 1px solid var(--border-color);
        border-radius: 20px;
        padding: 1.5rem;
        gap: 1rem;
        margin-top: 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.5);
        z-index: 999;
    }
    .nav-links.active {
        display: flex;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    .features-grid, .pricing-grid, .blog-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    /* Very small phones: hide Book Demo text, keep theme toggle */
    @media (max-width: 420px) {
        .nav-cta .btn-primary {
            display: none;
        }
    }
}


/* Light / Dark Mode Toggle Transitions and Theme Overrides */
body, header, main, footer, .navbar, .card, h1, h2, h3, h4, h5, h6, p, a, input, textarea, .dashboard-mockup, .mock-header, .mock-table th, .mock-table td, .pricing-features li, .pricing-card, .footer-column, .footer-bottom, .modal-box, .modal-header, .subpage-header {
    transition: background 0.5s ease, background-color 0.5s ease, color 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
}

.theme-toggle {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease, border-color 0.3s ease;
    outline: none;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-hover);
}

body.light-mode {
    --bg-color: #ffffff;
    --card-bg: rgba(0, 0, 0, 0.02);
    --card-hover-bg: rgba(0, 0, 0, 0.04);
    --border-color: rgba(0, 0, 0, 0.06);
    --border-hover: rgba(0, 0, 0, 0.12);
    --text-main: #0f172a;
    --text-muted: #475569;
    --white: #000000;
    --bg-gradient: radial-gradient(circle at top right, rgba(54, 187, 145, 0.04) 0%, rgba(255, 255, 255, 0) 60%),
                  radial-gradient(circle at bottom left, rgba(0, 242, 254, 0.02) 0%, rgba(255, 255, 255, 0) 50%);
}

body.light-mode .theme-toggle {
    background: #f1f5f9;
    color: #475569;
    border-color: transparent;
}

body.light-mode .theme-toggle:hover {
    background: #e2e8f0;
    color: #0f172a;
}

body.light-mode .navbar {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

body.light-mode .dashboard-mockup {
    background: #f1f5f9;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

body.light-mode .mock-header {
    background: #e2e8f0;
}

body.light-mode .mock-table {
    color: #1e293b;
}

body.light-mode .modal-box {
    background: #ffffff;
    color: #0f172a;
}

body.light-mode .modal-header {
    background: #f1f5f9;
}

body.light-mode footer {
    background: #f1f5f9;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

body.light-mode .form-control {
    background: rgba(0, 0, 0, 0.01);
    color: #0f172a;
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .form-control:focus {
    background: rgba(0, 0, 0, 0.02);
    border-color: var(--primary-color);
}

@media (max-width: 768px) {
    body.light-mode .nav-links {
        background: rgba(255, 255, 255, 0.98);
        border-color: rgba(0, 0, 0, 0.08);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    }
}

/* =============================================
   PRODUCT TOUR / EXPLORE INTERFACE SECTION
   ============================================= */

.product-tour {
    padding: 3.5rem 0 5rem;
    position: relative;
    overflow: hidden;
    scroll-margin-top: 70px;
}

.product-tour::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(54, 187, 145, 0.07) 0%, transparent 70%);
    pointer-events: none;
}

/* Section Header */
.tour-header {
    text-align: center;
    margin-bottom: 1.8rem;
}

.tour-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(54, 187, 145, 0.12);
    border: 1px solid rgba(54, 187, 145, 0.3);
    color: var(--primary-color);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
}

.tour-badge i {
    font-size: 0.7rem;
    animation: pulse-dot 2s infinite;
}

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

.tour-header h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    margin-bottom: 0.6rem;
}

.tour-header h2 span {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tour-header p {
    color: var(--text-muted);
    max-width: 540px;
    margin: 0 auto;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Tab Navigation */
.tour-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 3rem;
}

.tour-tab-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    background: var(--card-bg);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    font-family: var(--font-body);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.tour-tab-btn i {
    font-size: 0.85rem;
}

.tour-tab-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(54, 187, 145, 0.06);
}

.tour-tab-btn.active {
    background: var(--accent-gradient);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 20px rgba(54, 187, 145, 0.35);
    font-weight: 600;
}

/* Monitor Frame */
.tour-monitor-wrapper {
    position: relative;
    max-width: 960px;
    margin: 0 auto 1rem;
}

.tour-monitor {
    position: relative;
    background: linear-gradient(145deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px 16px 8px 8px;
    padding: 14px 14px 0;
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.05),
        0 30px 60px rgba(0,0,0,0.6),
        0 0 80px rgba(54, 187, 145, 0.08),
        inset 0 1px 0 rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
}

.tour-monitor::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 36px;
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
    border-radius: 16px 16px 0 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.monitor-chrome {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.chrome-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.chrome-dot.red   { background: #ff5f57; box-shadow: 0 0 4px rgba(255,95,87,0.5); }
.chrome-dot.yellow { background: #ffbd2e; box-shadow: 0 0 4px rgba(255,189,46,0.5); }
.chrome-dot.green  { background: #28c840; box-shadow: 0 0 4px rgba(40,200,64,0.5); }

.chrome-bar {
    flex: 1;
    height: 20px;
    background: rgba(255,255,255,0.04);
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    padding: 0 8px;
    gap: 6px;
}

.chrome-bar-text {
    font-size: 0.65rem;
    color: var(--text-muted);
    opacity: 0.6;
}

.chrome-live {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.chrome-live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-color);
    animation: blink-live 1.4s ease-in-out infinite;
}

@keyframes blink-live {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}

.chrome-live span {
    font-size: 0.6rem;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Screen Area */
.tour-screen {
    position: relative;
    border-radius: 4px 4px 0 0;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #0a0e1a;
    cursor: zoom-in;
}

/* Slide states: current visible slide */
.tour-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.5s ease, transform 0.55s cubic-bezier(0.4,0,0.2,1);
    pointer-events: none;
    will-change: transform, opacity;
}

/* Active / entering from right */
.tour-slide.active {
    opacity: 1;
    transform: translateX(0%);
    pointer-events: auto;
}

/* Slide exiting to the left (going forward) */
.tour-slide.slide-out-left {
    opacity: 0;
    transform: translateX(-100%);
    pointer-events: none;
}

/* Slide exiting to the right (going backward) */
.tour-slide.slide-out-right {
    opacity: 0;
    transform: translateX(100%);
    pointer-events: none;
}

/* Slide entering from the left (going backward) */
.tour-slide.slide-in-left {
    transform: translateX(-100%);
}

/* Autoplay progress bar under each dot */
.gallery-dots .tour-dot {
    position: relative;
    overflow: hidden;
}

.gallery-dots .tour-dot.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: rgba(255,255,255,0.45);
    border-radius: 50%;
    animation: dotProgress var(--dot-duration, 3s) linear forwards;
}

@keyframes dotProgress {
    from { width: 0%; }
    to   { width: 100%; }
}

.tour-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 4px 4px 0 0;
    background: #0a0e1a;
}

/* Monitor Stand */
.monitor-stand-neck {
    width: 60px;
    height: 18px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
    margin: 0 auto;
    border-left: 1px solid rgba(255,255,255,0.05);
    border-right: 1px solid rgba(255,255,255,0.05);
}

.monitor-stand-base {
    width: 180px;
    height: 8px;
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
    margin: 0 auto;
    border-radius: 0 0 40px 40px;
    border: 1px solid rgba(255,255,255,0.06);
    border-top: none;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

/* Click hint overlay */
.tour-screen-hint {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 0.68rem;
    color: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    gap: 5px;
    pointer-events: none;
    z-index: 5;
}

/* Feature Info Cards below monitor */
.tour-info-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 960px;
    margin: 0 auto 2rem;
}

.tour-info-card {
    display: none;
    animation: fadeSlideUp 0.4s ease forwards;
}

.tour-info-card.active {
    display: block;
}

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

.tour-info-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.1rem 1.2rem;
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    transition: var(--transition);
}

.tour-info-item:hover {
    border-color: var(--primary-color);
    background: rgba(54,187,145,0.05);
    transform: translateY(-2px);
}

.tour-info-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(54, 187, 145, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.tour-info-text h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.2rem;
    font-family: var(--font-head);
}

.tour-info-text p {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* CTA Row */
.tour-cta-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.tour-counter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.tour-dots {
    display: flex;
    gap: 5px;
}

.tour-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.tour-dot.active {
    background: var(--primary-color);
    transform: scale(1.3);
}

/* Lightbox */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-inner {
    position: relative;
    max-width: 95vw;
    max-height: 92vh;
    transform: scale(0.9);
    transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
}

.lightbox-overlay.open .lightbox-inner {
    transform: scale(1);
}

.lightbox-inner img {
    max-width: 95vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 40px 80px rgba(0,0,0,0.8);
    display: block;
}

.lightbox-close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.lightbox-close:hover {
    background: rgba(255,80,80,0.3);
    border-color: rgba(255,80,80,0.5);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.lightbox-nav:hover {
    background: var(--primary-color);
    border-color: transparent;
}

.lightbox-prev { left: -54px; }
.lightbox-next { right: -54px; }

.lightbox-caption {
    text-align: center;
    margin-top: 1rem;
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
}

/* Light mode adjustments */
body.light-mode .tour-monitor {
    background: linear-gradient(145deg, rgba(0,0,0,0.05), rgba(0,0,0,0.02));
    border-color: rgba(0,0,0,0.1);
    box-shadow: 0 30px 60px rgba(0,0,0,0.12), 0 0 80px rgba(54,187,145,0.05);
}

body.light-mode .tour-monitor::before {
    background: linear-gradient(135deg, rgba(0,0,0,0.03), rgba(0,0,0,0.01));
    border-bottom-color: rgba(0,0,0,0.06);
}

body.light-mode .chrome-bar {
    background: rgba(0,0,0,0.04);
    border-color: rgba(0,0,0,0.06);
}

body.light-mode .monitor-stand-neck {
    background: linear-gradient(to bottom, rgba(0,0,0,0.06), rgba(0,0,0,0.02));
}

body.light-mode .monitor-stand-base {
    background: linear-gradient(135deg, rgba(0,0,0,0.04), rgba(0,0,0,0.02));
    border-color: rgba(0,0,0,0.06);
}

body.light-mode .tour-tab-btn {
    background: rgba(0,0,0,0.02);
    border-color: rgba(0,0,0,0.08);
    color: #475569;
}

body.light-mode .tour-tab-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(54,187,145,0.06);
}

body.light-mode .tour-info-item {
    background: rgba(0,0,0,0.02);
    border-color: rgba(0,0,0,0.06);
}

body.light-mode .tour-screen-hint {
    background: rgba(255,255,255,0.75);
    border-color: rgba(0,0,0,0.1);
    color: rgba(0,0,0,0.6);
}

/* Responsive */
@media (max-width: 768px) {
    .tour-info-row {
        grid-template-columns: 1fr;
    }
    .tour-tabs {
        gap: 0.4rem;
    }
    .tour-tab-btn {
        font-size: 0.78rem;
        padding: 0.5rem 0.9rem;
    }
    .lightbox-prev { left: -20px; }
    .lightbox-next { right: -20px; }
    .lightbox-nav {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }
    .monitor-stand-neck { display: none; }
    .monitor-stand-base { display: none; }
}

/* =============================================
   GALLERY SLIDER LAYOUT
   ============================================= */

.gallery-slider-outer {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    max-width: 1060px;
    margin: 0 auto;
}

.gallery-slider-outer .tour-monitor-wrapper {
    flex: 1;
    margin: 0;
}

/* Side Arrow Buttons */
.gallery-arrow {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(54, 187, 145, 0.10);
    border: 1.5px solid rgba(54, 187, 145, 0.3);
    color: var(--primary-color);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    position: relative;
    z-index: 2;
}

.gallery-arrow:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(54, 187, 145, 0.45);
}

.gallery-arrow:active {
    transform: scale(0.96);
}

/* Dots row */
.gallery-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 1rem;
}

/* Light mode arrow */
body.light-mode .gallery-arrow {
    background: rgba(54, 187, 145, 0.07);
    border-color: rgba(54, 187, 145, 0.25);
}

body.light-mode .gallery-arrow:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Responsive: stack arrows above/below on small screens */
@media (max-width: 640px) {
    .gallery-slider-outer {
        flex-direction: column;
        gap: 0.8rem;
    }

    .gallery-arrow {
        display: none !important;
    }

    .gallery-slider-outer .tour-monitor-wrapper {
        width: 100%;
    }
}

/* Infinite Scrolling Partners Marquee */
.partners-marquee {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 2rem 0;
    margin-top: 3rem;
}

/* Gradient fade overlays for left and right edges */
.partners-marquee::before,
.partners-marquee::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.partners-marquee::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-color) 0%, transparent 100%);
}

.partners-marquee::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-color) 0%, transparent 100%);
}

.partners-track {
    display: flex;
    gap: 5rem;
    width: max-content;
    animation: marquee 25s linear infinite;
    align-items: center;
}

.partners-track img {
    height: 45px;
    width: auto;
    object-fit: contain;
    opacity: 0.5;
    filter: grayscale(100%) invert(100%);
    transition: var(--transition);
}

.partners-track img:hover {
    opacity: 1;
    filter: none;
    transform: scale(1.05);
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Light mode adjustments for marquee logos */
body.light-mode .partners-track img {
    filter: grayscale(100%); /* don't invert in light mode */
}

body.light-mode .partners-track img:hover {
    filter: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .partners-track {
        gap: 3rem;
    }
    .partners-track img {
        height: 35px;
    }
    .partners-marquee::before,
    .partners-marquee::after {
        width: 60px;
    }
}

/* Smooth Page Transitions */
#page-wrapper {
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

body.page-transition-active #page-wrapper {
    opacity: 0 !important;
    transform: translateY(15px) !important;
}

body.page-ready #page-wrapper {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

body.page-exiting #page-wrapper {
    opacity: 0 !important;
    transform: translateY(-15px) !important;
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), transform 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* =============================================
   INTERACTIVE SIMULATOR STYLES
   ============================================= */
.simulator-container {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.5rem;
    background: rgba(10, 15, 30, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px);
    width: 100%;
    min-width: 0;
}

.sim-strategy-select {
    display: flex;
    gap: 0.5rem;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 5px;
}

.sim-strategy-btn {
    padding: 0.6rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    border-radius: 99px;
    font-family: var(--font-head);
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.sim-strategy-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    border-color: var(--border-hover);
}

.sim-strategy-btn.active {
    background: var(--accent-gradient);
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 0 15px rgba(54, 187, 145, 0.3);
}

.sim-plot-area {
    position: relative;
    width: 100%;
    height: 150px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    overflow: hidden;
}

.sim-svg {
    width: 100%;
    height: 100%;
    display: block;
}

.sim-control-panel {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sim-control-label {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-head);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--white);
}

.sim-control-value {
    color: var(--primary-color);
}

/* Custom Styled Range Slider */
.sim-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.08);
    outline: none;
    margin: 10px 0;
    cursor: pointer;
}

.sim-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
    transition: var(--transition);
}

.sim-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background: var(--accent-color);
    box-shadow: 0 0 15px var(--accent-color);
}

.sim-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border: none;
    border-radius: 50%;
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
    transition: var(--transition);
    cursor: pointer;
}

.sim-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    background: var(--accent-color);
    box-shadow: 0 0 15px var(--accent-color);
}

/* Toggle Switch Styling */
.sim-toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.sim-toggle-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.sim-toggle-label i {
    color: var(--primary-color);
}

.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider-toggle {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255,255,255,0.1);
    transition: .3s;
    border-radius: 24px;
    border: 1px solid var(--border-color);
}

.slider-toggle:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: var(--white);
    transition: .3s;
    border-radius: 50%;
}

input:checked + .slider-toggle {
    background-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(54, 187, 145, 0.4);
}

input:checked + .slider-toggle:before {
    transform: translateX(20px);
}

/* Metrics Cards */
.sim-metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.sim-metric-card {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.75rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sim-metric-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.sim-metric-value {
    font-family: var(--font-head);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    transition: var(--transition);
}

.sim-metric-value.neutral {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(54, 187, 145, 0.3);
}

.sim-metric-value.exposed {
    color: #ff9f43;
    text-shadow: 0 0 10px rgba(255, 159, 67, 0.3);
}

.sim-metric-value.profit {
    color: var(--primary-color);
}

.sim-metric-value.loss {
    color: #ff6b6b;
}

.sim-action-card {
    background: rgba(54, 187, 145, 0.05);
    border: 1px solid rgba(54, 187, 145, 0.15);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
}

.sim-action-icon {
    font-size: 1.25rem;
    color: var(--primary-color);
    animation: pulse 2s infinite ease-in-out;
}

.sim-action-text {
    font-weight: 500;
    color: var(--white);
}

.sim-action-text span {
    color: var(--primary-color);
    font-weight: 600;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; text-shadow: 0 0 8px var(--primary-color); }
    100% { transform: scale(1); opacity: 0.8; }
}

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

/* Light Mode overrides for Interactive Simulator */
body.light-mode .simulator-container {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(54, 187, 145, 0.2);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

body.light-mode .mock-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 0.75rem;
}

body.light-mode .mock-title {
    color: #0f172a;
}

body.light-mode .sim-strategy-btn {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.08);
    color: #475569;
}

body.light-mode .sim-strategy-btn:hover {
    background: rgba(0, 0, 0, 0.06);
    color: #0f172a;
}

body.light-mode .sim-strategy-btn.active {
    background: var(--accent-gradient);
    color: var(--white);
    border-color: transparent;
}

body.light-mode .sim-plot-area {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.05);
}

body.light-mode .sim-plot-area line {
    stroke: rgba(0, 0, 0, 0.08);
}

body.light-mode .sim-control-label {
    color: #0f172a;
}

body.light-mode .sim-slider {
    background: rgba(0, 0, 0, 0.06);
}

body.light-mode .sim-toggle-row {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.05);
}

body.light-mode .sim-toggle-label {
    color: #334155;
}

body.light-mode .sim-metric-card {
    background: rgba(0, 0, 0, 0.015);
    border-color: rgba(0, 0, 0, 0.05);
}

body.light-mode .sim-metric-label {
    color: #475569;
}

body.light-mode .sim-metric-value {
    color: #0f172a;
}

body.light-mode .sim-metric-value.profit {
    color: #00875a;
}

body.light-mode .sim-metric-value.neutral {
    color: #00875a;
}

body.light-mode .sim-metric-value.exposed {
    color: #d97706;
}

body.light-mode .sim-action-card {
    background: rgba(54, 187, 145, 0.08);
    border-color: rgba(54, 187, 145, 0.25);
}

body.light-mode .sim-action-text {
    color: #1e293b;
}

body.light-mode .sim-action-text span {
    color: #00875a;
}

/* =============================================
   EXPERT CARDS STYLING
   ============================================= */
.experts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.expert-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 3rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.expert-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-gradient);
    opacity: 0;
    transition: var(--transition);
}

.expert-card:hover {
    background: var(--card-hover-bg);
    border-color: var(--border-hover);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.expert-card:hover::before {
    opacity: 1;
}

.expert-avatar-wrapper {
    position: relative;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, rgba(54, 187, 145, 0.2) 0%, rgba(0, 242, 254, 0.2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.expert-card:hover .expert-avatar-wrapper {
    background: var(--accent-gradient);
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.4);
}

.expert-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--bg-color);
    transition: border-color 0.3s ease;
}

body.light-mode .expert-avatar {
    border-color: var(--bg-color);
}

.expert-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.25rem;
}

body.light-mode .expert-name {
    color: #0f172a;
}

.expert-role {
    color: var(--primary-color);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.expert-bio {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
}

body.light-mode .expert-bio {
    color: #475569;
}

.expert-socials {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.expert-social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

body.light-mode .expert-social-link {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.08);
    color: #64748b;
}

.expert-social-link:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

body.light-mode .expert-social-link:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* Responsive Grid breakpoints */
@media (max-width: 992px) {
    .experts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* =============================================
   GOOGLE MAP STYLING OVERRIDE (COLOR RECOVERY)
   ============================================= */
iframe[src*="google.com/maps"] {
    filter: none !important;
    -webkit-filter: none !important;
}

/* Light mode tagline badge & outline play button overrides */
body.light-mode .hero-tagline {
    background: #e6f9f3;
    color: #0fa981;
}

body.light-mode .btn-play-dashboard {
    color: #0f172a !important;
    border-color: rgba(15, 23, 42, 0.15) !important;
}

body.light-mode .btn-play-dashboard:hover {
    background: rgba(15, 23, 42, 0.04) !important;
    border-color: #0f172a !important;
}
