﻿:root {
    color-scheme: dark;
    --bg: #0f1115;
    --panel: #171b22;
    --panel-strong: #1f252e;
    --line: #2d3440;
    --line-soft: #242a33;
    --text: #f3f6fb;
    --muted: #aab4c1;
    --soft: #788391;
    --accent: #55d6be;
    --accent-blue: #63a8ff;
    --accent-warm: #ffbf69;
    --danger: #ff6b6b;
    --disabled: #8a929c;
    --shadow: 0 24px 90px rgba(0, 0, 0, .34);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    background:
        linear-gradient(135deg, rgba(85, 214, 190, .12), transparent 28rem),
        linear-gradient(45deg, transparent 44%, rgba(255, 191, 105, .08), transparent 68%),
        var(--bg);
    color: var(--text);
    font: 16px/1.55 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
    color: inherit;
}

button {
    font: inherit;
}

.wrap {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(45, 52, 64, .78);
    background: rgba(15, 17, 21, .76);
    backdrop-filter: blur(18px);
}

.header-inner {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 850;
    text-decoration: none;
}

.brand-mark {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(85, 214, 190, .44);
    border-radius: 10px;
    background: #12171f;
    color: var(--accent);
    box-shadow: 0 0 34px rgba(85, 214, 190, .12);
}

.header-note {
    margin: 0;
    color: var(--muted);
    font-size: .95rem;
    font-weight: 700;
}

main {
    flex: 1;
    padding: 56px 0 36px;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(360px, 1.05fr);
    gap: 44px;
    align-items: center;
    margin-bottom: 54px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 22px;
    color: #d4fff7;
    font-size: .84rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 11px;
    height: 11px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 0 7px rgba(85, 214, 190, .12);
}

h1 {
    max-width: 680px;
    margin: 0 0 24px;
    font-size: clamp(3rem, 7vw, 5.7rem);
    line-height: .95;
    letter-spacing: 0;
}

.hero-copy {
    max-width: 620px;
    margin: 0;
    color: var(--muted);
    font-size: 1.22rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

.button {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 20px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #202731;
    color: #f8fbff;
    font-weight: 850;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.button.primary {
    border-color: rgba(85, 214, 190, .68);
    background: linear-gradient(135deg, #3fc7ae, #4b95f7);
    color: #fff;
}

.button.secondary {
    background: rgba(31, 37, 46, .88);
    color: #dce7f3;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-1px);
    border-color: var(--accent);
    outline: none;
}

.button.is-disabled {
    cursor: not-allowed;
    border-color: rgba(138, 146, 156, .3);
    background: rgba(138, 146, 156, .14);
    color: #9da6b1;
    transform: none;
}

.stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    max-width: 430px;
    margin-top: 34px;
}

.stat {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(23, 27, 34, .72);
}

.stat strong {
    display: block;
    color: var(--text);
    font-size: 2rem;
    line-height: 1;
}

.stat span {
    color: var(--muted);
    font-size: .92rem;
}

.slider-shell {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(23, 27, 34, .86);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.slider-top {
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 14px;
    border-bottom: 1px solid var(--line);
}

.window-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 11px;
    height: 11px;
    border-radius: 999px;
}

.dot.red {
    background: var(--danger);
}

.dot.yellow {
    background: var(--accent-warm);
}

.dot.green {
    background: var(--accent);
}

.slider-label {
    color: var(--muted);
    font-size: .86rem;
    font-weight: 800;
}

.slider {
    position: relative;
    min-height: 360px;
    background: #080b10;
}

.slide {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    opacity: 0;
    transition: opacity .28s ease;
}

.slide.is-active {
    opacity: 1;
    z-index: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #080b10;
}

.slider-empty {
    min-height: 360px;
    display: grid;
    place-items: center;
    padding: 28px;
    color: var(--muted);
    text-align: center;
}

.slider-controls {
    position: absolute;
    right: 16px;
    bottom: 16px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 12px;
    background: rgba(8, 11, 16, .72);
    backdrop-filter: blur(12px);
}

.icon-button {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #171d26;
    color: var(--text);
    cursor: pointer;
    font-size: 1.35rem;
    line-height: 1;
}

.icon-button:hover,
.icon-button:focus-visible {
    border-color: var(--accent);
    outline: none;
}

.slider-counter {
    min-width: 64px;
    color: var(--muted);
    font-size: .9rem;
    font-weight: 800;
    text-align: center;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
}

.section-head h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.3rem);
    line-height: 1;
}

