:root {
    --bg: #f6f8fb;
    --paper: #ffffff;
    --ink: #111827;
    --muted: #667085;
    --line: #dbe2ea;
    --line-soft: #e9edf3;
    --accent: #1e6bff;
    --green: #0f9f6e;
    --red: #c2413d;
    --shadow: 0 20px 60px rgba(24, 39, 75, .10);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    overflow-x: hidden;
    background:
        linear-gradient(180deg, #fff 0, var(--bg) 420px),
        var(--bg);
}

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

button,
input {
    font: inherit;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px clamp(20px, 4vw, 56px);
    border-bottom: 1px solid rgba(219, 226, 234, .78);
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(18px);
}

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

.brand-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 8px;
    color: #fff;
    background: #111827;
    font-size: 13px;
    font-weight: 800;
}

.brand strong,
.brand small {
    display: block;
}

.brand strong {
    font-size: 15px;
}

.brand small {
    color: var(--muted);
    font-size: 12px;
}

nav {
    display: flex;
    align-items: center;
    gap: 18px;
    color: #475467;
    font-size: 14px;
    font-weight: 650;
}

.button,
button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid #111827;
    border-radius: 8px;
    color: #fff;
    background: #111827;
    font-size: 14px;
    font-weight: 750;
    cursor: pointer;
}

.button.small,
button.small {
    min-height: 34px;
    padding: 0 13px;
    font-size: 13px;
}

.button.ghost {
    color: #111827;
    background: #fff;
    border-color: var(--line);
}

button:disabled {
    cursor: not-allowed;
    opacity: .55;
}

.notice {
    max-width: 1180px;
    margin: 18px auto 0;
    padding: 12px 16px;
    border: 1px solid #b7ebd4;
    border-radius: 8px;
    color: #075e45;
    background: #e9fff5;
    font-weight: 650;
}

.notice.error {
    border-color: #ffd1d1;
    color: #9f1d1d;
    background: #fff1f1;
}

main {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) 390px;
    gap: 42px;
    align-items: stretch;
    min-height: calc(100svh - 80px);
    padding: 58px 0 42px;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    width: 100%;
}

.hero h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(44px, 7vw, 86px);
    line-height: .96;
    letter-spacing: 0;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}

.hero p {
    max-width: 640px;
    margin: 26px 0 0;
    color: #4b5565;
    font-size: 19px;
    line-height: 1.65;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}

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

.account-card {
    align-self: center;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    box-shadow: var(--shadow);
}

.card-top {
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line-soft);
}

.card-top span,
.tool-card span,
.panel-heading span,
.metric-grid span,
.dashboard-preview span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.card-top strong {
    display: block;
    margin-top: 6px;
    font-size: 24px;
}

.credit-ring {
    display: grid;
    width: 190px;
    height: 190px;
    place-items: center;
    margin: 30px auto;
    border: 18px solid #e7edf8;
    border-top-color: #1e6bff;
    border-right-color: #f26a3d;
    border-radius: 999px;
    text-align: center;
}

.credit-ring span,
.credit-ring strong {
    display: block;
}

.credit-ring span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.credit-ring strong {
    font-size: 18px;
}

.account-card ul {
    display: grid;
    gap: 12px;
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
    color: #46505f;
}

.account-card li {
    padding-left: 18px;
    position: relative;
}

.account-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .65em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #111827;
}

.account-card a {
    color: #1e6bff;
    font-weight: 800;
}

.section-title {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 22px;
}

.section-title h1,
.section-title h2 {
    margin: 0;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.05;
}

.section-title p {
    max-width: 520px;
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.tools-section,
.preview-admin {
    padding: 42px 0 64px;
}

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

.tool-card {
    min-height: 260px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
}

.tool-icon {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    margin-bottom: 24px;
    border-radius: 8px;
    color: #fff;
    background: var(--accent);
    font-weight: 850;
}

.tool-card h3 {
    margin: 8px 0;
    font-size: 26px;
}

.tool-card p {
    min-height: 76px;
    color: #566273;
    line-height: 1.55;
}

.tool-card div:last-child {
    display: flex;
    align-items: center;
    gap: 14px;
}

.tool-card div:last-child a:not(.button) {
    color: #475467;
    font-weight: 750;
}

.preview-admin {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 28px;
    align-items: center;
}

.preview-admin h2 {
    margin: 0;
    font-size: clamp(30px, 4vw, 50px);
    line-height: 1.05;
}

.preview-admin p {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.65;
}

.dashboard-preview,
.metric-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.dashboard-preview div,
.metric-grid article,
.panel,
.login-panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
}

