/* ── Grid Page Styles: Premium Dark Theme (Green/Blue/Black) ── */
#uct-grid-app {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

body {
    background: #050505 !important;
    background-image: radial-gradient(circle at 50% -20%, #0c2135 0%, #050505 50%) !important;
    background-attachment: fixed !important;
}

.uct-grid-header {
    text-align: center;
    margin-bottom: 4rem;
}

.uct-grid-header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #10b981, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.uct-grid-header p {
    color: #94a3b8;
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2.5rem;
    font-weight: 400;
}

.uct-grid-filters {
    display: flex;
    justify-content: center;
    gap: .75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.uct-chip {
    padding: .6rem 1.4rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: #94a3b8;
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
}

.uct-chip:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.uct-chip.active {
    background: linear-gradient(135deg, #10b981, #3b82f6);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.uct-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.uct-card {
    background: #0f1115;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1.25rem;
    padding: 2.25rem 1.75rem;
    text-align: center;
    cursor: pointer;
    text-decoration: none !important;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    transition: all .4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: fadeIn .6s ease-out backwards;
}

.uct-card * {
    text-decoration: none !important;
}

.uct-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #10b981, #3b82f6);
    opacity: 0;
    transition: opacity .4s;
    z-index: 1;
}

.uct-card:hover {
    background: #161b22;
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
}

.uct-card:hover::before {
    opacity: 1;
}

.uct-card-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #3b82f6;
    transition: all .4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.uct-card:hover .uct-card-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, #10b981, #3b82f6);
    color: white;
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.2);
    border-color: transparent;
}

.uct-card-title {
    font-weight: 700;
    font-size: 1.15rem;
    color: #f8fafc;
    margin-top: 0.25rem;
}

