:root {
    --black: #080808;
    --panel: #111111;
    --panel-2: #171717;
    --line: #242424;
    --gold: #d7a94b;
    --gold-2: #f0c96c;
    --text: #ffffff;
    --muted: #a0a0a0;
    --danger: #ff6b6b;
    --success: #56d891;
    --radius: 8px;
    --shadow: 0 20px 70px rgba(0, 0, 0, .36);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--black);
    color: var(--text);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

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

img {
    max-width: 100%;
    display: block;
}

button,
input,
textarea,
select {
    font: inherit;
}

.site-body {
    background:
        radial-gradient(circle at 15% 0%, rgba(215, 169, 75, .14), transparent 32rem),
        linear-gradient(180deg, #080808 0%, #111 48%, #080808 100%);
}

.topbar,
.site-footer {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.topbar {
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(18px);
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 42px 0;
    color: var(--muted);
}

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

.footer-logo {
    width: 160px;
    height: 52px;
    object-fit: contain;
    object-position: left center;
    margin-bottom: 4px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand-logo-link {
    gap: 0;
}

.brand-logo-img {
    width: 218px;
    height: 64px;
    object-fit: contain;
    object-position: left center;
    filter: drop-shadow(0 8px 18px rgba(215, 169, 75, .16));
}

.brand-mark {
    width: 58px;
    height: 58px;
    background: #050505;
    color: var(--gold-2);
    display: grid;
    place-items: center;
    border-radius: 8px;
    font-weight: 900;
    letter-spacing: 0;
    overflow: hidden;
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

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

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

.topnav {
    display: flex;
    align-items: center;
    gap: 20px;
    color: #d7d7d7;
    font-size: 14px;
}

.topnav a {
    transition: color .2s ease, transform .2s ease;
}

.topnav a:hover {
    color: var(--text);
    transform: translateY(-1px);
}

.nav-pill,
.button,
.button-outline,
.button-soft {
    min-height: 44px;
    border-radius: 8px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    cursor: pointer;
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
    white-space: nowrap;
}

.nav-pill,
.button {
    color: #080808;
    background: linear-gradient(135deg, var(--gold-2), var(--gold));
    font-weight: 800;
}

.button-outline {
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .04);
}

.button-soft {
    color: var(--gold-2);
    background: rgba(215, 169, 75, .12);
    border: 1px solid rgba(215, 169, 75, .25);
}

.button:hover,
.button-outline:hover,
.button-soft:hover,
.nav-pill:hover {
    transform: translateY(-2px);
}

.nav-toggle,
.icon-button {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, .14);
    color: var(--text);
    background: rgba(255, 255, 255, .05);
    cursor: pointer;
}

.hero,
.section {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.hero {
    min-height: calc(100vh - 84px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(330px, 520px);
    gap: 48px;
    align-items: center;
    padding: 44px 0 90px;
}

.eyebrow {
    color: var(--gold-2);
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
}

.hero h1,
.section-title h2 {
    margin: 14px 0 16px;
    line-height: 1;
}

.hero h1 {
    font-size: clamp(48px, 7vw, 86px);
    max-width: 760px;
}

.hero p,
.section-title p {
    color: #c9c9c9;
    font-size: 18px;
    max-width: 640px;
}

.hero-actions,
.form-actions,
.row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.hero-actions {
    margin-top: 28px;
}

.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
    color: #dcdcdc;
}

.trust-row span {
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .04);
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 13px;
}

.hero-visual {
    min-height: 560px;
    position: relative;
    display: grid;
    place-items: center;
}

.mock-card {
    position: absolute;
    width: min(86%, 430px);
    aspect-ratio: 1.62 / 1;
    border-radius: 18px;
    padding: 28px;
    background: linear-gradient(135deg, #171717, #050505);
    border: 1px solid rgba(240, 201, 108, .32);
    box-shadow: var(--shadow);
    transform: rotate(-8deg) translate(-50px, -88px);
}

.mock-card::after {
    content: "";
    position: absolute;
    inset: 14px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 14px;
    pointer-events: none;
}

.mock-card-logo {
    width: min(100%, 280px);
    height: 120px;
    object-fit: contain;
    object-position: left center;
    margin-bottom: 34px;
}

.mock-card span {
    color: var(--muted);
}

.mock-phone {
    width: min(82%, 330px);
    min-height: 580px;
    border-radius: 38px;
    padding: 16px;
    background: #050505;
    border: 1px solid #303030;
    box-shadow: var(--shadow);
    transform: translate(64px, 32px);
}

.phone-screen {
    min-height: 548px;
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(215, 169, 75, .18), transparent 34%),
        #111;
    border: 1px solid #202020;
    padding: 22px;
    overflow: hidden;
}

.profile-avatar,
.avatar {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-2));
    display: grid;
    place-items: center;
    color: #080808;
    font-size: 34px;
    font-weight: 900;
    overflow: hidden;
}

.profile-avatar img,
.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.phone-screen h3 {
    margin: 18px 0 2px;
    font-size: 28px;
}

