@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700;800&family=Rajdhani:wght@400;500;600;700&display=swap");

:root {
    --bg-base: #071428;
    --bg-deep: #091c36;
    --bg-soft: rgba(11, 28, 52, 0.78);
    --bg-panel: rgba(8, 21, 40, 0.82);
    --bg-panel-strong: rgba(10, 24, 46, 0.92);
    --bg-highlight: rgba(21, 50, 87, 0.72);
    --line: rgba(140, 196, 255, 0.26);
    --line-strong: rgba(195, 226, 255, 0.38);
    --text: #eef7ff;
    --text-muted: #b9cde4;
    --text-soft: #91aac7;
    --accent: #ff5c5f;
    --accent-dark: #c51f3f;
    --accent-soft: rgba(255, 92, 95, 0.16);
    --accent-gold: #ffd27a;
    --accent-cyan: #7fd8ff;
    --accent-green: #7ae8c1;
    --success: #78dfb1;
    --danger: #ff8e8e;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
    --shadow-soft: 0 14px 36px rgba(0, 0, 0, 0.22);
    --radius: 24px;
    --radius-small: 16px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: "Rajdhani", "Trebuchet MS", sans-serif;
    background: url("background.jpg") center top / cover no-repeat fixed;
    position: relative;
    overflow-x: hidden;
}

body::before,
body::after {
    display: none;
}

main,
.site-footer {
    position: relative;
    z-index: 1;
}

a {
    color: inherit;
    text-decoration: none;
}

p {
    margin: 0;
    line-height: 1.65;
}

h1,
h2,
h3,
strong,
.button,
.site-nav,
.eyebrow,
th,
.status-pill,
.brand-copy strong {
    font-family: "Orbitron", "Trebuchet MS", sans-serif;
    letter-spacing: 0.03em;
}

h1,
h2,
h3 {
    margin: 0;
    line-height: 1.08;
    text-transform: uppercase;
}

img {
    max-width: 100%;
}

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

th,
td {
    padding: 0.95rem 0.9rem;
    border-bottom: 1px solid rgba(195, 226, 255, 0.12);
    text-align: left;
    font-size: 1rem;
}

th {
    color: var(--accent-gold);
    font-size: 0.82rem;
}

::selection {
    background: rgba(255, 92, 95, 0.25);
    color: var(--text);
}

.wrap {
    width: min(1160px, calc(100% - 1.4rem));
    margin: 0 auto;
}

.narrow {
    width: min(780px, calc(100% - 1.4rem));
    margin: 0 auto;
}

.narrow-left {
    max-width: 780px;
}

.stack {
    display: grid;
    gap: 1rem;
}

