:root {
    --surface: rgba(255, 255, 255, 0.82);
    --surface-strong: rgba(255, 255, 255, 0.94);
    --ink: #171d38;
    --ink-soft: #4d566f;
    --ink-faint: #6f7891;
    --line: rgba(23, 29, 56, 0.1);
    --blue: #2854d6;
    --pink: #df59b6;
    --pink-soft: rgba(223, 89, 182, 0.16);
    --gold: #d9a32f;
    --shadow: 0 28px 80px rgba(23, 29, 56, 0.16);
    --radius-lg: 28px;
    --radius-sm: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", sans-serif;
    line-height: 1.6;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(223, 89, 182, 0.14), transparent 28%),
        radial-gradient(circle at bottom right, rgba(40, 84, 214, 0.12), transparent 24%),
        linear-gradient(180deg, #f8f2ea 0%, #f4efe7 44%, #efe6da 100%);
}

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

a {
    color: var(--blue);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h1,
h2,
h3 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.08;
    letter-spacing: -0.03em;
}

p {
    margin: 0;
}

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

.hero {
    position: relative;
    overflow: hidden;
    color: #f8fbff;
    background: linear-gradient(135deg, #171d38 0%, #233687 44%, #2f1f59 100%);
}

.hero-home {
    padding-bottom: 76px;
}

.hero-page {
    padding-bottom: 42px;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.65), transparent 90%);
    pointer-events: none;
}

.hero-glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(14px);
    pointer-events: none;
}

.hero-glow-left {
    top: -120px;
    left: -80px;
    width: 280px;
    height: 280px;
    background: rgba(223, 89, 182, 0.34);
}

.hero-glow-right {
    right: -110px;
    bottom: -90px;
    width: 340px;
    height: 340px;
    background: rgba(88, 162, 255, 0.22);
}

.site-nav {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    text-decoration: none;
}

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

.brand-inline {
    gap: 12px;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 228px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.brand-mark img {
    width: auto;
    max-width: 100%;
    height: 32px;
}

.brand-mark-icon {
    min-width: 34px;
    width: 34px;
}

.brand-mark-icon img {
    width: 34px;
    height: 34px;
}

.brand-copy {
    display: grid;
    gap: 2px;
}

.brand-copy strong {
    font-size: 0.98rem;
    color: #ffffff;
}

.brand-copy span {
    font-size: 0.86rem;
    color: rgba(232, 240, 255, 0.8);
}

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

.brand-inline-separator {
    color: rgba(240, 245, 255, 0.54);
    font-size: 1rem;
    font-weight: 700;
}

.brand-inline-label {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 14px 18px;
}

.nav-links a {
    color: rgba(240, 245, 255, 0.9);
    font-size: 0.96rem;
}

.nav-links a:hover {
    text-decoration: none;
    color: #ffffff;
}

.nav-cluster {
    display: flex;
    align-items: center;
    gap: 18px;
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.lang-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 32px;
    padding: 0 10px;
    border-radius: 999px;
    color: rgba(240, 245, 255, 0.86);
    font-size: 0.84rem;
    font-weight: 700;
}

.lang-link:hover {
    text-decoration: none;
    color: #ffffff;
}

.lang-link.is-active {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

.hero-shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(320px, 0.94fr);
    gap: 44px;
    align-items: center;
    padding: 44px 0 0;
}

.hero-copy {
    display: grid;
    gap: 26px;
}

.app-hero-top {
    display: flex;
    align-items: center;
    gap: 18px;
}

.app-hero-icon {
    width: 78px;
    height: 78px;
    border-radius: 22px;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.28);
}

.eyebrow {
    display: inline-flex;
    width: fit-content;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #fef3ff;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.eyebrow-light {
    background: var(--pink-soft);
    border-color: rgba(223, 89, 182, 0.22);
    color: #9e1a6e;
}

.hero h1 {
    max-width: 10ch;
    font-size: clamp(3.3rem, 8vw, 5.6rem);
}

.hero-lead {
    max-width: 620px;
    font-size: 1.12rem;
    color: rgba(234, 241, 255, 0.9);
}

