/* =========================================================
   RunetToday
   Updates Page
   Completely self-contained stylesheet
   ========================================================= */


/* =========================================================
   Design tokens
   ========================================================= */

:root {
    --background: #080809;
    --background-secondary: #0d0d0f;
    --surface: rgba(255, 255, 255, 0.045);
    --surface-hover: rgba(255, 255, 255, 0.065);

    --border: rgba(255, 255, 255, 0.075);
    --border-hover: rgba(255, 255, 255, 0.14);

    --text: rgba(255, 255, 255, 0.94);
    --text-secondary: rgba(255, 255, 255, 0.58);
    --text-tertiary: rgba(255, 255, 255, 0.36);

    --white: #ffffff;

    --container: 1180px;

    --header-height: 72px;

    --radius-small: 12px;
    --radius-medium: 20px;
    --radius-large: 30px;

    --ease:
        cubic-bezier(0.22, 1, 0.36, 1);
}


/* =========================================================
   Reset
   ========================================================= */

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

html {
    margin: 0;
    padding: 0;

    scroll-behavior: smooth;

    background: var(--background);
}

body {
    min-height: 100vh;

    margin: 0;
    padding: 0;

    overflow-x: hidden;

    background:
        radial-gradient(
            circle at 50% -20%,
            rgba(255, 255, 255, 0.045),
            transparent 38%
        ),
        var(--background);

    color: var(--text);

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "SF Pro Display",
        "SF Pro Text",
        "Helvetica Neue",
        Arial,
        sans-serif;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

button,
a {
    font: inherit;
}

button {
    border: 0;
}

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

h1,
h2,
h3,
h4,
p {
    margin: 0;
}

code {
    font-family:
        "SFMono-Regular",
        Menlo,
        Monaco,
        Consolas,
        monospace;
}


/* =========================================================
   Selection / scrollbar
   ========================================================= */

::selection {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #080809;
}

::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.22);
}


/* =========================================================
   Container
   ========================================================= */

.updates-container {
    width: min(
        calc(100% - 48px),
        var(--container)
    );

    margin: 0 auto;
}


/* =========================================================
   Header
   ========================================================= */

.updates-header {
    position: fixed;

    top: 0;
    left: 0;
    right: 0;

    z-index: 100;

    height: var(--header-height);

    border-bottom: 1px solid transparent;

    background: rgba(8, 8, 9, 0.52);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    transition:
        background 260ms ease,
        border-color 260ms ease,
        box-shadow 260ms ease;
}

.updates-header.is-scrolled {
    background: rgba(8, 8, 9, 0.78);

    border-bottom-color:
        rgba(255, 255, 255, 0.07);

    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.18);
}

.header-inner {
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* =========================================================
   Brand
   ========================================================= */

.brand {
    display: inline-flex;
    align-items: center;

    gap: 10px;

    font-size: 0.96rem;
    font-weight: 650;

    letter-spacing: -0.025em;
}

.brand-mark {
    display: grid;
    place-items: center;

    width: 28px;
    height: 28px;

    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.12),
            rgba(255, 255, 255, 0.035)
        );

    color: rgba(255, 255, 255, 0.92);

    font-size: 0.78rem;
    font-weight: 700;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.brand-name {
    color: rgba(255, 255, 255, 0.9);
}


/* =========================================================
   Navigation
   ========================================================= */

.header-navigation {
    display: flex;
    align-items: center;

    gap: 6px;
}

.navigation-link {
    position: relative;

    padding: 8px 12px;

    color: rgba(255, 255, 255, 0.42);

    font-size: 0.84rem;
    font-weight: 500;

    transition:
        color 180ms ease;
}

.navigation-link::after {
    content: "";

    position: absolute;

    right: 12px;
    bottom: 2px;
    left: 12px;

    height: 1px;

    background: rgba(255, 255, 255, 0.8);

    transform:
        scaleX(0)
        translateY(2px);

    transform-origin: center;

    opacity: 0;

    transition:
        transform 220ms var(--ease),
        opacity 220ms ease;
}

.navigation-link:hover {
    color: rgba(255, 255, 255, 0.88);
}

