:root {
    color-scheme: dark;
    --font-sans: "SF Pro Text", "SF Pro Display", system-ui, -apple-system,
        BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --color-bg: #0b0d14;
    --color-fg: #edf1f8;
    --color-muted: #a4afc2;
    --color-border: rgba(255, 255, 255, 0.14);
    --glass-weak: rgba(255, 255, 255, 0.06);
    --glass-strong: rgba(255, 255, 255, 0.12);
    --glass-nav: rgba(12, 16, 24, 0.78);
    --accent-glow: rgba(120, 170, 255, 0.22);
    --shadow-soft: 0 18px 45px -30px rgba(0, 0, 0, 0.6);
    --shadow-float: 0 24px 60px -40px rgba(0, 0, 0, 0.7);
    --radius-small: 12px;
    --radius-medium: 16px;
    --radius-large: 20px;
    --radius-pill: 999px;
    --space-8: 0.8rem;
    --space-12: 1.2rem;
    --space-16: 1.6rem;
    --space-24: 2.4rem;
    --space-32: 3.2rem;
    --space-48: 4.8rem;
    --space-64: 6.4rem;
    --container-width: 1120px;
    --max-width: var(--container-width);
    --space-gutter: var(--space-24);
    --space-stack: var(--space-24);
    --space-grid: var(--space-32);
    --space-section: var(--space-64);
    --color-background: var(--color-bg);
    --color-surface: var(--glass-strong);
    --color-surface-muted: var(--glass-weak);
    --color-text: var(--color-fg);
    --color-text-muted: var(--color-muted);
    --color-accent: #9ec7ff;
    --color-accent-strong: #d6e7ff;
    --color-ember: #f2a35c;
    --color-emerald: #19b89a;
    --accent-wash: rgba(255, 255, 255, 0.06);
    --accent-border: rgba(255, 255, 255, 0.2);
    --accent-border-strong: rgba(255, 255, 255, 0.28);
    --accent-sheen: rgba(255, 255, 255, 0.18);
    --accent-shadow: 0 16px 36px -24px rgba(0, 0, 0, 0.65);
    --accent-shadow-strong: 0 24px 50px -28px rgba(0, 0, 0, 0.75);
    --focus-ring: rgba(158, 199, 255, 0.6);
    --footer-border: rgba(255, 255, 255, 0.08);
    --nav-background: var(--glass-nav);
    --nav-border: rgba(255, 255, 255, 0.1);
    --noise-texture: repeating-linear-gradient(
        0deg,
        rgba(255, 255, 255, 0.02) 0px,
        rgba(255, 255, 255, 0.02) 1px,
        transparent 1px,
        transparent 3px
    );
}

@media (prefers-color-scheme: light) {
    :root {
        color-scheme: light;
        --color-bg: #f5f7fb;
        --color-fg: #0d1422;
        --color-muted: #4d5b71;
        --color-border: rgba(13, 20, 34, 0.12);
        --glass-weak: rgba(255, 255, 255, 0.65);
        --glass-strong: rgba(255, 255, 255, 0.82);
        --glass-nav: rgba(255, 255, 255, 0.88);
        --accent-glow: rgba(84, 132, 255, 0.18);
        --shadow-soft: 0 18px 45px -30px rgba(12, 18, 32, 0.25);
        --shadow-float: 0 24px 50px -36px rgba(12, 18, 32, 0.3);
        --color-accent: #2f6cff;
        --color-accent-strong: #1e4bc2;
        --accent-wash: rgba(12, 18, 32, 0.04);
        --accent-border: rgba(12, 18, 32, 0.12);
        --accent-border-strong: rgba(12, 18, 32, 0.2);
        --accent-sheen: rgba(255, 255, 255, 0.6);
        --focus-ring: rgba(47, 108, 255, 0.45);
        --footer-border: rgba(12, 18, 32, 0.08);
        --nav-border: rgba(12, 18, 32, 0.1);
    }
}

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

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: clamp(1.6rem, 1.3rem + 0.5vw, 1.8rem);
    line-height: 1.6;
    background-color: var(--color-background);
    background-image:
        radial-gradient(65vmax 65vmax at 12% 12%, var(--accent-glow), transparent 60%),
        radial-gradient(45vmax 45vmax at 88% 8%, rgba(255, 255, 255, 0.05), transparent 55%),
        radial-gradient(50vmax 50vmax at 70% 85%, rgba(120, 170, 255, 0.12), transparent 60%);
    color: var(--color-text);
    letter-spacing: 0.005em;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    min-height: 100%;
    position: relative;
    overflow-x: hidden;
}

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

