:root {
    color-scheme: light;
    --bg: #f4f7fb;
    --surface: #ffffff;
    --surface-soft: #eef6f8;
    --ink: #10202b;
    --muted: #607080;
    --line: #d9e2ea;
    --brand: #0f6d7f;
    --brand-2: #1f9a8a;
    --brand-dark: #083947;
    --warm: #f6b04f;
    --danger: #b83030;
    --shadow: 0 22px 55px rgba(16, 32, 43, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--ink);
    font-family: Inter, Arial, Helvetica, sans-serif;
}

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid rgba(217, 226, 234, 0.9);
    backdrop-filter: blur(16px);
}

.nav-shell {
    width: min(1180px, calc(100% - 40px));
    min-height: 74px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand,
.nav-menu,
.account-pill,
.btn,
.app-meta,
.live-dot {
    display: inline-flex;
    align-items: center;
}

.brand {
    gap: 10px;
    font-weight: 800;
    font-size: 19px;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #ffffff;
}

.nav-menu {
    justify-content: flex-end;
    gap: 10px;
}

.nav-link {
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--muted);
    font-weight: 600;
}

.nav-link:hover,
.nav-link.is-active {
    background: var(--surface-soft);
    color: var(--brand-dark);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    padding: 9px;
}

.nav-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--ink);
}

.account-pill {
    gap: 10px;
    padding: 8px 12px;
    border: 1px solid #bfe0e6;
    border-radius: 8px;
    background: #edf9fb;
    color: var(--brand-dark);
}

.account-pill span {
    font-weight: 700;
}

.account-pill strong {
    font-size: 13px;
}

.btn {
    min-height: 42px;
    justify-content: center;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 0 16px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

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

.btn-primary {
    background: var(--brand);
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 109, 127, 0.22);
}

.btn-light {
    border-color: var(--line);
    background: var(--surface);
    color: var(--ink);
}

.btn-glass {
    border-color: rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

.btn-lg {
    min-height: 48px;
    padding: 0 22px;
}

.btn-full {
    width: 100%;
}

.hero-section {
    position: relative;
    min-height: calc(100vh - 74px);
    display: grid;
    align-items: center;
    overflow: hidden;
    color: #ffffff;
}

.hero-bg,
.hero-overlay {
    position: absolute;
    inset: 0;
}

.hero-bg {
    background-size: cover;
    background-position: center;
    transform: scale(1.02);
}

.hero-overlay {
    background:
        linear-gradient(90deg, rgba(7, 30, 42, 0.92), rgba(7, 30, 42, 0.70) 46%, rgba(7, 30, 42, 0.42)),
        linear-gradient(180deg, rgba(7, 30, 42, 0.15), rgba(7, 30, 42, 0.65));
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.72fr);
    gap: 42px;
    align-items: center;
    padding: 72px 0;
}

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

.eyebrow,
.section-kicker {
    display: inline-flex;
    margin-bottom: 14px;
    color: var(--warm);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
}

h1,
h2,
h3,
p {
    margin: 0;
    letter-spacing: 0;
}

h1 {
    font-size: clamp(42px, 6vw, 76px);
    line-height: 0.98;
}

h2 {
    font-size: 24px;
    line-height: 1.2;
}

h3 {
    font-size: 19px;
}

p {
    color: var(--muted);
    line-height: 1.7;
}

.hero-copy p {
    max-width: 680px;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 18px;
}

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

.dashboard-card,
.auth-card,
.feature-item,
.app-card,
.endpoint-panel {
    border: 1px solid rgba(217, 226, 234, 0.92);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.dashboard-card {
    padding: 28px;
    color: var(--ink);
}

.card-header-row,
.app-top,
.split-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.live-dot {
    padding: 7px 10px;
    border-radius: 8px;
    background: #e8f7ee;
    color: #15703b;
    font-size: 12px;
    font-weight: 800;
}

.balance-box {
    margin-top: 26px;
    padding: 24px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--brand-dark), var(--brand));
    color: #ffffff;
}

