:root {
    --bg: #f5f5f7;
    --bg-soft: #fbfbfd;
    --surface: rgba(255, 255, 255, 0.96);
    --surface-muted: rgba(248, 249, 252, 0.96);
    --line: rgba(15, 23, 42, 0.08);
    --line-strong: rgba(15, 23, 42, 0.14);
    --ink: #1d1d1f;
    --muted: #6e6e73;
    --accent: #0071e3;
    --accent-strong: #0058b0;
    --accent-soft: rgba(0, 113, 227, 0.08);
    --success-bg: #edf8f1;
    --success-ink: #17663f;
    --warning-bg: #fff4ed;
    --warning-ink: #a5481a;
    --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.06);
    --shadow-card: 0 24px 56px rgba(15, 23, 42, 0.07);
    --shadow-strong: 0 34px 90px rgba(15, 23, 42, 0.12);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 14px;
    --max-width: 1180px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top center, rgba(0, 113, 227, 0.07), transparent 34%),
        linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
    color: var(--ink);
    font: 15px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    color: inherit;
}

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

code {
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-family: "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
    font-size: 0.92em;
}

.site-header {
    position: sticky;
    top: 14px;
    z-index: 20;
    width: min(calc(100% - 32px), var(--max-width));
    margin: 18px auto 0;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: var(--shadow-soft);
}

.brand-lockup,
.brand-lockup:hover {
    text-decoration: none;
}

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

