:root {
    --bg: #1f2030;
    --panel: #2b2c42;
    --line: #4c5178;
    --text: #f5f6ff;
    --muted: #b8bcf0;
    --primary: #696cff;
    --success: #71dd37;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Segoe UI", Arial, sans-serif;
}

.topbar {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0 2rem;
    border-bottom: 1px solid var(--line);
    background: #27283b;
}

.brand {
    color: var(--text);
    font-weight: 800;
    text-decoration: none;
    font-size: 1.25rem;
}

.brand span {
    color: #4d8dff;
}

.topnav {
    display: flex;
    gap: 1rem;
}

.topnav a {
    color: var(--muted);
    font-weight: 700;
    text-decoration: none;
}

.page-shell {
    max-width: 1120px;
    margin: 0 auto;
    padding: 2rem;
}

.hero {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.eyebrow {
    color: var(--muted);
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: .08em;
    margin: 0 0 .4rem;
}

h1 {
    font-size: 2.5rem;
    margin: 0;
}

p {
    color: var(--muted);
}

.panel, .plan-card {
    border: 1px solid var(--line);
    background: var(--panel);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

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

.feature-highlight {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    border: 1px solid var(--line);
    background: #303158;
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.feature-highlight span {
    color: var(--success);
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.feature-highlight h2,
.feature-panel h2 {
    margin: .35rem 0 .5rem;
}

.feature-grid-large {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.feature-panel {
    margin-bottom: 0;
}

.usp-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.usp-list p {
    margin-bottom: 0;
}

.plan-card {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.price {
    font-size: 1.8rem;
    font-weight: 800;
}

.btn {
    border: 1px solid var(--line);
    background: #30314c;
    color: var(--text);
    border-radius: 6px;
    padding: .75rem 1rem;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
}

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

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1rem;
}

.details {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: .5rem 1rem;
}

.details dt {
    color: var(--muted);
    font-weight: 800;
}

.details dd {
    margin: 0;
}

label span {
    display: block;
    color: var(--muted);
    font-weight: 700;
    margin-bottom: .35rem;
}

input, select {
    width: 100%;
    border: 1px solid var(--line);
    background: #30314c;
    color: var(--text);
    border-radius: 6px;
    padding: .75rem;
}

.compact-form {
    max-width: 420px;
}

.wide-field {
    grid-column: 1 / -1;
}

.success {
    color: var(--success);
    font-weight: 800;
}

code {
    color: var(--text);
    overflow-wrap: anywhere;
}

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

.downloads-table th {
    color: var(--muted);
    font-size: .8rem;
    letter-spacing: .08em;
    text-align: left;
    text-transform: uppercase;
    border-bottom: 1px solid var(--line);
}

.downloads-table th,
.downloads-table td {
    padding: .85rem .6rem;
    vertical-align: middle;
}

.downloads-table tr + tr {
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.matrix-table {
    min-width: 980px;
}

.small-copy {
    font-size: .9rem;
}

@media (max-width: 1080px) {
    .panel:has(.matrix-table) {
        overflow-x: auto;
    }
}