.balance-box span,
.mini-grid span,
.endpoint-panel span {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.balance-box span {
    color: rgba(255, 255, 255, 0.74);
}

.balance-box strong {
    display: block;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.1;
}

.mini-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 14px;
}

.mini-grid div {
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fbfd;
}

.mini-grid strong {
    display: block;
    overflow-wrap: anywhere;
    font-size: 13px;
}

.empty-state {
    margin-top: 26px;
    padding: 28px;
    border-radius: 8px;
    background: #f8fbfd;
    text-align: center;
}

.empty-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 14px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--surface-soft);
    color: var(--brand);
    font-size: 30px;
    font-weight: 800;
}

.empty-state p {
    margin-top: 8px;
}

.feature-band {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    padding: 46px 0;
}

.feature-item {
    padding: 24px;
    box-shadow: none;
}

.feature-number {
    display: inline-flex;
    margin-bottom: 24px;
    color: var(--brand);
    font-weight: 800;
}

.feature-item p {
    margin-top: 10px;
}

.auth-page {
    min-height: calc(100vh - 74px);
    display: grid;
    align-items: center;
    padding: 56px 0;
    background:
        linear-gradient(135deg, rgba(15, 109, 127, 0.11), transparent 34%),
        linear-gradient(315deg, rgba(246, 176, 79, 0.18), transparent 36%),
        var(--bg);
}

.auth-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
    gap: 40px;
    align-items: center;
}

.auth-copy h1 {
    max-width: 680px;
    color: var(--ink);
}

.auth-copy p {
    max-width: 580px;
    margin-top: 18px;
    font-size: 17px;
}

.endpoint-panel {
    width: min(520px, 100%);
    margin-top: 26px;
    padding: 18px;
    box-shadow: none;
}

.endpoint-panel strong {
    overflow-wrap: anywhere;
}

.auth-card {
    padding: 30px;
}

.field {
    display: grid;
    gap: 8px;
    margin-top: 18px;
}

.field span {
    color: var(--ink);
    font-weight: 700;
}

.field input {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfcfd;
    padding: 0 14px;
    color: var(--ink);
    outline: none;
}

.field input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(15, 109, 127, 0.12);
}

.password-wrap {
    position: relative;
}

.password-wrap input {
    padding-right: 86px;
}

.password-toggle {
    position: absolute;
    top: 7px;
    right: 7px;
    min-height: 34px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--brand-dark);
    font-weight: 700;
    cursor: pointer;
}

.auth-card .btn-full {
    margin-top: 22px;
}

.form-switch {
    margin-top: 18px;
    text-align: center;
}

.form-switch a {
    color: var(--brand);
    font-weight: 800;
}

.downloads-hero {
    padding: 62px 0 34px;
    background: #eaf3f6;
}

.split-heading h1 {
    color: var(--ink);
}

.split-heading p {
    width: min(470px, 100%);
    padding-top: 32px;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    padding: 34px 0 64px;
}

.app-card {
    min-height: 340px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 22px;
    padding: 26px;
    box-shadow: none;
}

.app-card:hover {
    border-color: #acd5dc;
    box-shadow: var(--shadow);
}

.app-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--surface-soft);
    color: var(--brand-dark);
    font-size: 24px;
    font-weight: 800;
}

.status {
    padding: 8px 10px;
    border-radius: 8px;
    background: #fff6de;
    color: #7b5813;
    font-size: 12px;
    font-weight: 800;
}

.log-window {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 20px;
    border-radius: 12px;
    overflow-x: auto;
    font-family: Consolas, "Courier New", monospace;
    white-space: pre-wrap;
    font-size: 17px;
    line-height: 1.6;
}

.statuss {
    padding: 8px 10px;
    border-radius: 8px;
    background: #e4ffde;
    color: #187b13;
    font-size: 12px;
    font-weight: 800;
}

.inactive {
    background: #d1d5db;
    color: #6b7280;
    border: 1px solid #cbd5e1;
    cursor: not-allowed;
    opacity: 0.7;
    pointer-events: none;
}

.inactive:hover {
    transform: none;
    box-shadow: none;
}

.app-card p {
    margin-top: 10px;
}