.brand-mark {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(180deg, #0a84ff 0%, #0071e3 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    box-shadow: 0 12px 26px rgba(0, 113, 227, 0.22);
}

.brand-lockup strong,
.admin-brand strong {
    display: block;
    font-size: 16px;
    letter-spacing: -0.02em;
}

.brand-lockup small,
.admin-brand small {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.site-nav a {
    padding: 10px 14px;
    border-radius: 999px;
    text-decoration: none;
    color: var(--muted);
    transition: background-color 0.18s ease, color 0.18s ease;
}

.site-nav a.is-active,
.site-nav a:hover {
    color: var(--ink);
    background: rgba(15, 23, 42, 0.05);
}

.page-shell {
    width: min(calc(100% - 32px), var(--max-width));
    margin: 28px auto 80px;
}

.narrow-shell {
    max-width: 1040px;
}

.hero-section,
.feature-strip,
.grid-two,
.pricing-grid,
.checkout-grid,
.checkout-hero,
.download-card,
.admin-kpis,
.admin-grid {
    display: grid;
    gap: 20px;
}

.hero-section {
    grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
    align-items: stretch;
}

.hero-copy,
.hero-panel,
.feature-card,
.content-block,
.story-card,
.pricing-section,
.price-card,
.cta-band,
.checkout-hero,
.download-card,
.notice-box,
.summary-card,
.mini-card,
.hero-note,
.auth-card,
.admin-card,
.admin-kpi {
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: var(--surface);
    box-shadow: var(--shadow-card);
}

.hero-copy,
.content-block,
.pricing-section,
.cta-band,
.checkout-hero,
.download-card,
.auth-card,
.admin-card,
.admin-kpi {
    padding: 36px;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-badge,
.price-chip,
.hero-meta span,
.download-meta span {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.download-meta span {
    gap: 8px;
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.035);
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.download-meta span strong {
    color: var(--ink);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hero-copy h1,
.checkout-hero h1,
.download-card h1,
.auth-card h1,
.admin-topbar h1 {
    margin: 18px 0 0;
    font-size: clamp(42px, 6vw, 68px);
    line-height: 0.98;
    letter-spacing: -0.06em;
    font-weight: 700;
}

.hero-lead,
.checkout-hero p,
.download-card p,
.auth-intro p {
    margin: 18px 0 0;
    max-width: 680px;
    font-size: 18px;
    line-height: 1.65;
    color: var(--muted);
}

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

.hero-meta,
.download-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.download-meta {
    gap: 8px;
}

.hero-panel {
    position: relative;
    overflow: hidden;
    padding: 22px;
    background:
        radial-gradient(circle at top right, rgba(0, 113, 227, 0.12), transparent 42%),
        linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
}

.panel-glow {
    position: absolute;
    top: -42px;
    right: -42px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(0, 113, 227, 0.12);
    filter: blur(26px);
    pointer-events: none;
}

.hero-stat {
    position: relative;
    z-index: 1;
    padding: 22px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 113, 227, 0.1);
    background: rgba(255, 255, 255, 0.82);
}

.hero-stat + .hero-stat {
    margin-top: 14px;
}

.hero-stat span {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-stat strong,
.feature-card h2,
.story-card h3,
.price-card h3,
.summary-card h2,
.admin-card h2,
.order-form h2 {
    display: block;
    margin: 0;
    font-size: 24px;
    line-height: 1.18;
    letter-spacing: -0.03em;
    font-weight: 650;
}

.hero-stat small {
    display: block;
    margin-top: 10px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
}

.feature-strip {
    margin-top: 24px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.story-card,
.price-card,
.summary-card,
.mini-card,
.hero-note {
    padding: 26px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.feature-card h2,
.story-card h3,
.price-card h3,
.summary-card h2,
.order-form h2 {
    margin-bottom: 12px;
}

.feature-card p,
.story-card p,
.price-card p,
.summary-card p,
.mini-card p,
.site-footer,
.footer-domain-note,
.auth-hint {
    color: var(--muted);
}

.feature-card p,
.story-card p,
.price-card p,
.summary-card p,
.mini-card p,
.site-footer p,
.auth-hint {
    margin: 0;
}

.content-block,
.pricing-section,
.cta-band,
.checkout-hero,
.download-card {
    margin-top: 24px;
}

.section-heading {
    margin-bottom: 22px;
}

.section-heading span,
.cta-band span {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section-heading h2,
.cta-band h2 {
    margin: 0;
    max-width: 860px;
    font-size: clamp(30px, 4.2vw, 54px);
    line-height: 1.02;
    letter-spacing: -0.05em;
    font-weight: 700;
}

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

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

.price-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.price-tag {
    font-size: 44px;
    line-height: 0.98;
    letter-spacing: -0.06em;
    font-weight: 700;
}

.price-list,
.flat-list,
.hero-note ul,
.ordered-list {
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
}

.price-list li + li,
.flat-list li + li,
.hero-note ul li + li,
.ordered-list li + li {
    margin-top: 8px;
}

.cta-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background:
        radial-gradient(circle at top left, rgba(70, 145, 255, 0.18), transparent 32%),
        linear-gradient(180deg, #111827 0%, #151d2d 100%);
    border-color: rgba(255, 255, 255, 0.06);
    color: #fff;
    box-shadow: var(--shadow-strong);
}

.cta-band h2 {
    max-width: 700px;
}

.cta-band span {
    color: rgba(255, 255, 255, 0.62);
}

.button-primary,
.button-secondary {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 20px;
    border-radius: 999px;
    border: 1px solid transparent;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    transition:
        transform 0.16s ease,
        box-shadow 0.16s ease,
        background-color 0.16s ease,
        border-color 0.16s ease;
    cursor: pointer;
}

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

.button-primary {
    background: linear-gradient(180deg, #0a84ff 0%, #0071e3 100%);
    color: #fff;
    box-shadow: 0 14px 28px rgba(0, 113, 227, 0.22);
}

.button-primary:hover {
    box-shadow: 0 18px 34px rgba(0, 113, 227, 0.28);
}

.button-secondary {
    background: rgba(255, 255, 255, 0.92);
    border-color: var(--line);
    color: var(--ink);
}

.button-secondary.is-disabled {
    opacity: 0.52;
    pointer-events: none;
}

.is-full {
    width: 100%;
}

.checkout-hero,
.download-card {
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
}

.hero-note strong,
.mini-card strong {
    display: block;
    margin-bottom: 10px;
    font-size: 18px;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.checkout-grid {
    margin-top: 22px;
    grid-template-columns: minmax(0, 1.16fr) minmax(280px, 0.84fr);
}

.order-form,
.auth-form {
    display: grid;
    gap: 14px;
}

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

label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: 13px;
}

input,
select,
textarea {
    width: 100%;
    min-height: 50px;
    padding: 14px 16px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.98);
    color: var(--ink);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

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

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: rgba(0, 113, 227, 0.42);
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.12);
}

.notice-box {
    margin-top: 24px;
    padding: 22px 24px;
}

.notice-box h2 {
    margin: 0 0 8px;
    font-size: 28px;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.notice-box p {
    margin: 0;
}

.notice-box p + p {
    margin-top: 8px;
}

.notice-warning {
    background: var(--warning-bg);
    border-color: rgba(165, 72, 26, 0.12);
    color: var(--warning-ink);
}

.notice-success {
    background: var(--success-bg);
    border-color: rgba(23, 102, 63, 0.12);
    color: var(--success-ink);
}

.site-footer {
    width: min(calc(100% - 32px), var(--max-width));
    margin: 0 auto 28px;
    padding: 24px 28px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    border: 1px solid rgba(255, 255, 255, 0.84);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: var(--shadow-soft);
}

.site-footer strong {
    display: block;
    margin-bottom: 6px;
    color: var(--ink);
}

body.auth {
    display: grid;
    place-items: center;
    padding: 32px 0;
}

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

.auth-card {
    padding: 34px;
}

.auth-hint {
    margin-top: 16px;
}

.admin {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    min-height: 100vh;
    background:
        radial-gradient(circle at top center, rgba(0, 113, 227, 0.07), transparent 30%),
        linear-gradient(180deg, #fafafc 0%, #f2f3f6 100%);
}

.admin-sidebar {
    padding: 24px 18px;
    border-right: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
}

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

.admin-nav a,
.admin-userbox a {
    text-decoration: none;
}

.admin-nav a {
    padding: 12px 14px;
    border-radius: 16px;
    color: var(--muted);
}

.admin-nav a.is-active,
.admin-nav a:hover {
    background: rgba(15, 23, 42, 0.05);
    color: var(--ink);
}

.admin-userbox {
    margin-top: 24px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
}

.admin-userbox strong,
.admin-userbox span {
    display: block;
}

.admin-userbox span {
    margin: 4px 0 10px;
    color: var(--muted);
}

.admin-main {
    padding: 28px;
}

.admin-topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.admin-topbar h1 {
    font-size: clamp(30px, 4vw, 46px);
}

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

.admin-kpi span {
    display: block;
    margin-bottom: 10px;
    color: var(--muted);
}

.admin-kpi strong {
    font-size: 42px;
    line-height: 0.98;
    letter-spacing: -0.05em;
    font-weight: 700;
}

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

.table-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.table-head h2 {
    margin: 0;
}

.table-head a {
    color: var(--accent);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

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

.data-table th {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.data-table small {
    color: var(--muted);
}

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

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

@media (max-width: 1120px) {
    .hero-section,
    .feature-strip,
    .grid-two,
    .pricing-grid,
    .checkout-grid,
    .checkout-hero,
    .download-card,
    .admin-grid,
    .admin-kpis {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 780px) {
    .site-header,
    .site-footer,
    .cta-band,
    .admin-topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .page-shell,
    .site-header,
    .site-footer,
    .auth-shell {
        width: min(calc(100% - 20px), var(--max-width));
    }

    .hero-copy,
    .content-block,
    .pricing-section,
    .cta-band,
    .checkout-hero,
    .download-card,
    .auth-card,
    .admin-card,
    .admin-kpi,
    .notice-box {
        padding: 24px;
    }

    .hero-panel,
    .feature-card,
    .story-card,
    .price-card,
    .summary-card,
    .mini-card,
    .hero-note {
        padding: 22px;
    }

    .hero-copy h1,
    .checkout-hero h1,
    .download-card h1,
    .auth-card h1 {
        font-size: clamp(34px, 11vw, 48px);
    }

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