@font-face {
    font-family: "Outfit";
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url("fonts/outfit-latin.woff2") format("woff2");
}

@font-face {
    font-family: "JetBrains Mono";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("fonts/jetbrains-mono-latin-regular.woff2") format("woff2");
}

@font-face {
    font-family: "JetBrains Mono";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("fonts/jetbrains-mono-latin-500.woff2") format("woff2");
}

:root {
    --bg: #0e0f14;
    --bg-raised: #161821;
    --bg-card: #1a1b2a;
    --bg-card-hover: #23263a;
    --bg-code: #161821;
    --border: #383d5c;
    --text: #c8cad8;
    --text-muted: #a0a4ba;
    --text-dim: #8e92ac;
    --accent: #89b4fa;
    --accent-hover: #74a8f7;
    --accent-muted: rgba(137, 180, 250, 0.12);
    --accent-glow: rgba(137, 180, 250, 0.25);
    --accent-cta: #89b4fa;
    --accent-cta-hover: #a3c4fc;
    --white: #e4e8f4;
    --text-on-accent: #1a1b26;
    --nav-bg: rgba(14, 15, 20, 0.85);
    --shadow-screenshot: 0 24px 80px rgba(0, 0, 0, 0.5);
    --shadow-screenshot-hover: 0 32px 90px rgba(0, 0, 0, 0.6),
        0 0 0 1px var(--accent-glow);
    --font-body: "Outfit", -apple-system, sans-serif;
    --font-mono: "JetBrains Mono", monospace;

    /* Elevation: layered ambient + key shadows tuned for a dark UI */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 18px 50px rgba(0, 0, 0, 0.45);
    --shadow-card: 0 2px 10px rgba(0, 0, 0, 0.22);
    --shadow-card-hover: 0 12px 30px rgba(0, 0, 0, 0.4);
    /* Faint top highlight to fake light-from-above on raised surfaces */
    --edge-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    /* Radii scale */
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 14px;
    /* Keyboard focus ring */
    --ring: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent);
    /* Brand / semantic one-offs (values unchanged, just tokenized) */
    --brand-discord: #5865f2;
    --accent-green: #a6e3a1;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition:
        background 0.3s,
        color 0.3s;
}

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

code {
    font-family: var(--font-mono);
    background: var(--bg-raised);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85em;
    border: 1px solid var(--border);
}

/* GLOBAL POLISH */
/* Subtle desaturated film-grain over the whole page for tactile depth */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.022;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 160px 160px;
}

::selection {
    background: var(--accent-glow);
    color: var(--white);
}

:focus-visible {
    outline: none;
    box-shadow: var(--ring);
    border-radius: var(--radius-sm);
}

h1,
h2,
h3,
h4 {
    text-wrap: balance;
}
p {
    text-wrap: pretty;
}

/* NAV */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--nav-bg);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transition:
        background 0.3s,
        border-color 0.3s;
}
.nav.scrolled {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}
.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-weight: 600;
    font-size: 1.05rem;
}
.nav-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}
.nav-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 400;
    position: relative;
}
.nav-links a:hover {
    color: var(--white);
}
.nav-links a:not(.nav-cta)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 1.5px;
    background: var(--accent);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.22s ease;
}
.nav-links a:not(.nav-cta):hover::after {
    transform: scaleX(1);
}
.nav-cta {
    background: var(--accent-cta) !important;
    color: var(--text-on-accent) !important;
    padding: 6px 16px !important;
    border-radius: 6px;
    font-weight: 500 !important;
    font-size: 0.85rem !important;
}
.nav-cta:hover {
    background: var(--accent-cta-hover) !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}
.nav-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--text-muted);
    transition: color 0.2s;
}
.nav-hamburger:hover {
    color: var(--white);
}

/* HERO ENTRANCE */
@keyframes fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
.hero-inner {
    animation: fade-in 0.4s ease-out;
}

