/* Main Styles for MySimulator.uk */

/* Screen reader only - visually hidden but accessible */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

:root {
    --bg-color: #050510;
    --bg-secondary: #0a0a1a;
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --accent-color: #00f2ff;
    --accent-glow: rgba(0, 242, 255, 0.4);
    --header-bg: rgba(5, 5, 16, 0.92);
    --footer-bg: rgba(5, 5, 16, 1);
    --shadow-color: rgba(0, 0, 0, 0.4);
    --code-bg: rgba(255, 255, 255, 0.05);
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --transition-speed: 0.3s;
}

/* Light Theme */
[data-theme="light"] {
    --bg-color: #f5f6fa;
    --bg-secondary: #ebedf3;
    --card-bg: rgba(255, 255, 255, 0.85);
    --card-border: rgba(0, 0, 0, 0.1);
    --text-primary: #1a1a2e;
    --text-secondary: #555568;
    --accent-color: #0077b3;
    --accent-glow: rgba(0, 136, 204, 0.25);
    --header-bg: rgba(245, 246, 250, 0.95);
    --footer-bg: #1a1a2e;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --code-bg: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] header {
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] header.header-scrolled {
    background: var(--header-bg);
    box-shadow: 0 2px 12px var(--shadow-color);
}

[data-theme="light"] .logo {
    background: linear-gradient(90deg, #1a1a2e, var(--accent-color));
    background-clip: text;
    -webkit-background-clip: text;
    text-shadow: none;
}

[data-theme="light"] .hero::before {
    opacity: 0.08;
}

[data-theme="light"] .card {
    background: var(--card-bg);
    border-color: var(--card-border);
    box-shadow: 0 2px 8px var(--shadow-color);
}

[data-theme="light"] .cta-button {
    color: #fff;
}

[data-theme="light"] footer {
    background: var(--footer-bg);
    color: #ccc;
}

[data-theme="light"] .cookie-consent {
    background: #fff;
    color: #333;
    border-top: 1px solid rgba(0,0,0,0.1);
}

/* Light theme focus-visible overrides */
[data-theme="light"] button:focus-visible,
[data-theme="light"] .cta-button:focus-visible,
[data-theme="light"] a:focus-visible {
    outline-color: #1a1a2e;
}

[data-theme="light"] .fab-btn:focus-visible {
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    outline-color: #1a1a2e;
}

/* Theme Toggle Button */
.theme-toggle {
    background: transparent;
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all var(--transition-speed);
    flex-shrink: 0;
}

.theme-toggle:hover {
    background: var(--card-bg);
    border-color: var(--accent-color);
    transform: rotate(15deg);
}

.theme-toggle:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
    display: none;
}

.theme-toggle .icon-moon { display: inline; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: inline; }

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

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

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

/* Typography */
h1, h2, h3 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

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

a:hover {
    color: var(--accent-color);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    contain: layout style;
}

header.header-scrolled {
    background: rgba(5, 5, 16, 0.92);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(90deg, #fff, var(--accent-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px var(--accent-glow);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Hero Section */
.hero {
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    opacity: 0.2;
    z-index: -1;
    pointer-events: none;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--accent-color);
    color: #000;
    font-weight: 700;
    border-radius: 50px;
    box-shadow: 0 0 20px var(--accent-glow);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px var(--accent-glow);
    color: #000;
}

/* Simulations Grid */
.simulations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 50px 0;
}

.card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    transition: transform var(--transition-speed), border-color var(--transition-speed);
    backdrop-filter: blur(10px);
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.card-link {
    display: inline-flex;
    align-items: center;
    color: var(--accent-color);
    font-weight: 600;
    gap: 5px;
}

/* Marketing Sections */
.promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.promo-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 20px;
}

.featured-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: center;
    background: linear-gradient(135deg, rgba(0, 242, 255, 0.1), rgba(123, 47, 247, 0.16));
    border: 1px solid rgba(0, 242, 255, 0.35);
    border-radius: 20px;
    padding: 28px;
}

.featured-card h3 {
    margin-bottom: 8px;
}

.featured-card p {
    color: var(--text-secondary);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.testimonial-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 20px;
}

.testimonial-card p {
    color: var(--text-secondary);
    margin-bottom: 14px;
}

.seen-on-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.seen-on-item {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    padding: 12px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
    letter-spacing: 0.04em;
}

.newsletter-box {
    background: linear-gradient(135deg, rgba(123, 47, 247, 0.18), rgba(0, 242, 255, 0.1));
    border: 1px solid rgba(123, 47, 247, 0.4);
    border-radius: 16px;
    padding: 24px;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.newsletter-form input {
    flex: 1 1 240px;
    min-height: 44px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.2);
    color: #fff;
    padding: 0 14px;
}

.newsletter-form button {
    min-height: 44px;
}

/* Simulation helper sections */
.sim-helper-section {
    margin: 28px 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 18px;
}

