:root {
    --bg: #07111f;
    --bg-soft: #0d1e34;
    --panel: rgba(9, 25, 44, 0.82);
    --panel-strong: #102846;
    --card: rgba(255, 255, 255, 0.08);
    --line: rgba(255, 255, 255, 0.12);
    --text: #f4f8ff;
    --muted: #9bb1d1;
    --blue: #2297ff;
    --blue-deep: #045ab8;
    --red: #e94a4a;
    --white: #ffffff;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    --radius: 24px;
    --radius-sm: 16px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Segoe UI Variable", "Segoe UI", "Tahoma", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(34, 151, 255, 0.25), transparent 34%),
        radial-gradient(circle at top right, rgba(233, 74, 74, 0.18), transparent 22%),
        linear-gradient(180deg, #091525 0%, #07111f 40%, #08101b 100%);
}

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

img {
    max-width: 100%;
}

button,
input,
textarea,
select {
    font: inherit;
}

.site-shell,
.admin-shell,
.install-shell {
    min-height: 100vh;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(20px);
    background: rgba(6, 14, 27, 0.72);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: var(--white);
}

.brand strong,
.brand-admin strong {
    display: block;
    font-family: "Trebuchet MS", "Segoe UI Variable", "Segoe UI", sans-serif;
    font-size: 1rem;
}

.brand small,
.brand-admin small {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    font-weight: 800;
    font-size: 1.2rem;
    background: linear-gradient(135deg, #2297ff 0%, #ffffff 52%, #e94a4a 100%);
    color: #07111f;
    box-shadow: 0 12px 28px rgba(34, 151, 255, 0.35);
}

.site-nav,
.admin-nav {
    display: flex;
    align-items: center;
    gap: 14px;
}

.site-nav a,
.admin-nav a {
    color: var(--muted);
    transition: color 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover,
.admin-nav a:hover {
    color: var(--white);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: transparent;
    padding: 0;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 5px auto;
    background: var(--white);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    cursor: pointer;
}

.button:hover {
    transform: translateY(-2px);
}

.button.primary {
    background: linear-gradient(135deg, #2297ff 0%, #0a6ed1 55%, #e94a4a 160%);
    color: var(--white);
    box-shadow: 0 18px 34px rgba(34, 151, 255, 0.24);
}

.button.secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.14);
}

.button.ghost {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.14);
}

.button.danger {
    background: rgba(233, 74, 74, 0.18);
    color: #ffd7d7;
    border-color: rgba(233, 74, 74, 0.32);
}

.button.small {
    min-height: 38px;
    padding: 0 14px;
    font-size: 0.92rem;
}

.button.wide {
    width: 100%;
}

.hero-section,
.section,
.trust-strip {
    position: relative;
}

.hero-section {
    padding: 54px 0 28px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 28px;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    color: #8bc7ff;
    font-size: 0.84rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 38px;
    height: 2px;
    background: linear-gradient(90deg, #2297ff, #e94a4a);
}

h1,
h2,
h3 {
    margin: 0 0 16px;
    font-family: "Trebuchet MS", "Segoe UI Variable", "Segoe UI", sans-serif;
    line-height: 1.04;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
}

h2 {
    font-size: clamp(1.8rem, 4vw, 3rem);
}

h3 {
    font-size: 1.28rem;
}

p {
    margin: 0 0 14px;
    color: var(--muted);
    line-height: 1.7;
}

.hero-text {
    max-width: 720px;
    font-size: 1.08rem;
}

.hero-actions,
.section-actions,
.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.hero-points {
    display: grid;
    gap: 10px;
    padding: 0;
    margin: 26px 0 0;
    list-style: none;
}

.hero-points li,
.trust-grid div,
.mini-panel,
.service-card,
.plugin-card,
.legal-card,
.stat-card,
.table-card,
.admin-form-card,
.install-card,
.contact-tile {
    background: var(--card);
    border: 1px solid var(--line);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
}

.hero-points li {
    padding: 14px 18px;
    border-radius: 18px;
}

.hero-panel {
    display: grid;
    gap: 18px;
}

.hero-card {
    position: relative;
    overflow: hidden;
    padding: 26px;
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04));
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow);
}

.hero-card::after {
    content: "";
    position: absolute;
    inset: auto -10% -34% 30%;
    height: 160px;
    background: radial-gradient(circle, rgba(34, 151, 255, 0.36), transparent 65%);
}

.hero-card-accent::after {
    background: radial-gradient(circle, rgba(233, 74, 74, 0.24), transparent 65%);
}

.hero-card strong {
    display: block;
    margin-bottom: 10px;
    font-size: 1.6rem;
}

.card-kicker {
    display: inline-block;
    margin-bottom: 16px;
    color: #8bc7ff;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.78rem;
}

