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

:root {
    color-scheme: dark;
    --bg: #05070b;
    --surface: #0d1320;
    --surface-2: #111a29;
    --text: #f6f8fb;
    --muted: #aab5c6;
    --line: #253246;
    --blue: #0788ff;
    --cyan: #3cc7ff;
    --green: #36d399;
    --purple: #8b5cf6;
    --amber: #f59e0b;
    --warn: #fbbf24;
    --fail: #fb7185;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Rajdhani, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    background:
        radial-gradient(circle at 12% 10%, rgba(7, 136, 255, 0.2), transparent 24rem),
        radial-gradient(circle at 86% 18%, rgba(60, 199, 255, 0.1), transparent 22rem),
        linear-gradient(145deg, #05070b 0%, #09111d 52%, #06080d 100%);
    color: var(--text);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(to bottom, black, transparent 72%);
}

a {
    color: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 74px;
    padding: 12px clamp(20px, 5vw, 64px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(5, 7, 11, 0.84);
    backdrop-filter: blur(18px);
}

.nav-toggle,
.hamburger-button {
    display: none;
}

.header-brand {
    display: inline-flex;
    align-items: center;
    width: 166px;
    min-width: 148px;
}

.header-brand img {
    display: block;
    width: 100%;
    height: auto;
    filter:
        drop-shadow(0 0 10px rgba(255, 255, 255, 0.16))
        drop-shadow(0 0 18px rgba(7, 136, 255, 0.16));
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    font-size: 0.94rem;
    font-weight: 600;
}

.site-nav a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
    text-decoration: none;
    white-space: nowrap;
    transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.site-nav a:hover {
    border-color: rgba(60, 199, 255, 0.42);
    background: rgba(60, 199, 255, 0.08);
    color: var(--text);
}

.site-nav .nav-button,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid rgba(60, 199, 255, 0.42);
    border-radius: 6px;
    background: linear-gradient(135deg, var(--blue), #075bdc);
    color: white;
    font-size: 0.92rem;
    font-weight: 650;
    text-decoration: none;
    box-shadow: 0 12px 30px rgba(7, 136, 255, 0.2);
}

.site-nav .nav-button {
    border-color: rgba(60, 199, 255, 0.62);
    background: linear-gradient(135deg, var(--blue), #075bdc);
    color: white;
    box-shadow: 0 12px 32px rgba(7, 136, 255, 0.32);
}

.site-nav .nav-button:hover,
.button:hover {
    color: white;
    border-color: rgba(255, 255, 255, 0.46);
}

.button-secondary {
    background: rgba(255, 255, 255, 0.05);
    box-shadow: none;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
    gap: 44px;
    align-items: center;
    width: min(1160px, calc(100% - 40px));
    min-height: calc(100vh - 74px);
    margin: 0 auto;
    padding: 70px 0 54px;
}

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

.eyebrow {
    margin: 0 0 14px;
    color: var(--cyan);
    font-size: 0.78rem;
    font-weight: 650;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 780px;
    margin-bottom: 20px;
    font-size: clamp(2.1rem, 4.8vw, 4.15rem);
    font-weight: 600;
    line-height: 1.02;
    letter-spacing: -0.02em;
}

h2 {
    margin-bottom: 14px;
    font-size: clamp(1.7rem, 3vw, 2.65rem);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.01em;
}

h3 {
    margin-bottom: 12px;
    font-size: 1.16rem;
    font-weight: 600;
    line-height: 1.25;
}

p {
    color: var(--muted);
    line-height: 1.68;
}

.hero-text {
    max-width: 620px;
    margin-bottom: 28px;
    font-size: 1.02rem;
}

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

.hero-panel,
.solution-card,
.health,
.auth-card {
    border: 1px solid var(--line);
    background: rgba(13, 19, 32, 0.86);
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.28);
}

.hero-panel {
    padding: 22px;
}

.system-preview {
    overflow: hidden;
    border: 1px solid rgba(60, 199, 255, 0.2);
    border-radius: 8px;
    background:
        linear-gradient(150deg, rgba(7, 136, 255, 0.14), transparent 42%),
        rgba(7, 12, 22, 0.88);
}

.preview-topbar {
    display: flex;
    gap: 7px;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.025);
}

.preview-topbar span {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
}

.preview-body {
    display: grid;
    grid-template-columns: 82px 1fr;
    gap: 18px;
    align-items: center;
    padding: 28px 24px 22px;
}

.preview-body img {
    width: 76px;
    height: auto;
    filter: drop-shadow(0 0 24px rgba(7, 136, 255, 0.34));
}

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

.preview-body p {
    margin-bottom: 0;
    font-size: 0.92rem;
}

.preview-list {
    display: grid;
    gap: 10px;
    padding: 0 24px 24px;
}

.preview-list div {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 13px 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.035);
}