.navigation-link.active {
    color: rgba(255, 255, 255, 0.92);
}

.navigation-link.active::after {
    transform: scaleX(1);
    opacity: 1;
}


/* =========================================================
   Hero
   ========================================================= */

.updates-hero {
    position: relative;

    display: flex;
    align-items: center;

    min-height: 690px;

    padding-top: var(--header-height);

    overflow: hidden;
}

.hero-container {
    position: relative;
    z-index: 2;

    text-align: center;
}

.hero-glow {
    position: absolute;

    width: 600px;
    height: 600px;

    border-radius: 50%;

    pointer-events: none;

    filter: blur(20px);

    opacity: 0.7;
}

.hero-glow-left {
    top: -350px;
    left: -260px;

    background:
        radial-gradient(
            circle,
            rgba(255, 255, 255, 0.055),
            transparent 70%
        );
}

.hero-glow-right {
    top: -280px;
    right: -300px;

    background:
        radial-gradient(
            circle,
            rgba(255, 255, 255, 0.035),
            transparent 70%
        );
}

.hero-label {
    display: inline-flex;
    align-items: center;

    gap: 9px;

    margin-bottom: 28px;

    padding: 7px 11px;

    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 999px;

    background: rgba(255, 255, 255, 0.035);

    color: rgba(255, 255, 255, 0.48);

    font-size: 0.72rem;
    font-weight: 600;

    letter-spacing: 0.02em;

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.hero-label-dot {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.78);

    box-shadow:
        0 0 12px rgba(255, 255, 255, 0.28);
}

.updates-hero h1 {
    max-width: 900px;

    margin: 0 auto;

    font-size:
        clamp(3.8rem, 8vw, 7.5rem);

    font-weight: 650;

    line-height: 0.95;

    letter-spacing: -0.075em;
}

.updates-hero h1 span {
    color: rgba(255, 255, 255, 0.36);
}

.updates-hero p {
    max-width: 620px;

    margin: 30px auto 0;

    color: var(--text-secondary);

    font-size: 1.08rem;
    line-height: 1.7;
}


/* =========================================================
   Section structure
   ========================================================= */

.release-section,
.changelog-section,
.updates-cta-section {
    position: relative;

    padding-top: 110px;
    padding-bottom: 110px;
}

.section-introduction {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 60px;

    margin-bottom: 48px;
}

.section-introduction > p {
    max-width: 390px;

    color: var(--text-tertiary);

    font-size: 0.9rem;
    line-height: 1.65;

    text-align: right;
}

.section-kicker {
    display: block;

    margin-bottom: 12px;

    color: rgba(255, 255, 255, 0.34);

    font-size: 0.67rem;
    font-weight: 700;

    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.section-introduction h2 {
    font-size: clamp(2rem, 4vw, 3.4rem);

    font-weight: 620;

    line-height: 1;

    letter-spacing: -0.06em;
}


/* =========================================================
   Current release card
   ========================================================= */

.release-card {
    position: relative;

    overflow: hidden;

    border: 1px solid var(--border);
    border-radius: var(--radius-large);

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.065),
            rgba(255, 255, 255, 0.018)
        );

    box-shadow:
        0 35px 100px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.045);

    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
}

.release-card-glow {
    position: absolute;

    top: -300px;
    right: -100px;

    width: 600px;
    height: 600px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(255, 255, 255, 0.065),
            transparent 68%
        );

    pointer-events: none;
}

.release-top {
    position: relative;
    z-index: 1;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 28px 34px;

    border-bottom: 1px solid var(--border);
}

.release-version {
    display: flex;
    align-items: center;

    gap: 12px;
}

.release-version-number {
    font-size: 0.9rem;
    font-weight: 650;

    color: rgba(255, 255, 255, 0.88);
}

.release-status,
.version-pill {
    display: inline-flex;
    align-items: center;

    min-height: 25px;

    padding: 0 9px;

    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 999px;

    background: rgba(255, 255, 255, 0.035);

    color: rgba(255, 255, 255, 0.46);

    font-size: 0.66rem;
    font-weight: 600;
}

