:root {
    color-scheme: dark;
    --bg: #090812;
    --panel: #141225;
    --panel-soft: #1b1830;
    --line: #322d4a;
    --text: #fbfbff;
    --muted: #aaa4c0;
    --orange: #8b5cf6;
    --orange-2: #ff6b6b;
    --cyan: #a78bfa;
    --green: #22c55e;
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

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

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

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

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

.site-body {
    background:
        radial-gradient(circle at 20% 8%, rgba(139, 92, 246, .24), transparent 28rem),
        radial-gradient(circle at 78% 18%, rgba(255, 107, 107, .12), transparent 24rem),
        var(--bg);
}

.topbar,
.footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1240px;
    margin: 0 auto;
    padding: 18px 32px;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(6, 6, 6, .78);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: 0;
}

.brand-mark {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--orange), var(--orange-2));
    color: white;
    font-weight: 900;
}

.topnav,
.top-actions,
.footer-links {
    display: flex;
    align-items: center;
    gap: 28px;
    color: var(--muted);
    font-size: 14px;
}

.top-actions {
    gap: 16px;
}

.btn {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0 24px;
    font-weight: 800;
    cursor: pointer;
}

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

.btn-light {
    border-color: white;
    background: white;
    color: #090909;
}

.btn-dark {
    background: #18191b;
    color: white;
}

.full {
    width: 100%;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(480px, 1.1fr);
    gap: 56px;
    max-width: 1240px;
    min-height: calc(100vh - 72px);
    margin: 0 auto;
    padding: 72px 32px 56px;
    align-items: center;
}

.hero-copy h1,
.page-hero h1 {
    margin: 18px 0;
    font-size: clamp(46px, 6vw, 78px);
    line-height: 1.02;
    letter-spacing: 0;
}

.hero-copy h1 {
    max-width: 720px;
}

.hero-copy p,
.page-hero p,
.split-section p {
    max-width: 680px;
    color: #c4cad6;
    font-size: 18px;
    line-height: 1.75;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border: 1px solid rgba(255, 90, 31, .45);
    border-radius: 999px;
    padding: 7px 12px;
    background: rgba(255, 90, 31, .12);
    color: #ffb087;
    font-size: 13px;
    font-weight: 800;
}

.hero-actions,
.stats-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.stats-strip span {
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 999px;
    padding: 8px 12px;
    color: var(--muted);
    font-size: 13px;
}

.hero-preview {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 18px;
    align-items: stretch;
}

.preview-main,
.preview-grid img,
.showcase-card,
.info-card,
.price-card,
.steps article,
.panel,
.metric-grid article,
.asset-card {
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: var(--radius);
    background: rgba(17, 18, 20, .86);
}

.preview-main {
    display: grid;
    min-height: 520px;
    place-items: center;
    overflow: hidden;
}

.preview-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-grid {
    display: grid;
    gap: 18px;
}

.preview-grid img {
    width: 100%;
    height: 100%;
    min-height: 160px;
    object-fit: cover;
}

.section,
.page-hero {
    max-width: 1240px;
    margin: 0 auto;
    padding: 72px 32px;
}

.section-head {
    max-width: 760px;
}

.section h2,
.page-hero h1,
.app-heading h1,
.preview-title h2 {
    margin: 14px 0;
}

.section h2 {
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.1;
}

.steps,
.cards-grid,
.price-grid,
.metric-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.steps article,
.info-card,
.price-card {
    padding: 28px;
}

.steps span {
    color: var(--cyan);
    font-weight: 900;
}

.steps h3,
.info-card h3,
.price-card h3 {
    margin: 18px 0 10px;
    font-size: 22px;
}

.steps p,
.info-card p,
.price-card p,
.muted,
.empty {
    color: var(--muted);
    line-height: 1.7;
}

.split-section,
.pricing-strip {
    display: grid;
    grid-template-columns: .85fr 1fr;
    gap: 32px;
    align-items: center;
}

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

.feature-list div {
    border-left: 3px solid var(--orange);
    background: rgba(255, 255, 255, .04);
    padding: 18px;
}

.feature-list strong,
.feature-list span {
    display: block;
}

.feature-list span {
    margin-top: 8px;
    color: var(--muted);
}