.dashboard-preview div {
    min-height: 150px;
    padding: 20px;
}

.dashboard-preview strong,
.metric-grid strong {
    display: block;
    margin-top: 12px;
    font-size: 27px;
}

.admin-shell {
    display: grid;
    width: min(1380px, calc(100% - 40px));
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 22px;
    padding: 24px 0 56px;
}

.login-panel {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    align-items: center;
    padding: 28px;
}

.login-panel h1 {
    margin: 0;
    font-size: 44px;
}

.login-panel p {
    color: var(--muted);
    line-height: 1.6;
}

.login-form,
.login-form label {
    display: grid;
    gap: 10px;
}

.login-form label,
.credit-form input,
.delete-form input {
    color: #475467;
    font-size: 13px;
    font-weight: 750;
}

input {
    min-height: 38px;
    width: 100%;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.admin-nav {
    position: sticky;
    top: 82px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-self: start;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
}

.admin-nav strong {
    padding: 8px 10px 14px;
    border-bottom: 1px solid var(--line-soft);
}

.admin-nav a,
.admin-nav button {
    justify-content: flex-start;
    min-height: 38px;
    width: 100%;
    padding: 0 10px;
    border: 0;
    color: #344054;
    background: transparent;
    font-size: 14px;
    font-weight: 750;
    text-align: left;
}

.admin-nav a.active {
    color: #111827;
    background: #eef2f7;
    border-radius: 8px;
}

.admin-content {
    display: grid;
    gap: 18px;
}

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

.metric-grid article {
    padding: 18px;
}

.metric-grid strong {
    font-size: 26px;
}

.grid.two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.panel {
    padding: 20px;
}

.panel h2 {
    margin: 0 0 16px;
    font-size: 22px;
}

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

.panel-heading.subheading {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--line-soft);
}

.panel-heading h2 {
    margin: 0;
}

.bars {
    display: grid;
    gap: 10px;
}

.bar-row {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) 38px;
    gap: 10px;
    align-items: center;
    font-size: 13px;
}

.bar-row div {
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #eef2f7;
}

.bar-row i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #1e6bff;
}

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

.compact-list div {
    display: grid;
    gap: 3px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line-soft);
}

.compact-list span,
.compact-list small,
.muted {
    color: var(--muted);
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 920px;
}

th,
td {
    padding: 13px 10px;
    border-bottom: 1px solid var(--line-soft);
    text-align: left;
    vertical-align: top;
}

th {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
}

