@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&family=IBM+Plex+Mono:wght@400;500&display=swap");

:root {
    --bg: #05070d;
    --panel: rgba(12, 17, 25, 0.82);
    --panel-strong: rgba(16, 22, 32, 0.94);
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.14);
    --text: #f5f7fb;
    --muted: #9ba6bb;
    --accent: #ff4d67;
    --accent-strong: #ff214c;
    --accent-soft: rgba(255, 77, 103, 0.18);
    --blue: #62b4ff;
    --success: #20d68f;
    --warning: #ffc857;
    --danger: #ff667d;
    --shadow: 0 26px 80px rgba(0, 0, 0, 0.38);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(98, 180, 255, 0.12), transparent 32%),
        radial-gradient(circle at top right, rgba(255, 33, 76, 0.18), transparent 34%),
        linear-gradient(180deg, #05070d 0%, #080b13 48%, #06080f 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(circle at center, black 45%, transparent 100%);
    pointer-events: none;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

.page-shell {
    position: relative;
    z-index: 1;
    width: min(1320px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 48px;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.brand-mark {
    width: 56px;
    height: 56px;
    object-fit: contain;
    filter: drop-shadow(0 12px 28px rgba(255, 33, 76, 0.22));
}

.brand-name,
.brand-subtitle {
    display: block;
}

.brand-name {
    font-size: 1.1rem;
    font-weight: 700;
}

.brand-subtitle {
    color: var(--muted);
    font-size: 0.92rem;
}

.top-nav {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.top-nav a {
    color: var(--muted);
}

.top-nav a:hover,
.text-link:hover {
    color: var(--text);
}

.main-shell {
    display: grid;
    gap: 24px;
}

.panel {
    position: relative;
    overflow: hidden;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
        var(--panel);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
    animation: rise-in 0.5s ease both;
}

.panel::after {
    content: "";
    position: absolute;
    inset: auto -15% -35% 40%;
    height: 180px;
    background: radial-gradient(circle, rgba(255, 33, 76, 0.24), transparent 60%);
    pointer-events: none;
}

.accent-panel {
    background:
        linear-gradient(135deg, rgba(255, 33, 76, 0.14), transparent 38%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
        var(--panel-strong);
}

.hero-panel,
.dashboard-hero,
.grid-two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.hero-copy,
.hero-visual {
    position: relative;
    z-index: 1;
}

.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-visual img {
    width: min(460px, 100%);
    filter: drop-shadow(0 18px 32px rgba(255, 33, 76, 0.24));
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--blue);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 14px;
    font-size: clamp(2.2rem, 3.6vw, 4rem);
    line-height: 0.98;
}

h2 {
    margin-bottom: 12px;
    font-size: clamp(1.35rem, 2vw, 2rem);
}

h3 {
    margin-bottom: 10px;
    font-size: 1.05rem;
}

.lead {
    max-width: 62ch;
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.65;
}

.lead.small,
.muted-note,
.table-subtext {
    color: var(--muted);
    font-size: 0.92rem;
}

.hero-actions,
.copy-row,
.hero-chips,
.section-heading,
.inline-form,
.flash-stack {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-actions {
    margin: 24px 0 18px;
}

.hero-chips span {
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
    font-size: 0.9rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    box-shadow: 0 14px 28px rgba(255, 33, 76, 0.24);
}

.button:hover {
    transform: translateY(-1px);
}

.button-ghost {
    border-color: var(--line-strong);
    background: rgba(255, 255, 255, 0.02);
    box-shadow: none;
}

.button-small {
    min-height: 38px;
    padding: 0 14px;
    font-size: 0.86rem;
}

.card-grid,
.metric-grid {
    display: grid;
    gap: 18px;
}

.card-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.metric-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.mini-card,
.metric-card {
    min-height: 100%;
}

.metric-card {
    padding: 18px;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
}

.metric-label {
    display: block;
    color: var(--muted);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 10px;
}

.metric-card strong {
    font-size: 1.2rem;
}

.feature-list {
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
    line-height: 1.7;
}

.stack-form,
.compact-form {
    display: grid;
    gap: 14px;
}

.field-label {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 0.88rem;
    color: var(--muted);
}

input,
select {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 16px;
    background: rgba(4, 7, 13, 0.86);
    color: var(--text);
    font: inherit;
}

input:focus,
select:focus {
    outline: 2px solid transparent;
    border-color: rgba(98, 180, 255, 0.45);
    box-shadow: 0 0 0 4px rgba(98, 180, 255, 0.12);
}

.flash-stack {
    flex-direction: column;
    align-items: stretch;
}

.flash {
    padding: 15px 18px;
    border-radius: 18px;
    border: 1px solid var(--line);
}

.flash-success {
    background: rgba(32, 214, 143, 0.12);
    border-color: rgba(32, 214, 143, 0.28);
}

.flash-error {
    background: rgba(255, 102, 125, 0.12);
    border-color: rgba(255, 102, 125, 0.28);
}

.flash-info {
    background: rgba(98, 180, 255, 0.12);
    border-color: rgba(98, 180, 255, 0.28);
}

.auth-shell {
    display: flex;
    justify-content: center;
    padding: 40px 0;
}

.auth-card {
    width: min(560px, 100%);
}

.alert-card {
    background:
        linear-gradient(135deg, rgba(255, 33, 76, 0.14), rgba(98, 180, 255, 0.08)),
        var(--panel-strong);
}

.key-value {
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.92rem;
    line-height: 1.6;
    word-break: break-all;
    color: #ffd7df;
}

.copy-row {
    align-items: flex-start;
}

.copy-row-tight {
    align-items: center;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 700;
}

.status-success {
    background: rgba(32, 214, 143, 0.14);
    color: #8bf2c5;
}

.status-danger {
    background: rgba(255, 102, 125, 0.14);
    color: #ffb9c4;
}

.status-warning {
    background: rgba(255, 200, 87, 0.14);
    color: #ffd884;
}

.status-muted {
    background: rgba(255, 255, 255, 0.08);
    color: var(--muted);
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    min-width: 960px;
    border-collapse: collapse;
}

thead th {
    padding: 0 12px 14px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: left;
}

tbody td {
    padding: 16px 12px;
    border-top: 1px solid var(--line);
    vertical-align: top;
}

tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.empty-state {
    padding: 16px 0 4px;
    color: var(--muted);
}

.section-heading {
    justify-content: space-between;
    margin-bottom: 10px;
}

.text-link {
    color: var(--blue);
    font-weight: 700;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 26px;
    color: var(--muted);
    font-size: 0.92rem;
}

@keyframes rise-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 980px) {
    .site-header,
    .hero-panel,
    .dashboard-hero,
    .grid-two,
    .site-footer {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: flex-start;
    }

    .page-shell {
        width: min(100% - 24px, 1320px);
    }

    .panel {
        padding: 22px;
        border-radius: 24px;
    }

    h1 {
        font-size: clamp(2rem, 8vw, 3rem);
    }
}

@media (max-width: 640px) {
    body::before {
        background-size: 38px 38px;
    }

    .hero-actions,
    .copy-row,
    .section-heading,
    .top-nav {
        width: 100%;
    }

    .button,
    .button-ghost {
        width: 100%;
    }

    .inline-form {
        width: 100%;
    }

    table {
        min-width: 780px;
    }
}