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

:root {
    --bg: #050917;
    --bg-soft: #0b1226;
    --bg-card: #0f1830;
    --bg-card-strong: #131f3e;
    --bg-input: #0d1731;
    --line: #1f2e55;
    --line-strong: #2f4478;
    --text: #f5f7ff;
    --text-soft: #c3cee8;
    --text-muted: #8fa1c9;
    --accent: #38b8ff;
    --accent-strong: #1a8fff;
    --accent-alt: #50f2ff;
    --accent-glow: rgba(56, 184, 255, 0.22);
    --danger: #ff6363;
    --success: #38d39f;
    --focus-ring: rgba(64, 140, 255, 0.28);
    --control-height: 2.45rem;
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-xl: 26px;
    --page-bg:
        radial-gradient(1200px 620px at 14% -12%, rgba(56, 184, 255, 0.28), transparent 60%),
        radial-gradient(900px 520px at 88% -8%, rgba(80, 242, 255, 0.2), transparent 62%),
        radial-gradient(720px 420px at 78% 112%, rgba(26, 143, 255, 0.16), transparent 64%),
        linear-gradient(180deg, #050917 0%, #070d1c 45%, #050815 100%);
    --nav-bg: rgba(5, 9, 23, 0.72);
    --nav-link-hover-bg: rgba(56, 184, 255, 0.14);
    --surface-soft: rgba(10, 16, 32, 0.92);
    --surface-soft-alt: rgba(12, 21, 42, 0.88);
    --surface-border: rgba(56, 184, 255, 0.24);
    --store-embed-bg: #dfe7f5;
    --orb-opacity: 0.48;
    color-scheme: dark;
}

html[data-theme="light"] {
    --bg: #e7edf7;
    --bg-soft: #dde7f4;
    --bg-card: #f2f6fe;
    --bg-card-strong: #e9f0fb;
    --bg-input: #eef3fb;
    --line: #adc2de;
    --line-strong: #7f9fc7;
    --text: #122b4b;
    --text-soft: #2a4b73;
    --text-muted: #4e6c90;
    --accent: #1b66bf;
    --accent-strong: #1456a6;
    --accent-alt: #0f76b3;
    --accent-glow: rgba(27, 102, 191, 0.18);
    --danger: #b42318;
    --success: #067647;
    --focus-ring: rgba(27, 102, 191, 0.28);
    --page-bg:
        radial-gradient(1050px 540px at 8% -20%, rgba(82, 141, 224, 0.18), transparent 60%),
        radial-gradient(900px 480px at 92% -15%, rgba(65, 171, 192, 0.14), transparent 62%),
        linear-gradient(180deg, #e8eff8 0%, #e2eaf6 52%, #dce6f3 100%);
    --nav-bg: rgba(233, 240, 250, 0.9);
    --nav-link-hover-bg: rgba(27, 102, 191, 0.11);
    --surface-soft: rgba(244, 248, 255, 0.94);
    --surface-soft-alt: rgba(236, 243, 253, 0.94);
    --surface-border: rgba(27, 102, 191, 0.2);
    --store-embed-bg: #e8eef8;
    --orb-opacity: 0.14;
    color-scheme: light;
}

html {
    background: var(--page-bg);
    background-color: var(--bg);
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
}

@view-transition {
    navigation: auto;
}

#main-content {
    view-transition-name: main-content;
}

.navbar {
    view-transition-name: none;
}

::view-transition-group(root),
::view-transition-old(root),
::view-transition-new(root) {
    animation: none;
}

::view-transition-old(main-content) {
    animation: page-content-out 200ms cubic-bezier(0.4, 0, 1, 1) both;
}

::view-transition-new(main-content) {
    animation: page-content-in 340ms cubic-bezier(0, 0, 0.2, 1) 80ms both;
}

@keyframes page-content-out {
    to {
        opacity: 0;
        transform: translateY(-36px);
    }
}

@keyframes page-content-in {
    from {
        opacity: 0;
        transform: translateY(48px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body {
    min-height: 100vh;
    color: var(--text);
    background: var(--page-bg);
    font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
    line-height: 1.65;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.skip-link {
    position: absolute;
    left: 0.75rem;
    top: -100px;
    z-index: 120;
    padding: 0.5rem 0.8rem;
    border-radius: 10px;
    background: var(--accent-strong);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
}

.skip-link:focus {
    top: 0.75rem;
}

h1,
h2,
h3,
h4 {
    font-family: "Manrope", "IBM Plex Sans", sans-serif;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

a {
    color: var(--accent-alt);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #ffffff;
}

.site-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.site-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(143, 168, 214, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(143, 168, 214, 0.06) 1px, transparent 1px);
    background-size: 52px 52px;
    opacity: 0.14;
}

html[data-theme="light"] .site-bg::before {
    opacity: 0.16;
}

.navbar,
.page-shell {
    position: relative;
    z-index: 1;
}

.site-orb {
    position: absolute;
    filter: blur(18px);
    border-radius: 999px;
    opacity: calc(var(--orb-opacity) * 0.62);
}

.site-orb-one,
.site-orb-two,
.site-orb-three,
.site-orb-four,
.site-orb-five,
.site-orb-six {
    background: radial-gradient(circle at 35% 35%, rgba(76, 140, 239, 0.42), transparent 72%);
}

.site-orb-one {
    width: 360px;
    height: 360px;
    top: -120px;
    right: 8%;
}

.site-orb-two {
    width: 260px;
    height: 260px;
    top: 300px;
    left: -110px;
}

.site-orb-three {
    width: 420px;
    height: 420px;
    bottom: -190px;
    right: 14%;
}

.site-orb-four {
    width: 280px;
    height: 280px;
    top: 36%;
    right: 34%;
}

.site-orb-five {
    width: 240px;
    height: 240px;
    top: 64%;
    left: 22%;
}

.site-orb-six {
    width: 300px;
    height: 300px;
    top: 14%;
    left: 46%;
}

.page-shell {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 40;
    border-bottom: 1px solid var(--surface-border);
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 26px rgba(4, 11, 24, 0.24);
}

.nav-container {
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 2rem;
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--text);
    font-family: "Manrope", "IBM Plex Sans", sans-serif;
    font-size: 1rem;
    font-weight: 700;
}

.nav-brand img {
    width: 26px;
    height: 26px;
    object-fit: contain;
    display: block;
}

.brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(83, 142, 236, 0.5);
    background: linear-gradient(150deg, rgba(58, 118, 214, 0.25), rgba(13, 26, 52, 0.92));
    box-shadow: 0 10px 20px rgba(2, 7, 20, 0.35);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-title {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #fff;
}

.brand-subtitle {
    font-size: 0.68rem;
    font-weight: 500;
    color: var(--text-muted);
    display: none;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-left: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.nav-links a,
.nav-link-button {
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-soft);
    font-family: inherit;
    font-size: 0.83rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 0.48rem 0.88rem;
    border-radius: 999px;
    transition: all 0.2s ease;
}

.nav-links a.active,
.nav-links a:hover,
.nav-link-button:hover,
.nav-links a:focus-visible,
.nav-link-button:focus-visible {
    color: #fff;
    background: rgba(82, 141, 241, 0.2);
    border-color: rgba(86, 147, 248, 0.42);
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.56rem 1rem;
    border-radius: 10px;
    font-family: "Manrope", "IBM Plex Sans", sans-serif;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #edf4ff;
    border: 1px solid rgba(81, 139, 234, 0.5);
    background: linear-gradient(135deg, #427edb, #3164bc);
    box-shadow: 0 6px 14px rgba(20, 55, 120, 0.3);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-cta:hover {
    color: #ffffff;
    background: linear-gradient(135deg, #4c88e6, #366dc8);
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(20, 55, 120, 0.34);
}

.theme-toggle {
    width: 54px;
    height: 32px;
    margin-left: 0.45rem;
    border: 1px solid rgba(143, 161, 201, 0.3);
    border-radius: 999px;
    background: rgba(10, 18, 36, 0.45);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    transition: border-color 0.25s ease, background 0.25s ease;
    flex-shrink: 0;
}

.theme-toggle:hover {
    border-color: rgba(56, 184, 255, 0.55);
    background: rgba(56, 184, 255, 0.16);
}

.theme-toggle-track {
    width: 44px;
    height: 22px;
    border-radius: 999px;
    background: linear-gradient(145deg, #131d39, #24396d);
    box-shadow: inset 0 0 0 1px rgba(143, 161, 201, 0.18);
    position: relative;
    overflow: hidden;
}

.theme-toggle-track::before {
    content: "";
    position: absolute;
    inset: 4px auto auto 5px;
    width: 2px;
    height: 2px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 6px 5px 0 rgba(255, 255, 255, 0.6), 13px 2px 0 rgba(255, 255, 255, 0.52);
    opacity: 1;
    transition: opacity 0.3s ease;
}

.theme-toggle-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: radial-gradient(circle at 34% 26%, #f6f9ff, #cedbff 78%);
    box-shadow: 0 3px 8px rgba(2, 8, 20, 0.45);
    transform: translateX(22px);
    transition: transform 0.36s cubic-bezier(.28, .89, .33, 1.16), background 0.28s ease;
}

.theme-icon-sun,
.theme-icon-moon {
    position: absolute;
    inset: 0;
    transition: opacity 0.26s ease, transform 0.26s ease;
}

.theme-icon-sun::before {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: #ffcd5f;
}

.theme-icon-sun::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: 50%;
    border: 1.2px solid rgba(255, 196, 89, 0.65);
}

.theme-icon-moon::before,
.theme-icon-moon::after {
    content: "";
    position: absolute;
    border-radius: 50%;
}

.theme-icon-moon::before {
    inset: 3px;
    background: #dce7ff;
}

.theme-icon-moon::after {
    width: 9px;
    height: 9px;
    top: 2px;
    right: 1px;
    background: rgba(198, 214, 250, 0.78);
}

.theme-icon-sun {
    opacity: 0;
    transform: scale(0.7);
}

.theme-icon-moon {
    opacity: 1;
    transform: scale(1);
}

html[data-theme="light"] .theme-toggle {
    border-color: rgba(88, 128, 198, 0.34);
    background: rgba(255, 255, 255, 0.78);
}

html[data-theme="light"] .theme-toggle:hover {
    border-color: rgba(14, 123, 221, 0.55);
    background: rgba(14, 123, 221, 0.1);
}

html[data-theme="light"] .theme-toggle-track {
    background: linear-gradient(145deg, #9cd6ff, #e3f4ff 78%);
    box-shadow: inset 0 0 0 1px rgba(125, 170, 224, 0.28);
}

html[data-theme="light"] .theme-toggle-track::before {
    opacity: 0;
}

html[data-theme="light"] .theme-toggle-thumb {
    transform: translateX(0);
    background: radial-gradient(circle at 34% 30%, #fffef8, #ffd978 70%, #f7b03a 100%);
}

html[data-theme="light"] .theme-icon-sun {
    opacity: 1;
    transform: scale(1);
}

html[data-theme="light"] .theme-icon-moon {
    opacity: 0;
    transform: scale(0.7);
}

.nav-form {
    display: inline-flex;
    margin: 0;
}

.nav-link-button {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    margin: 0;
    line-height: inherit;
    text-align: left;
    justify-content: flex-start;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid rgba(143, 161, 201, 0.28);
    border-radius: var(--radius-sm);
    padding: 0.48rem;
    color: var(--text-soft);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
}

.nav-toggle:hover {
    background: rgba(56, 184, 255, 0.12);
    color: #fff;
}

.container {
    width: min(1380px, 100%);
    margin: 0 auto;
    padding: 3.4rem 2rem 3.6rem;
    flex: 1;
}

.footer {
    border-top: 1px solid rgba(102, 143, 213, 0.28);
    color: var(--text-muted);
    font-size: 0.82rem;
}

.footer .container {
    padding-top: 1.3rem;
    padding-bottom: 1.8rem;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.footer-communities {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.footer-communities a {
    color: var(--text-soft);
}

.footer-communities a:hover {
    color: var(--text);
}

.footer-links {
    display: flex;
    gap: 1.2rem;
}

.footer-links a {
    color: var(--text-muted);
    transition: color 0.15s;
}

.footer-links a:hover {
    color: var(--text);
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.footer-social .social-link {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    color: var(--text-muted);
    transition: color 0.18s;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
}

.footer-social .social-link:hover {
    color: var(--text);
    border-color: rgba(102, 148, 227, 0.3);
    background: rgba(15, 29, 56, 0.65);
}

.hero {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 1.3rem;
    margin-top: 0.6rem;
    align-items: stretch;
}

.hero-copy {
    padding: 2.3rem;
    display: flex;
    flex-direction: column;
}

.hero-copy .hero-buttons {
    margin-top: auto;
    padding-top: 1.4rem;
}

.hero-single {
    grid-template-columns: 1fr;
}

.home-hero-copy {
    max-width: 980px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    margin-bottom: 1.1rem;
    font-size: 0.75rem;
    color: var(--text-soft);
    border: 1px solid rgba(143, 161, 201, 0.26);
    background: rgba(12, 19, 38, 0.62);
}

.hero-title {
    font-size: clamp(2.1rem, 4.5vw, 3.15rem);
    max-width: 15ch;
    text-wrap: balance;
    margin-bottom: 1rem;
    color: #ffffff;
}

.hero-title--page,
.hero-title--section {
    font-size: clamp(1.8rem, 3.6vw, 2.55rem);
    max-width: none;
    text-wrap: unset;
    margin-bottom: 0.5rem;
}

.hero-title,
.card-header h1,
.card-header h2,
.section-header h2 {
    letter-spacing: -0.03em;
}

.gradient-text {
    background: linear-gradient(130deg, #9ec3ff, #5b99ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    color: var(--text-soft);
    font-size: 1.04rem;
    max-width: 72ch;
    margin-bottom: 1.5rem;
}

.hero-bullets {
    list-style: none;
    padding: 0;
    padding-inline-start: 0;
    margin: 0 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.42rem;
    color: var(--text-soft);
    font-size: 1rem;
}

.hero-bullets li {
    display: flex;
    align-items: baseline;
    gap: 0.55em;
}

.hero-bullets li::before {
    content: "–";
    color: var(--accent);
    font-weight: 600;
    flex-shrink: 0;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.hero-points {
    margin-top: 1.15rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.hero-points span {
    border-radius: 999px;
    border: 1px solid rgba(143, 161, 201, 0.28);
    background: rgba(8, 14, 29, 0.58);
    color: var(--text-soft);
    font-size: 0.78rem;
    padding: 0.3rem 0.68rem;
}

.hero-panel {
    padding: 1.6rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
}

.hero-panel-tag {
    width: fit-content;
    border-radius: 999px;
    border: 1px solid rgba(80, 242, 255, 0.42);
    background: rgba(56, 184, 255, 0.13);
    padding: 0.22rem 0.6rem;
    font-size: 0.74rem;
    font-weight: 600;
    color: #b9eeff;
}

.hero-panel h2 {
    font-size: 1.2rem;
}

.hero-panel p {
    color: var(--text-soft);
    font-size: 0.94rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
}

.stat-card {
    padding: 0.78rem 0.86rem;
}

.stat-card strong {
    display: block;
    font-size: 1.1rem;
}

.stat-card span {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.section-block {
    margin-top: 2.35rem;
}

.section-header {
    margin-bottom: 1.45rem;
}

.section-header h2 {
    font-size: clamp(1.6rem, 3.4vw, 2.2rem);
    margin-bottom: 0.45rem;
}

.section-header p,
.lead-text {
    color: var(--text-soft);
    max-width: 72ch;
}

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

.feature-card {
    padding: 1.35rem;
    transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.feature-card::after {
    content: "";
    position: absolute;
    inset: auto 14px -1px 14px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(56, 184, 255, 0.45), transparent);
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(80, 242, 255, 0.45);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
}

.feature-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    margin-bottom: 0.85rem;
    font-size: 1.25rem;
    background: rgba(56, 184, 255, 0.14);
    border: 1px solid rgba(56, 184, 255, 0.28);
}

.feature-card h3 {
    margin-bottom: 0.35rem;
    font-size: 1rem;
}

.feature-card p {
    color: var(--text-soft);
    font-size: 0.88rem;
}

.highlight-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

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

.abstract-card {
    padding: 1.2rem;
}

.abstract-card h3 {
    margin-bottom: 0.4rem;
    font-size: 1rem;
}

.abstract-card p {
    color: var(--text-soft);
    font-size: 0.9rem;
}

.value-grid {
    gap: 0.8rem;
}

.value-card {
    padding: 1rem 1.1rem;
}

.card {
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.card-header {
    margin-bottom: 1rem;
}

.card-header h1,
.card-header h2 {
    font-size: clamp(1.3rem, 2vw, 1.65rem);
}

.card-header p {
    margin-top: 0.45rem;
    color: var(--text-soft);
}

.card,
.feature-card,
.abstract-card,
.youtube-card,
.testimonial-card,
.updates-card,
.product-card,
.hero-copy,
.hero-panel,
.contact-option-card,
.timeline-card,
.metric-card,
.stat-card {
    border-radius: 16px;
    border: 1px solid rgba(95, 136, 206, 0.25);
    background: linear-gradient(180deg, rgba(16, 30, 57, 0.9), rgba(13, 25, 47, 0.92));
    box-shadow: 0 10px 24px rgba(5, 13, 28, 0.26);
}

.card,
.feature-card,
.abstract-card,
.hero-copy,
.hero-panel {
    position: relative;
    overflow: hidden;
}

.card::before,
.feature-card::before,
.abstract-card::before,
.hero-copy::before,
.hero-panel::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(115, 166, 255, 0.55), transparent);
    pointer-events: none;
}

.page-head {
    margin-bottom: 1.2rem;
}

.page-head h1 {
    font-size: clamp(1.75rem, 4vw, 2.4rem);
    margin-bottom: 0.4rem;
}

.dash-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
}

.dash-head h1 {
    font-size: clamp(1.75rem, 4vw, 2.4rem);
    margin-bottom: 0.3rem;
}

.dash-head .metric-grid {
    margin-bottom: 0;
    flex-shrink: 0;
    grid-template-columns: repeat(2, minmax(120px, 1fr));
}

.dash-tabs {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(102, 143, 213, 0.28);
    padding-bottom: 0;
}

.dash-tab {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.55rem 1rem;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color 0.15s, border-color 0.15s;
}

.dash-tab:hover {
    color: var(--text);
}

.dash-tab--active {
    color: #fff;
    border-bottom-color: var(--accent);
}

.dash-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.dash-row>.card {
    margin-bottom: 0;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.metric-card {
    padding: 0.95rem;
}

.metric-label {
    display: block;
    color: var(--text-muted);
    font-size: 0.78rem;
    margin-bottom: 0.2rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.metric-value {
    font-family: "Sora", sans-serif;
    font-size: 1.15rem;
}

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

.orders-table th,
.orders-table td {
    border-bottom: 1px solid rgba(143, 161, 201, 0.2);
    padding: 0.74rem 0.7rem;
    text-align: left;
}

.orders-table th {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.orders-table tbody tr:hover {
    background: rgba(56, 184, 255, 0.09);
}

.guide-embed-wrapper {
    width: 100%;
    height: calc(100vh - 74px - 26.5rem);
    min-height: 400px;
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
}

.guide-embed {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.store-shell {
    display: grid;
    gap: 1rem;
    scroll-margin-top: 96px;
}

.store-embed-card {
    padding: 0;
    overflow: hidden;
}

.store-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid rgba(143, 161, 201, 0.15);
}

.store-account-note {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.store-frame {
    background: var(--store-embed-bg);
    border-radius: 0;
    overflow: hidden;
    padding-top: 16px;
}

.store-frame #ecwid_html,
.store-frame #ecwid_body {
    background: var(--store-embed-bg) !important;
}

.store-frame #ecwid_body {
    color: #111827 !important;
}

html:not([data-theme="light"]) .store-frame {
    filter: invert(1) hue-rotate(180deg);
}

html:not([data-theme="light"]) .store-frame img {
    filter: invert(1) hue-rotate(180deg);
}

.store-alt-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    font-size: 0.875rem;
}

.store-alt-sep {
    color: #9ca3af;
}

.store-inline-btn {
    appearance: none;
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    font-size: inherit;
    color: var(--accent-alt);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.auth-page {
    max-width: 460px;
    margin: 0.6rem auto;
}

.page-auth #main-content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.page-auth .auth-page {
    width: 100%;
}

.page-auth .auth-divider {
    margin: 0.95rem 0 0.62rem;
}

.page-auth form .form-group {
    margin-bottom: 0.72rem;
}

.page-auth form .form-group:last-of-type {
    margin-bottom: 0.95rem;
}

.page-auth form .btn[type="submit"] {
    margin-top: 0.1rem;
}

.settings-cols {
    display: grid;
    grid-template-columns: minmax(0, 1.22fr) minmax(0, 0.92fr);
    gap: 0.72rem;
    align-items: start;
}

.settings-main {
    display: grid;
    gap: 0.72rem;
}

.settings-side {
    display: flex;
}

.settings-cols .settings-card {
    margin-bottom: 0;
    padding: 0.9rem 0.92rem;
}

.settings-side .settings-card--providers {
    width: 100%;
}

.settings-card--profile,
.settings-card--password {
    display: flex;
    flex-direction: column;
}

.settings-form {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.settings-form-actions {
    margin-top: auto;
    padding-top: 0.45rem;
}

.settings-form-actions--split {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    justify-content: space-between;
    flex-wrap: wrap;
}

.settings-form-actions--split .btn-password-trigger {
    margin-left: auto;
}

.settings-head {
    margin-bottom: 0.55rem;
}

.settings-head h1 {
    margin-bottom: 0.1rem;
}

.settings-cols--compact .settings-label {
    margin-bottom: 0.65rem;
}

.settings-label {
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.9rem;
}

.form-group {
    margin-bottom: 0.56rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.28rem;
    color: var(--text-soft);
    font-size: 0.84rem;
}

.form-control {
    width: 100%;
    color: var(--text);
    background: rgba(10, 22, 44, 0.7);
    border: 1px solid rgba(97, 137, 209, 0.3);
    border-radius: var(--radius-sm);
    min-height: var(--control-height);
    padding: 0.46rem 0.68rem;
    font-family: inherit;
    font-size: 0.84rem;
    line-height: 1.3;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: rgba(95, 151, 242, 0.7);
    box-shadow: 0 0 0 3px rgba(63, 140, 255, 0.2);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.btn {
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 0.68rem 1.1rem;
    min-height: var(--control-height);
    font-family: "Manrope", "IBM Plex Sans", sans-serif;
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn svg {
    flex-shrink: 0;
}

.btn-primary {
    color: #ecf8ff;
    background: linear-gradient(135deg, #4a8def, #316ac8);
    border-color: rgba(83, 143, 239, 0.58);
    box-shadow: 0 10px 22px rgba(31, 76, 156, 0.36);
}

.btn-primary:hover {
    color: #f4fbff;
    filter: brightness(1.05);
    box-shadow: 0 12px 24px rgba(20, 70, 102, 0.38);
}

.btn-outline {
    color: var(--text-soft);
    border-color: rgba(102, 148, 227, 0.42);
    background: rgba(16, 31, 60, 0.72);
}

.btn-outline:hover {
    color: #dceeff;
    border-color: rgba(117, 162, 238, 0.52);
    background: rgba(20, 38, 72, 0.84);
}

.btn-sm {
    padding: 0.4rem 0.85rem;
    font-size: 0.78rem;
    min-height: var(--control-height);
}

.btn-block {
    width: 100%;
    display: flex;
}

.btn-discord {
    color: #fff;
    background: linear-gradient(125deg, #636efe, #4f59de);
}

.btn-discord:hover {
    color: #fff;
    filter: brightness(1.07);
}

.btn-google {
    color: #fff;
    background: #3a3f4b;
    border: 1px solid #2f3645;
}

.btn-google:hover {
    color: #fff;
    background: #454b5a;
}

.btn-youtube {
    color: #fff;
    background: #ff0000;
    box-shadow: 0 8px 20px rgba(255, 0, 0, 0.28);
}

.btn-youtube:hover {
    color: #fff;
    filter: brightness(1.1);
}

.btn-danger {
    color: #fff;
    background: #e44d4d;
}

.btn-danger:hover {
    color: #fff;
    filter: brightness(1.07);
}

.btn-danger-outline {
    color: #e44d4d;
    border-color: rgba(228, 77, 77, 0.4);
}

.btn-danger-outline:hover {
    color: #fff;
    background: #e44d4d;
    border-color: #e44d4d;
}

.btn-password-trigger {
    color: #fff6dd;
    border-color: rgba(231, 173, 70, 0.55);
    background: linear-gradient(135deg, rgba(162, 98, 28, 0.8), rgba(122, 73, 19, 0.9));
    box-shadow: 0 8px 18px rgba(95, 57, 12, 0.32);
}

.btn-password-trigger:hover {
    color: #fffdf3;
    border-color: rgba(245, 195, 97, 0.72);
    filter: brightness(1.06);
}

.btn-linked-action {
    color: #aaf5d8;
    border-color: rgba(56, 211, 159, 0.45);
    background: rgba(56, 211, 159, 0.17);
}

.btn-linked-action:hover,
.btn-linked-action:focus-visible {
    color: #fff;
    background: #e44d4d;
    border-color: #e44d4d;
}

.btn-linked-text {
    line-height: 1;
}

.btn-linked-off {
    display: none;
}

.btn-linked-action:hover .btn-linked-on,
.btn-linked-action:focus-visible .btn-linked-on {
    display: none;
}

.btn-linked-action:hover .btn-linked-off,
.btn-linked-action:focus-visible .btn-linked-off {
    display: inline;
}

.provider-link-btn {
    width: 8.6rem;
    justify-content: center;
}

.auth-divider {
    margin: 1.25rem 0;
    display: flex;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.78rem;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    border-top: 1px solid rgba(143, 161, 201, 0.22);
}

.auth-divider span {
    padding: 0 0.72rem;
}

.oauth-buttons {
    display: grid;
    gap: 0.7rem;
}

.settings-modal {
    border: none;
    padding: 0;
    margin: auto;
    width: min(560px, calc(100% - 2rem));
    max-height: calc(100vh - 2rem);
    background: transparent;
    color: inherit;
}

.settings-modal::backdrop {
    background: rgba(2, 8, 20, 0.72);
    backdrop-filter: blur(4px);
}

.settings-modal .settings-card {
    margin-bottom: 0;
    padding: 1rem 1.05rem;
}

.settings-modal--compact {
    width: min(520px, calc(100% - 2rem));
}

.settings-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    margin-bottom: 0.7rem;
}

.settings-modal-head h2 {
    margin: 0;
    font-size: 1.08rem;
}

.settings-modal-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.settings-modal-error {
    margin-bottom: 0.75rem;
}

.settings-unlink-note {
    margin: 0;
    font-size: 0.83rem;
    color: var(--text-soft);
}

.settings-page {
    max-width: 1160px;
    margin: -0.6rem auto -0.85rem;
}

.settings-page .lead-text {
    font-size: 0.9rem;
}

.settings-page .alert {
    margin-bottom: 0.55rem;
    padding: 0.56rem 0.72rem;
    font-size: 0.82rem;
}

.provider-linked {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.provider-status {
    padding: 0.52rem 0;
    border-bottom: 1px solid rgba(143, 161, 201, 0.22);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

.provider-status:last-child {
    border-bottom: none;
}

.provider-status>span {
    font-size: 0.84rem;
}

.settings-provider-note {
    border-bottom: none;
    padding-bottom: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.settings-provider-note-text {
    font-size: 0.84rem;
    color: var(--text-soft);
}

.alert {
    padding: 0.75rem 0.9rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    font-size: 0.86rem;
    border: 1px solid transparent;
}

.alert-error {
    color: #ffb2b2;
    background: rgba(228, 77, 77, 0.13);
    border-color: rgba(228, 77, 77, 0.28);
}

.alert-success {
    color: #aaf5d8;
    background: rgba(56, 211, 159, 0.12);
    border-color: rgba(56, 211, 159, 0.3);
}

.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.23rem 0.58rem;
}

.form-group label .badge {
    margin-left: 0.45rem;
    vertical-align: middle;
}

.badge-new {
    color: #8bd9ff;
    background: rgba(56, 184, 255, 0.18);
}

.badge-active {
    color: #aaf5d8;
    background: rgba(56, 211, 159, 0.18);
}

.badge-disabled {
    color: #ffb2b2;
    background: rgba(228, 77, 77, 0.2);
}

.code-link,
code {
    font-family: "Consolas", "SFMono-Regular", monospace;
    color: #9ee7ff;
    background: rgba(56, 184, 255, 0.12);
    border-radius: 8px;
    border: 1px solid rgba(56, 184, 255, 0.2);
    padding: 0.15rem 0.4rem;
}

.text-muted {
    color: var(--text-muted);
}

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

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.is-hidden,
.dash-panel-hidden {
    display: none !important;
}

@keyframes scroll-testimonials {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.testimonials-section {
    overflow: visible;
}

.testimonials-scroll-wrapper {
    overflow-x: hidden;
    overflow-y: visible;
    mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
    padding: 0.55rem 0 0.85rem;
}

.testimonials-scroll-wrapper:hover .testimonials-track {
    animation-play-state: paused;
}

.testimonials-track {
    display: flex;
    gap: 1rem;
    width: max-content;
    align-items: stretch;
    animation: scroll-testimonials 60s linear infinite;
    will-change: transform;
}

.testimonial-card {
    padding: 1.5rem 1.75rem;
    width: 300px;
    min-height: 250px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    overflow: visible;
    transition: border-color 0.2s;
}

.testimonial-card:hover {
    border-color: var(--line-strong);
}

.testimonial-content {
    color: var(--text-soft);
    font-size: 0.925rem;
    line-height: 1.65;
    flex: 1;
    display: block;
    overflow: visible;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.testimonial-avatar {
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.testimonial-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text);
    display: block;
}

.testimonial-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.updates-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.updates-card {
    padding: 1.75rem 2rem;
}

.updates-card--minor {
    border-color: rgba(56, 184, 255, 0.28);
}

.updates-badge-minor {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.18rem 0.48rem;
    color: #b9eeff;
    background: rgba(56, 184, 255, 0.14);
    border: 1px solid rgba(56, 184, 255, 0.28);
    vertical-align: middle;
    margin-left: 0.45rem;
    font-family: "IBM Plex Sans", sans-serif;
}

.updates-list.hide-customer .updates-card--minor {
    display: none;
}

.updates-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.updates-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.updates-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
    flex-shrink: 0;
}

.updates-body {
    font-size: 0.9rem;
    color: var(--text-soft);
    line-height: 1.7;
    word-break: break-word;
}

.updates-body code {
    font-family: ui-monospace, monospace;
    font-size: 0.85em;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 0.1em 0.4em;
}

.updates-filter-btn {
    margin-top: 0.5rem;
}

.md-quote {
    display: block;
    border-left: 3px solid var(--line-strong);
    padding-left: 0.75rem;
    margin: 0.15rem 0;
    color: var(--text-muted);
    font-style: italic;
}

.md-h1,
.md-h2,
.md-h3 {
    display: block;
    font-family: "Manrope", "IBM Plex Sans", sans-serif;
    font-weight: 700;
    color: var(--text-soft);
    letter-spacing: -0.01em;
    margin: 0.6rem 0 0.1rem;
}

.md-h1 { font-size: 1.35rem; }
.md-h2 { font-size: 1.15rem; }
.md-h3 { font-size: 1rem; }

.hero-eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.6rem;
}

.youtube-card {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    overflow: hidden;
}

.youtube-card .video-embed-wrapper {
    border-radius: 0;
}

.youtube-card-info {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.25rem;
    border-left: 1px solid rgba(56, 184, 255, 0.16);
}

.youtube-card-text {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.youtube-video-desc {
    color: var(--text-soft);
    font-size: 0.875rem;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 860px) {
    .youtube-card {
        grid-template-columns: 1fr;
    }

    .youtube-card-info {
        border-left: none;
        border-top: 1px solid rgba(56, 184, 255, 0.16);
    }
}

.product-card {
    padding: 2rem 2.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.product-card-copy {
    flex: 1;
    min-width: 0;
}

.product-card-title {
    font-size: 1.4rem;
    margin: 0.3rem 0 0.6rem;
}

.product-card-copy p {
    color: var(--text-soft);
    max-width: 520px;
}

.product-card-actions {
    flex-shrink: 0;
}

.latest-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.latest-block {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.latest-block-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.latest-block-meta {
    font-size: 0.85rem;
    color: var(--text-soft);
    line-height: 1.45;
}

.x-embed-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    overflow: hidden;
    min-height: 200px;
}

@media (max-width: 700px) {
    .latest-content-grid {
        grid-template-columns: 1fr;
    }
}

.video-embed-wrapper {
    position: relative;
    aspect-ratio: 16/9;
}

.video-embed-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.latest-video-wrap {
    max-width: 700px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}

.video-thumb-card {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    text-decoration: none;
    color: inherit;
    border-radius: var(--radius-md);
    transition: transform 0.15s ease;
}

.video-thumb-card:hover {
    transform: translateY(-3px);
}

.video-thumb-wrapper {
    aspect-ratio: 16/9;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: rgba(56, 184, 255, 0.06);
}

.video-thumb-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-thumb-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0 0.1rem;
}

.video-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.45;
    margin: 0;
}

.video-card-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.hero-split {
    grid-template-columns: 1fr 1.35fr;
    align-items: stretch;
}

.hero-joined {
    border-radius: var(--radius-xl);
    border: 1px solid rgba(56, 184, 255, 0.24);
    background: linear-gradient(165deg, rgba(10, 16, 32, 0.92), rgba(12, 21, 42, 0.88));
    box-shadow: 0 18px 38px rgba(2, 8, 20, 0.3);
    padding: 0.9rem;
    gap: 0.9rem;
}

.hero-joined .hero-copy {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 1.1rem 1rem 1.1rem 1.25rem;
}

.hero-joined .hero-copy::before {
    display: none;
}

.hero-copy--compact {
    padding: 1.45rem 1.7rem;
}

.hero-copy--compact .hero-title {
    margin-bottom: 0.52rem;
}

.hero-copy--compact .hero-subtitle {
    margin-bottom: 0.72rem;
}

.hero-copy--compact .hero-buttons {
    padding-top: 0.72rem;
    gap: 0.62rem;
}

.hero-visual {
    overflow: hidden;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(56, 184, 255, 0.2);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.55), 0 0 48px rgba(56, 184, 255, 0.1);
    background: linear-gradient(165deg, rgba(10, 16, 32, 0.92), rgba(12, 21, 42, 0.88));
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-joined .hero-visual {
    box-shadow: none;
    background: transparent;
    border: none;
    padding: 0;
}

.hero-screenshot {
    width: 100%;
    height: auto;
    display: block;
}

.hero-visual--compact {
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-visual--compact .hero-screenshot {
    width: auto;
    max-width: 100%;
    max-height: 100%;
    height: auto;
    object-fit: contain;
    object-position: center center;
}

.hero-joined .hero-visual--compact {
    min-height: 320px;
    max-height: none;
    display: grid;
    place-items: center;
    padding: 0.35rem;
}

.hero-joined .hero-visual--compact .hero-screenshot {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center center;
    margin: 0;
}

.hero-intro {
    margin-top: 0.35rem;
}

.hero-intro-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.9rem;
    border-radius: 18px;
    border: 1px solid rgba(95, 136, 206, 0.27);
    background: linear-gradient(165deg, rgba(13, 26, 50, 0.9), rgba(11, 22, 43, 0.9));
    padding: 1.5rem 1.55rem;
    box-shadow: 0 12px 28px rgba(5, 13, 28, 0.28);
}

.hero-intro-main {
    min-width: 0;
}

.hero-intro-title {
    margin-bottom: 0.55rem;
    max-width: 16ch;
    font-size: clamp(2.05rem, 4.2vw, 2.9rem);
}

.hero-intro-subtitle {
    color: var(--text-soft);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.hero-intro-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.6rem;
    flex-wrap: nowrap;
    justify-self: end;
    padding-top: 0.2rem;
}

.hero-intro-actions .btn {
    width: 220px;
    justify-content: center;
}

.hero-intro-actions .btn-outline {
    background: #0b0b0d;
    border-color: rgba(255, 255, 255, 0.16);
    color: #f4f5f7;
}

.hero-intro-actions .btn-outline:hover {
    background: #141417;
    border-color: rgba(255, 255, 255, 0.24);
    color: #ffffff;
}

.hero-joined--flush {
    margin-top: 0;
}

.reactivation-body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.reactivation-steps-title {
    font-weight: 600;
    color: var(--text);
}

.reactivation-steps {
    padding-left: 1.5rem;
    color: var(--text-soft);
    font-size: 0.925rem;
    line-height: 1.7;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.reactivation-support {
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
    font-size: 0.875rem;
    color: var(--text-muted);
}

.reactivation-support a {
    color: var(--accent);
    text-decoration: none;
}

.reactivation-support a:hover {
    text-decoration: underline;
}

.reactivation-discount-area {
    margin-top: 1.25rem;
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--accent) 0%, rgba(56, 184, 255, 0.06) 100%);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    width: calc(50% - 2rem);
    margin-bottom: 1.75rem;
}

.timeline-item:nth-child(even) {
    margin-left: calc(50% + 2rem);
}

.timeline-item::before {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid var(--bg);
    box-shadow: 0 0 0 3px rgba(56, 184, 255, 0.18);
    top: 0.7rem;
}

.timeline-item:nth-child(odd)::before {
    right: calc(-2rem + 6px);
}

.timeline-item:nth-child(even)::before {
    left: calc(-2rem - 6px);
}

.timeline-year {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

.timeline-card {
    padding: 1.1rem 1.3rem;
}

.timeline-body {
    color: var(--text-soft);
    font-size: 0.9rem;
    line-height: 1.7;
}

.timeline-body em {
    color: var(--text);
    font-style: italic;
}

.story-timeline {
    max-width: min(1240px, 100%);
    margin: 0 auto;
    position: relative;
    display: grid;
    grid-template-columns: repeat(9, minmax(0, 1fr));
    gap: clamp(0.3rem, 0.7vw, 0.65rem);
    align-items: start;
    padding: 1.7rem 0 0.25rem;
    isolation: isolate;
}

.story-timeline::before {
    content: "";
    position: absolute;
    left: 0.5%;
    right: 0.5%;
    top: 2.1rem;
    height: 2px;
    background: linear-gradient(90deg,
            rgba(56, 184, 255, 0.2) 0%,
            rgba(56, 184, 255, 0.55) 16%,
            rgba(56, 184, 255, 0.55) 84%,
            rgba(56, 184, 255, 0.2) 100%);
    border-radius: 2px;
    pointer-events: none;
}

.story-entry {
    position: relative;
    min-width: 0;
    text-align: center;
    padding-top: 1rem;
    outline: none;
}

.story-entry::before {
    content: "";
    position: absolute;
    left: 50%;
    top: calc(2.1rem - 5px);
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(56, 184, 255, 0.9);
    box-shadow: 0 0 0 3px rgba(56, 184, 255, 0.14), 0 0 10px rgba(56, 184, 255, 0.22);
    z-index: 2;
}

.story-year {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(56, 184, 255, 0.9);
    margin: 1.2rem 0 0.3rem;
}

.story-summary {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.74rem;
    line-height: 1.4;
    max-width: 15ch;
    margin-inline: auto;
}

.story-entry:focus-visible {
    box-shadow: 0 0 0 2px rgba(56, 184, 255, 0.35);
    border-radius: 12px;
}

.story-entry .story-body {
    position: absolute;
    left: 50%;
    top: calc(100% + 0.65rem);
    transform: translateX(-50%) translateY(10px) scale(0.98);
    width: clamp(190px, 23vw, 300px);
    margin: 0;
    padding: 0.95rem 1rem;
    color: var(--text-soft);
    font-size: 0.89rem;
    line-height: 1.62;
    text-align: left;
    background: linear-gradient(165deg, var(--surface-soft), var(--surface-soft-alt));
    border: 1px solid var(--surface-border);
    border-radius: 12px;
    box-shadow: 0 16px 34px rgba(4, 12, 28, 0.42);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 10;
}

.story-entry:hover .story-body,
.story-entry:focus .story-body,
.story-entry:focus-within .story-body {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1);
}

.story-entry:nth-child(-n+2) .story-body {
    left: 0;
    transform: translateY(10px) scale(0.98);
}

.story-entry:nth-child(-n+2):hover .story-body,
.story-entry:nth-child(-n+2):focus .story-body,
.story-entry:nth-child(-n+2):focus-within .story-body {
    transform: translateY(0) scale(1);
}

.story-entry:nth-last-child(-n+2) .story-body {
    left: auto;
    right: 0;
    transform: translateY(10px) scale(0.98);
}

.story-entry:nth-last-child(-n+2):hover .story-body,
.story-entry:nth-last-child(-n+2):focus .story-body,
.story-entry:nth-last-child(-n+2):focus-within .story-body {
    transform: translateY(0) scale(1);
}

.contact-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 560px;
    margin: 0 auto;
}

.contact-option-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    text-decoration: none;
    color: var(--text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.contact-option-card:hover {
    border-color: rgba(56, 184, 255, 0.4);
    box-shadow: 0 4px 20px rgba(56, 184, 255, 0.08);
    transform: translateY(-1px);
}

.contact-option-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: rgba(56, 184, 255, 0.1);
    border: 1px solid rgba(56, 184, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.contact-option-body {
    flex: 1;
}

.contact-option-label {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

.contact-option-value {
    font-size: 0.975rem;
    font-weight: 500;
    color: var(--text);
}

.contact-option-arrow {
    flex-shrink: 0;
    color: var(--text-muted);
    transition: color 0.2s ease, transform 0.2s ease;
}

.contact-option-card:hover .contact-option-arrow {
    color: var(--accent);
    transform: translateX(3px);
}

.store-signin-card {
    text-align: center;
    padding: 3rem 2rem;
}

.store-card-title {
    margin-bottom: 0.5rem;
}

.store-card-subtitle {
    margin-bottom: 1.5rem;
}

.store-signin-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.store-flow-card {
    text-align: center;
    padding: 3rem 2rem;
}

.store-flow-status {
    margin-bottom: 1.25rem;
}

.store-flow-actions {
    margin-top: 1.25rem;
}

.legal-content .card h2 {
    margin-top: 1.2rem;
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.legal-content .card h2:first-child {
    margin-top: 0;
}

@media (max-width: 1080px) {
    .story-year {
        font-size: 0.66rem;
        margin-top: 1.1rem;
    }

    .story-summary {
        font-size: 0.68rem;
        line-height: 1.35;
    }

    .story-entry .story-body {
        width: clamp(180px, 28vw, 250px);
    }
}

@media (max-width: 980px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .features-grid,
    .highlight-row,
    .metric-grid,
    .abstract-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-split {
        grid-template-columns: 1fr;
    }

    .hero-visual--compact {
        min-height: 0;
    }

    .hero-screenshot {
        max-width: 640px;
        margin: 0 auto;
    }

    .nav-cta {
        display: none;
    }

    .hero-joined .hero-visual--compact {
        min-height: 0;
        max-height: none;
        padding: 0.2rem;
    }

    .hero-joined .hero-visual--compact .hero-screenshot {
        width: auto;
        height: auto;
        object-position: center center;
    }
}

@media (max-width: 960px) {
    .hero-intro-shell {
        gap: 1rem;
        grid-template-columns: 1fr;
    }

    .hero-intro-actions {
        align-items: flex-start;
        justify-self: start;
    }

    .hero-intro-actions .btn {
        width: auto;
    }
}

@media (max-width: 900px) {
    .dash-row {
        grid-template-columns: 1fr;
    }

    .settings-cols {
        grid-template-columns: 1fr;
    }

    .settings-side {
        display: block;
    }

    .guide-embed-wrapper {
        height: 70vh;
    }

    .dash-head {
        flex-direction: column;
        gap: 0.8rem;
    }

    .dash-head .metric-grid {
        width: 100%;
    }
}

@media (max-width: 860px) {
    .youtube-card {
        grid-template-columns: 1fr;
    }

    .youtube-card-info {
        border-left: none;
        border-top: 1px solid rgba(56, 184, 255, 0.16);
    }
}

@media (max-width: 800px) {
    .story-timeline {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        row-gap: 1.2rem;
        padding-top: 0.3rem;
    }

    .story-timeline::before,
    .story-entry::before {
        display: none;
    }

    .story-year {
        margin-top: 0;
    }

    .story-summary {
        font-size: 0.74rem;
    }

    .story-entry .story-body,
    .story-entry:nth-child(-n+2) .story-body,
    .story-entry:nth-last-child(-n+2) .story-body {
        left: 50%;
        right: auto;
        transform: translateX(-50%) translateY(10px) scale(0.98);
        width: min(280px, 88vw);
    }

    .story-entry:hover .story-body,
    .story-entry:focus .story-body,
    .story-entry:focus-within .story-body {
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

@media (max-width: 720px) {

    .nav-container,
    .container,
    .footer .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .nav-container {
        min-height: 68px;
    }

    .nav-right {
        margin-left: auto;
    }

    .nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
        padding: 0.75rem 1rem 1rem;
        background: var(--nav-bg);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(143, 161, 201, 0.2);
    }

    .theme-toggle {
        width: 50px;
        height: 30px;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a,
    .nav-link-button {
        border-radius: var(--radius-sm);
        padding: 0.6rem 0.9rem;
        width: 100%;
        text-align: left;
    }

    .nav-form {
        display: block;
    }

    .hero-copy,
    .hero-panel,
    .card {
        padding: 1.2rem;
    }

    .hero-points span {
        font-size: 0.75rem;
    }

    .features-grid,
    .highlight-row,
    .metric-grid,
    .hero-stats,
    .abstract-grid {
        grid-template-columns: 1fr;
    }

    .orders-table {
        display: block;
        overflow-x: auto;
    }
}

@media (max-width: 640px) {
    .timeline::before {
        left: 1rem;
        transform: none;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        width: 100%;
        margin-left: 0;
        padding-left: 2.5rem;
    }

    .timeline-item:nth-child(odd)::before,
    .timeline-item:nth-child(even)::before {
        left: calc(1rem - 6px);
        right: auto;
    }
}

html[data-theme="light"] a:hover {
    color: var(--text);
}

html[data-theme="light"] .brand-title {
    color: var(--text);
}

html[data-theme="light"] .brand-mark {
    background: #000;
    border-color: rgba(0, 0, 0, 0.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

html[data-theme="light"] .nav-links a.active,
html[data-theme="light"] .nav-links a:hover,
html[data-theme="light"] .nav-link-button:hover,
html[data-theme="light"] .nav-links a:focus-visible,
html[data-theme="light"] .nav-link-button:focus-visible {
    color: var(--text);
    background: rgba(27, 102, 191, 0.14);
    border-color: rgba(27, 102, 191, 0.3);
}

html[data-theme="light"] .hero-copy,
html[data-theme="light"] .hero-panel,
html[data-theme="light"] .card,
html[data-theme="light"] .feature-card,
html[data-theme="light"] .abstract-card,
html[data-theme="light"] .youtube-card,
html[data-theme="light"] .timeline-card,
html[data-theme="light"] .contact-option-card,
html[data-theme="light"] .product-card,
html[data-theme="light"] .updates-card,
html[data-theme="light"] .testimonial-card,
html[data-theme="light"] .metric-card,
html[data-theme="light"] .stat-card,
html[data-theme="light"] .hero-intro-shell {
    background: linear-gradient(180deg, rgba(245, 249, 255, 0.95), rgba(234, 242, 252, 0.95));
    border-color: var(--surface-border);
    box-shadow: 0 10px 22px rgba(24, 66, 130, 0.12);
}

html[data-theme="light"] .card::before,
html[data-theme="light"] .feature-card::before,
html[data-theme="light"] .abstract-card::before,
html[data-theme="light"] .hero-copy::before,
html[data-theme="light"] .hero-panel::before {
    background: linear-gradient(90deg, transparent, rgba(27, 102, 191, 0.2), transparent);
}

html[data-theme="light"] .hero-joined {
    background: var(--surface-soft);
    border-color: var(--surface-border);
    box-shadow: 0 10px 24px rgba(34, 77, 133, 0.09);
}

html[data-theme="light"] .hero-joined .hero-copy {
    background: transparent;
    border: none;
    box-shadow: none;
}

html[data-theme="light"] .hero-visual,
html[data-theme="light"] .hero-joined .hero-visual {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

html[data-theme="light"] .hero-panel-tag {
    color: #0c5b8e;
    background: rgba(14, 123, 221, 0.12);
    border-color: rgba(14, 123, 221, 0.28);
}

html[data-theme="light"] .hero-title,
html[data-theme="light"] .dash-tab--active {
    color: var(--text);
}

html[data-theme="light"] .hero-badge,
html[data-theme="light"] .hero-points span,
html[data-theme="light"] .metric-card,
html[data-theme="light"] .stat-card {
    background: rgba(236, 243, 253, 0.9);
    border-color: rgba(27, 102, 191, 0.24);
}

html[data-theme="light"] .btn-primary {
    color: #ffffff;
    background: linear-gradient(130deg, #2a7fb0, #216891);
    border-color: rgba(22, 107, 168, 0.3);
    box-shadow: 0 8px 18px rgba(16, 89, 143, 0.28);
}

html[data-theme="light"] .btn-primary:hover {
    color: #ffffff;
    filter: brightness(1.04);
}

html[data-theme="light"] .btn-outline {
    background: rgba(237, 244, 253, 0.94);
    border-color: rgba(27, 102, 191, 0.3);
    color: var(--text);
}

html[data-theme="light"] .btn-outline:hover {
    background: rgba(27, 102, 191, 0.1);
    border-color: rgba(27, 102, 191, 0.42);
    color: var(--text);
}

html[data-theme="light"] .hero-intro-actions .btn-outline {
    background: rgba(237, 244, 253, 0.94);
    border-color: rgba(27, 102, 191, 0.32);
    color: var(--text);
}

html[data-theme="light"] .hero-intro-actions .btn-outline:hover {
    background: rgba(27, 102, 191, 0.1);
    border-color: rgba(27, 102, 191, 0.42);
    color: var(--text);
}

html[data-theme="light"] .btn-password-trigger {
    color: #61390f;
    border-color: rgba(176, 120, 41, 0.48);
    background: linear-gradient(135deg, rgba(245, 199, 123, 0.55), rgba(234, 178, 90, 0.48));
}

html[data-theme="light"] .btn-password-trigger:hover {
    color: #4f2d08;
    border-color: rgba(176, 120, 41, 0.62);
    background: linear-gradient(135deg, rgba(245, 199, 123, 0.68), rgba(234, 178, 90, 0.62));
}

html[data-theme="light"] .btn-linked-action {
    color: #0f5d43;
    border-color: rgba(15, 125, 89, 0.38);
    background: rgba(15, 125, 89, 0.14);
}

html[data-theme="light"] .btn-linked-action:hover,
html[data-theme="light"] .btn-linked-action:focus-visible {
    color: #ffffff;
    background: #d54848;
    border-color: #d54848;
}

html[data-theme="light"] .btn-discord,
html[data-theme="light"] .btn-discord:hover,
html[data-theme="light"] .btn-youtube,
html[data-theme="light"] .btn-youtube:hover {
    color: #ffffff;
}

html[data-theme="light"] .btn-google {
    color: #1b3558;
    background: #f3f7fd;
    border-color: rgba(27, 53, 88, 0.2);
}

html[data-theme="light"] .btn-google:hover {
    color: #122b4b;
    background: #e8f0fb;
    border-color: rgba(27, 53, 88, 0.26);
}

html[data-theme="light"] .form-control {
    background: var(--bg-input);
    border-color: var(--line);
    color: var(--text);
}

html[data-theme="light"] .form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

html[data-theme="light"] .orders-table tbody tr:hover {
    background: rgba(13, 114, 204, 0.08);
}

html[data-theme="light"] .orders-table th,
html[data-theme="light"] .orders-table td {
    border-bottom-color: rgba(72, 101, 137, 0.22);
}

html[data-theme="light"] .orders-table th {
    color: #4a688f;
}

html[data-theme="light"] .dash-tabs {
    border-bottom-color: rgba(72, 101, 137, 0.26);
}

html[data-theme="light"] .dash-tab {
    color: #45658c;
}

html[data-theme="light"] .dash-tab:hover {
    color: var(--text);
    background: rgba(13, 114, 204, 0.06);
}

html[data-theme="light"] .dash-tab--active {
    color: var(--text);
    border-bottom-color: var(--accent);
}

html[data-theme="light"] .code-link,
html[data-theme="light"] code {
    color: #0f568f;
    background: rgba(13, 114, 204, 0.09);
    border-color: rgba(13, 114, 204, 0.2);
}

html[data-theme="light"] .badge-new,
html[data-theme="light"] .badge-active,
html[data-theme="light"] .badge-disabled {
    border: 1px solid transparent;
}

html[data-theme="light"] .badge-new {
    color: #0f4d83;
    background: rgba(14, 123, 221, 0.14);
    border-color: rgba(14, 123, 221, 0.28);
}

html[data-theme="light"] .badge-active {
    color: #0f5a42;
    background: rgba(40, 179, 130, 0.17);
    border-color: rgba(40, 179, 130, 0.3);
}

html[data-theme="light"] .badge-disabled {
    color: #8a2a2a;
    background: rgba(212, 88, 88, 0.14);
    border-color: rgba(212, 88, 88, 0.28);
}

html[data-theme="light"] .alert-error {
    color: #8f1f1f;
    background: rgba(212, 88, 88, 0.14);
    border-color: rgba(212, 88, 88, 0.3);
}

html[data-theme="light"] .alert-success {
    color: #0a5b43;
    background: rgba(40, 179, 130, 0.14);
    border-color: rgba(40, 179, 130, 0.3);
}

html[data-theme="light"] .updates-card--minor {
    border-color: rgba(14, 123, 221, 0.28);
}

html[data-theme="light"] .updates-badge-minor {
    color: #0c4f8e;
    background: rgba(14, 123, 221, 0.14);
    border-color: rgba(14, 123, 221, 0.28);
}

html[data-theme="light"] .contact-option-card:hover {
    border-color: rgba(14, 123, 221, 0.34);
    box-shadow: 0 4px 18px rgba(14, 123, 221, 0.14);
}

html[data-theme="light"] .timeline-item::before {
    border-color: #f0f6ff;
}

html[data-theme="light"] .story-year {
    color: #2f5f90;
}

html[data-theme="light"] .gradient-text {
    background: linear-gradient(130deg, #1756a8, #0f6ea9);
    -webkit-background-clip: text;
    background-clip: text;
}

html[data-theme="light"] .guide-embed-wrapper,
html[data-theme="light"] .x-embed-wrapper,
html[data-theme="light"] .video-thumb-wrapper {
    background: rgba(233, 241, 252, 0.88);
    border-color: rgba(27, 102, 191, 0.2);
}

html[data-theme="light"] .store-card-top {
    border-bottom-color: rgba(27, 102, 191, 0.18);
}

html[data-theme="light"] .auth-divider::before,
html[data-theme="light"] .auth-divider::after {
    border-top-color: rgba(27, 102, 191, 0.2);
}

html[data-theme="light"] .settings-modal::backdrop {
    background: rgba(14, 28, 52, 0.3);
    backdrop-filter: blur(5px);
}

html[data-theme="light"] .footer-social .social-link:hover {
    border-color: rgba(27, 102, 191, 0.28);
    background: rgba(27, 102, 191, 0.08);
}

:where(a, button, [role="button"], input, select, textarea, .btn, .theme-toggle, .nav-link-button):focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px var(--focus-ring);
}

/* ─── Scroll-reveal animation ─── */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.52s ease, transform 0.52s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: none;
}

.reveal[data-reveal-delay="1"] { transition-delay: 0.09s; }
.reveal[data-reveal-delay="2"] { transition-delay: 0.18s; }
.reveal[data-reveal-delay="3"] { transition-delay: 0.27s; }
.reveal[data-reveal-delay="4"] { transition-delay: 0.36s; }
.reveal[data-reveal-delay="5"] { transition-delay: 0.45s; }

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }

    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    ::view-transition-old(main-content),
    ::view-transition-new(main-content) {
        animation: none !important;
    }

    .nav-item,
    .nav-item::before {
        transition: none;
    }
}

.nav-item {
    --nav-base-padding: 0.88rem;
    --nav-icon-size: 18px;
    --nav-icon-gap: 0.42rem;
    --nav-icon-space: calc(var(--nav-icon-size) + var(--nav-icon-gap));
    --nav-anim-fast: 140ms;
    --nav-anim-base: 170ms;
    --nav-anim-ease: cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 2.25rem;
    gap: 0;
    padding-inline-start: var(--nav-base-padding);
    padding-inline-end: calc(var(--nav-base-padding) + var(--nav-icon-space));
    will-change: transform, padding-inline-start, padding-inline-end;
    transition:
        transform var(--nav-anim-fast) var(--nav-anim-ease),
        color var(--nav-anim-fast) ease,
        background var(--nav-anim-fast) ease,
        border-color var(--nav-anim-fast) ease,
        box-shadow var(--nav-anim-fast) ease,
        padding-inline-start var(--nav-anim-base) var(--nav-anim-ease),
        padding-inline-end var(--nav-anim-base) var(--nav-anim-ease);
}

.nav-cta.nav-item {
    --nav-base-padding: 1rem;
}

.nav-item::before {
    content: "";
    position: absolute;
    left: var(--nav-base-padding);
    top: 50%;
    width: var(--nav-icon-size);
    height: var(--nav-icon-size);
    background-image: var(--nav-icon-png);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    opacity: 0;
    transform: translate(var(--nav-icon-space), -50%) scale(0.94);
    will-change: transform, opacity;
    transition:
        opacity var(--nav-anim-fast) ease,
        transform var(--nav-anim-base) var(--nav-anim-ease);
    pointer-events: none;
}

.nav-item::after {
    content: none !important;
}

.nav-item:hover,
.nav-item:focus-visible {
    transform: none;
    padding-inline-start: calc(var(--nav-base-padding) + var(--nav-icon-space));
    padding-inline-end: var(--nav-base-padding);
}

.nav-item.active {
    padding-inline-start: calc(var(--nav-base-padding) + var(--nav-icon-space));
    padding-inline-end: var(--nav-base-padding);
}

.nav-item.active::before,
.nav-item:hover::before,
.nav-item:focus-visible::before {
    opacity: 1;
    transform: translate(0, -50%) scale(1.02);
}

html[data-theme="light"] .nav-item::before {
    filter: grayscale(1) brightness(0.2) contrast(1.35);
    opacity: 0;
}

html[data-theme="light"] .nav-item.active::before,
html[data-theme="light"] .nav-item:hover::before,
html[data-theme="light"] .nav-item:focus-visible::before {
    opacity: 0.96;
}

html[data-theme="light"] .nav-cta::before {
    filter: brightness(0) invert(1);
}

.nav-item-home {
    --nav-icon-png: url("/images/nav/home.png");
}

.nav-item-dashboard {
    --nav-icon-png: url("/images/nav/dashboard.png");
}

.nav-item-tweaks {
    --nav-icon-png: url("/images/nav/tweaks.png");
}

.nav-item-store {
    --nav-icon-png: url("/images/nav/store.png");
}

.nav-item-about {
    --nav-icon-png: url("/images/nav/about.png");
}

.nav-item-contact {
    --nav-icon-png: url("/images/nav/contact.png");
}

.nav-item-account {
    --nav-icon-png: url("/images/nav/account.png");
}

.nav-item-login {
    --nav-icon-png: url("/images/nav/login.png");
}

.nav-item-logout {
    --nav-icon-png: url("/images/nav/logout.png");
}

.nav-item-start {
    --nav-icon-png: url("/images/nav/start.png");
    padding-inline-start: calc(var(--nav-base-padding) + var(--nav-icon-space));
    padding-inline-end: var(--nav-base-padding);
}

.nav-item-start::before {
    opacity: 1;
    transform: translate(0, -50%) scale(1.02);
}

html[data-theme="light"] .nav-item-start::before {
    opacity: 0.96;
}

.nav-cta.nav-item-dashboard {
    padding-inline-start: calc(var(--nav-base-padding) + var(--nav-icon-space));
    padding-inline-end: var(--nav-base-padding);
}

.nav-cta.nav-item-dashboard::before {
    opacity: 1;
    transform: translate(0, -50%) scale(1.02);
}

html[data-theme="light"] .nav-cta.nav-item-dashboard::before {
    opacity: 1;
}

@media (max-width: 720px) {
    .nav-item {
        --nav-icon-size: 19px;
        --nav-icon-gap: 0.46rem;
    }
}

@media (pointer: coarse) {
    .nav-item {
        --nav-anim-fast: 110ms;
        --nav-anim-base: 130ms;
    }

    .nav-item:hover,
    .nav-item:focus-visible {
        transform: none;
    }
}