a {
    color: var(--color-accent);
    text-decoration: underline;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.2em;
    transition: color 0.2s ease-in-out;
}

a:hover,
a:focus-visible {
    color: var(--color-accent-strong);
}

.link {
    color: var(--color-accent);
    text-decoration: underline;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.2em;
}

.link:hover,
.link:focus-visible {
    color: var(--color-accent-strong);
}

a:focus-visible,
.btn:focus-visible,

.profile-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.2rem;
    align-items: baseline;
}

.profile-label {
    font-weight: 700;
    opacity: 0.75;
    white-space: nowrap;
}

.reveal {
    display: inline;
    margin: 0;
}

.reveal__summary {
    list-style: none;
    cursor: pointer;
    display: inline;
    user-select: none;
    color: var(--color-accent);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.reveal__summary::-webkit-details-marker {
    display: none;
}

.reveal[open] > .reveal__summary {
    display: none;
}

.reveal__value {
    display: inline;
    color: var(--color-accent);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.reveal:not([open]) .reveal__value {
    display: none;
}

.reveal summary:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 3px;
}

::selection {
    background-color: rgba(13, 139, 215, 0.22);
}

.site {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    isolation: isolate;
}

.site::before {
    content: "";
    position: fixed;
    inset: 0;
    background: radial-gradient(80vmax 80vmax at 50% -10%, rgba(255, 255, 255, 0.12), transparent 60%);
    opacity: 0.55;
    z-index: -2;
    pointer-events: none;
}

.site::after {
    content: "";
    position: fixed;
    inset: 0;
    background-image: var(--noise-texture);
    opacity: 0.18;
    mix-blend-mode: soft-light;
    z-index: -1;
    pointer-events: none;
}

.container,
.layout {
    width: min(100%, var(--max-width));
    margin: 0 auto;
    padding: 0 var(--space-gutter);
}

.stack {
    display: flex;
    flex-direction: column;
    gap: var(--space-16);
}

.cluster {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-12) var(--space-16);
}

.grid {
    display: grid;
    gap: var(--space-24);
}

.site-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--nav-background);
    border-bottom: 1px solid var(--nav-border);
    box-shadow: 0 10px 30px -24px rgba(0, 0, 0, 0.6);
}

.site-nav__inner {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-12) var(--space-24);
    align-items: center;
    justify-content: space-between;
    padding: var(--space-12) 0;
}

.site-nav__brand {
    font-weight: 600;
    color: var(--color-text);
    letter-spacing: 0.02em;
    text-transform: none;
    font-size: 1.4rem;
    text-decoration: none;
}

.site-nav__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem 1.4rem;
    font-size: 1.2rem;
    color: var(--color-text-muted);
}

.site-nav__links a {
    color: var(--color-text-muted);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-decoration: none;
}

.site-nav__links a:hover,
.site-nav__links a:focus-visible {
    color: var(--color-accent-strong);
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .site-nav {
        background: var(--glass-nav);
        backdrop-filter: blur(18px) saturate(140%);
        -webkit-backdrop-filter: blur(18px) saturate(140%);
    }

    .card,
    .profile-card,
    .stats__item,
    .timeline__item,
    .app-card,
    .app-feature,
    .btn {
        backdrop-filter: blur(16px) saturate(140%);
        -webkit-backdrop-filter: blur(16px) saturate(140%);
    }
}

.hero {
    padding: 0 0 var(--space-48);
    position: relative;
    overflow: visible;
}

.hero__layout {
    display: grid;
    gap: var(--space-32);
    align-items: center;
    position: relative;
    z-index: 1;
    padding-top: var(--space-24);
    grid-template-columns: minmax(0, 1fr);
}