/* HERO */
.hero {
    padding: 140px 24px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
            0deg,
            transparent,
            transparent 31px,
            rgba(137, 180, 250, 0.05) 31px,
            rgba(137, 180, 250, 0.05) 32px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 31px,
            rgba(137, 180, 250, 0.05) 31px,
            rgba(137, 180, 250, 0.05) 32px
        );
    -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 42%, black 0%, transparent 70%);
    mask-image: radial-gradient(ellipse 70% 55% at 50% 42%, black 0%, transparent 70%);
    pointer-events: none;
}
.hero::after {
    content: "";
    position: absolute;
    top: -10%;
    left: 50%;
    width: 760px;
    max-width: 100%;
    height: 520px;
    transform: translateX(-50%);
    background: radial-gradient(
        ellipse at center,
        rgba(137, 180, 250, 0.1) 0%,
        transparent 65%
    );
    pointer-events: none;
    z-index: -1;
}
.hero-inner {
    max-width: 700px;
    margin: 0 auto;
}
.hero-logo {
    width: 96px;
    height: 96px;
    margin-bottom: 24px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.hero-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--accent);
    background: var(--accent-muted);
    border: 1px solid rgba(137, 180, 250, 0.2);
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 28px;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s, opacity 0.5s, transform 0.5s;
    opacity: 0;
    transform: translateY(8px);
}
.hero-badge.revealed {
    opacity: 1;
    transform: translateY(0);
}
.hero-badge:hover {
    background: rgba(137, 180, 250, 0.15);
    border-color: rgba(137, 180, 250, 0.35);
}
.hero h1 {
    font-size: clamp(2.4rem, 6vw, 3.6rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--white);
    margin-bottom: 20px;
    letter-spacing: -0.03em;
}
.hero h1.typewriter {
    font-family: var(--font-mono);
    font-weight: 600;
    letter-spacing: -0.02em;
    min-height: calc(3 * 1.15 * clamp(2.4rem, 6vw, 3.6rem));
}
.type-line {
    display: inline-block;
    min-height: 1.15em;
}
.type-line::after {
    content: "";
    display: inline-block;
    width: 2px;
    height: 1em;
    background: var(--accent);
    margin-left: 2px;
    vertical-align: -0.1em;
    opacity: 0;
}
.type-line.typing::after {
    opacity: 1;
}
.type-line.done.last::after {
    animation: blink 0.7s step-end infinite;
    opacity: 1;
}
@keyframes blink {
    50% { opacity: 0; }
}
.accent {
    color: var(--accent-cta);
}
.hero-sub {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 540px;
    margin: 0 auto 32px;
    line-height: 1.65;
    font-weight: 300;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.6s, transform 0.6s;
}
.hero-sub.revealed {
    opacity: 1;
    transform: translateY(0);
}
.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.6s 0.1s, transform 0.6s 0.1s;
}
.hero-actions.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 500;
    transition:
        background 0.2s,
        color 0.2s,
        border-color 0.2s,
        transform 0.2s,
        box-shadow 0.2s;
    cursor: pointer;
    border: none;
    text-decoration: none;
}
.btn-primary {
    background: var(--accent-cta);
    color: var(--text-on-accent);
}
.btn-primary:hover {
    background: var(--accent-cta-hover);
    color: var(--text-on-accent);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}