.release-date {
    color: rgba(255, 255, 255, 0.3);

    font-size: 0.76rem;
}

.release-main {
    position: relative;
    z-index: 1;

    display: grid;
    grid-template-columns: minmax(0, 1fr) 190px;

    gap: 70px;

    padding: 54px 34px;
}

.release-copy {
    max-width: 720px;
}

.release-kicker {
    display: block;

    margin-bottom: 12px;

    color: rgba(255, 255, 255, 0.34);

    font-size: 0.68rem;
    font-weight: 700;

    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.release-copy h3 {
    font-size: clamp(2rem, 4vw, 3.4rem);

    font-weight: 620;

    line-height: 1;

    letter-spacing: -0.065em;
}

.release-copy p {
    max-width: 640px;

    margin-top: 22px;

    color: var(--text-secondary);

    font-size: 0.98rem;
    line-height: 1.75;
}

.release-stat {
    align-self: center;

    padding-left: 28px;

    border-left: 1px solid var(--border);
}

.release-stat span,
.release-stat small {
    display: block;

    color: var(--text-tertiary);

    font-size: 0.72rem;
}

.release-stat strong {
    display: block;

    margin: 8px 0;

    font-size: 3.5rem;
    font-weight: 600;

    letter-spacing: -0.07em;
}

.release-divider {
    height: 1px;

    margin: 0 34px;

    background: var(--border);
}

.release-features {
    position: relative;
    z-index: 1;

    display: grid;
    grid-template-columns: repeat(2, 1fr);

    gap: 0;
}

.release-feature {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);

    gap: 18px;

    padding: 30px 34px;

    border-bottom: 1px solid var(--border);
}

.release-feature:nth-child(odd) {
    border-right: 1px solid var(--border);
}

.release-feature:nth-child(3),
.release-feature:nth-child(4) {
    border-bottom: 0;
}

.feature-number {
    color: rgba(255, 255, 255, 0.22);

    font-family:
        "SFMono-Regular",
        Menlo,
        monospace;

    font-size: 0.68rem;
}

.release-feature h4 {
    margin-bottom: 7px;

    font-size: 0.9rem;
    font-weight: 600;

    letter-spacing: -0.015em;
}

.release-feature p {
    color: var(--text-tertiary);

    font-size: 0.78rem;
    line-height: 1.6;
}


/* =========================================================
   Timeline
   ========================================================= */

.timeline {
    position: relative;

    max-width: 1060px;

    margin: 0 auto;
}

.timeline::before {
    content: "";

    position: absolute;

    top: 15px;
    bottom: 15px;
    left: 145px;

    width: 1px;

    background:
        linear-gradient(
            to bottom,
            transparent,
            rgba(255, 255, 255, 0.12) 6%,
            rgba(255, 255, 255, 0.12) 94%,
            transparent
        );
}

.timeline-item {
    position: relative;

    display: grid;
    grid-template-columns: 120px 1fr;

    gap: 50px;

    padding-bottom: 42px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;

    top: 26px;
    left: 141px;

    z-index: 2;

    display: grid;
    place-items: center;

    width: 9px;
    height: 9px;

    border: 3px solid var(--background);
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.9);

    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.16);
}

.timeline-date {
    padding-top: 19px;

    text-align: right;
}

.timeline-date strong {
    display: block;

    color: rgba(255, 255, 255, 0.78);

    font-size: 0.84rem;
    font-weight: 650;
}

.timeline-date span {
    display: block;

    margin-top: 5px;

    color: var(--text-tertiary);

    font-size: 0.7rem;
}

.timeline-card {
    position: relative;

    padding: 30px;

    border: 1px solid var(--border);
    border-radius: 24px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.045),
            rgba(255, 255, 255, 0.015)
        );

    transition:
        transform 240ms var(--ease),
        border-color 240ms ease,
        background 240ms ease;
}

.timeline-card:hover {
    transform: translateY(-3px);

    border-color: var(--border-hover);

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.06),
            rgba(255, 255, 255, 0.018)
        );
}

.timeline-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 17px;
}