.hero-lead strong {
    color: #ffffff;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 13px 20px;
    border-radius: 999px;
    font-weight: 700;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.button:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.button-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink) 0%, #b9318a 100%);
    box-shadow: 0 14px 28px rgba(185, 49, 138, 0.24);
}

.button-secondary {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.button-full {
    width: 100%;
}

.stat-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.stat-pill {
    min-width: 148px;
    padding: 16px 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
}

.stat-pill strong {
    display: block;
    margin-bottom: 4px;
    font-size: 1.08rem;
    color: #ffffff;
}

.stat-pill span {
    display: block;
    font-size: 0.92rem;
    color: rgba(235, 241, 255, 0.82);
}

.availability-note {
    color: rgba(232, 240, 255, 0.78);
    font-size: 0.96rem;
}

.showcase-panel {
    display: flex;
    justify-content: flex-end;
}

.showcase-card {
    width: min(460px, 100%);
    padding: 24px;
    border-radius: 34px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.06)),
        linear-gradient(180deg, rgba(19, 26, 56, 0.82), rgba(17, 23, 45, 0.92));
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: var(--shadow);
}

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

.status-pill,
.status-meta,
.mode-stack span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 700;
}

.status-pill {
    background: rgba(217, 163, 47, 0.22);
    color: #ffe9af;
}

.status-meta {
    background: rgba(223, 89, 182, 0.18);
    color: #ffd8f2;
}

.mini-dashboard {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.mini-stat {
    padding: 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.09);
}

.mini-stat span {
    display: block;
    margin-bottom: 4px;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(223, 234, 255, 0.62);
}

.mini-stat strong {
    color: #ffffff;
    font-size: 0.98rem;
}

.mini-stat-wide {
    grid-column: 1 / -1;
}

.mini-progress {
    width: 100%;
    height: 10px;
    margin-top: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
}

.mini-progress-fill {
    width: 68%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--gold), var(--pink));
}

.board-preview {
    position: relative;
    aspect-ratio: 1;
    margin-bottom: 18px;
    border-radius: 28px;
    background:
        linear-gradient(90deg, rgba(248, 251, 255, 0.1) 1px, transparent 1px),
        linear-gradient(rgba(248, 251, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(248, 251, 255, 0.2) 2px, transparent 2px),
        linear-gradient(rgba(248, 251, 255, 0.2) 2px, transparent 2px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    background-size: calc(100% / 9) calc(100% / 9), calc(100% / 9) calc(100% / 9), calc(100% / 3) calc(100% / 3), calc(100% / 3) calc(100% / 3), 100% 100%;
    background-position: center;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.board-preview::after {
    content: "";
    position: absolute;
    inset: 18px;
    border-radius: 18px;
    background: radial-gradient(circle at top left, rgba(223, 89, 182, 0.16), transparent 42%);
    pointer-events: none;
}

.board-preview span {
    position: absolute;
    top: calc((var(--row) - 0.5) * 11.111%);
    left: calc((var(--col) - 0.5) * 11.111%);
    transform: translate(-50%, -50%);
    font-family: "Courier New", monospace;
    font-size: clamp(1rem, 2vw, 1.35rem);
    font-weight: 700;
    color: #f7fbff;
}

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

.mode-stack span {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(240, 246, 255, 0.88);
}

.catalog-list {
    display: grid;
    gap: 12px;
    margin-bottom: 18px;
}

.catalog-list-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.09);
}

.catalog-list-item strong {
    display: block;
    margin-bottom: 4px;
    color: #ffffff;
}

.catalog-list-item span {
    color: rgba(232, 240, 255, 0.74);
    font-size: 0.92rem;
}

.catalog-state {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
}

.catalog-mini-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.catalog-mini-links span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(240, 246, 255, 0.88);
    font-size: 0.84rem;
    font-weight: 700;
}

.catalog-note {
    color: rgba(232, 240, 255, 0.8);
}

.section {
    padding: 84px 0;
}

.section-tight {
    padding-top: 44px;
    padding-bottom: 16px;
}