.btn-primary:active {
    transform: translateY(0);
}
.btn-secondary {
    background: var(--bg-raised);
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-secondary:hover {
    background: var(--bg-card);
    color: var(--white);
    border-color: var(--text-dim);
}
.btn-disabled {
    background: var(--bg-raised);
    color: var(--text-dim);
    border: 1px solid var(--border);
    cursor: default;
}
.btn-block {
    width: 100%;
    justify-content: center;
}
.download-card .btn {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    letter-spacing: -0.01em;
}
.download-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
}
.btn-linux { background: #89b4fa; color: #1a1b26; }
.btn-linux:hover { background: #a3c4fc; color: #1a1b26; }
.btn-macos { background: #9399b5; color: #1a1b26; }
.btn-macos:hover { background: #a5aac2; color: #1a1b26; }
.btn-windows { background: #74c7ec; color: #1a1b26; }
.btn-windows:hover { background: #89d4f0; color: #1a1b26; }
.btn-android { background: #a6e3a1; color: #1a1b26; }
.btn-android:hover { background: #bce8b8; color: #1a1b26; }

/* HERO META */
.hero-meta {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.6s 0.2s, transform 0.6s 0.2s;
}
.hero-meta.revealed {
    opacity: 1;
    transform: translateY(0);
}
.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-dim);
    font-family: var(--font-mono);
}
.meta-item svg {
    opacity: 0.5;
}
/* SCREENSHOT HERO */
.screenshot-hero {
    padding: 0 24px 48px;
    position: relative;
}
.screenshot-hero-inner {
    max-width: 960px;
    margin: 0 auto;
    position: relative;
}
.screenshot-hero-inner::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 120%;
    background: radial-gradient(ellipse, rgba(137, 180, 250, 0.07) 0%, transparent 65%);
    pointer-events: none;
    z-index: -1;
}
.screenshot-frame,
.screenshot-frame-sm {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-screenshot);
    transition:
        box-shadow 0.3s,
        transform 0.3s;
}
.screenshot-frame:hover,
.screenshot-frame-sm:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-screenshot-hover);
}
.screenshot-titlebar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: var(--bg-raised);
    border-bottom: 1px solid var(--border);
}
.titlebar-dots {
    display: flex;
    gap: 6px;
}
.titlebar-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
}
.titlebar-dots span:first-child {
    background: #e87272;
}
.titlebar-dots span:nth-child(2) {
    background: #e2b340;
}
.titlebar-dots span:last-child {
    background: #5ec26a;
}
.titlebar-title {
    font-size: 0.78rem;
    color: var(--text-dim);
    font-family: var(--font-mono);
}
.screenshot-img {
    width: 100%;
    height: auto;
    display: block;
}
.screenshot-trigger {
    display: block;
    width: 100%;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: inherit;
    cursor: zoom-in;
}
.screenshot-trigger:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -3px;
}
.screenshot-frame-sm {
    position: relative;
}
.screenshot-frame-sm::after {
    content: "";
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: rgba(14, 15, 20, 0.7);
    border: 1px solid var(--border);
    border-radius: 6px;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23c8cad8' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3Cline x1='11' y1='8' x2='11' y2='14'/%3E%3Cline x1='8' y1='11' x2='14' y2='11'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px;
}
.screenshot-frame-sm:hover::after {
    opacity: 1;
}

/* FEATURES */
.features {
    padding: clamp(48px, 7vw, 84px) 24px;
}
.features-inner {
    max-width: 1000px;
    margin: 0 auto;
}
.features h2,
.screenshots h2,
.tech h2,
.download h2 {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 600;
    color: var(--white);
    margin-bottom: 32px;
    text-align: center;
    letter-spacing: -0.02em;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}
.feature-card {
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--edge-highlight), var(--shadow-card);
    transition:
        background 0.2s,
        border-color 0.2s,
        transform 0.2s,
        box-shadow 0.2s;
}
.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-glow);
    transform: translateY(-3px);
    box-shadow: var(--edge-highlight), var(--shadow-card-hover);
}
.feature-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-muted);
    border-radius: 8px;
    color: var(--accent);
    margin-bottom: 14px;
}
.feature-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 6px;
}
.feature-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.55;
}
.feature-card.feature-hidden {
    display: none;
}
.features-toggle {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}
.features-toggle-btn {
    appearance: none;
    -webkit-appearance: none;
    padding: 10px 24px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-card);
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.features-toggle-btn:hover {
    background: var(--bg-card-hover);
    color: var(--white);
    border-color: var(--text-dim);
}

/* SCREENSHOTS */
.screenshots {
    padding: clamp(48px, 7vw, 84px) 24px;
}
.screenshots-inner {
    max-width: 1000px;
    margin: 0 auto;
}
.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.screenshot-card {
    text-align: center;
}
.screenshot-caption {
    margin-top: 14px;
    font-size: 0.85rem;
    color: var(--text-dim);
}

