:root {
    --dw-bg: #08090c;
    --dw-surface: rgba(18, 21, 27, 0.84);
    --dw-line: rgba(255, 255, 255, 0.085);
    --dw-line-strong: rgba(255, 255, 255, 0.14);
    --dw-text: #f4f5f7;
    --dw-muted: #9299a5;
    --dw-soft: #c8cdd5;
    --dw-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
    --dw-radius: 18px;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    background: var(--dw-bg);
    color: var(--dw-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

.dw-background {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: -1;
    background:
        radial-gradient(circle at 50% -20%, rgba(255,255,255,.055), transparent 38%),
        linear-gradient(180deg, #0a0c10 0%, #08090c 45%, #07080a 100%);
}

.dw-grid {
    position: absolute;
    inset: 0;
    opacity: .12;
    background-image:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.8), transparent 75%);
}

.dw-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .09;
}

.dw-glow-one {
    width: 480px;
    height: 480px;
    top: 4%;
    right: -180px;
    background: #fff;
}

.dw-glow-two {
    width: 360px;
    height: 360px;
    top: 48%;
    left: -180px;
    background: #657083;
}

.dw-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    border-bottom: 1px solid transparent;
    transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.dw-header-scrolled {
    background: rgba(8,9,12,.82);
    border-bottom-color: var(--dw-line);
    box-shadow: 0 16px 45px rgba(0,0,0,.18);
    backdrop-filter: blur(18px);
}

.navbar {
    min-height: 76px;
}

.dw-brand {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    font-weight: 650;
    letter-spacing: -.02em;
}

.dw-brand-mark {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--dw-line-strong);
    border-radius: 11px;
    background: linear-gradient(145deg, rgba(255,255,255,.09), rgba(255,255,255,.015));
    font-size: 12px;
    letter-spacing: .14em;
}

.dw-brand-name {
    font-size: 16px;
}

.navbar-nav .nav-link {
    color: var(--dw-muted);
    padding-left: 14px !important;
    padding-right: 14px !important;
    font-size: 14px;
    font-weight: 520;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--dw-text);
}

.dw-btn-primary,
.dw-btn-outline {
    border-radius: 11px;
    padding: 10px 17px;
    font-size: 14px;
    font-weight: 650;
}

.dw-btn-primary {
    color: #090a0d;
    border: 1px solid #f0f2f4;
    background: #f0f2f4;
}

.dw-btn-primary:hover,
.dw-btn-primary:focus {
    color: #090a0d;
    background: #fff;
    border-color: #fff;
}

.dw-btn-outline {
    color: var(--dw-soft);
    border: 1px solid var(--dw-line-strong);
    background: rgba(255,255,255,.025);
}

.dw-btn-outline:hover,
.dw-btn-outline:focus {
    color: var(--dw-text);
    border-color: rgba(255,255,255,.24);
    background: rgba(255,255,255,.065);
}

.min-vh-75 {
    min-height: 75vh;
}

.dw-eyebrow {
    margin-bottom: 15px;
    color: var(--dw-muted);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .22em;
}

.dw-hero-title {
    max-width: 780px;
    margin: 0;
    font-size: clamp(3rem, 7vw, 6.5rem);
    line-height: .98;
    letter-spacing: -.065em;
    font-weight: 720;
}

.dw-hero-title span {
    display: block;
    color: #8f96a1;
}

.dw-hero-text {
    max-width: 680px;
    margin-top: 30px;
    margin-bottom: 0;
    color: var(--dw-muted);
    font-size: clamp(1.05rem, 2vw, 1.22rem);
    line-height: 1.75;
}

.dw-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 42px;
    margin-top: 48px;
    padding-top: 25px;
    border-top: 1px solid var(--dw-line);
}

.dw-hero-meta div {
    display: flex;
    align-items: baseline;
    gap: 9px;
}

.dw-hero-meta strong {
    color: var(--dw-text);
    font-size: 25px;
}

.dw-hero-meta span {
    color: var(--dw-muted);
    font-size: 13px;
}

.dw-code-window {
    overflow: hidden;
    border: 1px solid var(--dw-line);
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
    box-shadow: var(--dw-shadow);
    backdrop-filter: blur(18px);
}

.dw-code-toolbar {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 49px;
    padding: 0 17px;
    border-bottom: 1px solid var(--dw-line);
}

.dw-code-toolbar > span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,.18);
}

.dw-code-file {
    margin-left: auto;
    color: #6f7681;
    font-family: monospace;
    font-size: 11px;
}

.dw-code-content {
    padding: 28px 18px 30px;
    color: #b9c0c9;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 13px;
    line-height: 2;
    overflow-x: auto;
}