.uct-card-desc {
    font-size: .9rem;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.uct-card-badge {
    font-size: .7rem;
    font-weight: 800;
    padding: .3rem .8rem;
    border-radius: 2rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    background: rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.uct-card:hover .uct-card-badge {
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .uct-grid-header h1 {
        font-size: 2.5rem;
    }

    #uct-grid-app {
        padding: 2rem 1rem;
    }
}

/* ── Light Theme Overrides ────────────────────────────────── */
body[data-uct-theme="light"] {
    background: #f1f5f9 !important;
    background-image: none !important;
}

body[data-uct-theme="light"] .uct-grid-header h1 {
    background: linear-gradient(135deg, #059669, #2563eb);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

body[data-uct-theme="light"] .uct-grid-header p {
    color: #475569;
}

body[data-uct-theme="light"] .uct-chip {
    background: white;
    border-color: #e2e8f0;
    color: #374151;
    backdrop-filter: none;
}

body[data-uct-theme="light"] .uct-chip:hover {
    background: #f0fdf4;
    border-color: #10b981;
    color: #059669;
}

body[data-uct-theme="light"] .uct-chip.active {
    background: linear-gradient(135deg, #10b981, #3b82f6);
    color: white;
    border-color: transparent;
}

body[data-uct-theme="light"] .uct-card {
    background: white;
    border-color: #e2e8f0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

body[data-uct-theme="light"] .uct-card:hover {
    background: #ffffff;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
    border-color: #10b981;
}

body[data-uct-theme="light"] .uct-card-icon {
    background: linear-gradient(135deg, #ecfdf5, #dbeafe);
    border-color: #e2e8f0;
    color: #10b981;
}

body[data-uct-theme="light"] .uct-card-title {
    color: #0f172a;
}

body[data-uct-theme="light"] .uct-card-desc {
    color: #475569;
}

body[data-uct-theme="light"] .uct-card-badge {
    background: #f8fafc;
    color: #475569;
    border-color: #e2e8f0;
}

/* ── Landing Page Extensions (Dark Theme Default) ── */
.uct-features-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 6rem 0 4rem;
}

.uct-feature-box {
    background: #0f1115;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1.25rem;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all .3s ease;
}

.uct-feature-box:hover {
    transform: translateY(-5px);
    background: #161b22;
    border-color: rgba(59, 130, 246, 0.3);
}

.uct-feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1.5rem;
}

.uct-feature-box h3 {
    font-size: 1.2rem;
    color: #f8fafc;
    margin-bottom: 0.75rem;
}

.uct-feature-box p {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.uct-split-section {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin: 8rem 0;
}

.uct-split-section.reverse {
    flex-direction: row-reverse;
}

.uct-split-text {
    flex: 1;
    text-align: left;
}

.uct-label {
    color: #3b82f6;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 1rem;
}

.uct-split-text h2 {
    font-size: 2rem;
    color: #f8fafc;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.uct-split-text p {
    color: #94a3b8;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.uct-split-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.uct-split-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 1.05rem;
    color: #cbd5e1;
}

.uct-split-list li i {
    color: #10b981;
}

.uct-split-image {
    flex: 1;
}

.uct-image-placeholder {
    background: #0f1115;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1.5rem;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.05);
}

.uct-cta-section {
    background: #0c1627;
    border-radius: 1.5rem;
    padding: 5rem 2rem;
    text-align: center;
    margin: 8rem 0 2rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.uct-cta-section h2 {
    font-size: 2rem;
    color: #f8fafc;
    margin-bottom: 1rem;
}

.uct-cta-section p {
    color: #94a3b8;
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.uct-btn {
    background: linear-gradient(135deg, #10b981, #3b82f6);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none !important;
    display: inline-block;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    cursor: pointer;
}

.uct-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
    color: white;
}

.uct-footer {
    text-align: center;
    padding: 2rem 0;
    color: #64748b;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 2rem;
}

@media (max-width: 900px) {

    .uct-split-section,
    .uct-split-section.reverse {
        flex-direction: column;
        gap: 3rem;
        margin: 4rem 0;
        text-align: center;
    }

    .uct-split-list li {
        justify-content: center;
    }
}

/* ── Landing Page Light Theme Correlates ── */
body[data-uct-theme="light"] .uct-feature-box {
    background: #f8fafc;
    border-color: #e2e8f0;
}

body[data-uct-theme="light"] .uct-feature-box:hover {
    background: white;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.05);
    border-color: #10b981;
}

body[data-uct-theme="light"] .uct-feature-box h3,
body[data-uct-theme="light"] .uct-split-text h2 {
    color: #0f172a;
}

body[data-uct-theme="light"] .uct-feature-box p,
body[data-uct-theme="light"] .uct-split-text p {
    color: #475569;
}

body[data-uct-theme="light"] .uct-split-list li {
    color: #334155;
}

body[data-uct-theme="light"] .uct-image-placeholder {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: rgba(0, 0, 0, 0.03);
}

body[data-uct-theme="light"] .uct-cta-section {
    background: #0f172a;
    border-color: transparent;
}

body[data-uct-theme="light"] .uct-footer {
    border-color: #e2e8f0;
    color: #94a3b8;
}

/* ── Phase 2 Top Header Additions (Dark Default) ── */
.uct-header-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
}

.uct-btn-outline {
    background: rgba(255, 255, 255, 0.03);
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 2.5rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
    cursor: pointer;
}

.uct-btn-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #10b981;
}

.uct-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto 6rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.uct-stat-box {
    text-align: center;
}

.uct-stat-box h4 {
    font-size: 2.4rem;
    font-weight: 800;
    color: #f8fafc;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.uct-stat-box span {
    font-size: 0.75rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.uct-grid-title-area {
    text-align: center;
    margin-bottom: 2rem;
}

.uct-grid-title-area h2 {
    font-size: 2rem;
    color: #f8fafc;
    margin-bottom: 0.5rem;
}

.uct-grid-title-area p {
    color: #94a3b8;
    font-size: 1rem;
}

/* ── Phase 2 How It Works Sections (Dark Default) ── */
.uct-how-it-works {
    text-align: center;
    margin: 10rem 0 6rem;
}

.uct-how-it-works h2 {
    font-size: 2.2rem;
    color: #f8fafc;
    margin-bottom: 0.5rem;
}

.uct-how-sub {
    color: #94a3b8;
    font-size: 1rem;
    margin-bottom: 3rem;
}

.uct-steps-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.uct-step-card {
    background: #0f1115;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1.5rem;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.uct-step-card:hover {
    transform: translateY(-5px);
    background: #161b22;
    border-color: rgba(59, 130, 246, 0.3);
}

.uct-step-number {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #10b981, #3b82f6);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.uct-step-card h3 {
    font-size: 1.15rem;
    color: #f8fafc;
    margin-bottom: 1rem;
}

.uct-step-card p {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* ── Phase 2 Image Wrappers ── */
.uct-image-wrapper {
    background: #0f1115;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1.5rem;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.uct-image-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 1rem;
    display: block;
}

.uct-image-wrapper:hover {
    border-color: #10b981;
    background: #161b22;
}

@media (max-width: 900px) {
    .uct-stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem 1rem;
    }

    .uct-steps-row {
        grid-template-columns: 1fr;
    }
}

/* ── Phase 2 Light Theme Correlates ── */
body[data-uct-theme="light"] .uct-btn-outline {
    background: white;
    color: #0f172a;
    border-color: #e2e8f0;
}

body[data-uct-theme="light"] .uct-btn-outline:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

body[data-uct-theme="light"] .uct-stats-row {
    border-color: #e2e8f0;
}

body[data-uct-theme="light"] .uct-stat-box h4,
body[data-uct-theme="light"] .uct-grid-title-area h2,
body[data-uct-theme="light"] .uct-how-it-works h2,
body[data-uct-theme="light"] .uct-step-card h3 {
    color: #0f172a;
}

body[data-uct-theme="light"] .uct-grid-title-area p,
body[data-uct-theme="light"] .uct-how-sub,
body[data-uct-theme="light"] .uct-step-card p {
    color: #475569;
}

body[data-uct-theme="light"] .uct-step-card {
    background: #f8fafc;
    border-color: #e2e8f0;
}

body[data-uct-theme="light"] .uct-step-card:hover {
    background: white;
    border-color: #3b82f6;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.05);
}

body[data-uct-theme="light"] .uct-image-wrapper {
    background: transparent;
    border-color: transparent;
}

body[data-uct-theme="light"] .uct-image-wrapper:hover {
    background: transparent;
    border-color: transparent;
}