.section-head p {
    max-width: 420px;
    margin: 0;
    color: var(--muted);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.project-card {
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 28px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(85, 214, 190, .08), transparent 34%),
        var(--panel);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .24);
}

.project-card:nth-child(3n + 2) {
    background:
        linear-gradient(135deg, rgba(99, 168, 255, .1), transparent 34%),
        var(--panel);
}

.project-card:nth-child(3n + 3) {
    background:
        linear-gradient(135deg, rgba(255, 191, 105, .1), transparent 34%),
        var(--panel);
}

.project-kicker {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 22px;
}

.project-number {
    color: var(--accent);
    font-size: .86rem;
    font-weight: 900;
    letter-spacing: .08em;
}

.project-badge {
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: .78rem;
    font-weight: 800;
}

.project-card h3 {
    margin: 0 0 12px;
    font-size: clamp(1.45rem, 3vw, 2rem);
    line-height: 1.08;
}

.project-card p {
    margin: 0;
    color: var(--muted);
}

.project-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.project-actions .button {
    min-height: 40px;
    padding: 0 14px;
    border-radius: 8px;
    font-size: .88rem;
}

.empty-state {
    padding: 28px;
    border: 1px dashed var(--line);
    border-radius: 18px;
    color: var(--muted);
    background: rgba(23, 27, 34, .7);
}

.screenshot-dialog {
    width: min(1040px, calc(100% - 32px));
    max-height: calc(100vh - 48px);
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--panel);
    color: var(--text);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.screenshot-dialog::backdrop {
    background: rgba(4, 6, 9, .78);
    backdrop-filter: blur(10px);
}

.dialog-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
}

.dialog-title {
    margin: 0;
    color: #d9fff8;
    font-size: 1rem;
    font-weight: 850;
}

.dialog-close {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #1a2029;
    color: var(--text);
    cursor: pointer;
    font-size: 1.4rem;
    line-height: 1;
}

.dialog-close:hover,
.dialog-close:focus-visible {
    border-color: var(--accent);
    outline: none;
}

.dialog-body {
    padding: 18px;
    background: #080b10;
}

.dialog-image-wrap {
    position: relative;
}

.dialog-body img {
    width: 100%;
    max-height: calc(100vh - 170px);
    display: block;
    object-fit: contain;
    border-radius: 12px;
    background: #05080d;
}

.dialog-nav {
    position: absolute;
    top: 50%;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(170, 180, 193, .3);
    border-radius: 10px;
    background: rgba(8, 11, 16, .78);
    color: var(--text);
    cursor: pointer;
    font-size: 1.6rem;
    line-height: 1;
    transform: translateY(-50%);
}

.dialog-nav.prev {
    left: 14px;
}

.dialog-nav.next {
    right: 14px;
}

.dialog-nav:hover,
.dialog-nav:focus-visible {
    border-color: var(--accent);
    outline: none;
}

.dialog-nav[hidden] {
    display: none;
}

.dialog-meta {
    margin-top: 12px;
    color: var(--muted);
    font-size: .95rem;
    text-align: center;
}

.site-footer {
    margin-top: 54px;
    border-top: 1px solid rgba(45, 52, 64, .78);
    color: var(--muted);
    background: #0a0c10;
}

.footer-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    font-size: .95rem;
}

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

    .project-card {
        min-height: 0;
    }
}

@media (max-width: 640px) {
    .header-inner,
    .footer-inner,
    .section-head {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        padding: 18px 0;
    }

    main {
        padding-top: 38px;
    }

    h1 {
        font-size: clamp(2.7rem, 16vw, 4rem);
    }

    .hero-copy {
        font-size: 1.08rem;
    }

    .button,
    .hero-actions,
    .stats {
        width: 100%;
    }

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

    .slider {
        min-height: 260px;
    }

    .slider-empty {
        min-height: 260px;
    }

    .slider-controls {
        right: 10px;
        bottom: 10px;
    }
}
