:root {
    --bg: #090c10;
    --bg-elevated: #10151b;
    --bg-soft: #151b22;

    --border: rgba(255, 255, 255, 0.09);
    --border-strong: rgba(255, 255, 255, 0.15);

    --text: #f4f7f9;
    --text-secondary: #9ca8b4;

    --accent: #4ed17b;
    --accent-hover: #61dc8a;
    --accent-text: #06120a;

    --danger: #e17777;

    --max-width: 1180px;

    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--bg);
}

body {
    margin: 0;
    min-height: 100vh;

    color: var(--text);
    background:
        radial-gradient(
            circle at 75% -20%,
            rgba(78, 209, 123, 0.10),
            transparent 36rem
        ),
        var(--bg);

    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

.page-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-header {
    width: min(calc(100% - 40px), var(--max-width));
    margin: 0 auto;
    min-height: 84px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom: 1px solid var(--border);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;

    color: var(--text);
    text-decoration: none;
}

.brand-mark {
    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    border: 1px solid rgba(78, 209, 123, 0.50);
    border-radius: 10px;

    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: -0.03em;

    background: rgba(78, 209, 123, 0.07);
}

.brand-name {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 26px;

    font-size: 14px;
}

.header-nav a,
.site-footer a,
.account-topbar-actions a,
.account-footer a {
    color: var(--text-secondary);
    text-decoration: none;
}

.header-nav a:hover,
.site-footer a:hover,
.account-topbar-actions a:hover,
.account-footer a:hover {
    color: var(--text);
}

.main-content {
    width: min(calc(100% - 40px), var(--max-width));
    margin: 0 auto;
    flex: 1;
}

.hero {
    max-width: 820px;
    padding: 110px 0 92px;
}

.compact-hero {
    max-width: 760px;
}

.eyebrow {
    margin-bottom: 20px;

    color: var(--accent);
    font-size: 13px;
    font-weight: 700;

    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 850px;
    margin: 0;

    font-size: clamp(42px, 7vw, 76px);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.hero-copy {
    max-width: 700px;
    margin: 30px 0 0;

    color: var(--text-secondary);
    font-size: clamp(18px, 2vw, 21px);
    line-height: 1.6;
}

.hero-actions {
    margin-top: 38px;

    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.inline-actions {
    margin-top: 24px;
}

.button {
    min-height: 50px;
    padding: 0 22px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid transparent;
    border-radius: 10px;

    font-size: 15px;
    font-weight: 700;

    text-decoration: none;

    transition:
        background-color 120ms ease,
        border-color 120ms ease,
        transform 120ms ease;
}

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

.button-primary {
    color: var(--accent-text);
    background: var(--accent);
}

.button-primary:hover {
    background: var(--accent-hover);
}

.button-secondary {
    color: var(--text);
    border-color: var(--border-strong);
    background: var(--bg-elevated);
}

.button-secondary:hover {
    border-color: rgba(255, 255, 255, 0.25);
}

.button-disabled {
    cursor: default;
    opacity: 0.58;
}

.button-disabled:hover {
    transform: none;
}

.full-width {
    width: 100%;
}

.hero-note {
    margin: 22px 0 0;

    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;

    padding-bottom: 96px;
}

.feature-card {
    min-height: 230px;
    padding: 28px;

    border: 1px solid var(--border);
    border-radius: 18px;

    background: rgba(16, 21, 27, 0.72);
}

.feature-number {
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.10em;
}

.feature-card h2 {
    margin: 52px 0 12px;

    font-size: 24px;
    letter-spacing: -0.035em;
}

.feature-card p {
    margin: 0;

    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.65;
}

.privacy-panel {
    margin-bottom: 96px;
    padding: 34px;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;

    border: 1px solid var(--border);
    border-radius: 18px;

    background: var(--bg-elevated);
}

.privacy-panel h2 {
    margin: 0;

    font-size: 30px;
    line-height: 1.15;
    letter-spacing: -0.04em;
}

.privacy-panel p {
    margin: 0;

    color: var(--text-secondary);
    line-height: 1.7;
}

.status-card {
    margin: 40px 0 28px;
    padding: 24px;

    display: flex;
    align-items: center;
    gap: 20px;

    border: 1px solid var(--border);
    border-radius: 16px;

    background: var(--bg-elevated);
}

.compact-status-card {
    margin-top: 26px;
}

.status-card h2 {
    margin: 0 0 8px;

    font-size: 18px;
    letter-spacing: -0.025em;
}

.status-card p {
    margin: 0;

    color: var(--text-secondary);
    line-height: 1.6;
}

.status-icon {
    width: 48px;
    height: 48px;

    flex: 0 0 auto;

    display: grid;
    place-items: center;

    border-radius: 12px;

    color: var(--accent);
    background: rgba(78, 209, 123, 0.08);

    font-size: 12px;
    font-weight: 800;
}

.status-dot {
    width: 14px;
    height: 14px;

    flex: 0 0 auto;

    border-radius: 50%;
    background: var(--accent);
}

.text-link {
    color: var(--text-secondary);
    font-size: 14px;
}

.text-link:hover {
    color: var(--text);
}

.site-footer {
    width: min(calc(100% - 40px), var(--max-width));
    min-height: 100px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-top: 1px solid var(--border);

    color: var(--text-secondary);
    font-size: 13px;
}

.site-footer nav {
    display: flex;
    gap: 22px;
}

/* Auth preview */

.auth-shell {
    min-height: calc(100vh - 185px);
    padding: 76px 0 90px;

    display: grid;
    place-items: start center;
}

.auth-panel {
    width: min(100%, 520px);
    padding: 34px;

    border: 1px solid var(--border);
    border-radius: 20px;

    background: rgba(16, 21, 27, 0.82);
}

.activation-panel {
    width: min(100%, 600px);
}

.auth-panel h1 {
    margin: 0;

    font-size: clamp(38px, 6vw, 54px);
    line-height: 1;
    letter-spacing: -0.05em;
}

.auth-copy {
    margin: 22px 0 0;

    color: var(--text-secondary);
    line-height: 1.65;
}

.form-shell {
    margin-top: 32px;
}

.field-label {
    display: block;
    margin: 18px 0 8px;

    color: var(--text);
    font-size: 14px;
    font-weight: 650;
}

.text-input {
    width: 100%;
    height: 52px;
    padding: 0 15px;

    border: 1px solid var(--border-strong);
    border-radius: 10px;

    color: var(--text);
    background: var(--bg);

    font: inherit;
}

.text-input:disabled {
    opacity: 0.7;
}

.code-input {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 750;
}

.form-shell .button {
    margin-top: 22px;
}

.auth-links {
    margin-top: 26px;

    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 14px;

    font-size: 14px;
}

.auth-links a {
    color: var(--text-secondary);
}

.auth-links a:hover {
    color: var(--text);
}

/* Account application shell */

.account-page-shell {
    min-height: 100vh;
}

.account-topbar {
    min-height: 76px;
    padding: 0 30px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom: 1px solid var(--border);
    background: rgba(9, 12, 16, 0.88);
}

.account-topbar-actions {
    display: flex;
    align-items: center;
    gap: 20px;

    font-size: 14px;
}

.environment-chip,
.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 28px;
    padding: 0 10px;

    border: 1px solid var(--border);
    border-radius: 999px;

    color: var(--text-secondary);
    background: var(--bg-elevated);

    font-size: 12px;
    font-weight: 650;
}

.account-layout {
    min-height: calc(100vh - 140px);

    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
}

.account-sidebar {
    padding: 30px 20px;

    display: flex;
    flex-direction: column;

    border-right: 1px solid var(--border);
    background: rgba(16, 21, 27, 0.45);
}

.account-sidebar-heading {
    padding: 0 10px 22px;
}

.account-eyebrow {
    display: block;
    margin-bottom: 8px;
}

.account-sidebar-heading strong {
    font-size: 24px;
    letter-spacing: -0.04em;
}

.account-nav {
    display: grid;
    gap: 5px;
}

.account-nav a {
    padding: 11px 12px;

    border-radius: 9px;

    color: var(--text-secondary);
    text-decoration: none;

    font-size: 14px;
    font-weight: 600;
}

.account-nav a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.035);
}

