@import url("https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;600;700&family=Share+Tech+Mono&display=swap");

:root {
    --bg: #04060d;
    --bg-deep: #02040a;
    --panel: rgba(8, 12, 24, 0.94);
    --panel-soft: rgba(255, 255, 255, 0.025);
    --line: rgba(255, 42, 116, 0.34);
    --line-strong: rgba(255, 42, 116, 0.68);
    --text: #edf2fb;
    --muted: #8b96aa;
    --muted-strong: #c4ccda;
    --blue: #ff2a74;
    --blue-strong: #bd1555;
    --cyan: #4de9ff;
    --teal: #00f58a;
    --pink: #ff2a74;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

html {
    background: var(--bg);
}

body.dblx-home {
    font-family: "Share Tech Mono", monospace;
    background:
        linear-gradient(90deg, rgba(255, 42, 116, 0.025) 1px, transparent 1px),
        linear-gradient(rgba(77, 233, 255, 0.018) 1px, transparent 1px),
        radial-gradient(circle at 78% 5%, rgba(255, 42, 116, 0.1), transparent 26%),
        radial-gradient(circle at 12% 40%, rgba(77, 233, 255, 0.055), transparent 24%),
        #04060d;
    background-size: 72px 72px, 72px 72px, auto, auto, auto;
}

body.dblx-home::before {
    z-index: 20;
    background: repeating-linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.018) 0,
        rgba(255, 255, 255, 0.018) 1px,
        transparent 1px,
        transparent 5px
    );
    background-size: auto;
    mask-image: none;
    opacity: 0.26;
}

body.dblx-home::after {
    z-index: 19;
    background:
        radial-gradient(circle at center, transparent 48%, rgba(0, 0, 0, 0.55)),
        linear-gradient(115deg, transparent 0 72%, rgba(255, 42, 116, 0.03) 72.1%, transparent 72.3%);
}

.home-shell {
    width: min(1320px, calc(100% - 44px));
    padding-bottom: 24px;
}

.masthead {
    min-height: 74px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 42, 116, 0.22);
}

.brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 0;
    color: var(--pink);
    background: rgba(255, 42, 116, 0.06);
    border: 1px solid rgba(255, 42, 116, 0.58);
    box-shadow: inset 3px 0 var(--cyan), 0 0 24px rgba(255, 42, 116, 0.16);
    clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px));
    font-family: "Rajdhani", sans-serif;
    font-size: 1.08rem;
}

.brand-mark-small {
    width: 36px;
    height: 36px;
    border-radius: 0;
}

.brand-kicker {
    color: #537585;
    font-size: 0.58rem;
}