.hero__layout--split {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.hero__content {
    display: flex;
    flex-direction: column;
    gap: var(--space-16);
}

.hero__panel {
    display: flex;
    justify-content: center;
}

.profile-card {
    width: min(100%, 360px);
    padding: var(--space-24);
    border-radius: var(--radius-large);
    border: 1px solid var(--color-border);
    background: var(--glass-strong);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.profile-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 60%);
    opacity: 0.45;
    z-index: 0;
}

.profile-card__header {
    position: relative;
    z-index: 1;
    margin-bottom: 2rem;
}

.profile-card__eyebrow {
    margin: 0 0 0.6rem;
    font-size: 1.1rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.profile-card__header h2 {
    margin: 0 0 0.6rem;
    font-size: 2.4rem;
}

.profile-card__role {
    margin: 0;
    color: var(--color-text-muted);
}

.profile-card__list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    display: grid;
    gap: 1rem;
    color: var(--color-text-muted);
    position: relative;
    z-index: 1;
}

.profile-card__highlights {
    display: grid;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.highlight {
    padding: 1.2rem 1.4rem;
    border-radius: var(--radius-small);
    border: 1px solid var(--accent-border);
    background: var(--glass-weak);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.highlight__value {
    font-weight: 700;
    font-size: 1.4rem;
}

.highlight__label {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 1rem;
    color: var(--color-text-muted);
}

.hero__kicker {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--color-text-muted);
}

.hero__kicker-inline {
    text-transform: none;
    letter-spacing: 0.04em;
}

.hero__title {
    margin: 0;
    font-size: clamp(3.6rem, 3rem + 2vw, 5.2rem);
    font-family: var(--font-sans);
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 1.08;
    text-wrap: balance;
}

.hero__summary,
.hero__lede {
    margin: 0;
    color: var(--color-text-muted);
    max-width: 60ch;
    line-height: 1.7;
}

.hero__summary--secondary,
.hero__lede--secondary {
    margin-top: -0.6rem;
    font-size: 1.5rem;
}

.hero__summary a,
.hero__meta a,
.profile-card__list a,
.section__header a,
.card__list a,
.timeline__list a,
.projects__list a,
.section__list a,
.legal-content a,
.guide-content a {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
}

.hero__eyebrow {
    color: var(--color-accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-12) var(--space-24);
    padding: 0;
    margin: 0;
    list-style: none;
    color: var(--color-text-muted);
    font-size: 1.3rem;
}

.hero__meta li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
}

.reveal__summary:focus-visible,
.reveal__value:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 4px;
    border-radius: 8px;
}

.hero__actions,
.hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-12) var(--space-16);
    align-items: center;
}

.hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem 1.2rem;
}

.chip,
.badge,
.tag {
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--accent-border);
    background: var(--glass-weak);
    color: var(--color-text-muted);
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
}

.apps-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.apps-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-section) var(--space-gutter);
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-grid);
    width: 100%;
    max-width: 980px;
}

.app-card {
    background: var(--glass-strong);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-large);
    padding: var(--space-24);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-16);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: var(--color-text);
    aspect-ratio: 1 / 1;
    justify-content: center;
    box-shadow: var(--shadow-soft);
}

.app-card:hover {
    box-shadow: var(--shadow-float);
    border-color: var(--accent-border-strong);
}

.app-logo {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-medium);
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.15));
    object-fit: contain;
}

.app-title {
    font-size: 2.4rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    text-wrap: balance;
}

.app-desc {
    font-size: 1.4rem;
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.5;
}

.page--nodex {
    --color-accent: var(--color-emerald);
    --color-accent-strong: #0d967b;
    --accent-glow: rgba(25, 184, 154, 0.2);
}

.page--termex {
    --color-accent: #4cd7c9;
    --color-accent-strong: #1fb8a9;
    --accent-glow: rgba(76, 215, 201, 0.2);
}

.page--app {
    min-height: 100svh;
}

.page--app .site {
    min-height: 100svh;
}


.page--app .app-hero {
    flex: 1;
    display: flex;
    align-items: center;
    padding: var(--space-32) 0 var(--space-48);
}