/* SCREENSHOT TABS */
.screenshots-tabs {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 4px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}
.screenshots-tab {
    appearance: none;
    -webkit-appearance: none;
    padding: 8px 24px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.screenshots-tab:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.05);
}
.screenshots-tab.active {
    background: var(--accent);
    color: var(--text-on-accent);
}

/* MOBILE SCREENSHOTS */
.screenshots-grid-mobile {
    display: flex;
    justify-content: center;
    gap: 24px;
}
.screenshot-card-mobile {
    text-align: center;
    max-width: 220px;
}
.screenshot-phone {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-screenshot);
    padding: 8px;
    transition:
        box-shadow 0.3s,
        transform 0.3s;
}
.screenshot-phone:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-screenshot-hover);
}
.screenshot-phone .screenshot-img {
    border-radius: 12px;
}

/* DOWNLOAD */
.download {
    padding: clamp(48px, 7vw, 84px) 24px;
    border-top: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}
.download::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: min(760px, 90%);
    height: 320px;
    transform: translateX(-50%);
    background: radial-gradient(
        ellipse at center,
        rgba(137, 180, 250, 0.08) 0%,
        transparent 70%
    );
    pointer-events: none;
    z-index: -1;
}
.download-inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}
.download-inner > h2 {
    margin-bottom: 14px;
}
.download-inner > p {
    color: var(--text-muted);
    margin-bottom: 40px;
}
.download-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}
.download-card {
    padding: 28px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    box-shadow: var(--edge-highlight), var(--shadow-card);
    transition:
        transform 0.2s,
        box-shadow 0.2s,
        border-color 0.2s;
}
.download-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--edge-highlight), var(--shadow-card-hover);
    border-color: var(--accent-glow);
}
.download-available {
    border-color: rgba(137, 180, 250, 0.25);
    background: linear-gradient(
        180deg,
        rgba(137, 180, 250, 0.06) 0%,
        var(--bg-card) 100%
    );
}
.download-os {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--white);
}
.download-os svg {
    color: var(--text-muted);
}
.download-note {
    font-size: 0.75rem;
    font-family: var(--font-mono);
    color: var(--text-dim);
}
.download-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.download-distro-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px 12px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
}
.download-distro-links a {
    color: var(--accent);
    text-decoration: none;
}
.download-distro-label {
    color: var(--text-muted);
}
.download-distro-links a:hover {
    text-decoration: underline;
}
.download-fdroid-link {
    font-size: 0.72rem;
    font-family: var(--font-mono);
    color: var(--accent);
    border-bottom: 1px solid transparent;
    transition:
        color 0.2s,
        border-color 0.2s;
}
.download-fdroid-link:hover {
    color: var(--accent-hover);
    border-bottom-color: var(--accent-glow);
}
.download-source {
    margin-top: 12px;
}
.forge-move-notice {
    max-width: 800px;
    margin: 2.5rem auto 1rem;
    padding: 1.5rem 1.75rem;
    text-align: left;
    background: linear-gradient(135deg, var(--accent-muted), rgba(137, 180, 250, 0.04));
    border: 1px solid var(--accent-glow);
    border-radius: var(--radius-lg);
    box-shadow: var(--edge-highlight), var(--shadow-card);
}
.forge-move-label {
    display: inline-block;
    margin-bottom: 0.5rem;
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.forge-move-notice h3 {
    margin-bottom: 0.7rem;
    color: var(--white);
    font-size: 1.25rem;
}
.forge-move-notice p {
    margin-bottom: 0.65rem;
    color: var(--text-muted);
    font-size: 0.94rem;
    line-height: 1.65;
}
.forge-move-notice a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-color: var(--accent-glow);
    text-underline-offset: 3px;
}
.forge-move-notice .forge-move-link {
    display: inline-block;
    margin-top: 0.2rem;
    font-weight: 500;
    text-decoration: none;
}
.forge-move-notice a:hover {
    color: var(--accent-hover);
}
.download-source p {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 12px;
}
.code-block-wrap {
    position: relative;
}
.code-block {
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px 52px 14px 20px;
    overflow-x: auto;
    text-align: left;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}