.brand-title {
    color: #f3f6fb;
    font-family: "Rajdhani", sans-serif;
    font-size: 1.06rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.nav-link {
    color: #8a95a8;
    font-size: 0.76rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.nav-link:hover {
    color: var(--cyan);
}

.button {
    min-height: 42px;
    padding: 12px 18px;
    border-radius: 0;
    border: 1px solid rgba(77, 233, 255, 0.42);
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.button-primary {
    color: #fff;
    background: linear-gradient(135deg, rgba(255, 42, 116, 0.88), rgba(159, 17, 70, 0.92));
    box-shadow: 0 0 26px rgba(255, 42, 116, 0.2);
    border-color: rgba(255, 79, 139, 0.82);
}

.button-secondary,
.button-tertiary {
    color: var(--cyan);
    background: rgba(77, 233, 255, 0.055);
    border-color: rgba(77, 233, 255, 0.34);
    box-shadow: none;
}

.button:hover,
.surface-card:hover,
.host-link:hover,
.capability-card:hover {
    transform: translateY(-2px);
}

.button:hover {
    filter: brightness(1.14);
}

.hero-frame {
    margin-top: 22px;
    padding: 50px 46px 38px;
    border-radius: 0;
    border: 1px solid rgba(255, 42, 116, 0.52);
    background:
        linear-gradient(90deg, rgba(4, 6, 14, 0.98), rgba(4, 6, 14, 0.88) 48%, rgba(4, 6, 14, 0.28)),
        linear-gradient(180deg, rgba(4, 6, 14, 0.08), rgba(4, 6, 14, 0.9)),
        url("/assets/dblbot-cyber-hero.png") 75% top / auto 560px no-repeat,
        #060914;
    box-shadow: inset 0 0 90px rgba(0, 0, 0, 0.48), var(--shadow);
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}

.hero-frame::before {
    background:
        linear-gradient(90deg, var(--pink) 0 82px, transparent 82px) top left / 100% 1px no-repeat,
        repeating-linear-gradient(90deg, rgba(77, 233, 255, 0.025) 0 1px, transparent 1px 72px);
    opacity: 1;
}

.hero-frame::after {
    background: linear-gradient(180deg, transparent 54%, rgba(2, 4, 10, 0.94) 92%);
}

.hero-center {
    max-width: none;
    margin: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(330px, 0.7fr);
    gap: clamp(34px, 7vw, 100px);
    align-items: center;
    text-align: left;
}

.hero-copy-column {
    max-width: 720px;
}

.eyebrow,
.mini-label {
    color: var(--pink);
    font-size: 0.68rem;
    letter-spacing: 0.18em;
}

.eyebrow::before {
    content: "▮";
    margin-right: 8px;
    color: var(--cyan);
}

.display-title,
.section-title,
.card-title,
.info-title,
.capability-title,
.toolbar-title {
    font-family: "Rajdhani", sans-serif;
    letter-spacing: 0.015em;
}

.display-title {
    max-width: 12ch;
    margin: 16px 0;
    color: #f5f7fb;
    font-size: clamp(3.4rem, 7vw, 6.5rem);
    line-height: 0.84;
    text-transform: uppercase;
    text-shadow: 4px 4px rgba(255, 42, 116, 0.18);
}

.hero-copy {
    max-width: 600px;
    margin: 0;
    color: #b8c0cf;
    font-family: "Rajdhani", sans-serif;
    font-size: 1.18rem;
    line-height: 1.5;
}

.hero-actions {
    justify-content: flex-start;
    margin-top: 26px;
}

.auth-line {
    width: fit-content;
    margin: 16px 0 0;
    padding: 8px 12px;
    border-radius: 0;
    color: var(--teal);
    background: rgba(0, 245, 138, 0.055);
    border: 1px solid rgba(0, 245, 138, 0.2);
    box-shadow: none;
    font-size: 0.66rem;
    letter-spacing: 0.06em;
}

.boot-console {
    position: relative;
    padding: 22px;
    background: rgba(3, 6, 13, 0.82);
    border: 1px solid rgba(77, 233, 255, 0.32);
    box-shadow: inset 0 0 40px rgba(77, 233, 255, 0.025), 0 20px 50px rgba(0, 0, 0, 0.32);
    clip-path: polygon(0 0, calc(100% - 13px) 0, 100% 13px, 100% 100%, 0 100%);
}

.boot-console::before {
    content: "SYS://DBLBOT/OPERATOR";
    position: absolute;
    top: -1px;
    right: 18px;
    padding: 4px 8px;
    color: #4f7885;
    background: #04070f;
    border: 1px solid rgba(77, 233, 255, 0.2);
    font-size: 0.52rem;
}

.boot-console-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: var(--pink);
    font-family: "Rajdhani", sans-serif;
    letter-spacing: 0.1em;
}

.boot-console-head strong {
    color: #dfe6f1;
}

.boot-progress {
    height: 8px;
    margin: 16px 0 18px;
    padding: 2px;
    border: 1px solid rgba(255, 42, 116, 0.38);
}

.boot-progress span {
    display: block;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(90deg, var(--pink) 0 10px, transparent 10px 13px);
    filter: drop-shadow(0 0 5px rgba(255, 42, 116, 0.55));
}

.boot-status {
    padding: 9px 0;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid rgba(105, 123, 151, 0.14);
    color: #778397;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
}

.boot-status strong {
    color: var(--teal);
    font-weight: 400;
}

.boot-welcome {
    margin-top: 20px;
    display: grid;
    gap: 3px;
}

.boot-welcome span {
    color: #69758a;
    font-size: 0.66rem;
}

.boot-welcome strong {
    color: var(--cyan);
    font-family: "Rajdhani", sans-serif;
    font-size: 1.7rem;
    letter-spacing: 0.07em;
}

.hero-preview-grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
    margin-top: 54px;
}

.preview-board,
.info-card,
.surface-card,
.capability-card,
.dashboard-showcase {
    border-radius: 0;
    color: var(--text);
    background:
        linear-gradient(135deg, rgba(255, 42, 116, 0.03), transparent 38%),
        rgba(7, 11, 22, 0.94);
    border: 1px solid rgba(255, 42, 116, 0.28);
    box-shadow: 0 20px 58px rgba(0, 0, 0, 0.28);
    backdrop-filter: none;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
}

.preview-board::before,
.info-card::before,
.surface-card::before,
.capability-card::before {
    background: linear-gradient(90deg, var(--pink) 0 44px, transparent 44px) top left / 100% 1px no-repeat;
}

.preview-window,
.command-table,
.surface-visual {
    border-radius: 0;
    background: rgba(3, 6, 13, 0.82);
    border-color: rgba(83, 105, 138, 0.25);
}

.window-bar {
    background: rgba(255, 42, 116, 0.04);
    border-color: rgba(255, 42, 116, 0.16);
}

.window-dot {
    width: 7px;
    height: 7px;
    border-radius: 0;
}

.window-label {
    color: var(--cyan);
    font-size: 0.66rem;
    letter-spacing: 0.08em;
}

.sidebar-pill,
.stat-card,
.chat-line,
.host-link {
    border-radius: 0;
    background: rgba(255, 255, 255, 0.022);
    border-color: rgba(91, 110, 142, 0.2);
}

.sidebar-pill {
    padding: 10px 12px;
    color: #788398;
    font-size: 0.72rem;
}

.sidebar-pill.is-active {
    color: #fff;
    background: linear-gradient(90deg, rgba(255, 42, 116, 0.22), transparent);
    border-color: rgba(255, 42, 116, 0.4);
    box-shadow: inset 2px 0 var(--pink);
}

.stat-card span,
.table-row.header,
.showcase-row.header {
    color: var(--pink);
}

.stat-card strong {
    color: var(--teal);
}

.chat-line.is-strong {
    color: #dce3ee;
    background: rgba(77, 233, 255, 0.06);
    border-color: rgba(77, 233, 255, 0.22);
    box-shadow: none;
}

.toggle-live {
    border-radius: 0;
    color: var(--teal);
    background: rgba(0, 245, 138, 0.08);
}

.info-title {
    color: var(--pink);
}

.host-link:hover {
    border-color: rgba(77, 233, 255, 0.38);
    background: rgba(77, 233, 255, 0.035);
}

.host-link span {
    color: #587886;
}

.host-link strong {
    color: #dce4ef;
}

.ops-strip {
    padding-top: 24px;
}

.ops-chip {
    padding: 9px 13px;
    border-radius: 0;
    color: var(--cyan);
    background: rgba(77, 233, 255, 0.025);
    border-color: rgba(77, 233, 255, 0.18);
    font-size: 0.62rem;
}

.strip-note {
    color: #69758a;
    font-size: 0.76rem;
}

.section {
    padding-top: 92px;
}

.section-heading {
    max-width: 820px;
    margin-bottom: 34px;
}

.section-title {
    color: #f0f4fa;
    font-size: clamp(2.7rem, 6vw, 5rem);
    text-transform: uppercase;
    text-shadow: 3px 3px rgba(255, 42, 116, 0.12);
}

.section-copy,
.info-copy,
.card-copy,
.card-source,
.capability-copy,
.footer-copy {
    color: var(--muted);
}

.surface-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.surface-card {
    min-height: 420px;
    padding: 18px;
}

.surface-card:hover,
.capability-card:hover,
.host-link:hover {
    border-color: rgba(255, 42, 116, 0.56);
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.36), 0 0 25px rgba(255, 42, 116, 0.06);
}