.account-nav a.is-active {
    color: var(--text);
    background: rgba(78, 209, 123, 0.10);
    box-shadow: inset 3px 0 0 var(--accent);
}

.account-sidebar-footer {
    margin-top: auto;
    padding: 22px 10px 0;

    border-top: 1px solid var(--border);
}

.account-sidebar-footer p {
    margin: 12px 0 0;

    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.55;
}

.account-content {
    width: min(100%, 1080px);
    padding: 52px;

    align-self: start;
}

.account-page-header {
    margin-bottom: 34px;

    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.account-page-header h1 {
    margin: 0;

    font-size: clamp(38px, 5vw, 58px);
    line-height: 1;
    letter-spacing: -0.05em;
}

.account-page-header p {
    max-width: 720px;
    margin: 16px 0 0;

    color: var(--text-secondary);
    line-height: 1.65;
}

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

.account-card {
    min-height: 220px;
    padding: 26px;

    display: flex;
    flex-direction: column;

    border: 1px solid var(--border);
    border-radius: 16px;

    background: rgba(16, 21, 27, 0.72);
}

.account-card-wide {
    grid-column: 1 / -1;
}

.account-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.account-card-kicker {
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}

.account-card h2 {
    margin: 8px 0 0;

    font-size: 27px;
    letter-spacing: -0.04em;
}

.account-card p {
    margin: 18px 0 0;

    color: var(--text-secondary);
    line-height: 1.65;
}

.account-card-link {
    margin-top: auto;
    padding-top: 24px;

    color: var(--accent);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

.notice-panel {
    margin-top: 18px;
    padding: 20px 22px;

    border: 1px solid var(--border);
    border-radius: 14px;

    background: rgba(78, 209, 123, 0.04);
}

.notice-panel p {
    margin: 8px 0 0;

    color: var(--text-secondary);
    line-height: 1.6;
}

.empty-state-card {
    max-width: 700px;
    padding: 50px;

    border: 1px dashed var(--border-strong);
    border-radius: 18px;

    text-align: center;
    background: rgba(16, 21, 27, 0.45);
}

.empty-state-icon {
    width: 62px;
    height: 62px;
    margin: 0 auto 22px;

    display: grid;
    place-items: center;

    border-radius: 16px;

    color: var(--accent);
    background: rgba(78, 209, 123, 0.08);

    font-size: 14px;
    font-weight: 800;
}

.empty-state-card h2 {
    margin: 0;

    font-size: 28px;
    letter-spacing: -0.04em;
}

.empty-state-card p {
    max-width: 540px;
    margin: 14px auto 26px;

    color: var(--text-secondary);
    line-height: 1.65;
}

.settings-list {
    border: 1px solid var(--border);
    border-radius: 16px;

    overflow: hidden;
    background: rgba(16, 21, 27, 0.60);
}

.settings-row {
    padding: 24px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;

    border-bottom: 1px solid var(--border);
}

.settings-row:last-child {
    border-bottom: 0;
}

.settings-label {
    font-size: 16px;
    font-weight: 700;
}

.settings-row p {
    margin: 7px 0 0;

    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.55;
}

.danger-row .settings-label {
    color: var(--danger);
}

.account-footer {
    min-height: 64px;
    padding: 0 30px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-top: 1px solid var(--border);

    color: var(--text-secondary);
    font-size: 12px;
}

.account-footer nav {
    display: flex;
    gap: 18px;
}

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

    .account-sidebar {
        padding: 14px 20px;

        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    .account-sidebar-heading,
    .account-sidebar-footer {
        display: none;
    }

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

    .account-nav a {
        text-align: center;
    }

    .account-content {
        padding: 34px 24px 54px;
    }
}

@media (max-width: 760px) {
    .site-header {
        min-height: 72px;
    }

    .header-nav {
        gap: 16px;
    }

    .header-nav a:last-child {
        display: none;
    }

    .hero {
        padding: 72px 0 64px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        padding-bottom: 64px;
    }

    .feature-card {
        min-height: auto;
    }

    .feature-card h2 {
        margin-top: 32px;
    }

    .privacy-panel {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-bottom: 64px;
    }

    .site-footer {
        padding: 26px 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    .auth-shell {
        padding: 42px 0 64px;
    }

    .auth-panel {
        padding: 25px;
    }

    .account-topbar {
        padding: 0 18px;
    }

    .environment-chip {
        display: none;
    }

    .account-topbar-actions {
        gap: 14px;
    }

    .account-nav {
        overflow-x: auto;
        grid-template-columns: repeat(4, minmax(100px, 1fr));
    }

    .account-content {
        padding: 32px 20px 48px;
    }

    .account-page-header {
        flex-direction: column;
    }

    .account-card-grid {
        grid-template-columns: 1fr;
    }

    .account-card-wide {
        grid-column: auto;
    }

    .settings-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .account-footer {
        min-height: auto;
        padding: 22px 20px;

        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }
}