.phone-screen p {
    color: #cfcfcf;
    margin: 0 0 18px;
}

.mini-action {
    display: block;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .06);
    padding: 12px;
    border-radius: 8px;
    margin-top: 10px;
}

.section {
    padding: 92px 0;
}

.section-title {
    margin-bottom: 30px;
}

.section-title h2 {
    font-size: clamp(32px, 4vw, 54px);
}

.grid-4,
.grid-3,
.grid-2,
.metrics-grid {
    display: grid;
    gap: 16px;
}

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

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

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

.feature-card,
.plan-card,
.panel-card,
.metric-card,
.profile-card,
.auth-card,
.form-card {
    background: rgba(17, 17, 17, .86);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: var(--radius);
    box-shadow: 0 14px 40px rgba(0, 0, 0, .18);
}

.feature-card,
.plan-card,
.panel-card,
.metric-card,
.form-card {
    padding: 22px;
}

.feature-card strong {
    display: block;
    font-size: 18px;
    margin-bottom: 8px;
}

.feature-card p,
.plan-card p,
.panel-muted,
.muted {
    color: var(--muted);
}

.plan-card {
    position: relative;
}

.plan-card.highlight {
    border-color: rgba(240, 201, 108, .55);
    background: linear-gradient(180deg, rgba(215, 169, 75, .12), rgba(17, 17, 17, .9));
}

.price {
    font-size: 32px;
    margin: 12px 0;
    font-weight: 900;
}

.plan-card ul,
.clean-list {
    list-style: none;
    padding: 0;
    margin: 18px 0;
    display: grid;
    gap: 10px;
    color: #dddddd;
}

.plan-card li::before,
.clean-list li::before {
    content: "✓";
    color: var(--gold-2);
    margin-right: 8px;
}

.industries {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.industries span {
    padding: 10px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    color: #e8e8e8;
}

.faq-list {
    display: grid;
    gap: 10px;
}

.faq-list details {
    background: rgba(17, 17, 17, .86);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: var(--radius);
    padding: 18px 20px;
}

.faq-list summary {
    cursor: pointer;
    font-weight: 800;
}

.faq-list p {
    color: var(--muted);
    margin-bottom: 0;
}

.order-band {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(300px, 1fr);
    gap: 24px;
    align-items: start;
}

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

.field,
.field-full {
    display: grid;
    gap: 7px;
}

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

label {
    font-size: 13px;
    color: #d8d8d8;
    font-weight: 700;
}

input,
textarea,
select {
    width: 100%;
    color: var(--text);
    background: #0b0b0b;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 8px;
    padding: 12px 13px;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

input:focus,
textarea:focus,
select:focus {
    border-color: rgba(240, 201, 108, .7);
    box-shadow: 0 0 0 3px rgba(215, 169, 75, .12);
}

textarea {
    min-height: 110px;
    resize: vertical;
}

.alert {
    padding: 14px 16px;
    border-radius: 8px;
    margin: 16px 0;
    border: 1px solid rgba(255, 255, 255, .12);
}

.alert.success {
    background: rgba(86, 216, 145, .1);
    color: #bdf7d4;
    border-color: rgba(86, 216, 145, .24);
}

.alert.error {
    background: rgba(255, 107, 107, .1);
    color: #ffd0d0;
    border-color: rgba(255, 107, 107, .24);
}

.auth-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at 50% 0%, rgba(215, 169, 75, .16), transparent 34rem),
        #080808;
}

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

.auth-brand {
    margin-bottom: 18px;
}

.auth-brand .brand-logo-img {
    width: 230px;
    height: 80px;
}

.auth-card {
    padding: 26px;
}

.auth-card h1 {
    margin: 0 0 8px;
}

.panel-body {
    background: #080808;
}

.panel-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 278px minmax(0, 1fr);
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 24px;
    border-right: 1px solid rgba(255, 255, 255, .09);
    background: #0d0d0d;
    display: flex;
    flex-direction: column;
}

.sidebar-brand {
    margin-bottom: 28px;
}

.sidebar-brand .brand-logo-img {
    width: 198px;
    height: 70px;
}

.side-nav {
    display: grid;
    gap: 8px;
}

.side-nav a {
    padding: 12px 13px;
    border-radius: 8px;
    color: #d2d2d2;
    transition: background .2s ease, color .2s ease;
}

.side-nav a.active,
.side-nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, .07);
}

.sidebar-foot {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, .09);
    display: grid;
    gap: 8px;
    color: var(--muted);
}

.sidebar-foot a {
    color: var(--gold-2);
}

.panel-main {
    padding: 28px;
    min-width: 0;
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 22px;
}

.panel-header h1 {
    margin: 4px 0 0;
    font-size: clamp(28px, 4vw, 42px);
}

.metrics-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 18px;
}

.metric-card span,
.metric-card small {
    color: var(--muted);
}

.metric-card strong {
    display: block;
    font-size: 34px;
    margin: 6px 0;
}