.dw-code-number {
    display: inline-block;
    width: 38px;
    color: #454b55;
    user-select: none;
}

.dw-code-muted { color: #606874; }
.dw-code-key { color: #d7dae0; }
.dw-code-class { color: #fff; }
.dw-code-string { color: #adb6c3; }

.dw-section {
    padding: 105px 0;
}

.dw-section-heading {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(260px,420px);
    gap: 60px;
    align-items: end;
    margin-bottom: 32px;
}

.dw-section h2,
.dw-page-head h1 {
    letter-spacing: -.045em;
}

.dw-section-heading h2 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.45rem);
    line-height: 1.08;
}

.dw-section-heading > p {
    margin: 0;
    color: var(--dw-muted);
    line-height: 1.75;
}

.dw-feature-card,
.dw-script-card,
.dw-info-panel,
.dw-filter {
    border: 1px solid var(--dw-line);
    border-radius: var(--dw-radius);
    background: var(--dw-surface);
    box-shadow: 0 15px 45px rgba(0,0,0,.12);
    backdrop-filter: blur(15px);
}

.dw-feature-card {
    padding: 30px;
}

.dw-feature-index {
    margin-bottom: 50px;
    color: #646c78;
    font-family: monospace;
    font-size: 12px;
}

.dw-feature-card h3 {
    margin-bottom: 13px;
    font-size: 19px;
}

.dw-feature-card p {
    margin: 0;
    color: var(--dw-muted);
    line-height: 1.7;
}

.dw-section-projects {
    padding-top: 60px;
}

.dw-text-link,
.dw-card-link,
.dw-back-link {
    color: #cbd0d8;
    text-decoration: none;
}

.dw-text-link:hover,
.dw-card-link:hover,
.dw-back-link:hover {
    color: #fff;
}

.dw-script-card {
    display: flex;
    flex-direction: column;
    padding: 27px;
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.dw-script-card:hover {
    transform: translateY(-3px);
    border-color: var(--dw-line-strong);
    background: rgba(24,28,35,.9);
}

.dw-script-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 30px;
}

.dw-script-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.dw-script-tags span,
.dw-info-categories a {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 3px 9px;
    border: 1px solid var(--dw-line);
    border-radius: 7px;
    color: #aeb5bf;
    background: rgba(255,255,255,.025);
    font-family: monospace;
    font-size: 11px;
    text-decoration: none;
}

.dw-version {
    color: #767e89;
    font-family: monospace;
    font-size: 11px;
}

.dw-script-card h2,
.dw-script-card h3 {
    margin-bottom: 13px;
    font-size: 20px;
    letter-spacing: -.025em;
}

.dw-script-card p {
    color: var(--dw-muted);
    line-height: 1.7;
}

.dw-card-link {
    margin-top: auto;
    padding-top: 22px;
    font-size: 13px;
    font-weight: 650;
}

.dw-script-date {
    margin-top: 7px;
    color: #6f7681;
    font-size: 12px;
}

.dw-empty-state {
    padding: 70px 30px;
    border: 1px dashed var(--dw-line-strong);
    border-radius: var(--dw-radius);
    background: rgba(255,255,255,.015);
    text-align: center;
}

.dw-empty-symbol {
    margin-bottom: 18px;
    color: #656d79;
    font-family: monospace;
    font-size: 30px;
}

.dw-empty-state h2,
.dw-empty-state h3 {
    font-size: 22px;
}

.dw-empty-state p {
    max-width: 560px;
    margin: 12px auto 0;
    color: var(--dw-muted);
    line-height: 1.7;
}

.dw-page-head {
    padding: 115px 0 65px;
}

.dw-page-head h1 {
    margin-bottom: 20px;
    font-size: clamp(2.8rem, 6vw, 5.3rem);
    font-weight: 700;
}

.dw-page-head > .container > p,
.dw-script-title-meta p {
    max-width: 720px;
    margin-bottom: 0;
    color: var(--dw-muted);
    font-size: 18px;
    line-height: 1.75;
}

.dw-filter {
    margin-bottom: 30px;
    padding: 24px;
}

.form-label {
    color: #89919d;
    font-size: 12px;
    font-weight: 650;
}

.dw-form-control {
    min-height: 45px;
    color: var(--dw-text);
    border-color: var(--dw-line-strong);
    border-radius: 10px;
    background: rgba(255,255,255,.025);
}

.dw-form-control:focus {
    color: var(--dw-text);
    border-color: rgba(255,255,255,.28);
    background: rgba(255,255,255,.04);
    box-shadow: 0 0 0 .2rem rgba(255,255,255,.035);
}

.dw-form-control::placeholder {
    color: #59606b;
}

.form-select.dw-form-control {
    color-scheme: dark;
}

.dw-results-head {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 30px 0 20px;
    color: var(--dw-muted);
    font-size: 13px;
}

.dw-results-head strong {
    color: var(--dw-text);
}

.dw-back-link {
    display: inline-block;
    margin-bottom: 34px;
    color: var(--dw-muted);
    font-size: 13px;
}

.dw-script-title-meta {
    display: flex;
    justify-content: space-between;
    gap: 45px;
    align-items: flex-end;
}

.dw-script-title-meta > div:first-child {
    max-width: 800px;
}

.dw-script-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.dw-content-block {
    margin-bottom: 54px;
}

.dw-content-block h2 {
    margin-bottom: 22px;
    font-size: 25px;
}

.dw-lead {
    color: #b6bdc7;
    font-size: 17px;
    line-height: 1.85;
}

.dw-check-list,
.dw-standard-list {
    display: grid;
    gap: 12px;
    padding-left: 20px;
    color: #aeb5bf;
    line-height: 1.65;
}

.dw-check-list {
    list-style: none;
    padding-left: 0;
}

.dw-check-list li {
    position: relative;
    padding-left: 27px;
}

.dw-check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #e1e4e9;
}

.dw-info-panel {
    position: sticky;
    top: 105px;
    padding: 27px;
}

.dw-info-panel h2 {
    margin-bottom: 24px;
    font-size: 17px;
}

.dw-info-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 13px 0;
    border-top: 1px solid var(--dw-line);
    font-size: 13px;
}