.page--app .app-hero__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: clamp(2.4rem, 4vw, 4.8rem);
    align-items: center;
}

.page--app .app-hero__content {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}

.page--app .app-hero__eyebrow {
    margin: 0;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.24em;
    color: var(--color-text-muted);
}

.page--app .app-hero__title {
    margin: 0;
    font-size: clamp(3.4rem, 2.8rem + 2vw, 5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.08;
    text-wrap: balance;
}

.page--app .app-hero__title em {
    font-style: normal;
    color: var(--color-accent-strong);
}

.page--app .app-hero__lead {
    margin: 0;
    max-width: 46ch;
    color: var(--color-text-muted);
    line-height: 1.65;
}

.page--app .app-hero__tags {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem 1.2rem;
    font-size: 1.3rem;
    color: var(--color-text-muted);
}

.page--app .app-hero__tags li {
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    border: 1px solid var(--accent-border);
    background: var(--glass-weak);
}

.page--app .app-hero__features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
    margin-top: 0.8rem;
}

.page--app .app-feature {
    padding: 1.2rem 1.4rem;
    border-radius: var(--radius-small);
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    box-shadow: var(--shadow-soft);
}

.page--app .app-feature__title {
    margin: 0 0 0.4rem;
    font-size: 1.2rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.page--app .app-feature__text {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 1.2rem;
    line-height: 1.4;
}

.page--app .app-hero__visual {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.page--app .app-hero__logo {
    width: min(320px, 80vw);
    height: auto;
    filter: drop-shadow(0 30px 30px rgba(0, 0, 0, 0.4));
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    min-height: 44px;
    padding: 0 1.8rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--color-border);
    background: var(--glass-weak);
    color: var(--color-text);
    font-weight: 600;
    text-decoration: none;
    box-shadow: var(--shadow-soft);
    transition: background-color 0.2s ease, border-color 0.2s ease,
        box-shadow 0.2s ease, transform 0.2s ease;
    cursor: pointer;
}

.btn--primary {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08));
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow: var(--shadow-float);
}

.btn--secondary {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
    border-color: rgba(255, 255, 255, 0.2);
}

.btn--ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--color-text);
    box-shadow: none;
}

.btn--sm {
    min-height: 36px;
    padding: 0 1.4rem;
    font-size: 1.3rem;
}

.btn:hover {
    background-color: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.32);
    box-shadow: var(--shadow-float);
}

.btn--ghost:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow: none;
}

.btn:active {
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-soft);
}

.section {
    padding: var(--space-section) 0;
    position: relative;
    scroll-margin-top: 8rem;
}

.section__header {
    max-width: 70ch;
    margin-bottom: var(--space-grid);
    position: relative;
}

.section__header h2 {
    margin: 0 0 1rem;
    font-size: clamp(2.8rem, 2.2rem + 1.2vw, 3.8rem);
    font-family: var(--font-sans);
    letter-spacing: -0.01em;
    line-height: 1.1;
    text-wrap: balance;
}

.section__header p {
    margin: 0;
    color: var(--color-text-muted);
}

.legal-content {
    max-width: 70ch;
    margin: 0 auto;
    padding: var(--space-section) 0;
}

.legal-content h2 {
    font-size: 2.4rem;
    margin-top: 3rem;
    margin-bottom: 1.6rem;
    color: var(--color-text);
}

.legal-content h3 {
    font-size: 1.8rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.legal-content p {
    color: var(--color-text-muted);
    margin-bottom: 1.2rem;
    line-height: 1.6;
    font-size: 1.5rem;
}

.legal-highlight {
    background: var(--glass-weak);
    border: 1px solid var(--accent-border);
    border-radius: var(--radius-small);
    padding: 2rem;
    margin: 2rem 0;
}

.legal-highlight__title {
    margin-top: 0;
    color: var(--color-accent-strong);
}

.legal-highlight__text {
    margin-bottom: 0;
}

.guide-content {
    max-width: 70ch;
    margin: 0 auto;
    padding: var(--space-section) 0;
}

.guide-step {
    margin-bottom: var(--space-grid);
}

.guide-step h3 {
    font-size: 2.4rem;
    margin-bottom: 1.6rem;
    color: var(--color-text);
}

.package-list {
    display: grid;
    gap: 1.6rem;
    margin: 2rem 0;
}

.package-item {
    padding: 1.6rem;
    background: var(--glass-weak);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-small);
    display: grid;
    gap: 0.4rem;
}

