:root {
    --primary: #334155;
    --primary-dark: #1e293b;
    --secondary: #64748b;
    --dark: #0f172a;
    --light: #f1f5f9;
    --accent: #f59e0b; /* Laser Orange */
    --green: #10b981;
    --accent-glow: rgba(245, 158, 11, 0.4);
    --metallic-bg: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 50%, #94a3b8 100%);
    --metallic-glass: rgba(255, 255, 255, 0.7);
    --shadow-metallic: 0 10px 15px -3px rgba(15, 23, 42, 0.2);
    --blueprint-line: rgba(51, 65, 85, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
}

body {
    line-height: 1.6;
    color: var(--dark);
    background-color: white;
    background-image: 
        linear-gradient(var(--blueprint-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--blueprint-line) 1px, transparent 1px);
    background-size: 40px 40px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.text-icon{
    font-size: 1.5rem;
    margin-right:0.5rem;
    vertical-align: middle;
}
.inline-icon {
    font-size: x-small;
    vertical-align: top;
    margin: 0;
    padding: 0;
}

/* Ensure footer sticks to bottom if content is short */
.site-footer {
    margin-top: auto;
}


.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    
}

.main-container {
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    max-width: 900px;
    margin: 4rem auto;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}


/* Nav */
nav.main-nav {
    position: sticky;
    top: 0;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid #e2e8f0;
    width: 100%;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo img {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 0 3px var(--accent-glow));
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

/* Legal Documents Styling */
.terms-content {
    background: #ffffff;
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border: 1px solid #e2e8f0;
    max-width: 900px;
    margin: 2rem auto;
    line-height: 1.8;
    color: #334155;
    text-align: left;
    counter-reset: terms-section;
}

.terms-content h2 {
    font-size: 2.25rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.terms-content h3 {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    counter-increment: terms-section;
}

.terms-content h3::before {
    content: counter(terms-section) ". ";
}

.terms-content h4 {
    font-size: 1.125rem;
    color: var(--primary);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.terms-content p {
    margin-bottom: 1.25rem;
}

.terms-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.terms-content li {
    margin-bottom: 0.5rem;
}

.terms-content .text-muted {
    color: var(--secondary);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    display: block;
}

.terms-content .alert-info {
    background-color: #f0f9ff;
    border-left: 4px solid #0ea5e9;
    padding: 1rem;
    
    border-radius: 0.5rem;
    margin: 1rem 0;
    color: #0369a1;
}

/* Lightbox styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
}

#lightbox-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.lightbox-prev, .lightbox-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    text-decoration: none;
}

.lightbox-next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.lightbox-prev:hover, .lightbox-next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}


.terms-content strong {
    color: var(--dark);
}

@media (max-width: 768px) {
    .terms-content {
        padding: 1.5rem;
        margin: 1rem;
    }
}

/* Section Components */
.section-divider {
    border-bottom: 1px solid #e2e8f0;
    padding: 8rem 0;
}

.badge-accent {
    background: var(--accent);
}

.badge-developer {
    background: #6366f1;
}

.badge-offline {
    background: #136834;
}

.feature-grid-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 4rem;
    align-items: start;
    margin-top: 4rem;
}

.feature-card-flat {
    background: #f8fafc;
    padding: 3rem;
    border-radius: 1.5rem;
    border: 1px solid #e2e8f0;
    text-align: left;
}

.feature-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    justify-content: flex-start;
    text-align: left;
}

.feature-card-desc {
    color: var(--secondary);
    margin-bottom: 2rem;
    text-align: left;
}

.icon-accent {
    color: var(--accent);
}

.icon-primary {
    color: var(--primary);
}

.nav-links a {
    text-decoration: none;
    color: var(--secondary);
    font-weight: 500;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    color: var(--dark);
    line-height: 1;
    flex-shrink: 0;
}



/* Dropdown Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-btn {
    background: none;
    border: 1px solid #e2e8f0;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--primary);
    transition: all 0.2s;
}

.dropdown-btn:hover {
    background: var(--light);
    border-color: var(--secondary);
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    transform: translateY(0.5rem);
    background-color: white;
    min-width: 160px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    z-index: 1000;
}

.dropdown-content::before {
    content: '';
    position: absolute;
    top: -1.5rem; /* Increased bridge height */
    left: -2rem;  /* Wide buffer to the left */
    right: -2rem; /* Wide buffer to the right */
    bottom: 0;
    height: calc(100% + 1.5rem);
    z-index: -1;   /* Place behind actual content */
}

/* Ensure the bridge stays active when moving diagonally */
.dropdown {
    padding-bottom: 0.5rem; /* Small padding at bottom to bridge gap */
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a, .dropdown-content button {
    color: var(--dark);
    padding: 0.75rem 1rem;
    text-decoration: none;
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
    transition: background 0.2s;
}

.dropdown-content a:hover, .dropdown-content button:hover {
    background-color: var(--light);
    color: var(--accent);
}

.vertical-divider {
    width: 1px;
    height: 1.25rem;
    background: #e2e8f0;
    margin: 0 0.25rem;
}

/* Flag icons adjustment */
.fi {
    border-radius: 2px;
    display: inline-block;
    width: 1.33333333em;
    line-height: inherit;
    vertical-align: middle;
}

/* User Icon */
/* Footer */
.site-footer {
    background: #f8fafc;
    color: var(--dark);
    padding: 5rem 0 3rem;
    margin-top: auto;
    border-top: 1px solid #e2e8f0;
    font-size: 0.9375rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-section h4 {
    margin-bottom: 1.5rem;
    color: var(--dark);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--accent);
}

.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-list li {
    margin-bottom: 0.75rem;
}

.footer-links-list li a {
    color: var(--secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links-list li a:hover {
    color: var(--accent);
    transform: translateX(4px);
}

.footer-section p {
    color: var(--secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul li a {
    color: var(--secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-section ul li a:hover {
    color: var(--accent);
    transform: translateX(4px);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 2rem 0;
    border-top: 1px solid #e2e8f0;
    text-align: center;
    color: #94a3b8;
    font-size: 0.875rem;
}

.footer-bottom a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
}

.footer-bottom a:hover {
    color: var(--accent);
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .footer-section h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-section ul li a:hover {
        transform: none;
    }
}

.footer-bottom a {
    color: var(--accent);
    text-decoration: none;
}

/* Flash Messages */
.flash-container {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    width: 350px;
    max-width: 90vw;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none; /* Allow clicking through container gap */
}

.flash {
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    animation: slideInRight 0.3s ease-out forwards;
    pointer-events: auto; /* Re-enable for the actual message */
    backdrop-filter: blur(8px);
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.flash.success { background-color: rgba(220, 252, 231, 0.9); color: #166534; border: 1px solid #bbf7d0; }
.flash.error { background-color: rgba(254, 226, 226, 0.9); color: #991b1b; border: 1px solid #fecaca; }
.flash.info { background-color: rgba(224, 242, 254, 0.9); color: #075985; border: 1px solid #bae6fd; }

.flash-close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    color: currentColor;
    opacity: 0.5;
    transition: opacity 0.2s;
    margin-left: 1rem;
}

.flash-close-btn:hover {
    opacity: 1;
}

/* Hero */
 /* Hero */
        .hero {
            padding: 10rem 0;
            text-align: center;
            background: 
                radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.6) 0%, transparent 70%),
                linear-gradient(135deg, #f8fafc 0%, #cbd5e1 100%);
            border-bottom: 1px solid #94a3b8;
            margin-bottom: 6rem;
            position: relative;
            overflow: hidden;
        }

        .hero::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 1px;
            background: linear-gradient(90deg, transparent, var(--accent), transparent);
            box-shadow: 0 0 15px var(--accent);
            opacity: 0.8;
        }

        .hero::before {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0; bottom: 0;
            background-image: 
                linear-gradient(rgba(148, 163, 184, 0.1) 1px, transparent 1px),
                linear-gradient(90deg, rgba(148, 163, 184, 0.1) 1px, transparent 1px);
            background-size: 30px 30px;
            mask-image: radial-gradient(circle at center, black, transparent 85%);
            opacity: 1;
        }

        .hero .container {
            position: relative;
            z-index: 2;
        }

        .hero h1 {
            font-size: 4rem;
            margin-bottom: 2rem;
            line-height: 1.1;
            max-width: 900px;
            margin-left: auto;
            margin-right: auto;
            color: var(--dark);
            position: relative;
            text-shadow: 0 1px 1px rgba(255,255,255,0.8);
        }

        .hero p {
            font-size: 1.35rem;
            color: var(--secondary);
            max-width: 800px;
            margin: 0 auto 1.5rem;
            line-height: 1.5;
            position: relative;
        }

        .hero-try-online {
            text-align: center;
            margin-bottom: 3rem;
        }

        .video-container {
            max-width: 800px;
            width: 90%;
            margin: 0 auto 5rem auto;
            border-radius: 1rem;
            position: relative;
            background: #f1f5f9; /* placeholder color while poster loads */
            overflow: hidden;
            box-shadow: 0 10px 25px -5px rgba(15,23,42,0.1), 0 8px 10px -6px rgba(15,23,42,0.1);
            border: 1px solid rgba(15,23,42,0.08);
            z-index: 5;
            aspect-ratio: 16 / 9; /* prevent layout shift if possible */
        }

        video.hero-video {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        .btn {
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            padding: 0.55rem 1.25rem;
            border-radius: 8px;
            font-size: 0.9rem;
            font-weight: 600;
            text-decoration: none;
            transition: background 0.18s, box-shadow 0.18s, transform 0.18s;
            cursor: pointer;
            border: 1px solid transparent;
            line-height: 1.5;
            white-space: nowrap;
        }

        .btn-primary {
            background: #2563eb;
            color: #fff;
            border-color: #1d4ed8;
        }

        .btn-primary:hover {
            background: #1d4ed8;
            box-shadow: 0 4px 12px rgba(37,99,235,0.3);
            transform: translateY(-1px);
        }

        /* Hero choice cards */
        .hero-options-container {
            background: rgba(255, 255, 255, 0.4);
            backdrop-filter: blur(10px);
            border-radius: 1.5rem;
            padding: 2.5rem;
            margin-top: 3.5rem;
            border: 1px solid rgba(148, 163, 184, 0.2);
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
            display: inline-block;
            max-width: 1000px;
        }
        .hero-options-title {
            font-size: 1.125rem;
            font-weight: 700;
            color: var(--dark);
            margin-bottom: 2rem;
            text-transform: uppercase;
            letter-spacing: 1.5px;
            text-align: center;
            position: relative;
        }
        .hero-options-title::after {
            content: '';
            position: absolute;
            bottom: -8px;
            left: 50%;
            transform: translateX(-50%);
            width: 40px;
            height: 2px;
            background: var(--accent);
        }
        .hero-choices { display:flex; gap:1.5rem; justify-content:center; flex-wrap:wrap; align-items: stretch; padding-bottom: 1rem; }
        .hero-card {
            display:flex;
            flex-direction: column;
            width:350px;
            padding:1.5rem;
            border-radius:1rem;
            text-decoration:none;
            color:inherit;
            background: #ffffff;
            box-shadow: 0 10px 25px -5px rgba(15,23,42,0.1), 0 8px 10px -6px rgba(15,23,42,0.1);
            border: 1px solid rgba(15,23,42,0.08);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            text-align: left;
            position: relative;
            overflow: hidden;
            flex: 1;
        }
        .hero-card-deployment.web { border-top: 4px solid var(--accent); }
        .hero-card-deployment.desktop { border-top: 4px solid var(--primary); }
        .hero-card-deployment{
            width: 280px;
        }
        .hero-card-col .hero-card-deployment,
        .hero-choices > .hero-card-deployment {
            width: 100%;
        }
        .hero-card:hover { 
            box-shadow: 0 20px 35px -5px rgba(15,23,42,0.25), 0 10px 10px -5px rgba(15,23,42,0.1);
            border-color: var(--accent);
        }
        .hero-card .title { 
            font-weight:700; 
            font-size:1.25rem; 
            margin-bottom:1rem; 
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.75rem;
            text-align: center;
        }
        .hero-card .desc { 
            color:var(--secondary); 
            font-size:0.95rem; 
            line-height:1.5;
            text-align: left;
            width: 100%;
        }
        .hero-card-bullets {
            list-style: none;
            padding: 0;
            margin: 0;
            width: 100%;
            text-align: left;
            font-size: 0.95rem;
            color: var(--secondary);
        }
        .hero-card-bullets li {
            position: relative;
            padding-left: 1.5rem;
            margin-bottom: 0.5rem;
            line-height: 1.4;
        }
        .hero-card-bullets li::before {
            content: "•";
            position: absolute;
            left: 0.25rem;
            color: var(--accent);
            font-weight: bold;
        }
            .purchase-info{
        width: 100%;
        margin-top: auto;
        padding-top: 1rem;
        font-weight: bold;
        text-align: center;
    }
        .hero-card-col {
            display: flex;
            flex-direction: column;
            align-items: stretch;
            width: 280px;
            flex: 1;
            max-width: 350px;
        }
        .hero-card-with-tab {
            border-bottom-left-radius: 0 !important;
            border-bottom-right-radius: 0 !important;
            border-bottom: none !important;
        }
        .hero-card-app-link {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            font-size: 0.95rem;
            font-weight: 700;
            color: #fff;
            text-decoration: none;
            padding: 0.65rem 1.4rem;
            background: var(--accent);
            border-radius: 0 0 1rem 1rem;
            box-shadow: 0 6px 14px rgba(0,0,0,0.15);
            transition: background 0.2s, box-shadow 0.2s;
        }
        .hero-card-app-link .material-symbols-outlined {
            font-size: 1rem;
        }

.warning-box {
    background: #fffbf0;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #eeac6e;
    margin: 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.warning-box .material-symbols-outlined {
    color: #eeac6e;
    font-size: 2.2rem;
    flex-shrink: 0;
}

.info-box{
    background: #f0f7ff;
    padding: 1.5rem 1.5rem 0.5rem 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #0074d9;
    margin: 1.5rem 0;
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}
.info-box .material-symbols-outlined {
    color: #0074d9;
    font-size: 3rem;
    flex-shrink: 0;
    vertical-align: top;
}

.safety-list {
    margin: 1rem 0 0 0;
}

.safety-list > div {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 1rem;
    margin-bottom: 0.5rem;
    align-items: baseline;
}

.safety-list dt {
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.safety-list dt .material-symbols-outlined {
    font-size: 1.1rem;
    color: inherit;
}

.safety-list dd {
    margin: 0;
}

@media (max-width: 600px) {
    .safety-list > div {
        grid-template-columns: 1fr;
        gap: 0;
        margin-bottom: 1rem;
    }
}

        .hero-card-app-link:hover {
            background: #d97706;
            box-shadow: 0 8px 20px rgba(0,0,0,0.2);
        }
        .hero-card-app-link-desktop {
            background: var(--primary);
        }
        .hero-card-app-link-desktop:hover {
            background: #1e3a8a;
        }

        .hero-card ul {
            list-style: none;
            padding: 0;
            margin: 1rem 0 0;
            border-top: 1px dashed #e2e8f0;
            padding-top: 0.75rem;
        }

        .hero-card ul li {
            display: flex;
            align-items: flex-start;
            gap: 0.5rem;
            margin-bottom: 0.5rem;
            font-size: 0.875rem;
            color: var(--primary-dark);
        }

        .hero-card ul li::before {
            content: 'check_circle';
            font-family: 'Material Symbols Outlined';
            font-size: 1rem;
            color: var(--accent);
            flex-shrink: 0;
            margin-top: 0px;
        }

        .hero-card.api ul li::before { color: #6366f1; }

        .hero-card.api { border-top: 4px solid #6366f1; }
        .hero-card.web { border-top: 4px solid var(--accent); }
        .hero-card.desktop { border-top: 4px solid var(--primary); }
        
        .hero-card i { color: var(--accent); font-size: 1.1rem; }
        .hero-card.api i { color: #6366f1; }
        .hero-card.desktop i { color: var(--primary); }
/* Sections */
section {
    padding: 6rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 1rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--secondary);
    line-height: 1.6;
}

/* Product Cards */
.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: -10rem auto 6rem; /* Pull out of hero */
    padding: 0 1.5rem;
    position: relative;
    z-index: 10;
}

.product-card {
    background: white;
    border-radius: 1.5rem;
    padding: 3rem;
    border: 1px solid #e2e8f0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.product-card .badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: #f1f5f9;
    color: var(--primary);
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.product-card .material-symbols-outlined.card-icon {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 2rem;
    display: block;
}

.product-card h3 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--dark);
}

.product-card p {
    color: var(--secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.product-features {
    list-style: none;
    margin-bottom: 3rem;
    padding: 1.5rem 0;
    border-top: 1px dashed #e2e8f0;
    border-bottom: 1px dashed #e2e8f0;
}

.product-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: var(--primary-dark);
    line-height: 1.4;
}

.product-features li:last-child {
    margin-bottom: 0;
}

.product-features li .material-symbols-outlined {
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.product-card .btn {
    width: 100%;
    justify-content: center;
    margin-top: auto;
}

/* API & Desktop Mini-Cards */
.sub-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.sub-card {
    background: #f8fafc;
    padding: 1.25rem;
    border-radius: 1rem;
    text-decoration: none;
    color: var(--primary-dark);
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
    text-align: center;
}

.sub-card:hover {
    background: white;
    border-color: var(--accent);
    color: var(--accent);
}

.sub-card .material-symbols-outlined {
    font-size: 1.5rem;
}

/* Why Section */
.why-section {
    padding: 8rem 0;
    
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 4rem;
    max-width: 1200px;
    margin: 4rem auto 0;
    padding: 0 1.5rem;
}

.why-item {
    text-align: center;
}

.why-item .material-symbols-outlined {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.why-item h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark);
}

.why-item p {
    color: var(--secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .hero { padding: 6rem 0 12rem; }
    .product-grid { margin-top: -8rem; }
    .why-grid { gap: 2rem; }
}

@media (max-width: 640px) {
    .section-header h2 { font-size: 2rem; }
    .product-grid { grid-template-columns: 1fr; }
    .sub-options { grid-template-columns: 1fr; }
}

.hero {
    padding: 5rem 0 5rem;
    text-align: center;
    background: 
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.6) 0%, transparent 70%),
        linear-gradient(135deg, #f8fafc 0%, #cbd5e1 100%);
    border-bottom: 1px solid #94a3b8;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    box-shadow: 0 0 15px var(--accent);
    opacity: 0.8;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        linear-gradient(rgba(148, 163, 184, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    mask-image: radial-gradient(circle at center, black, transparent 85%);
    opacity: 1;
}

.features-section {
    padding-bottom: rem;
    
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 4rem;
    max-width: 1200px;
    margin: 4rem auto 0;
}

.feature-item {
    text-align: center;
    padding: 2rem;
    padding: 2.5rem 2rem;
            background: rgba(226, 232, 240, 0.8);
            backdrop-filter: blur(5px);
            border-radius: 1rem;
            border: 1px solid #cbd5e1;
            box-shadow: inset 0 1px 1px white, 0 4px 6px -1px rgba(0,0,0,0.05);
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feature-item:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 0 15px rgba(245, 158, 11, 0.1);
}

.badge{
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Visualization Box */
.viz-container {
    background: #0f172a;
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.4);
    border: 1px solid #334155;
    height: 440px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.viz-frame {
    width: 90%;
    height: 80%;
    border: 1px dashed #334155;
    position: relative;
    background: radial-gradient(circle at center, #1e293b 0%, transparent 100%);
}

.viz-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border-color: var(--accent);
}

.viz-corner-tl { top: -2px; left: -2px; border-top: 3px solid; border-left: 3px solid; }
.viz-corner-br { bottom: -2px; right: -2px; border-bottom: 3px solid; border-right: 3px solid; }

.viz-shape {
    position: absolute;
    border: 1.5px dashed var(--accent);
    opacity: 0.35;
}

.viz-rect { top: 20%; left: 15%; width: 140px; height: 100px; }
.viz-circle { top: 50%; left: 55%; width: 90px; height: 90px; border-radius: 50%; }

.viz-label {
    position: absolute;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: var(--accent);
    opacity: 0.6;
    background: rgba(15, 23, 42, 0.8);
    padding: 2px 4px;
}

.viz-scanner {
    width: 100%;
    height: 2.5px;
    background: var(--accent);
    position: absolute;
    top: 0;
    box-shadow: 0 0 20px var(--accent);
    opacity: 0.5;
    animation: scan-line 4s linear infinite;
    z-index: 5;
}

.viz-telemetry {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: #64748b;
    line-height: 1.4;
}

.viz-status {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--accent);
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

@keyframes scan-line {
    0% { top: 0; }
    100% { top: 100%; }
}

/* API Grid */
.api-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.api-feature-card {
    background: white;
    padding: 2rem;
    border-radius: 1.5rem;
    border: 1px solid #e2e8f0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    position: relative;
}

.api-feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.08);
}

.api-feature-card.highlight {
    transform: scale(1.05);
    z-index: 2;
}

.api-feature-card .material-symbols-outlined {
    font-size: 2.25rem;
    margin-bottom: 1.25rem;
}

.api-feature-card .card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.api-feature-card .price {
    width: 100%;
    text-align: center;
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0.5rem 0;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
}

.api-feature-card .price small {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--secondary);
}

.plan-for-statement {
    font-size: 0.9rem;
    color: var(--secondary);
    font-style: italic;
    margin-top: -0.25rem;
    margin-bottom: 0.5rem;
    text-align: center;
    width: 100%;
}

.community-message {
    max-width: 700px;
    margin: 3rem auto 0;
    padding: 1.5rem;
    background: var(--light);
    border-radius: 1rem;
    border-left: 4px solid var(--accent);
    color: var(--secondary);
    font-size: 1.1rem;
    line-height: 1.6;
    font-style: italic;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}


.online-transition-notice {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 1.5rem;
    border: 2px dashed var(--accent);
    text-align: center;
    box-shadow: 0 10px 25px -5px rgba(245, 158, 11, 0.1);
}

.online-transition-notice h3 {
    color: var(--dark);
    font-weight: 800;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.online-transition-notice p {
    color: var(--secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.online-transition-notice .notice-icon .material-symbols-outlined {
    font-size: 5rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.api-feature-card .list-check {
    margin: 1.5rem 0;
    padding-top: 1.5rem;
    border-top: 1px solid #f1f5f9;
    flex-grow: 1;
}

.api-feature-card .list-check li {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    line-height: 1.4;
    text-align: left;
}

.api-feature-card .list-check li > div {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem;
}

.api-feature-card .list-check li .maintenance-price {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--secondary);
}

.api-feature-card .maintenance-info {
    font-size: 0.85rem;
    padding: 0.75rem;
    margin-bottom: 1rem;
    background: #f8fafc;
    border-radius: 0.5rem;
    text-align: center;
    border: 1px dashed #e2e8f0;
}

.api-feature-card .maintenance-info strong {
    color: var(--primary);
    display: block;
    font-size: 0.95rem;
}

.api-feature-card .maintenance-info .maintenance-price {
    color: var(--secondary);
    display: block;
    margin-top: 0.15rem;
}

.api-feature-card .card-action {
    margin-top: auto;
    padding-top: 1rem;
}

/* Button Refinement */
.api-feature-card .btn {
    width: 100%;
    padding: 0.875rem;
    border-radius: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.api-feature-card .btn-primary {
    background: var(--green);
    color: var(--primary);
    border: 2px solid var(--primary);
    box-shadow: none;
}

.api-feature-card .btn-primary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.api-feature-card .btn-outline {
    border: 2px solid #e2e8f0;
    background: transparent;
    color: var(--secondary);
}

.api-feature-card .btn-outline:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.api-feature-card .card-action .btn {
    width: 100%;
    padding: 0.75rem;
}

/* Plan Specific Colors */
.api-feature-card.bronze { border-top: 4px solid #cd7f32; }
.api-feature-card.silver { border-top: 4px solid #c0c0c0; }
.api-feature-card.gold { border-top: 4px solid #ffd700; }

.api-feature-card.accent { border-top: 4px solid var(--accent); }
.api-feature-card.accent .material-symbols-outlined, 
.api-feature-card.accent .price { color: var(--accent); }

.api-feature-card.primary { border-top: 4px solid var(--primary); }
.api-feature-card.primary .material-symbols-outlined, 
.api-feature-card.primary .price { color: var(--primary); }

.api-feature-card.dark { border-top: 4px solid #1e293b; }
.api-feature-card.dark .material-symbols-outlined, 
.api-feature-card.dark .price { color: #1e293b; }

.api-feature-card.green { border-top: 4px solid #10b981; }
.api-feature-card.green .material-symbols-outlined, 
.api-feature-card.green .price { color: #10b981; }

.api-feature-card.green .card-badge { background: #10b981; color: white; }
.api-feature-card.primary .card-badge { background: var(--primary); color: white; }

.api-feature-card h4 {
    margin-bottom: 0.75rem;
    color: var(--dark);
}

.api-feature-card p {
    font-size: 0.875rem;
    color: var(--secondary);
    line-height: 1.6;
}

.index-feature-excerpt-section {
    padding-top: 3rem;
    padding-bottom: 6rem;
    background: #eef2f6;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.index-version-options-section {
    padding-top: 1.25rem;
    padding-bottom: 2.5rem;
    margin-bottom: 3rem;
}

.index-version-options-section .hero-options-container {
    margin-top: 0;
}

.index-feature-excerpt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1rem;
    margin-top: -1rem;
}

.index-feature-excerpt-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.25rem;
    text-align: left;
    box-shadow: 0 8px 22px -18px rgba(15, 23, 42, 0.6);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.index-feature-excerpt-card:hover {
    transform: translateY(-3px);
    border-color: #cbd5e1;
    box-shadow: 0 16px 32px -18px rgba(15, 23, 42, 0.35);
}

.index-feature-excerpt-icon {
    font-size: 1.7rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.index-feature-excerpt-card h3 {
    font-size: 1.05rem;
    color: var(--dark);
    margin-bottom: 0.45rem;
    line-height: 1.35;
}

.index-feature-excerpt-card p {
    font-size: 0.94rem;
    color: var(--secondary);
    line-height: 1.55;
}

.index-feature-excerpt-cta {
    margin-top: 1.6rem;
}

.index-feature-excerpt-cta .btn {
    padding: 0.65rem 1.1rem;
}

.desktop-box {
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
    border: 1px solid #cbd5e1;
    padding: 3rem;
    border-radius: 1.5rem;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: center;
}

.list-check {
    list-style: none;
    padding: 0;
}

.list-check li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.9375rem;
    color: var(--primary-dark);
}

.list-check li .material-symbols-outlined {
    font-size: 1.125rem;
    color: var(--accent);
    margin-top: 0.15rem; /* Slight offset to align with first line of text */
    flex-shrink: 0;
}


        


.feature-item .material-symbols-outlined {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    display: inline-block;
}

.feature-item h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark);
}

.feature-item p {
    color: var(--secondary);
    line-height: 1.6;
}

.cta-section {
    padding: 8rem 0;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.cta-section h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.text-center { text-align: center; }

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
    margin-bottom: 2rem;
    line-height: 1.1;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: var(--dark);
    position: relative;
    text-shadow: 0 1px 1px rgba(255,255,255,0.8);
}

.hero p {
    font-size: 1.35rem;
    color: var(--secondary);
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.5;
    position: relative;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.25rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.18s, box-shadow 0.18s, transform 0.18s;
    cursor: pointer;
    border: 1px solid transparent;
    line-height: 1.5;
    white-space: nowrap;
    background: var(--light);
    color: var(--dark);
}

.btn-primary {
    background: #2563eb;
    color: #fff;
    border-color: #1d4ed8;
}

.btn-primary:hover {
    background: #1d4ed8;
    box-shadow: 0 4px 12px rgba(37,99,235,0.3);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: none;
}

.btn-secondary {
    background: #f1f5f9;
    color: #334155;
    border-color: #e2e8f0;
}

.btn-secondary:hover {
    background: #e2e8f0;
}

.btn-danger {
    background: #fee2e2;
    color: #991b1b;
    border-color: #fca5a5;
}

.btn-danger:hover {
    background: #fca5a5;
}

.btn-nest {
    background: #6366f1;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.btn-nest:hover {
    background: #4f46e5;
    color: white;
    box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.4);
}

/* Hero choice cards */
.hero-options-container {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    border-radius: 1.5rem;
    padding: 2.5rem;
    margin-top: 3.5rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    display: inline-block;
    max-width: 1000px;
}

.hero-options-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 2rem;
    text-transform: uppercase;
}

/* Auth Forms Styling */
.auth-container {
    max-width: 450px;
    margin: 4rem auto;
    padding: 3rem;
    background: #ffffff;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-metallic);
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.auth-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--primary));
}

.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-header h2 {
    font-size: 1.875rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.auth-header p {
    color: var(--secondary);
    font-size: 0.9375rem;
}

.auth-form .form-group {
    margin-bottom: 1.5rem;
}

.auth-form label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.auth-form input[type="email"],
.auth-form input[type="text"],
.auth-form input[type="number"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 1rem !size: 1rem;
    transition: all 0.2s;
    background: #f8fafc;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--accent);
    background: #ffffff;
    box-shadow: 0 0 0 4px var(--accent-glow);
}

.auth-btn {
    width: 100%;
    padding: 0.875rem;
    background: var(--dark);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.auth-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.auth-btn-primary {
    background: var(--accent);
    color: var(--dark);
}

.auth-btn-primary:hover {
    background: #f59e0b;
    filter: brightness(1.1);
}

.auth-footer {
    text-align: center;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
    font-size: 0.875rem;
    color: var(--secondary);
}

.auth-footer a {
    color: var(--primary-dark);
    font-weight: 700;
    text-decoration: none;
}

.auth-footer a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.auth-error {
    background: #fff1f2;
    border: 1px solid #fda4af;
    color: #be123c;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.terms-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 1.5rem;
    cursor: pointer;
}

.terms-checkbox input {
    margin-top: 0.25rem;
}

.terms-checkbox span {
    font-size: 0.875rem;
    color: var(--secondary);
    line-height: 1.4;
}

.terms-checkbox a {
    color: var(--primary-dark);
    font-weight: 600;
    text-decoration: underline;
}

/* Code input styling */
.code-input-wrapper {
    margin: 2rem 0;
}

.code-input {
    text-align: center;
    font-size: 2.5rem !important;
    letter-spacing: 0.75rem;
    font-weight: 800 !important;
    height: 4.5rem !important;
    color: var(--dark);
}

.error-block {
    background-color: white !important;
    margin-top: 5rem;
    margin-bottom: 5rem;
    border-radius: 20px;
    border: 1px solid #f87171;
    color: #b91c1c;
    padding: 1rem;
}

/* ============================================================
   Issue Tracker – Frontend
   ============================================================ */

.issue-container {
    max-width: 860px;
    margin: 3rem auto;
    padding: 0 1rem;
}

.issue-list-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.issue-list-header h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.issue-subtitle {
    color: var(--secondary);
    font-size: 1rem;
    margin-bottom: 0;
}

.issue-new-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

/* Table */
.issues-table-wrap {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

.issues-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.issues-table thead th {
    background: #f8fafc;
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    border-bottom: 1px solid #e2e8f0;
}

.issues-table tbody tr {
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s;
}

.issue-row {
    cursor: pointer;
}

.issue-row:hover {
    background: #f8fafc;
}

.issues-table td {
    padding: 0.85rem 1rem;
    vertical-align: middle;
    color: var(--dark);
}

.issue-id {
    color: #94a3b8;
    font-size: 0.85rem;
    font-family: monospace;
}

.issue-title-cell {
    font-weight: 600;
}

.issue-date {
    color: #94a3b8;
    font-size: 0.85rem;
    white-space: nowrap;
}

/* Empty state */
.issue-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--secondary);
}

.issue-empty .material-symbols-outlined {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
    color: #cbd5e1;
}

/* Badges */
.issue-type-badge,
.issue-status-badge {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.issue-type-bug       { background: #fee2e2; color: #991b1b; }
.issue-type-question  { background: #dbeafe; color: #1d4ed8; }
.issue-type-feature   { background: #dcfce7; color: #166534; }

.issue-status-new      { background: #e0f2fe; color: #0369a1; }
.issue-status-pending  { background: #fef9c3; color: #854d0e; }
.issue-status-roadmap  { background: #ede9fe; color: #6d28d9; }
.issue-status-closed   { background: #f1f5f9; color: #64748b; }

/* Back link */
.issue-back {
    margin-bottom: 1.5rem;
}

.issue-back a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--secondary);
    text-decoration: none;
    font-size: 0.9rem;
}

.issue-back a:hover { color: var(--primary); }

/* Detail header */
.issue-detail-header {
    margin-bottom: 2rem;
}

.issue-detail-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.issue-detail-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 0.25rem;
}

/* Timeline */
.issue-timeline {
    display: flex;
    flex-direction: column;
    margin-bottom: 2rem;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    position: relative;
    padding-bottom: 2rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

/* Vertical connecting line between items */
.timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: calc(1rem - 1px);
}

/* ── Docs layout ─────────────────────────────────────────────────────────── */

.docs-container {
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
    padding-top: 2rem;
    padding-bottom: 3rem;
}

/* Sidebar */
.docs-sidebar {
    width: 240px;
    flex-shrink: 0;
    position: sticky;
    top: 5rem;
}

.docs-sidebar-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    margin-bottom: 1rem;
    padding-left: 0.5rem;
}

.docs-sidebar-header .material-symbols-outlined {
    font-size: 1rem;
}

.docs-nav {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.docs-nav-group {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.docs-nav-group-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #94a3b8;
    padding: 0 0.5rem;
    margin-bottom: 0.2rem;
}

.docs-nav-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    color: #475569;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
}

.docs-nav-item .material-symbols-outlined {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.docs-nav-item:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.docs-nav-item.active {
    background: #eff6ff;
    color: var(--primary);
    font-weight: 600;
}

/* Main content area */
.docs-main {
    flex: 1;
    min-width: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem 2.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.docs-main h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--dark);
    margin-top: 0;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.docs-main h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.docs-main h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.docs-main p,
.docs-main li,
.docs-main dd {
    line-height: 1.7;
    color: #374151;
}
.docs-main p{
    margin-bottom: 1.25rem;
    text-align: justify;
}

.docs-main ul,
.docs-main ol {
    padding-left: 1.5rem;
    margin: 0.5rem 0 1rem;
}

.docs-main ul ul,
.docs-main ol ol,
.docs-main ul ol,
.docs-main ol ul {
    padding-left: 1.75rem;
    margin: 0.25rem 0;
}

.docs-main a {
    color: var(--primary);
    text-decoration: underline;
}

.docs-main table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.25rem 0;
    font-size: 0.9rem;
}

.docs-main th,
.docs-main td {
    border: 1px solid #e2e8f0;
    padding: 0.5rem 0.75rem;
    text-align: left;
}

.docs-main th {
    background: #f8fafc;
    font-weight: 600;
}

/* Documentation images */
.docs-main figure {
    margin: 2rem 0;
    text-align: center;
}

.docs-main figure img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    display: block;
    margin: 0 auto;
}

.docs-main figcaption {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--secondary);
    font-style: italic;
}

/* Side-by-side image pair */
.docs-main .figure-pair {
    display: flex;
    gap: 1.5rem;
    margin: 2rem 0;
    align-items: flex-start;
}

.docs-main .figure-pair figure {
    flex: 1;
    margin: 0;
}

@media (max-width: 600px) {
    .docs-main .figure-pair {
        flex-direction: column;
    }
}

/* FAQ — definition list */
.docs-faq dt {
    font-weight: 700;
    color: var(--dark);
    margin-top: 1.5rem;
    font-size: 0.975rem;
}

.docs-faq dd {
    margin-left: 0;
    margin-top: 0.35rem;
    color: #475569;
}

/* Release notes */
.docs-release {
    border-left: 3px solid var(--primary);
    padding-left: 2rem;
    margin-bottom: 2rem;
}


.docs-release h2 {
    margin-top: 0;
}

.docs-release-date {
    font-size: 0.8rem;
    font-weight: 400;
    color: #64748b;
    margin-left: 0.5rem;
}

.docs-release-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    vertical-align: middle;
    margin-left: 0.4rem;
}

.docs-release-tag.online {
    background: #dbeafe;
    color: #1d4ed8;
}

.docs-release-tag.desktop {
    background: #f3e8ff;
    color: #7e22ce;
}

/* Roadmap */
.docs-roadmap-list {
    padding-left: 1.25rem;
    margin: 0.5rem 0 1rem;
}

.docs-roadmap-list li {
    margin-bottom: 0.4rem;
}

.docs-roadmap-list.in-progress li::marker { color: #2563eb; }
.docs-roadmap-list.planned li::marker { color: #94a3b8; }
.docs-roadmap-list.completed li::marker { color: #16a34a; }

.docs-roadmap-note {
    font-size: 0.9rem;
    color: #64748b;
    margin-top: 1.5rem;
}

/* ── Tabs ───────────────────────────────────────────────────────────────── */
/* Structure: .tabs > .tabs-bar (buttons) + .tab panels                    */

.tabs {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    margin: 1.5rem 0;
}

.tabs-bar {
    display: flex;
    flex-wrap: wrap;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.tab-btn {
    padding: 0.65rem 1.25rem;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: #64748b;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
    white-space: nowrap;
}

.tab-btn:hover {
    color: var(--primary);
    background: #eff6ff;
}

.tab-btn.active {
    color: var(--primary);
    background: #fff;
    border-bottom-color: var(--primary);
    font-weight: 600;
}

/* All panels hidden by default */
.tab {
    display: none;
    padding: 1.5rem;
}

.tab.active {
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .docs-container {
        flex-direction: column;
        gap: 1.5rem;
    }

    .docs-sidebar {
        width: 100%;
        position: static;
    }

    .docs-nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .docs-nav-group {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.25rem;
    }

    .docs-nav-group-label {
        display: none;
    }

    .docs-main {
        padding: 1.25rem 1rem;
    }
}
    top: 2.25rem;
    bottom: 0;
    width: 2px;
    background: #e2e8f0;
    border-radius: 2px;
}

.timeline-avatar {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    position: relative;
    z-index: 1;
}

.timeline-admin .timeline-avatar {
    background: #dbeafe;
}

.timeline-avatar-event {
    background: #f1f5f9 !important;
}

.timeline-avatar .material-symbols-outlined {
    font-size: 1rem;
    color: #64748b;
}

.timeline-admin .timeline-avatar .material-symbols-outlined {
    color: #2563eb;
}

.timeline-card {
    flex: 1;
    min-width: 0;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.timeline-card-admin {
    border-color: #bfdbfe;
}

.timeline-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.875rem;
}

.timeline-card-admin .timeline-card-header {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.timeline-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.timeline-date {
    color: #94a3b8;
    font-size: 0.8rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.timeline-card-body {
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--dark);
    white-space: pre-wrap;
    word-break: break-word;
}

/* Status-change-only event row */
.timeline-item-event .timeline-event {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-size: 0.875rem;
    color: #64748b;
    padding-top: 0.4rem;
}

.timeline-event .material-symbols-outlined {
    font-size: 1rem;
    color: #94a3b8;
}

/* Attachments inside card */
.issue-attachments {
    padding: 0.6rem 1rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

/* Create form */
.issue-form {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
    margin-top: 1.5rem;
}

.issue-form .form-group {
    margin-bottom: 1.25rem;
}

.issue-input,
.issue-select,
.issue-textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--dark);
    font-family: inherit;
    transition: border-color 0.2s;
    background: #fff;
    box-sizing: border-box;
}

.issue-input:focus,
.issue-select:focus,
.issue-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.issue-textarea {
    resize: vertical;
    min-height: 120px;
}

.issue-form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

/* Dropzone */
.issue-dropzone {
    border: 2px dashed #cbd5e1;
    border-radius: 10px;
    padding: 1.5rem 1rem;
    text-align: center;
    color: #94a3b8;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    position: relative;
}

.issue-dropzone:hover,
.issue-dropzone.dragover {
    border-color: #2563eb;
    background: #eff6ff;
    color: #2563eb;
}

.issue-dropzone .material-symbols-outlined {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.4rem;
}

.issue-dropzone p {
    margin: 0.2rem 0;
    font-size: 0.9rem;
}

.issue-attach-types {
    font-size: 0.78rem;
    color: #94a3b8;
}

.issue-file-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* File list preview */
.issue-file-list {
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.issue-file-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    color: #334155;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0.4rem 0.75rem;
}

.issue-file-item .material-symbols-outlined {
    font-size: 1.1rem;
    color: #64748b;
}

/* Attachment list (detail view) */
.issue-attachments {
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    border-top: 1px solid #f1f5f9;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.issue-attachments-label {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    width: 100%;
}

.issue-attachments-label .material-symbols-outlined {
    font-size: 1rem;
}

.issue-attachment-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    font-size: 0.85rem;
    color: #334155;
    text-decoration: none;
    background: #f8fafc;
    transition: border-color 0.15s, background 0.15s;
}

.issue-attachment-item:hover {
    border-color: #2563eb;
    background: #eff6ff;
    color: #2563eb;
}

.issue-attachment-item .material-symbols-outlined {
    font-size: 1rem;
}

.issue-attachment-size {
    color: #94a3b8;
    font-size: 0.78rem;
}

/* ── Mobile nav & layout ────────────────────────────────── */
@media (max-width: 768px) {
    .nav-hamburger {
        display: flex;
        align-items: center;
    }

    /* The nav-links panel slides below the sticky bar */
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255,255,255,0.97);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid #e2e8f0;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
        z-index: 99;
        padding: 0.25rem 0 0.75rem;
    }

    .nav-links.open {
        display: block;
    }

    .nav-links ul {
        flex-direction: column;
        gap: 0;
        padding: 0 1.5rem;
    }

    .nav-links ul li a {
        display: block;
        padding: 0.8rem 0;
        border-bottom: 1px solid #f1f5f9;
        font-size: 1rem;
    }

    .nav-links ul li:last-child a {
        border-bottom: none;
    }

    /* Nav needs position:relative so the absolute panel anchors to it */
    nav.main-nav {
        position: sticky;
        overflow: visible;
    }

    /* hero-choices: stack cards vertically on narrow screens */
    .hero-choices {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .hero-card-col,
    .hero-choices > .hero-card-deployment {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
    }

    .hero-card {
        width: 100% !important;
    }

    .index-feature-excerpt-section {
        padding-top: 3.5rem;
        padding-bottom: 3.5rem;
    }

    .index-version-options-section {
        padding-top: 1rem;
        padding-bottom: 2rem;
    }

    .index-feature-excerpt-grid {
        grid-template-columns: 1fr;
    }
}