.sim-helper-section h3 {
    margin-bottom: 10px;
}

.sim-link-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.sim-link-list a {
    border: 1px solid rgba(0, 242, 255, 0.35);
    color: var(--accent-color);
    border-radius: 9999px;
    padding: 6px 12px;
    font-size: 0.85rem;
}

.sim-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.sim-share-buttons a {
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 7px 10px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.premium-callout {
    border: 1px solid rgba(123, 47, 247, 0.55);
    background: linear-gradient(135deg, rgba(123, 47, 247, 0.15), rgba(0, 242, 255, 0.1));
}

.footer-newsletter {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 18px;
}

.footer-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.footer-badge {
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 9999px;
    padding: 6px 10px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Skip to Content (Accessibility) */
.skip-to-content {
    position: absolute;
    top: -100%;
    left: 16px;
    z-index: 9999;
    background: var(--accent-color);
    color: #000;
    padding: 12px 24px;
    border-radius: 0 0 8px 8px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: top 0.2s ease;
    text-decoration: none;
}

.skip-to-content:focus {
    top: 0;
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.breadcrumb-nav ol {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    gap: 6px;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.breadcrumb-nav ol li::after {
    content: '›';
    margin-left: 8px;
    opacity: 0.5;
}

.breadcrumb-nav ol li:last-child::after {
    content: none;
}

.breadcrumb-nav a {
    color: var(--accent-color);
    font-weight: 500;
}

.breadcrumb-nav a:hover {
    text-decoration: underline;
}

.breadcrumb-nav [aria-current="page"] {
    color: var(--text-primary);
    font-weight: 600;
}

/* Simulation Meta Bar */
.sim-meta-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 0 18px;
}

.sim-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.tag-physics    { background: rgba(0,150,255,0.15);  color: #5bc3ff; border: 1px solid rgba(0,150,255,0.3); }
.tag-maths      { background: rgba(180,0,255,0.15);  color: #c878ff; border: 1px solid rgba(180,0,255,0.3); }
.tag-cs         { background: rgba(0,255,180,0.12);  color: #2effcc; border: 1px solid rgba(0,255,180,0.25); }
.tag-biology    { background: rgba(80,220,0,0.12);   color: #7de83b; border: 1px solid rgba(80,220,0,0.25); }
.tag-music      { background: rgba(255,180,0,0.12);  color: #ffc13b; border: 1px solid rgba(255,180,0,0.25); }
.tag-curriculum { background: rgba(255,255,255,0.07); color: var(--text-secondary); border: 1px solid rgba(255,255,255,0.12); }

.tag-diff-beginner     { background: rgba(80,220,100,0.12); color: #7de83b; border: 1px solid rgba(80,220,100,0.25); }
.tag-diff-intermediate { background: rgba(255,200,0,0.12);  color: #ffd44a; border: 1px solid rgba(255,200,0,0.25); }
.tag-diff-advanced     { background: rgba(255,80,80,0.12);   color: #ff8080; border: 1px solid rgba(255,80,80,0.25); }
.tag-free { background: rgba(0,242,255,0.1); color: var(--accent-color); border: 1px solid rgba(0,242,255,0.25); }

/* Focus Indicators (Accessibility) */
*:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 3px;
    border-radius: 3px;
}

button:focus-visible,
.cta-button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
    box-shadow: 0 0 0 4px var(--accent-glow);
}

/* Mobile Hamburger Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 200;
    position: relative;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    margin: 5px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Cookie Consent Banner */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 26, 0.97);
    border-top: 1px solid rgba(0, 242, 255, 0.2);
    padding: 18px 20px;
    z-index: 9999;
    backdrop-filter: blur(16px);
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.cookie-consent.visible {
    transform: translateY(0);
}

.cookie-consent-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-consent p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.6;
    flex: 1;
    min-width: 280px;
}

.cookie-consent p a {
    color: var(--accent-color);
    text-decoration: underline;
}

.cookie-consent-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-btn-accept,
.cookie-btn-reject {
    padding: 10px 22px;
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.cookie-btn-accept {
    background: var(--accent-color);
    color: #000;
}

.cookie-btn-accept:hover {
    box-shadow: 0 0 16px var(--accent-glow);
}

.cookie-btn-accept:focus-visible {
    box-shadow: 0 0 16px var(--accent-glow);
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.cookie-btn-reject {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.cookie-btn-reject:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.cookie-btn-reject:focus-visible {
    border-color: var(--accent-color);
    color: var(--accent-color);
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Footer */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px 0;
    text-align: center;
    color: var(--text-secondary);
    margin-top: 50px;
}

.footer-content {
    text-align: left;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 36px;
    margin-bottom: 36px;
}

.footer-col h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 14px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.footer-col p {
    font-size: 0.85rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 9px;
}

.footer-col ul li a {
    color: var(--text-secondary);
    font-size: 0.88rem;
    transition: color 0.2s;
}

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

.footer-logo-text {
    font-size: 1.2rem;
    font-weight: 800;
    background: linear-gradient(90deg, #fff, var(--accent-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    margin-bottom: 12px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.82rem;
    color: #888;
}

.footer-bottom a {
    color: var(--text-secondary);
    transition: color 0.2s;
}

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

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .card:hover {
        transform: none;
    }

    .cta-button:hover {
        transform: none;
    }

    .cookie-consent {
        transition: none;
    }

    header {
        transition: none;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .header-content {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 10px;
    }

    .header-content .cta-button {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    header nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(5, 5, 16, 0.98);
        backdrop-filter: blur(20px);
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        transition: right 0.35s ease;
        z-index: 150;
        padding: 80px 30px 30px;
        overflow-y: auto;
    }

    header nav.nav-open {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
    }

    nav ul li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    nav ul li a {
        display: block;
        padding: 16px 0;
        font-size: 1.05rem;
    }

    .mobile-nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.6);
        z-index: 140;
    }

    .mobile-nav-overlay.active {
        display: block;
    }

    .featured-card {
        grid-template-columns: 1fr;
    }

    .stat-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .stat-grid {
        grid-template-columns: 1fr !important;
    }

    .card {
        padding: 20px;
    }
}

/* ===== BUG-006 FIX: Remove hover states on touch devices ===== */
@media (hover: none) and (pointer: coarse) {
    .card:hover {
        transform: none;
        box-shadow: none;
        border-color: rgba(255, 255, 255, 0.08);
    }

    .cta-button:hover {
        transform: none;
    }

    nav a:hover {
        color: inherit;
    }
}

/* ===== BUG-007 FIX: Consistent scrollbar across browsers ===== */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

*::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

*::-webkit-scrollbar-track {
    background: transparent;
}

*::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

*::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* ===== Scroll Reveal Animations ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

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

/* ===== Newsletter Section ===== */
.newsletter-section {
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
    opacity: 0.08;
    pointer-events: none;
}

.newsletter-section h2 {
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.newsletter-section p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 520px;
    margin: 0 auto 30px;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 480px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 14px 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-family: var(--font-main);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s;
}

.newsletter-form input[type="email"]:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 12px var(--accent-glow);
}

.newsletter-form input[type="email"]::placeholder {
    color: #888;
}

.newsletter-form button {
    padding: 14px 28px;
    border-radius: 10px;
    border: none;
    background: var(--accent-color);
    color: #000;
    font-family: var(--font-main);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: box-shadow 0.3s, transform 0.2s;
    white-space: nowrap;
}

.newsletter-form button:hover {
    box-shadow: 0 0 20px var(--accent-glow);
    transform: translateY(-1px);
}

.newsletter-note {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-top: 14px;
}

@media (max-width: 480px) {
    .newsletter-form {
        flex-direction: column;
    }
}

/* ===== SIMULATION LOADING SHIMMER ===== */
.simulation-loading {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.simulation-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(0, 242, 255, 0.06),
            rgba(0, 242, 255, 0.12),
            rgba(0, 242, 255, 0.06),
            transparent);
    animation: shimmer 1.8s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

.simulation-loading .shimmer-text {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.simulation-loading .shimmer-text::before {
    content: '⏳';
    display: block;
    font-size: 2rem;
    margin-bottom: 12px;
    animation: pulse-icon 1.5s ease-in-out infinite;
}

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

    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

/* Canvas fade-in when loaded */
canvas.canvas-loaded {
    animation: canvasFadeIn 0.4s ease-out;
}

@keyframes canvasFadeIn {
    from {
        opacity: 0;
        transform: scale(0.98);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===== BACK-TO-TOP BUTTON ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--accent-color);
    color: #000;
    border: none;
    cursor: pointer;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s, box-shadow 0.3s;
    z-index: 90;
    box-shadow: 0 4px 15px rgba(0, 242, 255, 0.3);
}

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

.back-to-top:hover {
    box-shadow: 0 6px 25px rgba(0, 242, 255, 0.5);
    transform: translateY(-3px);
}

.back-to-top:active {
    transform: translateY(0);
}

@media (max-width: 480px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}

/* ===== PRICING PREVIEW SECTION ===== */
.pricing-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.pricing-preview-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    position: relative;
}

.pricing-preview-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 242, 255, 0.3);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.pricing-preview-card.featured {
    border-color: rgba(123, 47, 247, 0.5);
    background: linear-gradient(135deg, rgba(123, 47, 247, 0.08), rgba(0, 242, 255, 0.05));
}

.pricing-preview-card .plan-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-preview-card .plan-price {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 4px;
    background: linear-gradient(90deg, #fff, var(--accent-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pricing-preview-card .plan-period {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.pricing-preview-card .plan-features {
    list-style: none;
    text-align: left;
    margin-bottom: 24px;
    color: #ccc;
    font-size: 0.9rem;
}

.pricing-preview-card .plan-features li {
    padding: 6px 0;
    padding-left: 22px;
    position: relative;
}

.pricing-preview-card .plan-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: 700;
}

/* ===== CANVAS FADE IN ANIMATION ===== */
.simulation-container canvas {
    opacity: 0;
    transition: opacity 0.6s ease-out;
}

.simulation-container canvas.canvas-visible {
    opacity: 1;
}

/* ===== TOGGLE SWITCH COMPONENT ===== */
.toggle-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.toggle-switch input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-track {
    width: 44px;
    height: 24px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    position: relative;
    transition: background 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.toggle-track::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.3s ease, background 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.toggle-switch input:checked + .toggle-track {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.toggle-switch input:checked + .toggle-track::after {
    transform: translateX(20px);
}

.toggle-switch input:focus-visible + .toggle-track {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.toggle-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color 0.3s;
}

.toggle-switch input:checked ~ .toggle-label {
    color: var(--text-primary);
}

/* ===== PROGRESS BAR COMPONENT ===== */
.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color), #7b2ff7);
    border-radius: 4px;
    transition: width 0.5s ease-out;
    position: relative;
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: progressShine 2s infinite;
}

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

.progress-bar-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.progress-bar-label .progress-value {
    color: var(--accent-color);
    font-weight: 600;
}

/* Sized variants */
.progress-bar.progress-sm { height: 4px; }
.progress-bar.progress-lg { height: 12px; }

/* Color variants */
.progress-bar-fill.progress-success { background: linear-gradient(90deg, #2ed573, #7bed9f); }
.progress-bar-fill.progress-warning { background: linear-gradient(90deg, #f9ca24, #fdcb6e); }
.progress-bar-fill.progress-danger { background: linear-gradient(90deg, #ff4757, #ff6b81); }

/* ===== EMPTY & ERROR STATES ===== */
.empty-state,
.error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 24px;
    min-height: 300px;
}

.empty-state-icon,
.error-state-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    opacity: 0.6;
}

.empty-state-title,
.error-state-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.empty-state-description,
.error-state-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-width: 400px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.error-state {
    border: 1px solid rgba(255, 71, 87, 0.15);
    background: rgba(255, 71, 87, 0.03);
    border-radius: 12px;
}

.error-state-icon { color: #ff4757; opacity: 1; }
.error-state-title { color: #ff6b81; }

/* ===== FORM ERROR HANDLING ===== */
.form-group {
    position: relative;
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.form-group input:focus ~ label,
.form-group textarea:focus ~ label {
    color: var(--accent-color);
}

.form-group .form-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #fff;
    font-family: var(--font-main);
    font-size: 0.95rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group .form-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 242, 255, 0.1);
}

.form-group .form-input.is-invalid {
    border-color: #ff4757;
    box-shadow: 0 0 0 3px rgba(255, 71, 87, 0.1);
}

.form-group .form-input.is-valid {
    border-color: #2ed573;
}

.form-error {
    display: none;
    color: #ff6b81;
    font-size: 0.8rem;
    margin-top: 6px;
    padding-left: 2px;
    animation: errorSlideIn 0.3s ease-out;
}

.form-group .form-input.is-invalid ~ .form-error {
    display: block;
}

@keyframes errorSlideIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-success-message {
    background: rgba(46, 213, 115, 0.08);
    border: 1px solid rgba(46, 213, 115, 0.3);
    color: #7bed9f;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: errorSlideIn 0.3s ease-out;
}

.form-error-message {
    background: rgba(255, 71, 87, 0.08);
    border: 1px solid rgba(255, 71, 87, 0.3);
    color: #ff6b81;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: errorSlideIn 0.3s ease-out;
}

/* ===== CONTROL PANEL SLIDE-IN ===== */
.simulation-container .controls {
    opacity: 0;
    transform: translateY(-16px);
    transition: opacity 0.5s ease-out 0.3s, transform 0.5s ease-out 0.3s;
}

.simulation-container .controls.controls-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .simulation-container .controls {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ===== COLLAPSIBLE CONTROL PANEL ===== */
.controls-collapse-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-secondary);
    border-radius: 20px;
    cursor: pointer;
    font-family: var(--font-main);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all var(--transition-speed);
    flex-shrink: 0;
}

.controls-collapse-btn:hover {
    background: rgba(0, 242, 255, 0.08);
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.controls-collapse-btn:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.controls-collapse-btn .collapse-chevron {
    display: inline-block;
    transition: transform 0.3s ease;
    font-size: 0.7rem;
}

.controls-collapse-btn[aria-expanded="false"] .collapse-chevron {
    transform: rotate(-90deg);
}

.controls-inner {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    max-height: 200px;
    opacity: 1;
    transition: max-height 0.35s ease, opacity 0.25s ease, margin 0.35s ease;
}

.controls-inner.collapsed {
    max-height: 0;
    opacity: 0;
    margin: 0;
}

@media (prefers-reduced-motion: reduce) {
    .controls-inner {
        transition: none;
    }
}

/* ===== TEXTAREA COMPONENT ===== */
.form-textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #fff;
    font-family: var(--font-main);
    font-size: 0.95rem;
    line-height: 1.6;
    resize: vertical;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-textarea::placeholder {
    color: #888;
}

.form-textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 242, 255, 0.15);
}

.form-textarea.is-invalid {
    border-color: #ff4757;
    box-shadow: 0 0 0 3px rgba(255, 71, 87, 0.1);
}

.form-textarea.is-valid {
    border-color: #2ed573;
}

.form-textarea-count {
    display: block;
    text-align: right;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* ===== CHECKBOX COMPONENT ===== */
.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.form-checkbox input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    position: relative;
    margin-top: 2px;
    transition: all 0.2s ease;
}

.form-checkbox input[type="checkbox"]:checked {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.form-checkbox input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 6px;
    height: 11px;
    border: solid #050510;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.form-checkbox input[type="checkbox"]:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.form-checkbox input[type="checkbox"]:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.form-checkbox span {
    user-select: none;
}

/* ===== RADIO BUTTON COMPONENT ===== */
.form-radio {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.form-radio input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    position: relative;
    margin-top: 2px;
    transition: all 0.2s ease;
}

.form-radio input[type="radio"]:checked {
    border-color: var(--accent-color);
}

.form-radio input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-color);
}

.form-radio input[type="radio"]:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.form-radio input[type="radio"]:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.form-radio span {
    user-select: none;
}

.form-radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-radio-group-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #fff;
    margin-bottom: 4px;
}

/* ===== RANGE SLIDER COMPONENT ===== */
.form-range {
    width: 100%;
    height: 6px;
    appearance: none;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

.form-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-color);
    border: 2px solid #050510;
    box-shadow: 0 0 6px rgba(0, 242, 255, 0.4);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.form-range::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 12px rgba(0, 242, 255, 0.6);
}

.form-range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-color);
    border: 2px solid #050510;
    box-shadow: 0 0 6px rgba(0, 242, 255, 0.4);
    cursor: pointer;
}

.form-range::-moz-range-track {
    background: rgba(255, 255, 255, 0.1);
    height: 6px;
    border-radius: 3px;
}

.form-range:focus-visible::-webkit-slider-thumb {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.form-range-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-range-value {
    font-weight: 600;
    color: var(--accent-color);
    min-width: 40px;
    text-align: right;
}

/* ===== PAGINATION COMPONENT ===== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 20px 0;
}

.pagination-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.pagination-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.pagination-item.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #050510;
    font-weight: 700;
}

.pagination-item.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination-ellipsis {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    color: #888;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.pagination-prev,
.pagination-next {
    font-weight: 600;
}

@media (max-width: 480px) {
    .pagination {
        gap: 2px;
    }

    .pagination-item {
        min-width: 36px;
        height: 36px;
        padding: 0 8px;
        font-size: 0.85rem;
    }
}


/* ========================================
   SIMULATION FILTER BAR
   ======================================== */

.sim-filter-bar {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.sim-filter-btn {
    padding: 8px 18px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-main);
}

.sim-filter-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background: rgba(0, 242, 255, 0.08);
}

.sim-filter-btn:focus-visible {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background: rgba(0, 242, 255, 0.08);
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.sim-filter-btn.active {
    background: var(--accent-color);
    color: #000;
    border-color: var(--accent-color);
    font-weight: 600;
}

/* Card filter animation */
.simulations-grid .card {
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.simulations-grid .card.filter-hidden {
    opacity: 0;
    transform: scale(0.92);
    pointer-events: none;
    position: absolute;
    visibility: hidden;
}

@media (max-width: 480px) {
    .sim-filter-btn {
        padding: 6px 14px;
        font-size: 0.8rem;
    }
}


/* ========================================
   FULLSCREEN SIMULATION MODE
   ======================================== */

.fullscreen-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-family: var(--font-main);
    transition: all 0.3s ease;
}

.fullscreen-btn:hover {
    background: rgba(0, 242, 255, 0.12);
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.fullscreen-btn .fs-icon {
    font-size: 1rem;
    line-height: 1;
}

/* Fullscreen canvas styles */
.simulation-container:-webkit-full-screen canvas,
.simulation-container:-moz-full-screen canvas,
.simulation-container:-ms-fullscreen canvas,
.simulation-container:fullscreen canvas {
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    border-radius: 0;
    border: none;
}

.simulation-container:-webkit-full-screen,
.simulation-container:-moz-full-screen,
.simulation-container:-ms-fullscreen,
.simulation-container:fullscreen {
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.simulation-container:-webkit-full-screen .controls,
.simulation-container:-moz-full-screen .controls,
.simulation-container:-ms-fullscreen .controls,
.simulation-container:fullscreen .controls {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    background: rgba(0, 0, 0, 0.8);
    padding: 12px 20px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.simulation-container:-webkit-full-screen .fullscreen-btn .fs-label::after,
.simulation-container:-moz-full-screen .fullscreen-btn .fs-label::after,
.simulation-container:-ms-fullscreen .fullscreen-btn .fs-label::after,
.simulation-container:fullscreen .fullscreen-btn .fs-label::after {
    content: 'Exit Fullscreen';
}

.simulation-container:-webkit-full-screen .fullscreen-btn .fs-label,
.simulation-container:-moz-full-screen .fullscreen-btn .fs-label,
.simulation-container:-ms-fullscreen .fullscreen-btn .fs-label,
.simulation-container:fullscreen .fullscreen-btn .fs-label {
    font-size: 0;
}


/* ========================================
   COLOR PICKER COMPONENT
   ======================================== */

.form-color-picker {
    display: flex;
    align-items: center;
    gap: 12px;
}

.form-color-picker input[type="color"] {
    -webkit-appearance: none;
    appearance: none;
    width: 48px;
    height: 48px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
    padding: 2px;
    transition: all 0.3s ease;
}

.form-color-picker input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

.form-color-picker input[type="color"]::-webkit-color-swatch {
    border: none;
    border-radius: 7px;
}

.form-color-picker input[type="color"]::-moz-color-swatch {
    border: none;
    border-radius: 7px;
}

.form-color-picker input[type="color"]:hover {
    border-color: var(--accent-color);
    box-shadow: 0 0 12px rgba(0, 242, 255, 0.2);
}

.form-color-picker input[type="color"]:focus-visible {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 242, 255, 0.15);
}

.form-color-picker-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.form-color-picker-value {
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--accent-color);
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 75px;
    text-align: center;
}

/* Small variant */
.form-color-picker.form-color-picker-sm input[type="color"] {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

/* Large variant */
.form-color-picker.form-color-picker-lg input[type="color"] {
    width: 64px;
    height: 64px;
    border-radius: 14px;
}


/* ========================================
   FILE UPLOAD COMPONENT
   ======================================== */

.form-file-upload {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 32px 24px;
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-height: 140px;
}

.form-file-upload:hover {
    border-color: var(--accent-color);
    background: rgba(0, 242, 255, 0.04);
}

.form-file-upload.dragover {
    border-color: var(--accent-color);
    background: rgba(0, 242, 255, 0.08);
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.1);
}

.form-file-upload input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.form-file-upload-icon {
    font-size: 2rem;
    line-height: 1;
    opacity: 0.7;
}

.form-file-upload-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.form-file-upload-text strong {
    color: var(--accent-color);
}

.form-file-upload-hint {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.35);
}

.form-file-upload-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.form-file-upload-preview .file-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 0.82rem;
    color: #ccc;
}

.form-file-upload-preview .file-item .file-remove {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1rem;
    padding: 0 2px;
    transition: color 0.2s;
}

.form-file-upload-preview .file-item .file-remove:hover {
    color: #ff4444;
}

/* Disabled state */
.form-file-upload.disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* Success state */
.form-file-upload.upload-success {
    border-color: #00ff88;
    background: rgba(0, 255, 136, 0.05);
}

/* Error state */
.form-file-upload.upload-error {
    border-color: #ff4444;
    background: rgba(255, 68, 68, 0.05);
}


/* ========================================
   HOVER ANIMATION EFFECTS
   ======================================== */

/* Button press/scale effect */
.cta-button:active,
.sim-filter-btn:active,
.fullscreen-btn:active {
    transform: scale(0.96);
    transition-duration: 0.1s;
}

/* Card lift with shadow on hover */
.card:hover {
    box-shadow: 0 12px 40px rgba(0, 242, 255, 0.08), 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Card icon rotation on card hover */
.card:hover .card-icon {
    animation: iconBounce 0.5s ease;
}

@keyframes iconBounce {
    0% { transform: scale(1) rotate(0deg); }
    30% { transform: scale(1.2) rotate(-8deg); }
    60% { transform: scale(1.1) rotate(4deg); }
    100% { transform: scale(1) rotate(0deg); }
}

/* Link underline slide-in animation */
.card-link {
    position: relative;
    overflow: hidden;
}

.card-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-color);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.card-link:hover::after {
    transform: translateX(0);
}

/* Navigation link underline animation */
header nav ul li a {
    position: relative;
}

header nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease, left 0.3s ease;
    border-radius: 1px;
}

header nav ul li a:hover::after {
    width: 100%;
    left: 0;
}

/* Featured card hover */
.featured-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 242, 255, 0.1);
}

/* Social/share link scale */
.sim-share-buttons a:hover {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

/* Blog article card hover lift */
.article-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .card:hover .card-icon {
        animation: none;
    }
    .card-link::after,
    header nav ul li a::after {
        transition: none;
    }
    .card:hover,
    .cta-button:hover,
    .featured-card:hover,
    .article-card:hover {
        transform: none;
    }
}


/* ========================================
   CSS CONTAINMENT - PERFORMANCE
   ======================================== */

/* Simulation containers: heavy canvas, isolate layout/paint */
.simulation-container {
    contain: layout style;
}

/* Cards: independent layout blocks */
.card {
    contain: content;
}

/* Blog article cards */
.article-card {
    contain: content;
}

/* Footer: rarely changes, safe to contain */
footer {
    contain: layout style;
}

/* Cookie consent banner */
.cookie-consent {
    contain: layout style paint;
}

/* Pricing cards */
.pricing-card {
    contain: content;
}

/* Simulation grid: many children, contain paint */
.simulations-grid {
    contain: layout style;
}

/* ================================================
   CARD COMPONENT SYSTEM (6 Variants)
   ================================================ */

/* Shared card base */
.ui-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border, rgba(255, 255, 255, 0.1));
    border-radius: 12px;
    padding: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ui-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* 1. Simulation Card */