.preview-list span {
    color: var(--muted);
}

.preview-list strong {
    color: var(--text);
    text-align: left;
    font-weight: 600;
}

.solutions-section {
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
    padding: 22px 0 80px;
}

.section-heading {
    max-width: 700px;
    margin-bottom: 32px;
}

.solution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
    gap: 18px;
}

.solution-card {
    min-height: 250px;
    padding: 24px;
    border-radius: 8px;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.solution-card:hover {
    transform: translateY(-4px);
    border-color: rgba(60, 199, 255, 0.45);
    background: rgba(17, 26, 41, 0.95);
}

.solution-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-bottom: 22px;
    border-radius: 10px;
}

.solution-icon i {
    font-size: 1.25rem;
}

.solution-acai {
    border-color: rgba(139, 92, 246, 0.34);
    background: linear-gradient(150deg, rgba(139, 92, 246, 0.14), rgba(13, 19, 32, 0.9) 48%);
}

.solution-acai .solution-icon {
    color: #d8b4fe;
    background: rgba(139, 92, 246, 0.16);
}

.solution-news {
    border-color: rgba(7, 136, 255, 0.34);
    background: linear-gradient(150deg, rgba(7, 136, 255, 0.14), rgba(13, 19, 32, 0.9) 48%);
}

.solution-news .solution-icon {
    color: #93c5fd;
    background: rgba(7, 136, 255, 0.16);
}

.solution-custom {
    border-color: rgba(54, 211, 153, 0.3);
    background: linear-gradient(150deg, rgba(54, 211, 153, 0.12), rgba(13, 19, 32, 0.9) 48%);
}

.solution-custom .solution-icon {
    color: #86efac;
    background: rgba(54, 211, 153, 0.14);
}

.solution-ragnarok {
    border-color: rgba(245, 158, 11, 0.32);
    background: linear-gradient(150deg, rgba(245, 158, 11, 0.12), rgba(13, 19, 32, 0.9) 48%);
}

.solution-ragnarok .solution-icon {
    color: #facc15;
    background: rgba(245, 158, 11, 0.14);
}

.site-footer {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
    padding: 22px clamp(20px, 5vw, 64px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: #05070b;
}

.site-footer img {
    width: 52px;
    height: auto;
}

.site-footer a {
    color: var(--cyan);
    text-decoration: none;
}

.site-footer strong {
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;
    text-align: right;
}

.auth-body {
    min-height: 100vh;
}

.auth-page {
    display: grid;
    place-items: center;
    min-height: calc(100vh - 74px - 97px);
    padding: 46px 18px;
}

.auth-shell {
    display: grid;
    gap: 24px;
    width: min(430px, 100%);
}

.auth-shell-wide {
    width: min(820px, 100%);
}

.auth-logo {
    display: inline-flex;
    width: 180px;
    justify-self: center;
}

.auth-logo img {
    width: 100%;
    height: auto;
}

.auth-card {
    padding: 30px;
    border-radius: 8px;
}

.auth-card h1 {
    margin-bottom: 12px;
    font-size: clamp(1.8rem, 4vw, 2.35rem);
}

.auth-form {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}

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

.form-full {
    grid-column: 1 / -1;
}

.auth-form label {
    display: grid;
    gap: 8px;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 600;
}

.auth-form input,
.auth-form select {
    width: 100%;
    min-height: 44px;
    padding: 0 13px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    outline: none;
    background: rgba(255, 255, 255, 0.055);
    color: var(--text);
    font: inherit;
}

.auth-form select option {
    color: #0d1320;
}

.auth-form input:focus,
.auth-form select:focus {
    border-color: rgba(60, 199, 255, 0.7);
    box-shadow: 0 0 0 3px rgba(60, 199, 255, 0.12);
}

.auth-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 18px;
    margin-top: 22px;
    color: var(--cyan);
    font-weight: 600;
}