.app-meta {
    flex-wrap: wrap;
    gap: 8px;
}

.app-meta span {
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.payment-page {
    min-height: calc(100vh - 74px);
    padding: 22px 0 46px;
    background: #ffffff;
}

.product-shell {
    width: min(1340px, calc(100% - 44px));
}

.product-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #7c8797;
    font-size: 14px;
}

.product-breadcrumb a,
.product-breadcrumb span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.product-breadcrumb span::before {
    content: ">";
    color: #aab2bf;
}

.product-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 22px;
    margin-top: 20px;
}

.product-title-row h1 {
    color: #071526;
    font-size: clamp(30px, 3vw, 42px);
    line-height: 1.12;
}

.product-rating {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    color: #7c8797;
    font-size: 15px;
}

.stars {
    color: #ffa319;
    letter-spacing: 1px;
}

.product-rating a {
    color: #63708a;
    text-decoration: underline;
}

.product-chip {
    padding: 9px 13px;
    border-radius: 8px;
    background: #fff1cc;
    color: #7c5300;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.product-layout {
    display: grid;
    grid-template-columns: 64px minmax(330px, 1.08fr) minmax(290px, 0.78fr) minmax(330px, 386px);
    gap: 18px;
    align-items: start;
    margin-top: 26px;
}

.product-gallery {
    display: grid;
    gap: 12px;
}

.thumb {
    width: 64px;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border: 1px solid transparent;
    border-radius: 8px;
    background: #f0f2f5;
    color: var(--brand-dark);
    font-weight: 800;
}

.thumb.is-active {
    border-color: #111827;
    background: #ffffff;
}

.product-preview {
    min-height: 540px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.72), transparent 42%),
        #eef0f2;
    overflow: hidden;
}

.product-card-art {
    width: min(74%, 360px);
    aspect-ratio: 0.72;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 28px;
    border-radius: 22px;
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.16), transparent 38%),
        linear-gradient(135deg, #083947, #0f6d7f 54%, #1f9a8a);
    color: #ffffff;
    box-shadow: 0 30px 80px rgba(8, 57, 71, 0.28);
    transform: rotate(-3deg);
}

.art-top span,
.art-footer span {
    display: block;
    color: rgba(255, 255, 255, 0.74);
    font-size: 14px;
    font-weight: 700;
}

.art-top strong {
    display: block;
    margin-top: 4px;
    font-size: clamp(30px, 5vw, 48px);
    line-height: 1;
}

.art-screen {
    display: grid;
    gap: 12px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.14);
}

.art-screen span {
    height: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
}

.art-screen span:nth-child(2) {
    width: 74%;
}

.art-screen span:nth-child(3) {
    width: 48%;
}

.art-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

.art-footer strong {
    font-size: 34px;
    line-height: 1;
}

.product-details {
    padding: 6px 4px;
}

.product-details h2 {
    color: #071526;
    font-size: clamp(30px, 3vw, 42px);
}

.product-details p {
    margin-top: 14px;
    font-size: 16px;
}

.product-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.product-options span {
    padding: 10px 12px;
    border: 1px solid #dfe4ea;
    border-radius: 10px;
    background: #ffffff;
    font-size: 14px;
    font-weight: 800;
}

.product-note {
    display: grid;
    gap: 6px;
    margin-top: 26px;
    padding: 16px;
    border-radius: 12px;
    background: #f5f8fb;
}

.product-note strong {
    color: #071526;
}

.product-note span {
    color: var(--muted);
    line-height: 1.55;
}

.checkout-card {
    padding: 20px;
    border: 1px solid #d8dee7;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: none;
}

.checkout-price strong {
    display: block;
    margin-top: 8px;
    color: #7a3cff;
    font-size: clamp(34px, 4vw, 42px);
    line-height: 1;
}

.checkout-price span,
.checkout-price small {
    color: #111827;
    font-size: 14px;
    font-weight: 700;
}

.checkout-price small {
    display: block;
    margin-top: 8px;
    color: var(--muted);
}

.quantity-label {
    display: block;
    margin-top: 22px;
    color: #111827;
    font-weight: 800;
}

