:root {
    color-scheme: dark;
    --bg: #071018;
    --panel: #0d1c28;
    --panel-strong: #102534;
    --text: #edf7ff;
    --muted: #a7bed0;
    --line: rgba(160, 210, 240, 0.2);
    --accent: #27b9f2;
    --accent-strong: #75dcff;
    --steel: #c8d3db;
    font-family: "Segoe UI", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at 12% 0%, rgba(39, 185, 242, 0.2), transparent 34rem),
        linear-gradient(180deg, #08121b 0%, #071018 48%, #050b10 100%);
    color: var(--text);
}

a {
    color: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px clamp(18px, 4vw, 54px);
    background: rgba(7, 16, 24, 0.86);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

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

.brand img {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

nav a {
    padding: 10px 12px;
    color: var(--muted);
    text-decoration: none;
    border-radius: 6px;
}

nav a:hover,
nav a:focus-visible {
    color: var(--text);
    background: rgba(255, 255, 255, 0.07);
}

main {
    width: min(1180px, calc(100vw - 36px));
    margin: 0 auto;
}

.hero {
    min-height: calc(100vh - 88px);
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.75fr);
    align-items: center;
    gap: clamp(28px, 5vw, 70px);
    padding: clamp(48px, 8vw, 96px) 0 72px;
}

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

.eyebrow {
    margin: 0 0 12px;
    color: var(--accent-strong);
    text-transform: uppercase;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0;
}

h1,
h2,
h3,
p {
    letter-spacing: 0;
}

h1 {
    margin: 0;
    font-size: clamp(3rem, 7vw, 6.8rem);
    line-height: 0.95;
}

h2 {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 3rem);
    line-height: 1.05;
}

h3 {
    margin: 0 0 10px;
    font-size: 1.1rem;
}

.hero-text,
.content-band p,
.download-panel p,
footer p,
.release-card p {
    color: var(--muted);
    line-height: 1.65;
}

.hero-text {
    max-width: 62ch;
    margin: 24px 0 0;
    font-size: 1.14rem;
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid var(--line);
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
}

.button.primary {
    color: #031018;
    background: linear-gradient(180deg, var(--accent-strong), var(--accent));
    border-color: transparent;
}

.button.secondary {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
}

.hero-media {
    display: grid;
    place-items: center;
}

.hero-media img {
    width: min(100%, 390px);
    height: auto;
    filter: drop-shadow(0 32px 70px rgba(39, 185, 242, 0.25));
}

.download-panel,
.content-band {
    margin: 0 0 28px;
    padding: clamp(24px, 4vw, 42px);
    border: 1px solid var(--line);
    background: rgba(13, 28, 40, 0.82);
    border-radius: 8px;
}

.download-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.release-card {
    min-width: min(320px, 100%);
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel-strong);
}

.release-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 8px;
    border-radius: 50%;
    background: #f6c453;
    box-shadow: 0 0 18px rgba(246, 196, 83, 0.7);
}

.section-heading {
    margin-bottom: 22px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.steps li {
    counter-increment: step;
    padding: 18px;
    min-height: 150px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.045);
    color: var(--steel);
    line-height: 1.55;
}

.steps li::before {
    content: counter(step, decimal-leading-zero);
    display: block;
    margin-bottom: 18px;
    color: var(--accent-strong);
    font-weight: 800;
}

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

.feature-grid article {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.045);
}

footer {
    width: min(1180px, calc(100vw - 36px));
    margin: 30px auto 0;
    padding: 24px 0 34px;
    border-top: 1px solid var(--line);
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
}

.auth-panel,
.content-panel {
    width: min(760px, 100%);
    margin: 32px auto;
    padding: clamp(24px, 4vw, 42px);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(13, 28, 40, 0.86);
}

.auth-panel img {
    width: 130px;
    height: auto;
}

form {
    display: grid;
    gap: 14px;
}

label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-weight: 600;
}

input,
select {
    width: 100%;
    min-height: 42px;
    padding: 9px 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #071018;
    color: var(--text);
}

button.button {
    cursor: pointer;
}

.alert,
.notice {
    padding: 12px 14px;
    border-radius: 6px;
}

.alert {
    border: 1px solid rgba(255, 120, 120, 0.35);
    background: rgba(255, 90, 90, 0.12);
}

.notice {
    border: 1px solid rgba(117, 220, 255, 0.35);
    background: rgba(39, 185, 242, 0.12);
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.admin-form {
    margin-bottom: 26px;
}

.check-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.check-row input {
    width: auto;
    min-height: auto;
}

@media (max-width: 860px) {
    .site-header,
    .download-panel {
        align-items: flex-start;
        flex-direction: column;
    }

    nav {
        justify-content: flex-start;
    }

    .hero {
        min-height: auto;
        grid-template-columns: 1fr;
        padding-top: 42px;
    }

    .hero-media {
        order: -1;
        justify-content: start;
    }

    .hero-media img {
        width: min(64vw, 240px);
    }

    .steps,
    .feature-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    main,
    footer {
        width: min(100% - 24px, 1180px);
    }

    .brand img {
        width: 46px;
        height: 46px;
    }

    .brand span {
        font-size: 0.98rem;
    }

    nav a {
        padding: 8px 9px;
    }
}
