/* x0s37h0x – UI Polish Pass 2 (Mockup-Tiefe) */

:root {
    --x0-shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.45);
    --x0-shadow-glow-red: 0 0 40px rgba(255, 0, 51, 0.18);
    --x0-shadow-glow-cyan: 0 0 36px rgba(0, 212, 255, 0.12);
    --x0-glass: rgba(14, 14, 22, 0.72);
    --x0-glass-border: rgba(255, 255, 255, 0.08);
    --x0-section-gap: 72px;
    --x0-container-pad: 28px;
}

/* ─── Global spacing & typography ─── */
main[role="main"] .container {
    padding-left: var(--x0-container-pad);
    padding-right: var(--x0-container-pad);
}

.x0-page-section {
    padding: var(--x0-section-gap) 0;
}

.x0-tech-label {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: lowercase;
    color: var(--x0-cyan);
    font-weight: 600;
    margin-bottom: 0;
}

.x0-panel-title {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin: 8px 0 16px;
    letter-spacing: -0.02em;
}

.x0-panel-title .accent-red {
    color: var(--x0-red);
}

.x0-accent-line {
    width: 64px;
    height: 3px;
    background: linear-gradient(90deg, var(--x0-red), transparent);
    margin-bottom: 20px;
    border-radius: 2px;
}

.x0-accent-line-cyan {
    background: linear-gradient(90deg, var(--x0-cyan), transparent);
}

.mytitle {
    font-family: inherit !important;
    font-size: clamp(20px, 2.5vw, 26px) !important;
    font-weight: 800 !important;
    letter-spacing: -0.01em !important;
}

.mytitle span {
    font-weight: 800;
}

.x0-section-label {
    font-size: 11px !important;
    letter-spacing: 0.14em !important;
    margin-bottom: 12px !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.x0-section-label::before {
    content: '//';
    color: var(--x0-red);
    opacity: 0.9;
}

/* ─── Glass card utility ─── */
.x0-glass-card {
    background: var(--x0-glass);
    border: 1px solid var(--x0-glass-border);
    border-radius: 10px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: var(--x0-shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.x0-panel-elevated {
    background: linear-gradient(145deg, rgba(22, 22, 32, 0.95) 0%, rgba(12, 12, 18, 0.92) 100%);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    padding: 28px 28px 32px;
    box-shadow:
        var(--x0-shadow-soft),
        0 0 0 1px rgba(0, 212, 255, 0.04),
        var(--x0-shadow-glow-cyan);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.x0-panel-elevated:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 0, 51, 0.22);
    box-shadow:
        0 14px 48px rgba(0, 0, 0, 0.55),
        0 0 32px rgba(255, 0, 51, 0.1),
        var(--x0-shadow-glow-cyan);
}

.x0-panel {
    padding: 28px !important;
    border-radius: 12px !important;
    background: linear-gradient(145deg, rgba(20, 20, 30, 0.92), rgba(10, 10, 16, 0.88)) !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    box-shadow: var(--x0-shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.x0-panel:hover {
    border-color: rgba(0, 212, 255, 0.18) !important;
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.5),
        0 0 28px rgba(0, 212, 255, 0.08);
}

/* ─── Hero ─── */
.x0-hero {
    position: relative;
    overflow: hidden;
    min-height: min(92vh, 900px) !important;
    height: auto !important;
    padding: 0 !important;
    display: flex;
    align-items: center;
}

.x0-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(105deg, rgba(10, 10, 15, 0.96) 0%, rgba(10, 10, 15, 0.82) 42%, rgba(10, 10, 15, 0.45) 68%, rgba(10, 10, 15, 0.25) 100%),
        radial-gradient(ellipse at 75% 50%, rgba(255, 0, 51, 0.08) 0%, transparent 55%);
    z-index: 1;
    pointer-events: none;
}

.x0-hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

.x0-hero-glow-left {
    width: 420px;
    height: 420px;
    left: -120px;
    top: 20%;
    background: rgba(0, 212, 255, 0.07);
}

.x0-hero-glow-right {
    width: 520px;
    height: 520px;
    right: 5%;
    top: 10%;
    background: rgba(255, 0, 51, 0.12);
}

.x0-hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-top: 48px;
    padding-bottom: 56px;
}

.x0-hero-row {
    min-height: calc(92vh - 120px);
}

.banner .text_box {
    padding: 0 !important;
    max-width: 580px;
}

.hero-welcome {
    font-size: 11px !important;
    letter-spacing: 0.18em !important;
    margin-bottom: 20px !important;
}

.banner .title {
    font-size: clamp(32px, 4.8vw, 56px) !important;
    font-weight: 800 !important;
    line-height: 1.08 !important;
    letter-spacing: -0.03em !important;
    margin-bottom: 24px !important;
}

.banner .hero-lead {
    font-size: 18px !important;
    line-height: 1.65 !important;
    margin-bottom: 0 !important;
    color: #a8b0bb !important;
}

.hero-cta-row {
    margin-top: 36px !important;
    gap: 16px !important;
}

.hero-terminal-card {
    margin-top: 40px;
    max-width: 420px;
    overflow: hidden;
}

.hero-terminal-card .hero-terminal {
    margin-top: 0;
    padding: 14px 16px 16px;
    font-size: 13px;
}

.x0-terminal-bar-compact {
    padding: 10px 14px;
}

.x0-terminal-bar-title {
    margin-left: auto;
    font-family: ui-monospace, monospace;
    font-size: 10px;
    color: var(--x0-muted);
    letter-spacing: 0.08em;
    text-transform: lowercase;
}

/* Hero image */
.x0-hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 420px;
    padding: 24px 0;
}