td small {
    display: block;
    max-width: 300px;
    margin-top: 4px;
    overflow: hidden;
    color: var(--muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.state {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.state.on {
    color: #067647;
    background: #e7f8ef;
}

.state.off {
    color: #9f1d1d;
    background: #fff1f1;
}

.state.warn {
    color: #9a5b00;
    background: #fff7df;
}

.actions {
    display: flex;
    align-items: center;
    min-width: 860px;
    gap: 8px;
    white-space: nowrap;
}

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

.actions button,
.model-card button {
    min-height: 34px;
    padding: 0 12px;
    font-size: 12px;
}

.credit-form input,
.delete-form input {
    width: 116px;
}

.file-metrics {
    margin-bottom: 18px;
}

.asset-links {
    min-width: 260px;
}

.asset-links a {
    display: inline-flex;
    margin-right: 10px;
    color: var(--accent);
    font-weight: 800;
}

.asset-links small {
    max-width: 520px;
    white-space: normal;
    overflow-wrap: anywhere;
}

.model-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.model-card {
    display: grid;
    gap: 8px;
    padding: 16px;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    background: #fbfcfe;
}

.model-card span,
.model-card small {
    color: var(--muted);
    font-size: 12px;
}

.model-card strong {
    min-height: 42px;
}

.muted-button {
    color: #344054;
    background: #eef2f7;
    border-color: #eef2f7;
}

@media (max-width: 980px) {
    nav {
        display: none;
    }

    .hero,
    .preview-admin,
    .login-panel,
    .grid.two,
    .admin-shell {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
    }

    .tools-grid,
    .metric-grid,
    .model-grid {
        grid-template-columns: 1fr 1fr;
    }

    .admin-nav {
        position: static;
    }
}

@media (max-width: 640px) {
    main,
    .admin-shell {
        width: min(100% - 28px, 1180px);
    }

    .topbar {
        padding: 14px;
    }

    .brand small {
        display: none;
    }

    .hero h1 {
        max-width: 100%;
        font-size: 38px;
        line-height: 1.08;
    }

    .hero p {
        max-width: 100%;
        font-size: 18px;
    }

    .account-card {
        width: 100%;
    }

    .tools-grid,
    .metric-grid,
    .dashboard-preview,
    .model-grid {
        grid-template-columns: 1fr;
    }

    .section-title,
    .panel-heading {
        display: block;
    }
}

/* Public landing redesign */
.hero {
    grid-template-columns: minmax(0, .95fr) minmax(460px, 1.05fr);
    gap: clamp(28px, 5vw, 70px);
    min-height: calc(100svh - 75px);
    padding: clamp(42px, 7vw, 82px) 0 46px;
}

.hero h1 {
    max-width: 780px;
    font-size: clamp(46px, 6.1vw, 84px);
    line-height: .93;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}

.hero p {
    max-width: 720px;
    color: #344054;
    font-size: 20px;
}

.hot-tools {
    display: grid;
    gap: 16px;
    align-self: center;
    min-width: 0;
    scroll-margin-top: 110px;
}

.hot-tool {
    position: relative;
    overflow: hidden;
    min-height: 250px;
    padding: 24px;
    border: 1px solid rgba(17, 24, 39, .12);
    border-radius: 8px;
    color: #111827;
    background: #fff;
    box-shadow: 0 28px 80px rgba(24, 39, 75, .13);
    min-width: 0;
}

.hot-tool::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 7px;
    background: var(--accent);
}

.tool-logo {
    display: block;
    width: min(245px, 82%);
    max-height: 80px;
    object-fit: contain;
    object-position: left center;
    margin-bottom: 18px;
}


.hot-tool p {
    max-width: 520px;
    margin: 0;
    color: #475467;
    font-size: 16px;
    line-height: 1.55;
}

.hot-tool .tool-note {
    margin-top: 10px;
    color: #1e5fd7;
    font-weight: 850;
}

.hot-tool ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0;
    padding: 0;
    list-style: none;
}

.hot-tool li,
.mini-points span {
    padding: 8px 10px;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    color: #344054;
    background: #f8fafc;
    font-size: 13px;
    font-weight: 800;
}

.tool-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.tool-links a:not(.button) {
    color: #344054;
    font-weight: 800;
}

.register-band {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(360px, 1fr);
    gap: 28px;
    align-items: center;
    scroll-margin-top: 110px;
    margin: 12px 0 70px;
    padding: 26px;
    border: 1px solid #152033;
    border-radius: 8px;
    color: #fff;
    background: #101828;
}

.register-band h2,
.register-band p {
    margin: 0;
}

.register-band h2 {
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.04;
}

.register-band p {
    margin-top: 12px;
    color: #cbd5e1;
    line-height: 1.6;
}

.signup-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    gap: 10px;
}

.signup-form input {
    min-height: 46px;
    border-color: rgba(255, 255, 255, .18);
    color: #fff;
    background: rgba(255, 255, 255, .08);
}

.signup-form input::placeholder {
    color: #aab4c4;
}

.signup-form button {
    min-height: 46px;
    color: #111827;
    background: #fff;
    border-color: #fff;
}

.visual-tools {
    display: grid;
    gap: 34px;
    padding: 18px 0 70px;
}