.section-alt {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.46), rgba(255, 255, 255, 0.18)),
        linear-gradient(180deg, rgba(40, 84, 214, 0.05), rgba(223, 89, 182, 0.04));
    border-top: 1px solid rgba(23, 29, 56, 0.05);
    border-bottom: 1px solid rgba(23, 29, 56, 0.05);
}

.section-head {
    display: grid;
    gap: 16px;
    max-width: 760px;
    margin-bottom: 34px;
}

.section-head h2 {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
}

.section-head p {
    color: var(--ink-soft);
    font-size: 1.05rem;
}

.quick-grid,
.catalog-grid,
.feature-grid,
.mode-grid,
.product-link-grid,
.doc-grid {
    display: grid;
    gap: 20px;
}

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

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

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

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

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

.product-card {
    padding: 30px;
    border-radius: var(--radius-lg);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 247, 237, 0.92)),
        linear-gradient(180deg, rgba(40, 84, 214, 0.04), rgba(223, 89, 182, 0.04));
    border: 1px solid var(--line);
    box-shadow: 0 18px 44px rgba(23, 29, 56, 0.08);
}

.product-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.product-card-title {
    display: flex;
    align-items: center;
    gap: 16px;
}

.product-card-logo {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    flex: 0 0 auto;
    box-shadow: 0 12px 26px rgba(23, 29, 56, 0.16);
}

.product-card .catalog-state {
    background: rgba(23, 29, 56, 0.08);
    border-color: rgba(23, 29, 56, 0.08);
    color: var(--ink);
}

.product-summary {
    margin-bottom: 18px;
    color: var(--ink-soft);
    font-size: 1.02rem;
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0 20px;
}

.chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 13px;
    border-radius: 999px;
    background: rgba(40, 84, 214, 0.07);
    color: var(--ink);
    font-size: 0.88rem;
    font-weight: 700;
}

.feature-card,
.mode-card,
.content-card,
.legal-card {
    padding: 28px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: 0 14px 36px rgba(23, 29, 56, 0.08);
    backdrop-filter: blur(12px);
}

.feature-card h2,
.feature-card h3,
.mode-card h3,
.content-card h2,
.legal-card h3 {
    margin-bottom: 10px;
}

.feature-card p,
.mode-card p,
.content-card p,
.legal-card p {
    color: var(--ink-soft);
}

.feature-card-large {
    height: 100%;
}

.card-kicker,
.mode-label {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 14px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(40, 84, 214, 0.08);
    color: var(--blue);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mode-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.8)),
        linear-gradient(180deg, rgba(40, 84, 214, 0.04), rgba(223, 89, 182, 0.06));
}

.mode-card:nth-child(3) {
    background:
        linear-gradient(180deg, rgba(255, 245, 232, 0.96), rgba(255, 255, 255, 0.86)),
        linear-gradient(180deg, rgba(217, 163, 47, 0.08), rgba(223, 89, 182, 0.08));
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(290px, 0.8fr);
    gap: 22px;
}

.difficulty-track {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.difficulty-track span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(23, 29, 56, 0.06);
    color: var(--ink);
    font-weight: 700;
}

.difficulty-track span:last-child {
    background: rgba(223, 89, 182, 0.16);
    color: #8f175d;
}

.legal-panel {
    display: grid;
    gap: 18px;
}

.product-link,
.doc-link {
    display: grid;
    gap: 4px;
    padding: 18px;
    border-radius: 20px;
    background: rgba(23, 29, 56, 0.04);
    border: 1px solid rgba(23, 29, 56, 0.08);
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.product-link strong,
.doc-link strong {
    color: var(--ink);
}

.product-link span,
.doc-link span {
    color: var(--ink-soft);
    font-size: 0.94rem;
}

.product-link:hover {
    text-decoration: none;
    transform: translateY(-1px);
    border-color: rgba(40, 84, 214, 0.2);
    background: rgba(40, 84, 214, 0.05);
}

.legal-card {
    background: var(--surface-strong);
}

.legal-card a {
    display: inline-flex;
    margin-top: 12px;
    font-weight: 700;
}

.page-hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 16px;
    max-width: 780px;
    padding: 28px 0 0;
}