.x0-hero-img-glow {
    position: absolute;
    width: 85%;
    height: 75%;
    background: radial-gradient(ellipse at center, rgba(255, 0, 51, 0.35) 0%, rgba(0, 212, 255, 0.12) 40%, transparent 70%);
    filter: blur(40px);
    z-index: 0;
}

.x0-hero-img-ring {
    position: absolute;
    width: 92%;
    max-width: 520px;
    aspect-ratio: 1;
    border: 1px solid rgba(0, 212, 255, 0.12);
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 60px rgba(255, 0, 51, 0.15), inset 0 0 40px rgba(0, 0, 0, 0.4);
}

.banner .heroimg {
    position: relative;
    z-index: 2;
    max-width: 115% !important;
    width: min(520px, 100%);
    filter:
        drop-shadow(0 0 50px rgba(255, 0, 51, 0.35))
        drop-shadow(0 0 80px rgba(0, 212, 255, 0.15))
        drop-shadow(0 24px 48px rgba(0, 0, 0, 0.5));
}

/* ─── Panels & cards ─── */
.x0-home-hub {
    padding: var(--x0-section-gap) 0 40px !important;
}

.x0-cat-list li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.x0-cat-list a {
    padding: 14px 0 !important;
    transition: color 0.2s, padding-left 0.2s;
}

.x0-cat-list a:hover {
    padding-left: 6px;
}

.x0-status-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 8px currentColor;
}

.x0-status-list-compact {
    margin-top: 24px !important;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.x0-post-card {
    padding: 4px;
    background: rgba(8, 8, 14, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 10px !important;
    box-shadow: var(--x0-shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.x0-post-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 0, 51, 0.35) !important;
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.5),
        0 0 24px rgba(255, 0, 51, 0.12);
}

.x0-post-card-thumb {
    border-radius: 8px 0 0 8px;
    overflow: hidden;
}

.x0-post-card-body {
    padding: 18px 18px 18px 4px !important;
}

.x0-post-card-type {
    font-size: 10px !important;
    margin-bottom: 8px !important;
}

.x0-post-card-title {
    font-size: 17px !important;
    font-weight: 800 !important;
}

.x0-post-card-excerpt {
    font-size: 14px !important;
    line-height: 1.55 !important;
}

.x0-terminal-widget {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.x0-about-blurb {
    padding-bottom: 16px;
    margin-bottom: 20px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Hot news cards */
.eachhnews {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: var(--x0-shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.eachhnews:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 0, 51, 0.1);
}

.nnews {
    padding: var(--x0-section-gap) 0 !important;
}

.home-preview {
    padding-top: 48px !important;
    padding-bottom: 56px !important;
}

.home-preview + .home-preview {
    padding-top: 24px !important;
}

/* Welcome strip */
.x0-page-hero-strip {
    padding: 48px 0 !important;
}

.herobtm .welbrand {
    font-weight: 800;
}

/* ─── Contact page dark theme ─── */
.x0-contact-page {
    background: transparent;
}

.x0-contact-page .contact-intro p {
    color: var(--x0-muted);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.x0-contact-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.x0-contact-links li {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.x0-contact-links li .x0-tech-label {
    min-width: 72px;
    color: var(--x0-muted);
}

.x0-contact-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.x0-contact-links a:hover {
    color: var(--x0-cyan);
}

.x0-contact-form-panel {
    padding: 0 !important;
    overflow: hidden;
}

.x0-contact-form-panel .x0-terminal-bar {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.35);
}

.x0-dark-form {
    padding: 24px 28px 28px;
}

.x0-form-group {
    margin-bottom: 18px;
}

.x0-form-group .x0-tech-label {
    display: block;
    margin-bottom: 8px;
    color: var(--x0-muted);
}

.x0-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    padding: 14px 16px;
    font-size: 15px;
    line-height: 1.4;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.x0-input::placeholder {
    color: rgba(139, 148, 158, 0.7);
}

.x0-input:focus {
    outline: none;
    border-color: var(--x0-cyan);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.15), 0 0 20px rgba(0, 212, 255, 0.08);
    background: rgba(0, 0, 0, 0.6);
}

.x0-textarea {
    min-height: 140px;
    resize: vertical;
}

.x0-submit-btn {
    width: 100%;
    margin-top: 8px;
    justify-content: center;
    text-align: center;
}

.x0-submit-btn:hover {
    box-shadow: 0 0 24px rgba(255, 0, 51, 0.25) !important;
}

/* Override legacy white contact form if referenced elsewhere on contact page */
.x0-contact-page .ftfrmpan {
    background: transparent !important;
    padding: 0 !important;
}

.x0-contact-page .ftfrmpan::before,
.x0-contact-page .ftfrmpan::after {
    display: none !important;
}

/* Post content panels – subtle polish */
.post-content {
    background: linear-gradient(145deg, rgba(18, 18, 26, 0.95), rgba(8, 8, 12, 0.98)) !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    box-shadow: var(--x0-shadow-soft) !important;
    padding: 28px !important;
}

.popcat {
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    padding: 24px;
    background: rgba(14, 14, 22, 0.85);
    box-shadow: var(--x0-shadow-soft);
}

/* ─── Responsive ─── */
@media (max-width: 991px) {
    :root {
        --x0-section-gap: 56px;
    }

    .x0-hero-row {
        min-height: auto;
    }

    .x0-hero-visual {
        min-height: 320px;
        margin-top: 32px;
    }

    .banner .heroimg {
        max-width: 100% !important;
    }

    .hero-terminal-card {
        max-width: 100%;
    }
}

@media (max-width: 767px) {
    :root {
        --x0-section-gap: 48px;
        --x0-container-pad: 20px;
    }

    .banner .title {
        font-size: clamp(28px, 8vw, 36px) !important;
    }

    .x0-panel,
    .x0-panel-elevated {
        padding: 22px !important;
    }
}