.code-block::-webkit-scrollbar {
    height: 6px;
}
.code-block::-webkit-scrollbar-track {
    background: transparent;
}
.code-block::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}
.code-block::-webkit-scrollbar-thumb:hover {
    background: var(--text-dim);
}
.code-block code {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.82rem;
    color: var(--text);
    white-space: nowrap;
}

/* COPY BUTTON */
.copy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    color: var(--text-dim);
    transition:
        color 0.2s,
        border-color 0.2s,
        background 0.2s;
}
.copy-btn:hover {
    color: var(--white);
    border-color: var(--text-dim);
    background: var(--bg-card-hover);
}
/* Success feedback: the check icon (toggled to display:block by JS) flashes green and pops */
.copy-btn .check-icon {
    color: var(--accent-green);
    animation: copy-pop 0.25s ease;
}
@keyframes copy-pop {
    from {
        transform: scale(0.5);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* FOOTER */
.footer {
    border-top: 1px solid var(--border);
    padding: 24px;
}
.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
.footer-left {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dim);
    font-weight: 500;
    font-size: 0.9rem;
}
.footer-icon {
    width: 22px;
    height: 22px;
    border-radius: 4px;
}
.footer-right {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.82rem;
}
.footer-right a {
    color: var(--text-dim);
}
.footer-right a:hover {
    color: var(--text);
}
.footer-social {
    display: flex;
    align-items: center;
    color: var(--text-dim);
    transition: color 0.15s;
    position: relative;
    top: -1px;
}
.footer-social:hover {
    color: #5865f2;
}
.footer-sep {
    color: var(--border);
}

/* LIGHTBOX */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    padding: 40px;
    cursor: zoom-out;
}
.lightbox.active {
    display: flex;
}
.lightbox img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 12px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
    animation: lightbox-in 0.2s ease-out;
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    color: var(--text);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50%;
    box-shadow: var(--shadow-card);
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s, transform 0.15s;
}
.lightbox-close:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: scale(1.04);
}
@keyframes lightbox-in {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* RESPONSIVE */
@media (max-width: 760px) {
	.lightbox {
		padding: 20px;
	}
	.lightbox-close {
		top: 12px;
		right: 12px;
	}
    .nav-hamburger {
        display: flex;
        align-items: center;
    }
    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--nav-bg);
        backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--border);
        padding: 12px 24px 20px;
        gap: 0;
    }
    .nav-links.open {
        display: flex;
    }
    .nav-links a {
        display: block !important;
        padding: 10px 0;
        font-size: 0.95rem;
        border-bottom: 1px solid var(--border);
    }
    .nav-links a:last-child {
        border-bottom: none;
    }
    .nav-links .nav-cta {
        margin-top: 8px;
        text-align: center;
        border-bottom: none;
    }
    .hero {
        padding: 104px 24px 28px;
    }
    .hero-meta {
        align-items: center;
    }
    .screenshot-hero {
        padding-bottom: 32px;
    }
    .features,
    .screenshots,
    .download {
        padding-top: 32px;
        padding-bottom: 32px;
    }
    .screenshots-grid {
        grid-template-columns: 1fr;
    }
    .screenshots-grid-mobile {
        flex-wrap: wrap;
    }
    .screenshot-card-mobile {
        max-width: 180px;
    }
    .download-grid {
        grid-template-columns: 1fr;
    }
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
    .footer-right {
        flex-wrap: wrap;
        justify-content: center;
    }
    .lightbox {
        padding: 16px;
    }
}

/* Distro dependency section */
.distro-deps {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    text-align: left;
}
.distro-dep-item {
    padding: 0.75rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
}
.distro-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
}
.distro-label svg {
    opacity: 0.7;
}
.distro-dep-item .code-block {
    padding: 10px 44px 10px 14px;
    font-size: 0.75rem;
}
.distro-dep-item .code-block code {
    font-size: 0.75rem;
}