.sim-card {
    text-align: center;
}

.sim-card .sim-card-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    display: block;
}

.sim-card .sim-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.sim-card .sim-card-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.sim-card .sim-card-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sim-card .sim-card-badge.badge-free {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.sim-card .sim-card-badge.badge-premium {
    background: rgba(123, 47, 247, 0.15);
    color: #a78bfa;
}

.sim-card .sim-card-link {
    display: inline-block;
    margin-top: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-color);
    transition: gap 0.3s;
}

.sim-card .sim-card-link:hover {
    gap: 8px;
}

/* 2. Pricing Card */
.price-card {
    text-align: center;
    padding: 32px 24px;
}

.price-card.price-card--featured {
    border-color: var(--accent-color);
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.1);
}

.price-card.price-card--featured::before {
    content: 'Most Popular';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--accent-color);
    color: #000;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.price-card .price-card-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.price-card .price-card-amount {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.price-card .price-card-amount span {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-secondary);
}

.price-card .price-card-features {
    list-style: none;
    margin: 20px 0;
    text-align: left;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.price-card .price-card-features li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.price-card .price-card-features li::before {
    content: '✓ ';
    color: #10b981;
    font-weight: 700;
}

.price-card .price-card-cta {
    display: inline-block;
    margin-top: 12px;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    background: var(--accent-color);
    color: #000;
    transition: opacity 0.3s;
}

.price-card .price-card-cta:hover {
    opacity: 0.85;
    color: #000;
}

/* 3. Feature Card */
.feature-card {
    padding: 28px;
}

.feature-card .feature-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(0, 242, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 16px;
}

.feature-card .feature-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.feature-card .feature-card-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* 4. Testimonial Card */
.testimonial-card {
    padding: 28px;
}

.testimonial-card .testimonial-quote {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
    padding-left: 20px;
    border-left: 3px solid var(--accent-color);
}

.testimonial-card .testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-card .testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color), #7b2ff7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.testimonial-card .testimonial-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.testimonial-card .testimonial-role {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* 5. Blog Post Card */
.blog-card {
    padding: 0;
    overflow: hidden;
}

