:root {
    --bg-color: #0b0f19;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    
    /* HxD BlackMarket Colors */
    --accent-cyan: #00E5FF;
    --accent-cyan-hover: #00b8cc;
    --accent-purple: #b052f5;
    --accent-green: #2ecc71;
    
    --accent-slate: rgba(255, 255, 255, 0.05);
    --accent-slate-hover: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    font-style: normal !important; /* Strict NO Italics rule from implementation plan */
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4rem 1.5rem;
    position: relative;
    overflow-x: hidden;
    /* Ambient background glow mapped to BlackMarket Cyan */
    background-image: radial-gradient(circle at 50% -20%, rgba(0, 229, 255, 0.15) 0%, rgba(11, 15, 25, 0) 60%);
}

.container {
    width: 100%;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    gap: 4rem;
    z-index: 1;
}

/* -------------------------
   Header Section
-------------------------- */
.header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    animation: fadeInDown 0.8s ease-out;
}

.badge {
    background: rgba(0, 229, 255, 0.1);
    color: var(--accent-cyan);
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 1px solid rgba(0, 229, 255, 0.2);
    backdrop-filter: blur(8px);
}

.header h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    background: linear-gradient(135deg, #ffffff 0%, #b3f8ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent; 
}

.header p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    max-width: 600px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    width: 100%;
}

@media (min-width: 768px) {
    .hero-actions {
        width: auto;
    }
    .hero-actions .btn {
        width: auto;
        min-width: 160px;
    }
}

/* -------------------------
   Primary Grid (Features)
-------------------------- */
.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

.card:hover {
    transform: translateY(-6px);
    border-color: rgba(255,255,255,0.15);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6);
}

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

.icon-cyan {
    background: rgba(0, 229, 255, 0.1);
    color: var(--accent-cyan);
}
.icon-purple {
    background: rgba(176, 82, 245, 0.1);
    color: var(--accent-purple);
}
.icon-green {
    background: rgba(46, 204, 113, 0.1);
    color: var(--accent-green);
}

.card h2 {
    font-size: 1.25rem;
    font-weight: 700;
}

.card p {
    color: var(--text-secondary);
    line-height: 1.6;
    flex-grow: 1; 
    font-size: 0.95rem;
}

/* -------------------------
   Buttons
-------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    width: 100%;
}

.btn-cyan {
    background: var(--accent-cyan);
    color: #0b0f19;
    box-shadow: 0 4px 14px 0 rgba(0, 229, 255, 0.3);
}
.btn-cyan:hover {
    background: var(--accent-cyan-hover);
    box-shadow: 0 6px 20px rgba(0, 229, 255, 0.5);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--card-border);
}
.btn-outline:hover {
    background: var(--accent-slate-hover);
    border-color: rgba(255,255,255,0.15);
    transform: translateY(-2px);
}

.btn-glow {
    background: rgba(0, 229, 255, 0.1);
    color: var(--accent-cyan);
    border: 1px solid var(--accent-cyan);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
}
.btn-glow:hover {
    background: rgba(0, 229, 255, 0.2);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.4);
    transform: translateY(-2px);
}

.btn-slate {
    background: var(--accent-slate);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}
.btn-slate:hover {
    background: var(--accent-slate-hover);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* -------------------------
   Divider & Partner Banner
-------------------------- */
.divider-container {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    width: 100%;
    margin: 1rem 0;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.divider-container::before,
.divider-container::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--card-border);
}
.divider-container::before { margin-right: 1.5rem; }
.divider-container::after { margin-left: 1.5rem; }

.partner-banner {
    background: linear-gradient(145deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

.partner-banner:hover {
    border-color: rgba(255,255,255,0.15);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
    transform: translateY(-4px);
}

@media (min-width: 768px) {
    .partner-banner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 3rem;
    }
    .partner-actions {
        flex-direction: row;
        width: auto;
    }
    .partner-actions .btn {
        width: auto;
        min-width: 160px;
    }
}

.partner-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.partner-info h3 {
    font-size: 1.75rem;
    font-weight: 700;
}
.partner-info p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    line-height: 1.5;
}

.partner-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.discount-badge {
    display: inline-block;
    margin-top: 0.5rem;
    background: rgba(0, 229, 255, 0.15);
    color: var(--accent-cyan);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    border: 1px solid rgba(0, 229, 255, 0.3);
    font-size: 0.875rem;
}

/* Basic Keyframes */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* -------------------------
   Modal Tray & Tabs (Adapted)
-------------------------- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-tray {
    background: #0f1423;
    border: 1px solid var(--card-border);
    border-radius: 16px;
    width: 90%;
    max-width: 1000px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    transform: scale(0.95) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal-tray {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid var(--card-border);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px 16px 0 0;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-cyan);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}
.modal-close:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

/* Tabs */
.tabs {
    display: flex;
    border-bottom: 1px solid var(--card-border);
    padding: 0 1.5rem;
    background: rgba(255, 255, 255, 0.01);
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}
.tab-btn:hover {
    color: var(--text-primary);
}
.tab-btn.active {
    color: var(--accent-cyan);
    border-bottom-color: var(--accent-cyan);
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
}
.modal-body::-webkit-scrollbar { width: 8px; }
.modal-body::-webkit-scrollbar-track { background: rgba(255,255,255,0.02); border-radius: 4px; }
.modal-body::-webkit-scrollbar-thumb { background: var(--card-border); border-radius: 4px; }
.modal-body::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.15); }

.tab-pane {
    display: none;
    animation: fadeInDown 0.3s ease;
}
.tab-pane.active {
    display: block;
}

/* Commands Table */
.commands-table {
    width: 100%;
    border-collapse: collapse;
}
.commands-table th {
    text-align: left;
    color: var(--text-primary);
    font-weight: 700;
    padding: 1rem;
    border-bottom: 1px solid var(--card-border);
}
.commands-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
}

.code-span {
    background: rgba(0, 229, 255, 0.1);
    color: var(--accent-cyan);
    padding: 4px 8px;
    border-radius: 6px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-weight: 600;
    font-size: 0.9rem;
}

/* IDE Windows for YAML Configs */
.ide-window {
    background: #080b13;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}
.ide-topbar {
    background: rgba(255, 255, 255, 0.02);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--card-border);
}
.ide-dots {
    display: flex;
    gap: 6px;
}
.ide-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.ide-filename {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: 1rem;
    font-family: 'Consolas', 'Monaco', monospace;
}

.ide-content {
    padding: 1.5rem;
    overflow-x: auto;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #e2e8f0;
    white-space: pre;
}

.yaml-key { color: #a5b4fc; font-weight: 600; }
.yaml-string { color: #86efac; }
.yaml-value { color: #fca5a5; }
.yaml-number { color: #fca5a5; }
.yaml-comment { color: #64748b; font-style: normal; } /* NO italics per strict rule */

/* Store Selection Modal Grid */
.store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

.store-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.store-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-cyan);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
}

.store-logo {
    height: 48px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
}

.store-card:hover .store-logo {
    transform: scale(1.05);
}

.store-name {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.1rem;
}