.stack-h {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.page-shell {
    padding: 1.25rem 0 2.8rem;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(18px);
    background: rgba(6, 17, 33, 0.78);
    border-bottom: 1px solid rgba(195, 226, 255, 0.18);
}

.site-header .wrap,
.section-head,
.status-bar,
.site-nav,
.footer-grid,
.account-actions,
.filter-links {
    display: flex;
    align-items: center;
}

.site-header .wrap {
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 0;
}

.header-start {
    display: grid;
    gap: 0.7rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
}

.brand-copy {
    display: grid;
    gap: 0.12rem;
}

.brand-copy strong {
    font-size: 1.15rem;
}

.brand-copy small {
    color: var(--text-muted);
    font-size: 0.78rem;
}

.brand-mark {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    font-size: 0;
    line-height: 0;
}

.brand-mark img {
    display: block;
    width: 100%;
    height: 100%;
}

.status-bar {
    gap: 0.6rem;
    flex-wrap: wrap;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 38px;
    padding: 0.48rem 0.82rem;
    border: 1px solid rgba(195, 226, 255, 0.22);
    border-radius: 999px;
    background: rgba(10, 28, 50, 0.72);
    box-shadow: var(--shadow-soft);
    font-size: 0.75rem;
    color: var(--text);
    text-transform: uppercase;
}

.status-pill strong {
    font-size: 0.92rem;
    color: var(--accent-gold);
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 12px rgba(255, 92, 95, 0.65);
}

.status-pill.is-online .status-dot {
    background: var(--success);
    box-shadow: 0 0 12px rgba(120, 223, 177, 0.75);
}

.site-nav {
    gap: 0.95rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.site-nav a {
    padding: 0.4rem 0.15rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    transition: color 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover,
.text-link,
.filter-links a.active {
    color: var(--accent-gold);
}

.site-nav a:hover {
    transform: translateY(-1px);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0.78rem 1.15rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: #fff8ef;
    box-shadow: 0 16px 30px rgba(164, 21, 44, 0.28);
    font-size: 0.84rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.button:hover:not([disabled]) {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(164, 21, 44, 0.34);
    filter: saturate(1.05);
}

.button[disabled] {
    opacity: 0.52;
    cursor: not-allowed;
    box-shadow: none;
}

.button-small {
    min-height: 38px;
    padding: 0.55rem 0.9rem;
    font-size: 0.74rem;
}

.button-alt {
    background: linear-gradient(135deg, #28a6db 0%, #1662bb 100%);
    box-shadow: 0 16px 30px rgba(22, 98, 187, 0.28);
}

.button-danger {
    background: linear-gradient(135deg, #ff7b7b 0%, #c51f3f 100%);
}

.button-ghost {
    background: rgba(10, 28, 50, 0.56);
    color: var(--text);
    border-color: rgba(195, 226, 255, 0.22);
    box-shadow: none;
}

.button-inline {
    margin-top: 0.35rem;
}

.flash-stack {
    padding-top: 1rem;
}

.flash {
    padding: 1rem 1.2rem;
    border: 1px solid rgba(195, 226, 255, 0.18);
    border-radius: 18px;
    background: rgba(10, 28, 50, 0.8);
    box-shadow: var(--shadow-soft);
    font-size: 1rem;
    animation: fadeUp 0.35s ease forwards;
}

.flash-success {
    border-color: rgba(120, 223, 177, 0.28);
    background: rgba(16, 53, 50, 0.82);
    color: #d9fff1;
}

.flash-error,
.flash-danger {
    border-color: rgba(255, 142, 142, 0.3);
    background: rgba(62, 19, 31, 0.82);
    color: #ffe0e0;
}

.flash-info,
.flash-warning {
    border-color: rgba(127, 216, 255, 0.28);
    background: rgba(13, 42, 67, 0.82);
    color: #d8f4ff;
}

.page-banner,
.panel {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(14, 34, 61, 0.9), rgba(8, 21, 40, 0.92));
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
    animation: fadeUp 0.45s ease both;
}

.page-banner::before,
.panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(255, 210, 122, 0.08), transparent 28%),
        linear-gradient(330deg, rgba(127, 216, 255, 0.06), transparent 35%);
    pointer-events: none;
}

.page-banner {
    padding: 1.2rem 1.25rem;
}

.hero-banner {
    padding: 1.5rem;
}

.page-banner h1 {
    font-size: clamp(2rem, 4vw, 3.35rem);
}

.page-subtitle,
.section-copy,
.gallery-copy p,
.system-card p,
.feature-card p,
.story-copy p,
.help-copy p,
.recovery-result p,
.footer-brand p,
.footer-links p,
.gallery-empty p {
    color: var(--text-muted);
}

.page-subtitle {
    max-width: 66ch;
    font-size: 1.05rem;
}

.section-copy {
    max-width: 72ch;
    font-size: 1.02rem;
}

.eyebrow {
    color: var(--accent-gold);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.panel {
    padding: 1.2rem;
}

.section-head {
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.section-head h2 {
    font-size: clamp(1.25rem, 2.3vw, 1.8rem);
}

.hero-grid,
.story-layout,
.dashboard-grid,
.content-grid,
.package-grid,
.meta-grid,
.guide-grid,
.download-grid,
.feature-grid,
.spotlight-grid,
.stat-grid,
.systems-grid,
.gallery-grid,
.grid-2col,
.cluster-grid {
    display: grid;
    gap: 1rem;
}

.hero-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.9fr);
    align-items: stretch;
}

.hero-content,
.hero-panel,
.info-stack,
.guide-card,
.download-card,
.feature-card,
.stat-card {
    display: grid;
    gap: 0.9rem;
}

.hero-actions,
.account-actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.hero-panel {
    align-content: start;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.metric-chip,
.story-highlight,
.stat-card,
.meta-grid div,
.price-info,
.callout,
.system-badge,
.price {
    border: 1px solid rgba(195, 226, 255, 0.16);
    border-radius: 18px;
    background: rgba(13, 32, 57, 0.72);
    box-shadow: var(--shadow-soft);
}

.metric-chip {
    display: grid;
    gap: 0.24rem;
    padding: 0.95rem;
}

.metric-chip span,
.story-highlight span,
.stat-card span,
.meta-grid span {
    color: var(--text-soft);
    font-size: 0.78rem;
    text-transform: uppercase;
    font-family: "Orbitron", "Trebuchet MS", sans-serif;
}

.metric-chip strong,
.story-highlight strong,
.stat-card strong {
    color: var(--text);
    font-size: clamp(1rem, 2vw, 1.35rem);
}

.callout {
    padding: 1rem;
}

.callout strong {
    color: var(--accent-gold);
}

.feature-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-card {
    align-content: start;
}

.spotlight-grid,
.content-grid,
.dashboard-grid,
.grid-2col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.story-panel {
    display: grid;
    gap: 1rem;
}

.story-layout {
    grid-template-columns: minmax(0, 1.35fr) minmax(250px, 0.85fr);
}

.story-copy,
.help-copy,
.recovery-result,
.account-actions-panel {
    display: grid;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 20px;
    background: rgba(14, 34, 61, 0.58);
    border: 1px solid rgba(195, 226, 255, 0.12);
}

.story-aside {
    display: grid;
    gap: 0.8rem;
}

.story-highlight,
.stat-card {
    padding: 1rem;
}

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

.gallery-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery-card {
    display: grid;
    gap: 0.9rem;
}

.gallery-frame {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(195, 226, 255, 0.18);
    background: rgba(7, 17, 33, 0.82);
}

.gallery-frame img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transform: scale(1.01);
    transition: transform 0.4s ease;
}

.gallery-card:hover .gallery-frame img {
    transform: scale(1.06);
}

.gallery-copy {
    display: grid;
    gap: 0.45rem;
}

.gallery-copy h2,
.system-card h2,
.feature-card h2,
.download-card h2 {
    font-size: 1.15rem;
}

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

.system-card {
    display: grid;
    gap: 0.85rem;
}

.system-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 32px;
    padding: 0.35rem 0.75rem;
    color: var(--accent-cyan);
    font-size: 0.72rem;
    text-transform: uppercase;
}

.system-badge.is-muted {
    color: var(--text-muted);
}

.download-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

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

.stat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.dashboard-grid,
.content-grid,
.package-grid {
    align-items: start;
}

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

.meta-grid div {
    display: grid;
    gap: 0.25rem;
    padding: 0.9rem;
}

.account-actions-panel {
    margin-top: 1rem;
}

.account-actions .button {
    min-width: 180px;
}

.package-card {
    align-content: start;
}

.price {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 38px;
    padding: 0.45rem 0.82rem;
    color: var(--accent-green);
    font-weight: 700;
}

.check-list,
.list-clean,
.journey-list {
    margin: 0;
    display: grid;
    gap: 0.45rem;
    color: var(--text-muted);
}

.check-list,
.journey-list {
    padding-left: 1.2rem;
}

.list-clean {
    padding-left: 1rem;
}

.form-card {
    display: grid;
    gap: 0.9rem;
}

.form-group {
    display: grid;
    gap: 0.35rem;
}

.error-text,
.form-card ul.errorlist {
    color: var(--danger);
    font-size: 0.9rem;
}

.form-card ul.errorlist {
    margin: 0;
    padding-left: 1rem;
}

.form-card p,
.inline-links,
.help-copy,
.recovery-result,
.footer-brand,
.footer-links,
.price-info,
.info-stack {
    display: grid;
    gap: 0.55rem;
}

label {
    font-family: "Orbitron", "Trebuchet MS", sans-serif;
    font-size: 0.82rem;
    text-transform: uppercase;
    color: var(--accent-gold);
}

input,
select,
textarea {
    width: 100%;
    min-height: 48px;
    padding: 0.78rem 0.85rem;
    border: 1px solid rgba(195, 226, 255, 0.18);
    border-radius: 16px;
    background: rgba(6, 18, 35, 0.82);
    color: var(--text);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    font: inherit;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: rgba(127, 216, 255, 0.62);
    box-shadow: 0 0 0 3px rgba(127, 216, 255, 0.12);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

.filter-links {
    gap: 0.65rem;
    flex-wrap: wrap;
}

.filter-links a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0.45rem 0.85rem;
    border: 1px solid rgba(195, 226, 255, 0.18);
    border-radius: 999px;
    background: rgba(10, 28, 50, 0.72);
    box-shadow: var(--shadow-soft);
    font-size: 0.78rem;
    text-transform: uppercase;
}

.filter-links a.active {
    background: rgba(28, 84, 134, 0.82);
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid rgba(195, 226, 255, 0.14);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
}

.table-wrap table {
    background: rgba(10, 27, 49, 0.7);
}

tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

.article {
    padding: 1.2rem;
}

.article-body {
    margin-top: 1rem;
}

.danger-link,
.danger-note {
    font-family: "Orbitron", "Trebuchet MS", sans-serif;
    font-size: 0.78rem;
    text-transform: uppercase;
}

.danger-link {
    color: var(--danger);
}

.danger-note {
    color: var(--text-soft);
}

.danger-panel {
    border-color: rgba(255, 142, 142, 0.3);
}

.text-link {
    font-size: 0.92rem;
}

.site-footer {
    margin-top: 2rem;
    padding: 1.4rem 0 2rem;
    border-top: 1px solid rgba(195, 226, 255, 0.18);
    background: rgba(6, 17, 33, 0.82);
    backdrop-filter: blur(18px);
}

.footer-grid {
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.4rem;
}

.footer-brand strong,
.footer-links strong {
    text-transform: uppercase;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.92rem;
}

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

.footer-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 0.25rem;
}

.footer-meta span {
    padding: 0.32rem 0.65rem;
    border-radius: 999px;
    background: rgba(11, 28, 52, 0.78);
    border: 1px solid rgba(195, 226, 255, 0.12);
    color: var(--text-soft);
    font-size: 0.76rem;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes backgroundFloat {
    from {
        transform: scale(1.04) translateY(0);
    }
    to {
        transform: scale(1.08) translateY(-10px);
    }
}

@media (max-width: 1080px) {
    .hero-grid,
    .feature-grid,
    .guide-grid,
    .spotlight-grid,
    .story-layout,
    .stat-grid,
    .gallery-grid-3 {
        grid-template-columns: 1fr;
    }

    .systems-grid,
    .gallery-grid,
    .content-grid,
    .dashboard-grid,
    .package-grid,
    .meta-grid,
    .grid-2col,
    .cluster-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .site-header .wrap,
    .section-head,
    .footer-grid {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .hero-metrics,
    .meta-grid,
    .cluster-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .wrap,
    .narrow {
        width: min(100% - 0.8rem, 1160px);
    }

    .site-header .wrap {
        padding: 0.75rem 0;
    }

    .page-shell {
        padding-top: 0.85rem;
    }

    .hero-banner,
    .panel,
    .page-banner {
        padding: 1rem;
        border-radius: 20px;
    }

    .page-banner h1 {
        font-size: 1.72rem;
    }

    th,
    td {
        font-size: 0.9rem;
        padding: 0.72rem 0.58rem;
    }

    .button,
    .button-small {
        width: 100%;
    }

    .hero-actions,
    .stack-h,
    .account-actions {
        display: grid;
    }
}