.blog-card .blog-card-image {
    height: 160px;
    background: linear-gradient(135deg, rgba(0, 242, 255, 0.15), rgba(123, 47, 247, 0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    position: relative;
}

.blog-card .blog-card-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    backdrop-filter: blur(4px);
}

.blog-card .blog-card-body {
    padding: 20px;
}

.blog-card .blog-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.4;
}

.blog-card .blog-card-excerpt {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card .blog-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.blog-card .blog-card-read {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.82rem;
}

/* 6. Stats Card */
.stats-card {
    text-align: center;
    padding: 28px 20px;
}

.stats-card .stats-card-value {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 4px;
    line-height: 1.2;
}

.stats-card .stats-card-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.stats-card .stats-card-trend {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 20px;
}

.stats-card .stats-card-trend.trend-up {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
}

.stats-card .stats-card-trend.trend-down {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
}

/* Card grid helper */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

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

/* Content visibility: defer rendering of off-screen sections */
.content-block {
    content-visibility: auto;
    contain-intrinsic-size: auto 500px;
}

/* ================================================
   FLOATING ACTION BUTTON (FAB)
   ================================================ */
.fab-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column-reverse;
    gap: 12px;
    align-items: center;
    z-index: 90;
}

.fab-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: scale(0) translateY(10px);
    pointer-events: none;
}