.page-meta {
    color: rgba(228, 236, 255, 0.74);
}

.back-link {
    display: inline-flex;
    width: fit-content;
    color: rgba(243, 247, 255, 0.88);
    font-weight: 700;
}

.back-link:hover {
    color: #ffffff;
    text-decoration: none;
}

.legal-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.64fr);
    gap: 22px;
}

.legal-content,
.legal-sidebar {
    display: grid;
    gap: 20px;
}

.content-list {
    margin: 14px 0 0;
    padding-left: 20px;
    color: var(--ink-soft);
}

.content-list li + li {
    margin-top: 10px;
}

.contact-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 246, 252, 0.94)),
        linear-gradient(180deg, rgba(223, 89, 182, 0.08), rgba(40, 84, 214, 0.04));
}

.inline-links {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.inline-links a {
    font-weight: 700;
}

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

.support-item {
    padding: 16px 18px;
    border-radius: var(--radius-sm);
    background: rgba(23, 29, 56, 0.04);
    border: 1px solid rgba(23, 29, 56, 0.07);
}

.support-item span {
    display: block;
    margin-bottom: 5px;
    font-size: 0.8rem;
    color: var(--ink-faint);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.support-item strong {
    color: var(--ink);
}

.site-footer {
    margin-top: 24px;
    padding: 26px 0 34px;
    color: rgba(233, 241, 255, 0.8);
    background: #111731;
}

.footer-shell {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 20px;
    align-items: center;
}

.brand-footer .brand-mark {
    min-width: 228px;
}

.footer-copy {
    display: grid;
    gap: 4px;
}

.footer-meta {
    color: rgba(218, 227, 248, 0.62);
    font-size: 0.92rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 18px;
    justify-content: flex-end;
}

.footer-links a {
    color: rgba(239, 244, 255, 0.86);
}

.footer-links a:hover {
    text-decoration: none;
    color: #ffffff;
}

@media (max-width: 1080px) {
    .hero-shell,
    .split-section,
    .legal-layout {
        grid-template-columns: 1fr;
    }

    .showcase-panel {
        justify-content: flex-start;
    }

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

@media (max-width: 820px) {
    .site-nav,
    .footer-shell {
        grid-template-columns: 1fr;
        display: grid;
    }

    .nav-cluster {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-links,
    .footer-links {
        justify-content: flex-start;
    }

    .brand-mark,
    .brand-footer .brand-mark {
        min-width: 188px;
    }

    .catalog-grid,
    .quick-grid,
    .feature-grid,
    .mode-grid,
    .product-link-grid,
    .doc-grid {
        grid-template-columns: 1fr;
    }

    .catalog-list-item,
    .product-card-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .product-card-title,
    .app-hero-top {
        align-items: flex-start;
    }

    .brand-inline-copy {
        gap: 10px;
    }

    .section {
        padding: 68px 0;
    }
}

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

    .hero-home {
        padding-bottom: 54px;
    }

    .hero-shell {
        gap: 28px;
        padding-top: 24px;
    }

    .hero-copy {
        gap: 22px;
    }

    .app-hero-top {
        flex-direction: column;
    }

    .hero h1 {
        max-width: none;
        font-size: clamp(2.7rem, 12vw, 4rem);
    }

    .brand-mark img {
        height: 28px;
    }

    .brand-mark-icon,
    .brand-mark-icon img {
        width: 28px;
        min-width: 28px;
        height: 28px;
    }

    .brand-inline-label {
        font-size: 0.92rem;
    }

    .showcase-card,
    .feature-card,
    .mode-card,
    .content-card,
    .legal-card {
        padding: 22px;
        border-radius: 24px;
    }

    .stat-pill {
        width: 100%;
    }

    .mini-dashboard {
        grid-template-columns: 1fr;
    }

    .section-head h2 {
        font-size: clamp(2rem, 10vw, 3rem);
    }
}