/* Collapsible build from source */
.build-details {
    text-align: left;
}
.build-details summary {
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dim);
    padding: 0.5rem 0;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}
.build-details summary::-webkit-details-marker {
    display: none;
}
.build-details summary::before {
    content: "▸";
    transition: transform 0.2s;
}
.build-details[open] summary::before {
    transform: rotate(90deg);
}
.build-details summary:hover {
    color: var(--text);
}

/* APT Repo Section */
.apt-repo-section {
    margin-top: 2.5rem;
    padding: 1.5rem 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: var(--edge-highlight), var(--shadow-card);
}
.apt-repo-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.apt-badge {
    font-size: 0.7rem;
    font-weight: 400;
    padding: 0.15rem 0.5rem;
    background: var(--accent-muted);
    border-radius: 999px;
    color: var(--text-dim);
}
.apt-repo-desc {
    text-align: left;
    font-size: 0.85rem;
    color: var(--text-dim);
    margin: 0 0 1.25rem;
}
.apt-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.apt-step {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}
.apt-step-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent);
    color: #000;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.apt-step-label {
    font-size: 0.85rem;
    font-weight: 500;
    min-width: 120px;
}
.apt-step .code-block-wrap {
    flex: 1;
    min-width: 0;
    width: 100%;
}
.apt-step .code-block {
    font-size: 0.8rem;
}

.apt-distro-logos {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.6;
}

/* F-DROID REPO */
.fdroid-repo {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 1.5rem;
    text-align: left;
}
.fdroid-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}
.fdroid-qr img {
    width: 160px;
    height: 160px;
    background: #fff;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 8px;
}
.fdroid-qr-cap {
    font-size: 0.7rem;
    color: var(--text-dim);
}
.fdroid-details {
    flex: 1;
    min-width: 240px;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}
.fdroid-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.fdroid-field-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-dim);
}
.fdroid-link,
.fdroid-fp {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    word-break: break-all;
}
.fdroid-link {
    color: var(--accent);
    text-decoration: underline;
}
.fdroid-fp {
    display: block;
    padding: 10px 14px;
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
}
.fdroid-hint {
    font-size: 0.75rem;
    color: var(--text-dim);
}

/* SCROLL REVEAL */
[data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
[data-reveal].visible {
    opacity: 1;
    transform: translateY(0);
}
[data-reveal-delay="1"] { transition-delay: 0.08s; }
[data-reveal-delay="2"] { transition-delay: 0.16s; }
[data-reveal-delay="3"] { transition-delay: 0.24s; }
[data-reveal-delay="4"] { transition-delay: 0.32s; }
[data-reveal-delay="5"] { transition-delay: 0.4s; }
[data-reveal-delay="6"] { transition-delay: 0.48s; }
[data-reveal-delay="7"] { transition-delay: 0.56s; }
[data-reveal-delay="8"] { transition-delay: 0.64s; }
[data-reveal-delay="9"] { transition-delay: 0.72s; }
[data-reveal-delay="10"] { transition-delay: 0.80s; }
[data-reveal-delay="11"] { transition-delay: 0.88s; }
[data-reveal-delay="12"] { transition-delay: 0.96s; }
[data-reveal-delay="13"] { transition-delay: 1.04s; }

/* BLOG / ARTICLE */
.blog-article {
    max-width: 720px;
    margin: 0 auto;
    padding: 4rem 1.5rem 6rem;
}
.article-meta {
    margin-top: 2rem;
    margin-bottom: 2.5rem;
}
.article-meta .tag {
    display: inline-block;
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0;
    margin-bottom: 1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.article-meta h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}
.article-meta .subtitle {
    font-size: 1.15rem;
    color: var(--text-dim);
    line-height: 1.6;
}
.article-meta .date {
    color: var(--text-dim);
    font-size: 0.85rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}
.article-meta .date span {
    color: var(--text);
    font-weight: 500;
}
.blog-article h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 3rem 0 1rem;
    letter-spacing: -0.01em;
}
.blog-article p {
    margin-bottom: 1.5rem;
    color: var(--text);
    line-height: 1.7;
}
.blog-article a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid var(--accent-glow);
    transition: border-color 0.2s;
}
.blog-article a:hover {
    border-color: var(--accent);
}
.blog-article strong {
    color: var(--white);
    font-weight: 600;
}
.blog-article code {
    background: var(--bg-code);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
    font-family: var(--font-mono);
}
.blog-article blockquote {
    border-left: 3px solid var(--accent);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background: var(--bg-card);
    border-radius: 0 8px 8px 0;
    color: var(--text-dim);
    font-style: italic;
}
.blog-article ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}
.blog-article li {
    margin-bottom: 0.5rem;
    color: var(--text);
    line-height: 1.7;
}
.blog-article li::marker {
    color: var(--accent);
}
.separator {
    text-align: center;
    margin: 3rem 0;
    color: var(--text-dim);
    font-size: 1.2rem;
    letter-spacing: 0.5em;
}
.cta-box {
    border-top: 1px solid var(--border);
    padding: 2rem 0 0;
    margin: 3rem 0;
    text-align: left;
}
.cta-box h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}
.cta-box p {
    color: var(--text-dim);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}