.fab-btn.fab-visible {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: auto;
}

.fab-btn:hover {
    transform: scale(1.1) translateY(0);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
}

.fab-btn:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 3px;
}

.fab-btn:active {
    transform: scale(0.95) translateY(0);
}

/* Primary FAB (e.g. scroll to top) */
.fab-btn--primary {
    background: var(--accent-color);
    color: #000;
}

/* Secondary FAB */
.fab-btn--secondary {
    background: rgba(123, 47, 247, 0.9);
    color: #fff;
    width: 42px;
    height: 42px;
    font-size: 1rem;
}

/* Ghost FAB (translucent) */
.fab-btn--ghost {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    width: 42px;
    height: 42px;
    font-size: 1rem;
}

.fab-btn--ghost:hover {
    background: rgba(0, 242, 255, 0.15);
    border-color: var(--accent-color);
}

/* FAB tooltip */
.fab-btn[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    right: calc(100% + 10px);
    white-space: nowrap;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-family: var(--font-main);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.fab-btn[data-tooltip]:hover::before {
    opacity: 1;
}

@media (max-width: 480px) {
    .fab-container {
        bottom: 16px;
        right: 16px;
    }
    .fab-btn {
        width: 44px;
        height: 44px;
    }
    .fab-btn--secondary,
    .fab-btn--ghost {
        width: 38px;
        height: 38px;
    }
    .fab-btn[data-tooltip]::before {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fab-btn {
        transition: none;
    }
    .fab-btn.fab-visible {
        transform: scale(1);
    }
}

/* ========================================
   INFORMATION DRAWER
   ======================================== */
.info-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.info-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.info-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(420px, 90vw);
    height: 100vh;
    background: var(--bg-secondary, #0a0a1a);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.info-drawer.open {
    transform: translateX(0);
}

.info-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.info-drawer-header h3 {
    font-size: 1.1rem;
    color: #fff;
    margin: 0;
    font-weight: 600;
}

.info-drawer-close {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ccc;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.2s;
}

.info-drawer-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.info-drawer-close:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.info-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    color: #ddd;
    line-height: 1.8;
    font-size: 0.95rem;
}

.info-drawer-body h4 {
    color: var(--accent-color);
    font-size: 1rem;
    margin: 24px 0 8px;
    font-weight: 600;
}

.info-drawer-body h4:first-child {
    margin-top: 0;
}

.info-drawer-body p {
    margin-bottom: 12px;
}

.info-drawer-body ul,
.info-drawer-body ol {
    margin: 8px 0 16px 20px;
}

.info-drawer-body li {
    margin-bottom: 6px;
}

.info-drawer-body code {
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85em;
}

.info-drawer-body a {
    color: var(--accent-color);
}

.info-drawer-footer {
    padding: 16px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    text-align: center;
}

.info-drawer-footer a {
    color: var(--accent-color);
    font-size: 0.85rem;
    font-weight: 500;
}

/* Info trigger button */
.info-trigger-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--accent-color);
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-family: inherit;
    font-weight: 500;
    transition: all 0.2s;
}