.quantity-control {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    gap: 10px;
    margin-top: 10px;
}

.quantity-control button,
.quantity-control input {
    min-height: 46px;
    border: 1px solid #d8dee7;
    border-radius: 12px;
    background: #ffffff;
    color: #071526;
}

.quantity-control button {
    font-size: 22px;
    font-weight: 800;
    cursor: pointer;
}

.quantity-control button:hover {
    border-color: #111827;
}

.quantity-control input {
    width: 100%;
    padding: 0 12px;
    text-align: center;
    font-size: 18px;
    font-weight: 800;
    outline: none;
}

.checkout-summary {
    display: grid;
    gap: 10px;
    margin: 18px 0;
    padding: 14px;
    border-radius: 12px;
    background: #f1f3f6;
}

.checkout-summary div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.checkout-summary span {
    color: #6b7280;
    font-size: 14px;
    font-weight: 700;
}

.checkout-summary strong {
    color: #071526;
    font-size: 17px;
}

.checkout-card .btn-primary {
    border-radius: 12px;
    background: linear-gradient(135deg, #8a00ff, #6b00f5);
    box-shadow: none;
}

.checkout-benefits {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.checkout-benefits div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkout-benefits p {
    color: #111827;
    font-size: 14px;
}

.check-mark {
    min-width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #dff8e8;
    color: #15703b;
    font-size: 12px;
    font-weight: 900;
}

.payment-endpoint {
    width: 100%;
    margin-top: 18px;
    padding: 14px;
    border-radius: 12px;
    background: #fafbfc;
}

.toast-stack {
    position: fixed;
    top: 88px;
    right: 20px;
    z-index: 50;
    display: grid;
    gap: 10px;
}

.toast-message,
.site-toast {
    max-width: min(380px, calc(100vw - 40px));
    padding: 13px 16px;
    border: 1px solid #f0c8c8;
    border-radius: 8px;
    background: #fff4f4;
    color: var(--danger);
    box-shadow: var(--shadow);
    font-weight: 700;
}

.site-toast {
    border-color: #bfdee4;
    background: #effbfe;
    color: var(--brand-dark);
}

@media (max-width: 900px) {
    .nav-toggle {
        display: block;
    }

    .nav-shell {
        min-height: 68px;
        flex-wrap: wrap;
    }

    .nav-menu {
        width: 100%;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 0 0 14px;
    }

    .nav-menu.is-open {
        display: flex;
    }

    .nav-menu .btn,
    .nav-menu form,
    .account-pill {
        width: 100%;
    }

    .hero-grid,
    .auth-grid,
    .feature-band,
    .apps-grid {
        grid-template-columns: 1fr;
    }

    .product-layout {
        grid-template-columns: 74px minmax(0, 1fr);
    }

    .product-details,
    .checkout-card {
        grid-column: 1 / -1;
    }

    .product-preview {
        min-height: 440px;
    }

    .hero-grid {
        padding: 54px 0;
    }

    .split-heading {
        display: grid;
    }

    .split-heading p {
        padding-top: 0;
    }
}

@media (max-width: 560px) {
    .page-shell,
    .nav-shell {
        width: min(100% - 28px, 1180px);
    }

    h1 {
        font-size: 38px;
    }

    .hero-section,
    .auth-page {
        min-height: auto;
    }

    .hero-actions,
    .mini-grid {
        display: grid;
        grid-template-columns: 1fr;
    }

    .dashboard-card,
    .auth-card,
    .feature-item,
    .app-card,
    .checkout-card {
        padding: 22px;
    }

    .product-shell {
        width: min(100% - 28px, 1180px);
    }

    .product-title-row {
        display: grid;
    }

    .product-layout {
        grid-template-columns: 1fr;
    }

    .product-gallery {
        display: flex;
        overflow-x: auto;
    }

    .thumb {
        min-width: 62px;
    }

    .product-preview {
        min-height: 360px;
    }

    .product-card-art {
        width: min(78%, 290px);
        padding: 22px;
    }

    .product-details,
    .checkout-card {
        grid-column: auto;
    }
}