.dw-info-row span {
    color: var(--dw-muted);
}

.dw-info-row strong {
    color: var(--dw-soft);
    font-weight: 550;
}

.dw-info-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    padding-top: 22px;
}

.dw-code-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 15px;
}

.dw-code-heading h2 {
    margin: 0;
}

.dw-source {
    max-height: 720px;
    margin: 0;
    padding: 24px;
    overflow: auto;
    border: 1px solid var(--dw-line);
    border-radius: 14px;
    color: #c4cad2;
    background: #0b0d11;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 13px;
    line-height: 1.7;
}

.dw-footer {
    margin-top: 55px;
    padding: 34px 0;
    border-top: 1px solid var(--dw-line);
}

.dw-footer-brand {
    margin-bottom: 4px;
    color: var(--dw-soft);
    font-size: 14px;
    font-weight: 650;
}

.dw-footer-copy {
    color: #656c77;
    font-size: 12px;
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        margin-top: 12px;
        padding: 14px;
        border: 1px solid var(--dw-line);
        border-radius: 13px;
        background: rgba(12,14,18,.97);
    }

    .dw-section-heading {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .dw-script-title-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .dw-script-actions {
        justify-content: flex-start;
    }

    .dw-info-panel {
        position: static;
    }
}

@media (max-width: 767.98px) {
    .navbar {
        min-height: 68px;
    }

    .dw-brand-name {
        font-size: 14px;
    }

    .dw-hero {
        padding-top: 40px;
    }

    .min-vh-75 {
        min-height: auto;
    }

    .dw-hero-title {
        font-size: clamp(2.8rem, 15vw, 4.7rem);
    }

    .dw-hero-meta {
        gap: 25px;
    }

    .dw-hero-meta div {
        flex-direction: column;
        gap: 2px;
    }

    .dw-section {
        padding: 75px 0;
    }

    .dw-page-head {
        padding: 80px 0 45px;
    }

    .dw-code-window {
        margin-top: 15px;
    }
}

/* DARKWOLF MEDIA COMPONENTS */

.dw-media-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 22px;
}

.dw-media-item {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    border: 1px solid var(--dw-line);
    border-radius: 14px;
    background: #0b0d11;
}

.dw-media-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .22s ease;
}

.dw-media-item:hover img {
    transform: scale(1.025);
}

.dw-download-list {
    display: grid;
    gap: 10px;
    margin-top: 22px;
}

.dw-download-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 18px;
    border: 1px solid var(--dw-line);
    border-radius: 12px;
    background: rgba(255, 255, 255, .025);
    color: var(--dw-text);
    text-decoration: none;
    transition:
        border-color .15s ease,
        background .15s ease,
        transform .15s ease;
}

.dw-download-row:hover {
    color: var(--dw-text);
    border-color: rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .05);
    transform: translateY(-1px);
}

.dw-download-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.dw-download-copy strong {
    overflow-wrap: anywhere;
}

.dw-download-copy small {
    margin-top: 3px;
    color: var(--dw-muted);
}

.dw-download-icon {
    flex: 0 0 auto;
    font-size: 1.25rem;
    line-height: 1;
}

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