.info-trigger-btn:hover {
    background: rgba(0, 242, 255, 0.1);
    border-color: var(--accent-color);
}

.info-trigger-btn:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .info-drawer {
        transition: none;
    }
    .info-drawer-overlay {
        transition: none;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    *,
    *::before,
    *::after {
        background: #fff !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.6;
    }

    header,
    footer,
    nav,
    .breadcrumb-nav,
    .skip-to-content,
    .mobile-menu-toggle,
    .cta-button,
    .secondary-btn,
    .fullscreen-btn,
    .fab-container,
    .back-to-top,
    .cookie-consent,
    .pwa-install-banner,
    .info-drawer,
    .info-drawer-overlay,
    .info-trigger-btn,
    .sim-related-sidebar,
    .newsletter-section,
    .pricing-preview {
        display: none !important;
    }

    a {
        text-decoration: underline;
    }

    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        font-weight: normal;
    }

    a[href^="#"]::after,
    a[href^="javascript"]::after {
        content: "";
    }

    h1, h2, h3, h4 {
        page-break-after: avoid;
        orphans: 3;
        widows: 3;
    }

    p, li {
        orphans: 3;
        widows: 3;
    }

    img, canvas, svg {
        max-width: 100% !important;
        page-break-inside: avoid;
    }

    table {
        border-collapse: collapse;
    }

    table, th, td {
        border: 1px solid #ccc;
    }

    th, td {
        padding: 6px 10px;
    }

    pre, code {
        border: 1px solid #ccc;
        padding: 4px 8px;
        white-space: pre-wrap;
        word-wrap: break-word;
    }

    .container {
        max-width: 100%;
        padding: 0;
    }
}

/* ─── Homepage Content Styles ──────────────────────────────────── */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    background: linear-gradient(90deg, #fff, var(--accent-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
}

.content-block {
    padding: 80px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

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

.text-lead {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.feature-list {
    list-style: none;
    margin-top: 20px;
}

.feature-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 15px;
    color: #ddd;
}

.feature-list li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    text-align: center;
    margin-top: 40px;
}

.stat-item h4 {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.faq-item {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.faq-item h3 {
    margin-bottom: 10px;
    color: #fff;
}