.package-name {
    font-family: monospace;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text);
}

.package-desc {
    font-size: 1.4rem;
    color: var(--color-text-muted);
}

.code-block {
    background: rgba(12, 16, 24, 0.75);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-small);
    padding: 1.6rem;
    overflow-x: auto;
    font-family: monospace;
    font-size: 1.4rem;
    line-height: 1.5;
    margin: 1.6rem 0;
    color: #f1f5fb;
}

.code-block--pre {
    white-space: pre;
}

.code-label {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    margin-bottom: 0.8rem;
    display: block;
}

.note {
    background: var(--glass-weak);
    border: 1px solid var(--accent-border);
    border-radius: var(--radius-small);
    padding: 1.6rem;
    margin-top: 1.6rem;
    font-size: 1.4rem;
}

.note strong {
    color: var(--color-accent-strong);
}

.note--warning {
    background: color-mix(in srgb, var(--color-ember) 18%, transparent);
    border-color: color-mix(in srgb, var(--color-ember) 32%, transparent);
}

.note--warning strong {
    color: var(--color-ember);
}

.centered-cta {
    margin: 5rem 0 8rem;
    text-align: center;
}

.code-inline-block {
    background: none;
    padding: 0;
    display: block;
    margin-top: 0.5rem;
}

.card-grid {
    display: grid;
    gap: var(--space-24);
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    align-items: stretch;
}

.card-grid > .card {
    height: 100%;
}

.stats {
    display: grid;
    gap: var(--space-24);
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.stats__item {
    padding: var(--space-24);
    background: var(--glass-strong);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-large);
    text-align: left;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    isolation: isolate;
}

.stats__item::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 60%);
    opacity: 0.4;
    transition: opacity 0.3s ease-in-out;
    z-index: -1;
}

.stats__item:hover {
    border-color: var(--accent-border-strong);
}


.stats__value {
    font-size: clamp(2.8rem, 2.2rem + 1vw, 3.6rem);
    font-family: var(--font-sans);
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.stats__label {
    color: var(--color-text-muted);
    font-size: 1.2rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.card {
    padding: var(--space-24);
    background: var(--glass-strong);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-large);
    position: relative;
    isolation: isolate;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: var(--space-12);
    align-content: flex-start;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent 60%);
    opacity: 0.45;
    transition: opacity 0.3s ease-in-out;
    z-index: -1;
}

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

.card h3 {
    margin-top: 0;
    margin-bottom: 1.2rem;
    font-size: 1.8rem;
    font-weight: 600;
    line-height: 1.2;
}

.card__title {
    margin: 0 0 var(--space-12);
    font-size: 1.8rem;
    font-weight: 600;
    line-height: 1.2;
}

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

.card__list {
    margin: 0;
    padding-left: 1.6rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.card__list--spaced {
    margin-top: 1.6rem;
}

.card__list li + li {
    margin-top: var(--space-12);
}

.timeline {
    display: grid;
    gap: var(--space-grid);
}

.timeline__item {
    padding: var(--space-24);
    border-radius: var(--radius-large);
    border: 1px solid var(--color-border);
    background: var(--glass-strong);
    position: relative;
    isolation: isolate;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.timeline__item::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 60%);
    opacity: 0.4;
    transition: opacity 0.3s ease-in-out;
    z-index: -1;
}

.timeline__item:hover {
    border-color: var(--accent-border-strong);
}


.timeline__header {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1.6rem;
    position: relative;
}

