:root {
    --bg-color: #0f172a;
    --bg-darker: #020617;
    --text-color: #f8fafc;
    --text-muted: #94a3b8;
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --secondary: #1e293b;
    --border-color: #334155;
    --gradient-start: #3b82f6;
    --gradient-end: #8b5cf6;
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-6 { margin-top: 3rem; }
.mb-6 { margin-bottom: 3rem; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 0.875rem; }
.justify-center { justify-content: center; }

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-logo-img {
    height: 36px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.4));
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    transition: color 0.3s;
}

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

.btn {
    display: inline-block;
    padding: 0.6rem 1.25rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-large {
    padding: 0.875rem 2rem;
    font-size: 1.125rem;
}

.primary-btn {
    background-color: var(--primary);
    color: white;
    border: 1px solid var(--primary);
}

.primary-btn:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
}

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

.secondary-btn:hover {
    background-color: var(--border-color);
}

.outline-btn {
    background-color: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.outline-btn:hover {
    background-color: var(--primary);
    color: white;
}

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

.bg-darker {
    background-color: var(--bg-darker);
    position: relative;
    z-index: 1;
}

.bg-darker::before {
    content: '';
    position: absolute;
    top: -20%; left: -10%;
    width: 50%; height: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
}

.bg-darker::after {
    content: '';
    position: absolute;
    bottom: -20%; right: -10%;
    width: 50%; height: 50%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.section-description {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.gradient-text {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px; /* offset for nav */
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.badge {
    background-color: var(--secondary);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Glass Panel */
.glass-panel {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 1rem;
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.2);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

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

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
    border-color: var(--gradient-end);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(5px);
    color: white;
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

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

.security-content {
    flex: 1;
}

.security-rating {
    font-size: 1.5rem;
    margin-top: 0.5rem;
}

.security-list {
    list-style-type: none;
}

.security-list li {
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
}

.security-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981; /* green */
    font-weight: bold;
}

.security-badge-container {
    flex: 0 0 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.shield-icon {
    font-size: 8rem;
    text-shadow: 0 0 40px rgba(59, 130, 246, 0.6);
}

/* CTA & Code */
.cta-panel {
    padding: 4rem;
    border-top: 4px solid var(--gradient-end);
}

.code-block {
    background-color: #000;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    overflow: hidden;
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
}

.code-header {
    background-color: var(--secondary);
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
}

.code-block code {
    display: block;
    padding: 1rem;
    font-family: monospace;
    color: #a78bfa;
    white-space: pre-wrap;
}

.text-link {
    color: var(--primary);
    text-decoration: none;
}
.text-link:hover { text-decoration: underline; }

/* Footer */
.footer {
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Image Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: block;
    opacity: 1;
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 1000px;
    border-radius: 0.5rem;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

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

#modal-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 1000px;
    text-align: center;
    color: #ccc;
    padding: 15px 0;
    height: 50px;
    font-size: 1.25rem;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--primary);
    text-decoration: none;
    cursor: pointer;
}

/* Scroll Animations */
[data-animate="fade-up"] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-animate="fade-up"].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Magnetic Button (Hover Effect) */
.magnetic {
    transition: transform 0.1s linear, background-color 0.3s ease;
}

/* Stats Section */
.stats-grid {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

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

.stat-number {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
    display: inline-block;
}

.stat-suffix {
    font-size: 2.5rem;
    font-weight: 700;
}

.stat-label {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* MVP Grid */
.mvp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.mvp-card {
    text-align: left;
}

.mvp-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

/* Interactive Tabs */
.interactive-tabs-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.tab-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    border-color: var(--primary);
    color: var(--text-color);
}

.tab-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

.tab-content-area {
    min-height: 400px;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.5s ease forwards;
}

.tab-pane.active {
    display: block;
}

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

.tab-split {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.tab-text {
    flex: 1;
}

.tab-image {
    flex: 1;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.interactive-img {
    width: 100%;
    display: block;
    cursor: pointer;
    transition: transform 0.3s;
}
.interactive-img:hover {
    transform: scale(1.02);
}

.check-list {
    list-style-type: none;
}
.check-list li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
    color: var(--text-muted);
}
.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* Custom Badges & Version */
.badge-version {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    font-weight: 700;
}
.badge-tech {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.4);
    color: #60a5fa;
}

/* Tech Stack Grid */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}
.tech-card {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1.25rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.tech-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
}
.tech-card h4 {
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}
.tech-card .tech-ver {
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
}
.tech-card p {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Styled Data Tables (Shortcuts, Batch Scripts, Security) */
.doc-table-container {
    overflow-x: auto;
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
    background: rgba(15, 23, 42, 0.6);
}
.doc-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.95rem;
}
.doc-table th {
    background-color: var(--secondary);
    color: var(--text-color);
    padding: 0.85rem 1.25rem;
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
}
.doc-table td {
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}
.doc-table tr:hover td {
    background-color: rgba(255, 255, 255, 0.02);
    color: var(--text-color);
}
.kbd {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    font-family: monospace;
    font-size: 0.85rem;
    font-weight: 600;
    color: #e2e8f0;
    background-color: #1e293b;
    border: 1px solid #475569;
    border-radius: 0.25rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* Certificate Guide Accordion / Box */
.cert-guide-box {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: left;
}
.cert-guide-box h4 {
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.cert-steps {
    list-style: decimal;
    padding-left: 1.5rem;
    color: var(--text-muted);
}
.cert-steps li {
    margin-bottom: 0.5rem;
}

/* Architecture Flow */
.arch-diagram {
    background: rgba(2, 6, 23, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1.5rem;
    font-family: monospace;
    font-size: 0.9rem;
    color: #38bdf8;
    overflow-x: auto;
    white-space: pre;
    text-align: center;
    line-height: 1.5;
}



/* Responsive */
@media (max-width: 768px) {
    .tab-split {
        flex-direction: column;
    }
    .nav-links {
        display: none;
    }
    .hero-title {
        font-size: 3rem;
    }
    .split-layout {
        flex-direction: column;
    }
    .hero-actions {
        flex-direction: column;
    }
}