.release-type {
    display: block;

    margin-bottom: 8px;

    color: rgba(255, 255, 255, 0.3);

    font-size: 0.65rem;
    font-weight: 700;

    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.timeline-card h3 {
    font-size: 1.4rem;
    font-weight: 620;

    letter-spacing: -0.04em;
}

.timeline-card > p {
    max-width: 720px;

    color: var(--text-secondary);

    font-size: 0.88rem;
    line-height: 1.7;
}

.change-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);

    gap: 9px 28px;

    margin-top: 26px;
    padding-top: 22px;

    border-top: 1px solid var(--border);
}

.change {
    color: rgba(255, 255, 255, 0.55);

    font-size: 0.78rem;
}

.change span {
    display: inline-block;

    width: 18px;

    color: rgba(255, 255, 255, 0.3);

    font-family:
        "SFMono-Regular",
        Menlo,
        monospace;
}


/* =========================================================
   CTA
   ========================================================= */

.updates-cta-section {
    padding-top: 40px;
    padding-bottom: 130px;
}

.updates-cta {
    position: relative;

    overflow: hidden;

    padding: 70px;

    border: 1px solid var(--border);
    border-radius: var(--radius-large);

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.065),
            rgba(255, 255, 255, 0.018)
        );

    box-shadow:
        0 35px 100px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.cta-glow {
    position: absolute;

    top: -380px;
    right: -120px;

    width: 650px;
    height: 650px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(255, 255, 255, 0.06),
            transparent 68%
        );

    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    max-width: 720px;

    font-size: clamp(2.5rem, 5vw, 4.6rem);

    font-weight: 620;

    line-height: 0.98;

    letter-spacing: -0.07em;
}

.cta-content h2 span {
    color: rgba(255, 255, 255, 0.32);
}

.cta-content p {
    max-width: 520px;

    margin-top: 22px;

    color: var(--text-secondary);

    font-size: 0.95rem;
    line-height: 1.7;
}

.install-box {
    position: relative;
    z-index: 1;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-top: 42px;
    padding: 8px 8px 8px 20px;

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;

    background: rgba(0, 0, 0, 0.28);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.install-box code {
    min-width: 0;

    overflow: hidden;

    color: rgba(255, 255, 255, 0.65);

    font-size: 0.76rem;

    white-space: nowrap;
    text-overflow: ellipsis;
}

.copy-button {
    flex-shrink: 0;

    min-height: 34px;

    padding: 0 13px;

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 9px;

    background: rgba(255, 255, 255, 0.07);

    color: rgba(255, 255, 255, 0.7);

    font-size: 0.72rem;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 180ms ease,
        color 180ms ease,
        border-color 180ms ease;
}

.copy-button:hover {
    background: rgba(255, 255, 255, 0.11);

    border-color: rgba(255, 255, 255, 0.14);

    color: #ffffff;
}

.copy-button.copied {
    background: rgba(255, 255, 255, 0.13);
    color: #ffffff;
}


/* =========================================================
   Footer
   ========================================================= */

.updates-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.06);

    background: rgba(255, 255, 255, 0.012);
}

.footer-inner {
    min-height: 88px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}

.footer-brand {
    display: inline-flex;
    align-items: center;

    gap: 9px;

    color: rgba(255, 255, 255, 0.58);

    font-size: 0.8rem;
    font-weight: 600;
}

.footer-brand .brand-mark {
    width: 24px;
    height: 24px;

    border-radius: 7px;

    font-size: 0.68rem;
}

.footer-links {
    display: flex;

    gap: 22px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.34);

    font-size: 0.75rem;

    transition:
        color 180ms ease;
}

.footer-links a:hover {
    color: rgba(255, 255, 255, 0.78);
}

.footer-copy {
    color: rgba(255, 255, 255, 0.25);

    font-size: 0.7rem;
}


/* =========================================================
   Reveal animation
   ========================================================= */

.reveal {
    opacity: 0;

    transform:
        translateY(24px);

    transition:
        opacity 700ms var(--ease)
            var(--reveal-delay, 0ms),
        transform 700ms var(--ease)
            var(--reveal-delay, 0ms);
}