.panel-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .42fr);
    gap: 18px;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: var(--radius);
}

table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    background: rgba(17, 17, 17, .78);
}

th,
td {
    text-align: left;
    padding: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    vertical-align: top;
}

th {
    color: #cfcfcf;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0;
}

tr:last-child td {
    border-bottom: 0;
}

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    color: #ededed;
    font-size: 12px;
    font-weight: 800;
}

.badge.gold {
    color: #080808;
    background: var(--gold-2);
}

.badge.red {
    color: #ffd6d6;
    background: rgba(255, 107, 107, .14);
}

.badge.green {
    color: #c9ffdd;
    background: rgba(86, 216, 145, .14);
}

.inline-form {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    margin: 2px;
}

.inline-form select {
    min-width: 150px;
}

.link-button,
.danger-button {
    border: 0;
    background: transparent;
    padding: 0;
    color: var(--gold-2);
    cursor: pointer;
    font-weight: 800;
}

.danger-button {
    color: var(--danger);
}

.profile-page {
    min-height: 100vh;
    display: grid;
    place-items: start center;
    padding: 26px 16px 44px;
    background: var(--profile-bg, #080808);
}

.profile-card {
    width: min(100%, 520px);
    padding: 18px;
    overflow: hidden;
}

.profile-cover {
    min-height: 170px;
    border-radius: 8px;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--profile-primary, #d7a94b) 42%, transparent), transparent),
        #151515;
    position: relative;
    padding: 18px;
}

.profile-logo {
    width: 58px;
    height: 58px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    overflow: hidden;
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 900;
}

.profile-main {
    padding: 0 8px 10px;
}

.profile-main .profile-avatar {
    margin-top: -42px;
    border: 5px solid #111;
}

.profile-main h1 {
    margin: 14px 0 4px;
    font-size: 34px;
    line-height: 1;
}

.profile-main p {
    color: #cdcdcd;
}

.profile-actions {
    display: grid;
    gap: 10px;
    margin: 20px 0;
}

.profile-actions a {
    min-height: 48px;
    border-radius: 8px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
}

.profile-actions a.primary {
    background: var(--profile-primary, #d7a94b);
    color: #080808;
    font-weight: 900;
}

.inactive-card {
    width: min(100%, 460px);
    margin: 15vh auto 0;
    text-align: center;
    padding: 28px;
}

.qr-box {
    background: #fff;
    display: inline-block;
    padding: 10px;
    border-radius: 8px;
}

.qr-box img {
    width: 180px;
    height: 180px;
}

.checklist {
    display: grid;
    gap: 8px;
}

.checkline {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #e7e7e7;
}

.checkline input {
    width: 18px;
    height: 18px;
}

.mini-chart {
    display: flex;
    gap: 4px;
    height: 110px;
    align-items: end;
    padding-top: 12px;
}

.mini-chart span {
    flex: 1;
    min-width: 8px;
    background: linear-gradient(180deg, var(--gold-2), var(--gold));
    border-radius: 4px 4px 0 0;
}

.empty-state {
    padding: 28px;
    text-align: center;
    color: var(--muted);
    border: 1px dashed rgba(255, 255, 255, .18);
    border-radius: var(--radius);
}

@media (max-width: 980px) {
    .grid-4,
    .grid-3,
    .metrics-grid,
    .panel-grid,
    .order-band,
    .hero {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 18px;
    }

    .hero-visual {
        min-height: 520px;
    }

    .mock-phone {
        transform: translate(26px, 40px);
    }

    .mock-card {
        transform: rotate(-7deg) translate(-28px, -92px);
    }

    .panel-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        width: min(86vw, 300px);
        transform: translateX(-105%);
        transition: transform .2s ease;
        z-index: 40;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .icon-button {
        display: grid;
        place-items: center;
    }
}

@media (max-width: 760px) {
    .brand-logo-img {
        width: 164px;
        height: 54px;
    }

    .auth-brand .brand-logo-img,
    .sidebar-brand .brand-logo-img {
        width: 188px;
        height: 66px;
    }

    .site-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .topnav {
        position: fixed;
        inset: 76px 16px auto 16px;
        display: none;
        padding: 16px;
        background: rgba(17, 17, 17, .98);
        border: 1px solid rgba(255, 255, 255, .1);
        border-radius: var(--radius);
        flex-direction: column;
        align-items: stretch;
    }

    .topnav.open {
        display: flex;
    }

    .nav-toggle {
        display: grid;
        place-items: center;
    }

    .hero h1 {
        font-size: 44px;
    }

    .hero-visual {
        min-height: 470px;
    }

    .mock-phone {
        width: min(86%, 290px);
        min-height: 510px;
        transform: translate(20px, 28px);
    }

    .phone-screen {
        min-height: 478px;
    }

    .mock-card {
        width: min(88%, 340px);
        padding: 22px;
        transform: rotate(-7deg) translate(-18px, -78px);
    }

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

    .panel-main {
        padding: 18px;
    }

    .profile-page {
        padding: 14px 10px 30px;
    }
}