.auth-links a {
    text-decoration: none;
}

.form-alert {
    display: grid;
    gap: 6px;
    margin-top: 18px;
    padding: 12px 14px;
    border: 1px solid rgba(251, 113, 133, 0.35);
    border-radius: 7px;
    background: rgba(251, 113, 133, 0.1);
    color: #fecdd3;
    font-weight: 600;
}

.form-alert-ok {
    border-color: rgba(54, 211, 153, 0.35);
    background: rgba(54, 211, 153, 0.1);
    color: #bbf7d0;
}

.dashboard-body {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    min-height: 100vh;
}

.dashboard-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 24px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(5, 7, 11, 0.84);
    backdrop-filter: blur(18px);
}

.dashboard-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
}

.dashboard-logo img {
    width: 42px;
    height: auto;
    filter: drop-shadow(0 0 16px rgba(7, 136, 255, 0.34));
}

.dashboard-sidebar nav {
    display: grid;
    gap: 10px;
}

.dashboard-sidebar nav a,
.dashboard-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
    text-decoration: none;
}

.dashboard-sidebar nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 14px;
    font-weight: 600;
}

.dashboard-sidebar nav a.active,
.dashboard-sidebar nav a:hover {
    border-color: rgba(60, 199, 255, 0.4);
    background: rgba(60, 199, 255, 0.08);
    color: var(--text);
}

.dashboard-main {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    padding: 46px 0;
}

.dashboard-header {
    margin-bottom: 26px;
}

.dashboard-header-actions {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.dashboard-header h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.dashboard-card {
    display: grid;
    gap: 12px;
    min-height: 190px;
    padding: 24px;
}

.dashboard-card i {
    color: var(--cyan);
    font-size: 1.6rem;
}

.dashboard-card strong {
    color: var(--text);
    font-size: 1.2rem;
}

.dashboard-card span {
    line-height: 1.55;
}

.dashboard-panel {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(13, 19, 32, 0.86);
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.24);
}

.panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.panel-heading h2 {
    margin-bottom: 0;
    font-size: 1.6rem;
}

.dashboard-section-gap {
    margin-top: 18px;
}

.dashboard-filters {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(220px, 320px) auto;
    gap: 14px;
    align-items: end;
    margin-bottom: 20px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(13, 19, 32, 0.86);
}

.compact-filter {
    grid-template-columns: minmax(240px, 520px);
}

.dashboard-filters label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-weight: 600;
}

.dashboard-filters input,
.dashboard-filters select {
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.055);
    color: var(--text);
    font: inherit;
}

.dashboard-filters select option {
    color: #0d1320;
}

.customer-list {
    display: grid;
    gap: 12px;
}

.customer-row,
.empty-state {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(13, 19, 32, 0.86);
}

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

.customer-row-link {
    color: inherit;
    text-decoration: none;
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.customer-row-link:hover {
    border-color: rgba(60, 199, 255, 0.42);
    background: rgba(17, 26, 41, 0.96);
    transform: translateY(-2px);
}

.customer-row div {
    display: grid;
    gap: 4px;
}

.customer-row strong {
    color: var(--text);
    font-size: 1.08rem;
}

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

.customer-row a {
    color: var(--cyan);
    text-decoration: none;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 10px;
    border: 1px solid rgba(54, 211, 153, 0.28);
    border-radius: 999px;
    background: rgba(54, 211, 153, 0.1);
    color: #bbf7d0;
    font-weight: 650;
}

.inline-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.contract-row {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(420px, 1.4fr);
    gap: 18px;
    align-items: center;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(13, 19, 32, 0.86);
}

.contract-info {
    display: grid;
    gap: 5px;
}

.contract-info strong {
    color: var(--text);
    font-size: 1.08rem;
}

.contract-info span,
.contract-info a {
    color: var(--muted);
    text-decoration: none;
}

.contract-info a {
    color: var(--cyan);
}

.inline-contract-form {
    display: grid;
    grid-template-columns: minmax(130px, 1fr) 88px minmax(150px, 1fr) 38px;
    gap: 10px;
    align-items: end;
}

.inline-contract-form label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-weight: 600;
}

.inline-contract-form input,
.inline-contract-form select,
.readonly-field {
    min-height: 38px;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.055);
    color: var(--text);
    font: inherit;
}

.readonly-field {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.035);
    color: var(--muted);
}