.cta-box .buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    flex-wrap: wrap;
}
.cta-box a {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    border: none;
    transition: opacity 0.2s;
}
.cta-box a.primary {
    background: var(--accent-cta);
    color: var(--text-on-accent);
}
.cta-box a.secondary {
    background: transparent;
    color: var(--text-dim);
    border: 1px solid var(--border);
}
.cta-box a:hover {
    opacity: 0.85;
}
@media (max-width: 640px) {
    .article-meta h1 {
        font-size: 1.8rem;
    }
    .blog-article {
        padding: 2.5rem 1.25rem 4rem;
    }
}

/* REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    [data-reveal] {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* FEATURE STORIES */
.feature-story {
    display: flex;
    align-items: center;
    gap: 44px;
    max-width: 980px;
    margin: 0 auto 60px;
}
.feature-story.reverse {
    flex-direction: row-reverse;
}
.feature-story-text {
    flex: 1;
}
.feature-story-text h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}
.feature-story-text p {
    color: var(--text-muted);
    line-height: 1.65;
    font-size: 0.98rem;
}
.feature-story-shot {
    flex: 1.15;
    min-width: 0;
}
.feature-story-shot img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: 0 14px 44px rgba(0, 0, 0, 0.38);
    transition:
        box-shadow 0.3s,
        transform 0.3s;
}
.feature-story-shot img:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-screenshot-hover);
}
.more-features-title {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 52px 0 22px;
    letter-spacing: -0.01em;
}
.more-features {
    max-width: 820px;
    margin: 0 auto;
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 32px;
}
.more-features li {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.5;
    padding-left: 20px;
    position: relative;
}
.more-features li::before {
    content: "+";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 600;
}
.screenshots-sub {
    text-align: center;
    color: var(--text-dim);
    margin: 0 auto 28px;
    max-width: 580px;
    font-size: 0.98rem;
}

/* PRODUCT BOUNDARIES */
.boundaries {
    padding: clamp(40px, 6vw, 68px) 24px;
}
.boundaries-inner {
    max-width: 720px;
    margin: 0 auto;
    padding: 34px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.boundaries .section-kicker {
    margin-bottom: 10px;
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.boundaries h2 {
    margin-bottom: 14px;
    color: var(--white);
    font-size: clamp(1.5rem, 4vw, 2rem);
    letter-spacing: -0.02em;
}
.boundaries p {
    max-width: 680px;
    color: var(--text);
    line-height: 1.7;
}
.boundaries .boundary-note {
    margin-top: 12px;
    color: var(--text-dim);
    font-size: 0.92rem;
}
@media (max-width: 760px) {
    .feature-story,
    .feature-story.reverse {
        flex-direction: column;
        gap: 22px;
        text-align: center;
        margin-bottom: 44px;
    }
    .more-features {
        grid-template-columns: 1fr;
        max-width: 420px;
    }
}