.reveal.visible {
    opacity: 1;

    transform:
        translateY(0);
}


/* =========================================================
   Focus
   ========================================================= */

a:focus-visible,
button:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.65);
    outline-offset: 4px;
}


/* =========================================================
   Responsive — Tablet
   ========================================================= */

@media (max-width: 900px) {

    :root {
        --header-height: 68px;
    }

    .updates-container {
        width: min(
            calc(100% - 40px),
            var(--container)
        );
    }

    .updates-hero {
        min-height: 600px;
    }

    .release-main {
        grid-template-columns: 1fr;

        gap: 40px;
    }

    .release-stat {
        padding-top: 25px;
        padding-left: 0;

        border-top: 1px solid var(--border);
        border-left: 0;
    }

    .timeline {
        max-width: 100%;
    }

    .timeline::before {
        left: 118px;
    }

    .timeline-marker {
        left: 114px;
    }

    .timeline-item {
        grid-template-columns: 95px 1fr;

        gap: 45px;
    }

    .updates-cta {
        padding: 55px;
    }
}


/* =========================================================
   Responsive — Mobile
   ========================================================= */

@media (max-width: 640px) {

    .updates-container {
        width: calc(100% - 32px);
    }

    .updates-header {
        height: 64px;
    }

    .brand-name {
        display: none;
    }

    .header-navigation {
        gap: 0;
    }

    .navigation-link {
        padding: 8px 9px;
    }

    .updates-hero {
        min-height: 570px;

        padding-top: 64px;
    }

    .hero-label {
        margin-bottom: 22px;
    }

    .updates-hero h1 {
        font-size:
            clamp(3.1rem, 17vw, 5rem);
    }

    .updates-hero p {
        margin-top: 22px;

        font-size: 0.94rem;
    }

    .release-section,
    .changelog-section,
    .updates-cta-section {
        padding-top: 80px;
        padding-bottom: 80px;
    }

    .section-introduction {
        display: block;

        margin-bottom: 34px;
    }

    .section-introduction > p {
        margin-top: 16px;

        text-align: left;
    }

    .release-top {
        align-items: flex-start;
        flex-direction: column;

        gap: 12px;

        padding: 22px;
    }

    .release-main {
        padding: 34px 22px;
    }

    .release-copy h3 {
        font-size: 2.2rem;
    }

    .release-divider {
        margin: 0 22px;
    }

    .release-features {
        grid-template-columns: 1fr;
    }

    .release-feature {
        padding: 24px 22px;
    }

    .release-feature:nth-child(odd) {
        border-right: 0;
    }

    .release-feature:nth-child(3) {
        border-bottom: 1px solid var(--border);
    }

    .release-feature:last-child {
        border-bottom: 0;
    }

    .timeline::before {
        display: none;
    }

    .timeline-item {
        display: block;

        padding-bottom: 18px;
    }

    .timeline-marker {
        display: none;
    }

    .timeline-date {
        display: flex;
        align-items: center;
        justify-content: space-between;

        padding: 0 4px 10px;

        text-align: left;
    }

    .timeline-date strong {
        font-size: 0.8rem;
    }

    .timeline-date span {
        margin-top: 0;
    }

    .timeline-card {
        padding: 24px;

        border-radius: 21px;
    }

    .timeline-card-header {
        flex-direction: column;
    }

    .change-list {
        grid-template-columns: 1fr;
    }

    .updates-cta-section {
        padding-top: 50px;
        padding-bottom: 90px;
    }

    .updates-cta {
        padding: 38px 24px;

        border-radius: 24px;
    }

    .cta-content h2 {
        font-size: 2.7rem;
    }

    .install-box {
        align-items: stretch;
        flex-direction: column;

        padding: 14px;
    }

    .install-box code {
        padding: 4px 2px;
    }

    .copy-button {
        width: 100%;
    }

    .footer-inner {
        min-height: 110px;

        flex-wrap: wrap;

        justify-content: center;

        padding: 25px 0;
    }

    .footer-links {
        order: 3;

        width: 100%;

        justify-content: center;
    }
}


/* =========================================================
   Reduced motion
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

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

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