.visual-tool {
    display: grid;
    grid-template-columns: .88fr 1.12fr;
    gap: 28px;
    align-items: center;
    padding: clamp(22px, 4vw, 42px);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.visual-tool.reverse {
    grid-template-columns: 1.12fr .88fr;
}

.visual-tool.reverse .visual-copy {
    order: 2;
}

.section-logo {
    width: min(280px, 88%);
    max-height: 86px;
    object-fit: contain;
    object-position: left center;
}

.visual-copy h2 {
    margin: 22px 0 12px;
    font-size: clamp(34px, 5vw, 62px);
    line-height: .98;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}

.visual-copy p {
    color: #475467;
    font-size: 18px;
    line-height: 1.65;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}

.mini-points {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.visual-frame {
    overflow: hidden;
    border: 1px solid rgba(17, 24, 39, .15);
    border-radius: 8px;
    background: #111827;
    box-shadow: 0 26px 70px rgba(24, 39, 75, .18);
}

.visual-frame img {
    display: block;
    width: 100%;
    height: auto;
}

.pay-section,
.about-section {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 28px;
    align-items: start;
    scroll-margin-top: 110px;
    padding: 66px 0;
    border-top: 1px solid var(--line);
}

.pay-section h2,
.about-card h2 {
    margin: 0;
    font-size: clamp(34px, 5vw, 60px);
    line-height: 1;
}

.pay-section p,
.about-card p {
    color: #475467;
    font-size: 18px;
    line-height: 1.65;
}

.pay-grid,
.proof-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.pay-grid article,
.proof-grid article {
    min-height: 190px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.pay-grid strong,
.proof-grid strong {
    display: block;
    margin-bottom: 20px;
    font-size: 38px;
    line-height: 1;
}

.pay-grid span,
.proof-grid span,
.about-card span {
    display: block;
    color: #667085;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.pay-grid p {
    margin-bottom: 0;
    font-size: 15px;
}

.about-section {
    grid-template-columns: 1fr .82fr;
    padding-bottom: 92px;
}

.about-card {
    padding: clamp(24px, 4vw, 42px);
    border-radius: 8px;
    color: #fff;
    background: #111827;
}

.about-photo {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 7;
    object-fit: cover;
    object-position: center;
    margin: 0 0 28px;
    border-radius: 8px;
}

.about-card span {
    color: #cbd5e1;
}

.about-card p {
    color: #d7deea;
}

.about-card .button.ghost {
    color: #111827;
    border-color: #fff;
    background: #fff;
}

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

@media (max-width: 1080px) {
    .hero,
    .register-band,
    .visual-tool,
    .visual-tool.reverse,
    .pay-section,
    .about-section {
        grid-template-columns: 1fr;
    }

    .visual-tool.reverse .visual-copy {
        order: 0;
    }

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

@media (max-width: 640px) {
    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    main {
        width: 100%;
        max-width: 100%;
        padding: 0 14px;
        overflow-x: hidden;
    }

    .hero,
    .hero-copy,
    .hot-tools,
    .register-band,
    .visual-tools,
    .visual-tool,
    .pay-section,
    .about-section {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow-x: hidden;
    }

    .hero {
        padding-top: 34px;
    }

    .hero h1 {
        width: 100%;
        max-width: 100%;
        font-size: 30px;
        line-height: 1.04;
        overflow-wrap: normal;
        word-break: normal;
        hyphens: none;
    }

    .hero p,
    .visual-copy p,
    .pay-section p,
    .about-card p {
        font-size: 16px;
        width: min(100%, 330px);
        max-width: 330px;
        overflow-wrap: normal;
        word-break: normal;
        hyphens: none;
    }

    .hot-tool,
    .register-band,
    .visual-tool,
    .about-card {
        padding: 18px;
        width: 100%;
        max-width: 100%;
    }

    .hot-tool p,
    .hot-tool li,
    .tool-links,
    .mini-points,
    .mini-points span {
        max-width: 330px;
        overflow-wrap: normal;
        word-break: normal;
        hyphens: none;
    }

    .hot-tool li,
    .mini-points span {
        white-space: normal;
    }

    .pay-grid,
    .proof-grid {
        grid-template-columns: 1fr;
    }
}