.pricing-strip {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.page-hero {
    text-align: center;
}

.page-hero .eyebrow,
.page-hero p {
    margin-left: auto;
    margin-right: auto;
}

.showcase-layout {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 24px;
}

.showcase-card {
    overflow: hidden;
}

.showcase-card.large {
    grid-row: span 2;
}

.showcase-card img {
    width: 100%;
    height: 360px;
    object-fit: cover;
}

.showcase-card.large img {
    height: 640px;
}

.showcase-card div,
.asset-card div {
    padding: 18px;
}

.showcase-card span,
.asset-card span {
    display: block;
    margin-top: 8px;
    color: var(--muted);
}

.price-card {
    position: relative;
}

.price-card.featured {
    border-color: var(--orange);
    box-shadow: 0 0 42px rgba(255, 90, 31, .18);
}

.ribbon {
    position: absolute;
    top: -13px;
    right: 26px;
    border-radius: 999px;
    padding: 7px 13px;
    background: var(--orange);
    font-size: 13px;
    font-weight: 900;
}

.price {
    margin: 18px 0;
    color: var(--orange-2);
    font-size: 42px;
    font-weight: 900;
}

.price-card ul {
    display: grid;
    gap: 12px;
    margin: 22px 0;
    padding-left: 20px;
    color: #d5dae4;
}

.footer {
    border-top: 1px solid rgba(255, 255, 255, .08);
    color: var(--muted);
}

.auth-shell {
    display: grid;
    min-height: calc(100vh - 72px);
    place-items: center;
    padding: 48px 20px;
}

.auth-card {
    display: grid;
    width: min(440px, 100%);
    gap: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(17, 18, 20, .94);
    padding: 32px;
}

.auth-card h1 {
    margin: 0;
    font-size: 34px;
}

label {
    display: grid;
    gap: 8px;
    color: #d6dae3;
    font-size: 14px;
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #17191c;
    color: white;
    padding: 13px 14px;
    outline: none;
}

textarea {
    resize: vertical;
}

.checkline {
    display: flex;
    align-items: center;
}

.checkline input {
    width: auto;
}

.alert,
.notice {
    border-radius: var(--radius);
    padding: 13px 15px;
    background: rgba(255, 90, 31, .15);
    color: #ffd2c0;
}

.notice {
    margin-bottom: 22px;
}

.app-body {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    min-height: 100vh;
    background: #070707;
}

.sidebar {
    position: sticky;
    top: 0;
    display: flex;
    height: 100vh;
    flex-direction: column;
    border-right: 1px solid var(--line);
    background: #0d0e10;
    padding: 18px 14px;
}

.app-brand {
    padding: 0 4px 28px;
}

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

.side-nav span {
    margin: 18px 10px 4px;
    color: #657084;
    font-size: 12px;
}

.side-nav a {
    border: 1px solid transparent;
    border-radius: var(--radius);
    padding: 13px 14px;
    color: #d2d7e1;
    font-weight: 800;
}

.side-nav a.active,
.side-nav a:hover {
    border-color: rgba(255, 90, 31, .55);
    background: rgba(255, 90, 31, .14);
    color: white;
}

.user-box {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 12px;
}

.avatar {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 50%;
    background: #262a30;
}

.user-box small {
    display: block;
    color: var(--muted);
}

.app-main {
    min-width: 0;
}

.app-topbar {
    display: flex;
    height: 58px;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    border-bottom: 1px solid var(--line);
    padding: 0 28px;
}

.app-topbar button {
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #15171a;
    color: white;
    padding: 8px 14px;
    cursor: pointer;
}

.pill {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 12px;
    color: #ffd2c0;
}

.app-content {
    padding: 28px;
}

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

.app-heading.compact {
    align-items: flex-start;
}

.app-heading h1 {
    font-size: 34px;
}

.metric-grid {
    margin-top: 0;
}

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

.metric-grid span {
    color: var(--muted);
}

.metric-grid strong {
    display: block;
    margin-top: 10px;
    font-size: 38px;
}

.panel-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 24px;
    margin-top: 24px;
}

.panel {
    padding: 22px;
}

.panel h2 {
    margin-top: 0;
}

.row-item {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid var(--line);
    padding: 16px 0;
}

.row-item span {
    display: block;
    margin-top: 6px;
    color: var(--muted);
}

.row-item em {
    color: var(--green);
    font-style: normal;
}

.workspace {
    display: grid;
    grid-template-columns: 430px minmax(0, 1fr);
    gap: 28px;
}

.tool-panel {
    border-right: 1px solid var(--line);
    padding-right: 28px;
}

.stack-form {
    display: grid;
    gap: 18px;
}

.upload-box {
    min-height: 154px;
    place-items: center;
    border: 1px dashed #555b66;
    border-radius: var(--radius);
    background: #141517;
    text-align: center;
}

.upload-box input {
    max-width: 240px;
}

.upload-box span {
    color: var(--muted);
    font-weight: 500;
}

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

.preview-panel {
    display: grid;
    gap: 24px;
    align-content: start;
}

.preview-title {
    text-align: center;
    padding-top: 34px;
}

.result-grid {
    display: grid;
    grid-template-columns: 1.35fr .65fr;
    gap: 16px;
}

.result-grid img {
    width: 100%;
    height: 220px;
    border-radius: var(--radius);
    object-fit: cover;
}

.result-grid .result-large {
    grid-row: span 2;
    height: 456px;
}

.asset-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
}

.asset-card {
    overflow: hidden;
}

.asset-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: white;
}

.settings-panel {
    display: grid;
    max-width: 520px;
    gap: 16px;
}

.announcement {
    border-top: 1px solid var(--line);
    padding: 18px 0;
}

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

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

    .hero,
    .split-section,
    .pricing-strip,
    .showcase-layout,
    .panel-grid,
    .workspace {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
        padding-top: 42px;
    }

    .steps,
    .cards-grid,
    .price-grid,
    .metric-grid,
    .feature-list {
        grid-template-columns: 1fr;
    }

    .app-body {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        height: auto;
    }

    .tool-panel {
        border-right: 0;
        padding-right: 0;
    }
}

@media (max-width: 640px) {
    .topbar,
    .footer,
    .section,
    .page-hero {
        padding-left: 18px;
        padding-right: 18px;
    }

    .top-actions a:first-child {
        display: none;
    }

    .hero {
        padding-left: 18px;
        padding-right: 18px;
    }

    .hero-preview,
    .result-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .preview-main {
        min-height: 340px;
    }

    .showcase-card.large img,
    .result-grid .result-large {
        height: 360px;
    }

    .app-content {
        padding: 18px;
    }

    .app-heading {
        align-items: flex-start;
        flex-direction: column;
    }
}