.surface-visual {
    min-height: 156px;
    margin-bottom: 18px;
    border-radius: 0;
}

.surface-art {
    filter: saturate(0.78) contrast(1.08);
}

.surface-art-note,
.visual-status {
    border-radius: 0;
    color: var(--cyan);
    background: rgba(3, 6, 13, 0.75);
    border-color: rgba(77, 233, 255, 0.18);
    font-size: 0.62rem;
    text-transform: uppercase;
}

.surface-tag {
    color: var(--pink);
    font-size: 0.62rem;
    letter-spacing: 0.15em;
}

.module-status {
    margin-top: 13px;
    padding: 8px 10px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #69758a;
    background: rgba(0, 245, 138, 0.025);
    border: 1px solid rgba(0, 245, 138, 0.14);
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.module-status strong {
    color: var(--teal);
    font-weight: 400;
}

.card-title {
    margin-top: 15px;
    color: #eef2f8;
    font-size: 1.9rem;
    line-height: 0.95;
    text-transform: uppercase;
}

.card-copy {
    font-size: 0.84rem;
    line-height: 1.65;
}

.card-source {
    font-size: 0.68rem;
}

.surface-action {
    color: var(--cyan);
    border-color: rgba(77, 233, 255, 0.16);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-sigil {
    border-radius: 0;
    color: var(--pink);
    background: rgba(255, 42, 116, 0.08);
    border-color: rgba(255, 42, 116, 0.4);
}

.dashboard-showcase {
    border-color: rgba(77, 233, 255, 0.2);
}

.showcase-shell {
    border-radius: 0;
    border-color: rgba(255, 42, 116, 0.22);
    background: rgba(4, 7, 15, 0.94);
}

.showcase-sidebar {
    background: linear-gradient(180deg, rgba(255, 42, 116, 0.055), rgba(4, 7, 15, 0.96));
    border-color: rgba(255, 42, 116, 0.22);
}

.showcase-brand {
    color: var(--pink);
}

.showcase-nav-item {
    border-radius: 0;
    color: #788398;
}

.showcase-nav-item.is-active {
    color: #fff;
    background: linear-gradient(90deg, rgba(255, 42, 116, 0.2), transparent);
    box-shadow: inset 2px 0 var(--pink);
}

.toolbar-label {
    color: var(--cyan);
}

.toolbar-title {
    color: #f1f4fa;
    text-transform: uppercase;
}

.toolbar-chip,
.toolbar-search,
.scope-pill {
    border-radius: 0;
}

.toolbar-chip {
    color: var(--teal);
    background: rgba(0, 245, 138, 0.06);
    border-color: rgba(0, 245, 138, 0.2);
}

.showcase-table {
    border-radius: 0;
    border-color: rgba(95, 113, 145, 0.2);
}

.showcase-row {
    background: rgba(255, 255, 255, 0.018);
    border-color: rgba(95, 113, 145, 0.14);
}

.toggle-pill {
    border-radius: 0;
    background: #151a26;
}

.toggle-pill::after {
    border-radius: 0;
}

.toggle-pill.is-on {
    background: rgba(0, 245, 138, 0.25);
}

.capability-grid {
    gap: 14px;
}

.capability-card {
    padding: 20px;
}

.capability-icon {
    border-radius: 0;
    color: var(--cyan);
    background: rgba(77, 233, 255, 0.055);
    border: 1px solid rgba(77, 233, 255, 0.22);
}

.capability-title {
    color: #e9eef6;
    text-transform: uppercase;
}

.footer {
    border-color: rgba(255, 42, 116, 0.2);
}

.footer-links a {
    color: #778398;
}

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

@media (max-width: 1120px) {
    .surface-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-center {
        grid-template-columns: minmax(0, 1fr) minmax(300px, 0.7fr);
        gap: 38px;
    }
}

@media (max-width: 980px) {
    .hero-center,
    .hero-preview-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy-column {
        max-width: 680px;
    }

    .boot-console {
        max-width: 600px;
    }

    .hero-frame {
        background:
            linear-gradient(90deg, rgba(4, 6, 14, 0.97), rgba(4, 6, 14, 0.76)),
            url("/assets/dblbot-cyber-hero.png") 70% top / auto 520px no-repeat,
            #060914;
    }
}

@media (max-width: 780px) {
    .home-shell {
        width: min(100% - 24px, 1320px);
    }

    .masthead {
        grid-template-columns: 1fr auto;
    }

    .nav-row {
        grid-column: 1 / -1;
        justify-content: flex-start;
        order: 3;
    }

    .hero-frame {
        padding: 34px 24px 28px;
    }

    .display-title {
        font-size: clamp(3rem, 15vw, 5.3rem);
    }

    .surface-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .masthead {
        grid-template-columns: 1fr;
    }

    .nav-actions {
        justify-content: flex-start;
    }

    .hero-frame {
        padding: 28px 18px 22px;
    }

    .hero-actions {
        display: grid;
    }

    .hero-actions > * {
        width: 100%;
    }

    .preview-layout {
        grid-template-columns: 1fr;
    }

    .preview-sidebar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .boot-console {
        padding: 17px;
    }

    .boot-console-head {
        display: grid;
    }
}