.timeline__period {
    margin: 0;
    font-size: 1.2rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.timeline__header h3 {
    margin: 0;
    font-size: 2.2rem;
    font-weight: 600;
    line-height: 1.2;
}

.timeline__list {
    margin: 0;
    padding-left: 1.6rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.timeline__list li + li {
    margin-top: var(--space-12);
}

.projects__list,
.section__list {
    margin: 0;
    padding-left: 1.6rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.projects__list li + li,
.section__list li + li {
    margin-top: var(--space-12);
}

.section--split__layout {
    display: grid;
    gap: var(--space-grid);
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.split-grid {
    display: grid;
    gap: var(--space-grid);
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.tag-grid {
    margin: 1.6rem 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.tag {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.contact-card {
    display: grid;
    gap: var(--space-24);
}

.contact-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-12);
    align-items: center;
    justify-content: flex-start;
    align-self: start;
}

.contact-card__list {
    margin-top: 1.2rem;
}


.section--tools {
    padding-bottom: 6rem;
}

.footer {
    margin-top: auto;
    padding: var(--space-48) 0 var(--space-64);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.18));
    border-top: 1px solid var(--footer-border);
}

.footer__inner {
    display: grid;
    gap: 2.4rem;
    text-align: center;
}

.footer__quote {
    margin: 0;
    font-size: 1.8rem;
    letter-spacing: 0.04em;
    color: var(--color-text);
    font-family: var(--font-sans);
}

.footer__links {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.6rem 2.4rem;
}

.footer__legal {
    margin: 0;
    font-size: 1.4rem;
    color: var(--color-text-muted);
}

@media (prefers-reduced-motion: no-preference) {
    .hero__content > * {
        animation: fade-up 0.8s ease both;
    }

    .hero__content > *:nth-child(1) {
        animation-delay: 0.05s;
    }

    .hero__content > *:nth-child(2) {
        animation-delay: 0.12s;
    }

    .hero__content > *:nth-child(3) {
        animation-delay: 0.18s;
    }

    .hero__content > *:nth-child(4) {
        animation-delay: 0.24s;
    }

    .hero__content > *:nth-child(5) {
        animation-delay: 0.3s;
    }

    .hero__content > *:nth-child(6) {
        animation-delay: 0.36s;
    }

    .hero__content > *:nth-child(7) {
        animation-delay: 0.42s;
    }

    .card,
    .timeline__item,
    .stats__item {
        animation: lift-in 0.7s ease both;
    }

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

    .btn:active {
        transform: translateY(0);
    }

    .page--app .app-hero__logo:hover {
        transform: translateY(-8px) rotateY(4deg) rotateX(2deg);
    }

    .app-gallery__item:hover {
        transform: translateY(-6px);
    }

}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes lift-in {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


@media (max-width: 900px) {
    .hero__layout {
        gap: var(--space-24);
        grid-template-columns: 1fr;
    }

    .hero__content {
        gap: var(--space-16);
    }
}

@media (max-width: 1000px) {
    .page--app .app-hero__layout {
        grid-template-columns: 1fr;
    }

    .page--app .app-hero__visual {
        margin-top: 2rem;
    }

    .page--app .app-hero__features {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }
}

@media (max-width: 640px) {
    .hero__meta {
        gap: 0.8rem 1.6rem;
    }

    .btn {
        width: 100%;
    }

    .hero__actions,
    .hero__cta {
        flex-direction: column;
        align-items: stretch;
    }

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

    .page--app .app-feature {
        padding: 1rem 1.2rem;
    }
}

@media (max-height: 720px) {
    .page--app .app-hero__features {
        display: none;
    }

    .page--app .app-hero__content {
        gap: 1.2rem;
    }
}

.app-gallery {
    padding: 0 0 var(--space-section);
    overflow: hidden;
}

.app-gallery__scroller {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding: var(--space-stack) max(calc((100vw - var(--max-width)) / 2 + var(--space-gutter)), var(--space-gutter));
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
}

.app-gallery__scroller::-webkit-scrollbar {
    display: none;
}

.app-gallery__item {
    flex: 0 0 auto;
    width: min(280px, 75vw);
    aspect-ratio: 9/19.5;
    scroll-snap-align: center;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-float);
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease;
}

.app-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (min-width: 768px) {
    .app-gallery__scroller {
        padding-bottom: 4rem; /* Space for hover effect */
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