.inline-contract-form select option {
    color: #0d1320;
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr);
    gap: 18px;
}

.info-list {
    display: grid;
    gap: 12px;
    margin: 0;
}

.info-list div {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.info-list dt {
    color: var(--muted);
    font-weight: 600;
}

.info-list dd {
    margin: 0;
    color: var(--text);
}

.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.045);
    color: var(--text);
    cursor: pointer;
    text-decoration: none;
}

.icon-button:hover {
    border-color: rgba(60, 199, 255, 0.45);
    color: var(--cyan);
}

.empty-state {
    display: grid;
    place-items: center;
    gap: 8px;
    min-height: 220px;
    padding: 24px;
    color: var(--muted);
    text-align: center;
}

.empty-state i {
    color: var(--cyan);
    font-size: 2rem;
}

.empty-state strong {
    color: var(--text);
    font-size: 1.2rem;
}

.health {
    width: 100%;
    margin: 0;
    padding: 36px;
    border-radius: 8px;
}

.back-link {
    color: var(--cyan);
    text-decoration: none;
}

.ok-text {
    color: var(--green);
}

.warn-text {
    color: var(--warn);
}

.check-list {
    display: grid;
    gap: 12px;
    padding: 0;
    margin: 28px 0;
    list-style: none;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    background: var(--surface-2);
}

.check-ok,
.check-fail {
    width: 12px;
    height: 12px;
    border-radius: 999px;
}

.check-ok {
    background: var(--green);
}

.check-fail {
    background: var(--fail);
}

.db-message {
    overflow-wrap: anywhere;
}

.compact-checks {
    margin-bottom: 0;
}

@media (max-width: 900px) {
    .dashboard-body {
        grid-template-columns: 1fr;
    }

    .dashboard-sidebar {
        position: static;
        height: auto;
    }

    .dashboard-sidebar nav {
        grid-template-columns: 1fr;
    }

    .dashboard-filters {
        grid-template-columns: 1fr;
    }

    .dashboard-header-actions {
        flex-direction: column;
    }

    .customer-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .contract-row,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .inline-contract-form {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .site-header {
        position: sticky;
        display: grid;
        grid-template-columns: 44px 1fr 44px;
        align-items: center;
        gap: 0;
        min-height: 70px;
    }

    .header-brand {
        grid-column: 2;
        justify-self: center;
    }

    .hamburger-button {
        display: inline-flex;
        grid-column: 3;
        align-items: center;
        justify-content: center;
        justify-self: end;
        width: 42px;
        height: 42px;
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.045);
        cursor: pointer;
    }

    .hamburger-button span {
        position: absolute;
        width: 18px;
        height: 2px;
        border-radius: 999px;
        background: var(--text);
        transition: transform 160ms ease, opacity 160ms ease;
    }

    .hamburger-button span:nth-child(1) {
        transform: translateY(-6px);
    }

    .hamburger-button span:nth-child(3) {
        transform: translateY(6px);
    }

    .nav-toggle:checked + .hamburger-button span:nth-child(1) {
        transform: rotate(45deg);
    }

    .nav-toggle:checked + .hamburger-button span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle:checked + .hamburger-button span:nth-child(3) {
        transform: rotate(-45deg);
    }

    .site-nav {
        display: none;
        grid-column: 1 / -1;
        width: 100%;
        padding-top: 14px;
        align-items: stretch;
        justify-content: flex-start;
        flex-direction: column;
        flex-wrap: nowrap;
    }

    .site-nav a {
        width: 100%;
    }

    .nav-toggle:checked ~ .site-nav {
        display: flex;
    }

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

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

    .site-footer {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .site-footer strong {
        text-align: center;
    }
}

@media (max-width: 560px) {
    body {
        font-size: 14px;
    }

    .header-brand {
        width: 112px;
        min-width: 112px;
    }

    .site-header {
        padding: 12px 14px;
    }

    .site-nav {
        gap: 10px;
    }

    .site-nav a {
        font-size: 0.84rem;
    }

    .site-nav .nav-button,
    .site-nav a,
    .button {
        width: 100%;
    }

    .hero,
    .solutions-section {
        width: min(100% - 28px, 1160px);
    }

    .preview-body {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .preview-body img {
        justify-self: center;
    }

    .hero-panel,
    .solution-card,
    .health,
    .auth-card {
        padding: 22px;
    }
}