.trust-strip {
    padding: 10px 0 14px;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.trust-grid div {
    padding: 18px;
    border-radius: 18px;
}

.trust-grid strong {
    display: block;
    margin-bottom: 6px;
    font-size: 1rem;
}

.trust-grid span {
    color: var(--muted);
    font-size: 0.92rem;
}

.section {
    padding: 72px 0;
}

.section-alt {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
}

.section-head {
    max-width: 760px;
    margin-bottom: 32px;
    text-align: center;
}

.section-head-left {
    text-align: left;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.cards-grid-plugins {
    grid-template-columns: repeat(3, 1fr);
}

.service-card,
.plugin-card,
.legal-card,
.contact-tile,
.mini-panel,
.stat-card,
.admin-form-card,
.install-card,
.table-card {
    border-radius: var(--radius);
}

.service-card,
.plugin-card,
.legal-card {
    padding: 24px;
}

.plugin-card-full h2 {
    font-size: 1.45rem;
}

.plugin-top,
.plugin-meta,
.contact-tiles {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.plugin-top {
    margin-bottom: 18px;
}

.plugin-meta {
    margin-top: 18px;
    color: var(--white);
    font-weight: 700;
}

.plugin-details {
    color: #d0def4;
}

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(34, 151, 255, 0.16);
    color: #cfe9ff;
    font-size: 0.86rem;
}

.badge.muted {
    background: rgba(255, 255, 255, 0.08);
    color: var(--muted);
}

.feature-layout,
.request-grid,
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 0.95fr;
    gap: 24px;
}

.feature-stack {
    display: grid;
    gap: 16px;
}

.mini-panel {
    padding: 20px;
}

.mini-panel strong {
    display: block;
    margin-bottom: 8px;
}

.timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.timeline-item {
    position: relative;
    padding: 24px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(8, 26, 48, 0.8), rgba(8, 20, 36, 0.65));
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.timeline-item strong {
    display: block;
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.legal-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.legal-note {
    margin-top: 22px;
    max-width: 920px;
}

.section-request {
    padding-bottom: 96px;
}

.request-form,
.install-form,
.stack-form {
    display: grid;
    gap: 16px;
}

.request-form,
.admin-form-card,
.install-card {
    padding: 28px;
}

label,
.stack-form > label {
    display: grid;
    gap: 8px;
}

label span,
.section-mini-head h2 {
    color: var(--white);
    font-weight: 700;
}

input,
textarea,
select {
    width: 100%;
    min-height: 52px;
    padding: 14px 16px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    outline: none;
}

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

input:focus,
textarea:focus,
select:focus {
    border-color: rgba(34, 151, 255, 0.7);
    box-shadow: 0 0 0 4px rgba(34, 151, 255, 0.12);
}

.checkbox {
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 12px;
}

.checkbox input {
    width: 22px;
    min-height: 22px;
    margin-top: 4px;
}

.contact-tiles {
    margin-top: 24px;
}

.contact-tile {
    flex: 1 1 220px;
    padding: 18px;
}

.contact-tile strong {
    display: block;
    margin-bottom: 8px;
}

.flash {
    margin: 0 auto 18px;
    padding: 14px 18px;
    border-radius: 16px;
}

.flash .container {
    width: 100%;
}

.flash-success {
    background: rgba(67, 184, 106, 0.16);
    border: 1px solid rgba(67, 184, 106, 0.28);
    color: #d6ffdd;
}

.flash-error {
    background: rgba(233, 74, 74, 0.16);
    border: 1px solid rgba(233, 74, 74, 0.28);
    color: #ffe0e0;
}

.site-footer {
    padding: 32px 0 36px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(6, 12, 22, 0.72);
}

.footer-grid {
    align-items: start;
}

.footer-grid a {
    display: block;
    margin-bottom: 10px;
    color: var(--muted);
}

.footer-note {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-note p {
    margin: 0;
    font-size: 0.92rem;
}

.inner-hero {
    padding-top: 48px;
}

.intro-copy,
.legal-page {
    max-width: 860px;
}

.legal-page h2 {
    margin-top: 34px;
    margin-bottom: 12px;
    font-size: 1.5rem;
}

.install-body,
.admin-body {
    background:
        radial-gradient(circle at top left, rgba(34, 151, 255, 0.22), transparent 26%),
        linear-gradient(180deg, #06111f 0%, #091728 100%);
}

.install-shell {
    display: grid;
    place-items: center;
    padding: 48px 16px;
}

.install-card {
    width: min(980px, 100%);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.section-mini-head {
    margin-top: 18px;
}

.admin-shell {
    display: grid;
    grid-template-columns: 280px 1fr;
}

.admin-sidebar {
    min-height: 100vh;
    padding: 28px 18px;
    background: rgba(4, 12, 23, 0.94);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

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

.admin-nav {
    flex-direction: column;
    align-items: stretch;
}

.admin-nav a {
    padding: 12px 14px;
    border-radius: 14px;
}

.admin-nav a:hover {
    background: rgba(255, 255, 255, 0.06);
}

.admin-main {
    padding: 32px;
}

.admin-section + .admin-section {
    margin-top: 24px;
}

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

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.stat-card {
    padding: 24px;
}

.stat-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 2rem;
}

.table-card {
    overflow: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.data-table th,
.data-table td {
    padding: 16px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
    vertical-align: top;
}

.data-table th {
    color: #d9e8ff;
    font-size: 0.86rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.table-actions,
.inline-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.message-cell {
    min-width: 280px;
}

@media (max-width: 1100px) {
    .hero-grid,
    .feature-layout,
    .request-grid,
    .footer-grid,
    .cards-grid,
    .cards-grid-plugins,
    .timeline,
    .trust-grid,
    .legal-grid,
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 920px) {
    .admin-shell {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        min-height: auto;
    }

    .site-nav {
        position: absolute;
        top: 84px;
        left: 16px;
        right: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 18px;
        border-radius: 24px;
        background: rgba(7, 17, 31, 0.96);
        border: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: var(--shadow);
    }

    .site-nav.is-open {
        display: flex;
    }

    .nav-toggle {
        display: inline-block;
    }
}

@media (max-width: 720px) {
    .hero-section,
    .section {
        padding: 54px 0;
    }

    .hero-grid,
    .feature-layout,
    .request-grid,
    .footer-grid,
    .cards-grid,
    .cards-grid-plugins,
    .timeline,
    .trust-grid,
    .legal-grid,
    .stats-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .admin-main {
        padding: 20px 16px 28px;
    }

    .request-form,
    .admin-form-card,
    .install-card {
        padding: 22px;
    }

    .header-row {
        padding: 14px 0;
    }
}
