/* ============================================================
   Linexin — shared stylesheet
   Replaces the Tailwind CDN build with a hand-written,
   self-contained stylesheet. Dark theme only (brand).
   ============================================================ */

:root {
    --bg: #05010a;
    --bg-soft: #0f0518;
    --surface: rgba(20, 10, 35, 0.55);
    --surface-solid: #140a23;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.14);
    --primary: #9d4edd;
    --primary-soft: rgba(157, 78, 221, 0.16);
    --primary-glow: rgba(157, 78, 221, 0.4);
    --accent: #d8b4fe;
    --text: #ece4f7;
    --text-muted: #a89cc0;
    --text-faint: #6f6486;
    --green: #4ade80;
    --radius: 16px;
    --radius-lg: 24px;
    --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --mono: ui-monospace, "JetBrains Mono", "Cascadia Code", Consolas, monospace;
}

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

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: var(--primary);
    color: #fff;
}

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

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

h1, h2, h3, h4 {
    margin: 0;
    color: #fff;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

p {
    margin: 0;
}

code {
    font-family: var(--mono);
    font-size: 0.9em;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.1em 0.4em;
    color: var(--accent);
}

/* Keyboard focus */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

.btn:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

/* Skip link (visible only when focused) */
.skip-link {
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 300;
    transform: translateY(-300%);
    padding: 10px 18px;
    border-radius: 10px;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    transition: transform 0.2s ease;
}

.skip-link:focus-visible { transform: none; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-soft); }
::-webkit-scrollbar-thumb { background: #331849; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ------------------------------------------------------------
   Layout helpers
   ------------------------------------------------------------ */

.container {
    width: 100%;
    max-width: 1152px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow {
    max-width: 860px;
}

section {
    position: relative;
    padding: 88px 0;
}

.section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 56px;
}

.section-head h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 12px;
}

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

/* Background decorations */
.noise-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.aurora-wrap {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.aurora-blob {
    position: absolute;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(90px);
}

.aurora-blob.one { width: 520px; height: 520px; top: -12%; left: -10%; opacity: 0.5; }
.aurora-blob.two { width: 620px; height: 620px; bottom: -14%; right: -12%; opacity: 0.35; }

main {
    position: relative;
    z-index: 1;
}

/* ------------------------------------------------------------
   Panels, buttons, badges
   ------------------------------------------------------------ */

.glass-panel {
    background: var(--surface);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    box-shadow: 0 4px 24px -1px rgba(0, 0, 0, 0.2);
    border-radius: var(--radius);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font);
    font-weight: 700;
    font-size: 1rem;
    border: none;
    border-radius: 14px;
    padding: 14px 30px;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    position: relative;
    overflow: hidden;
}

.btn:active { transform: scale(0.96); }

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 8px 30px rgba(157, 78, 221, 0.3);
}

.btn-primary:hover {
    background: #8b3cc1;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 40px rgba(157, 78, 221, 0.45);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid var(--border);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    font-weight: 600;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-shimmer::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.btn-shimmer:hover::after {
    left: 100%;
    transition: left 0.7s ease-in-out;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
}

a.badge {
    transition: border-color 0.25s, background 0.25s;
}

a.badge:hover {
    border-color: rgba(157, 78, 221, 0.5);
    background: rgba(157, 78, 221, 0.12);
}

.badge .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--primary-soft);
    border: 1px solid rgba(157, 78, 221, 0.35);
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
}

.text-gradient {
    background: linear-gradient(135deg, #fff 0%, #d8b4fe 50%, #9d4edd 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: gradientFlow 3s linear infinite;
}

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ------------------------------------------------------------
   Navbar
   ------------------------------------------------------------ */

.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.nav-inner {
    pointer-events: auto;
    width: 100%;
    background: rgba(15, 5, 24, 0.82);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border: 1px solid transparent;
    border-bottom-color: var(--border);
    transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1),
        margin 0.45s cubic-bezier(0.4, 0, 0.2, 1),
        border-radius 0.45s cubic-bezier(0.4, 0, 0.2, 1),
        border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-nav.scrolled .nav-inner {
    width: min(92%, 1100px);
    margin-top: 16px;
    border-radius: 999px;
    border-color: var(--border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.nav-content {
    max-width: 1152px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
}

.nav-brand .logo-wrap {
    position: relative;
    width: 32px;
    height: 32px;
}

.nav-brand .logo-wrap::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--primary);
    filter: blur(14px);
    opacity: 0.4;
    transition: opacity 0.3s;
}

.nav-brand:hover .logo-wrap::before { opacity: 0.7; }

.nav-brand img {
    position: relative;
    width: 32px;
    height: 32px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 26px;
}

.nav-links > a {
    position: relative;
    color: #cfc6de;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.25s;
    white-space: nowrap;
}

.nav-links > a:hover { color: #fff; }

.nav-links > a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    height: 2px;
    width: 0;
    background: var(--primary);
    transition: width 0.3s ease-in-out;
}

.nav-links > a:hover::after,
.nav-links > a.active::after { width: 100%; }

.nav-links > a.active { color: #fff; }

.nav-sep {
    width: 1px;
    height: 16px;
    background: var(--border-strong);
}

.nav-cta {
    padding: 9px 22px;
    font-size: 0.9rem;
    border-radius: 999px;
}

/* Language dropdown */
.lang-menu { position: relative; }

.lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    color: #cfc6de;
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 4px;
    transition: color 0.25s;
}

.lang-btn:hover { color: #fff; }

.lang-btn svg { opacity: 0.5; transition: transform 0.25s; }

.lang-menu.open .lang-btn svg { transform: rotate(180deg); }

.lang-list {
    position: absolute;
    right: 0;
    top: calc(100% + 12px);
    width: 168px;
    background: #1a0b2e;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 8px;
    display: none;
    flex-direction: column;
    gap: 2px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    max-height: 70vh;
    overflow-y: auto;
}

.lang-menu.open .lang-list { display: flex; }

.lang-list button {
    background: none;
    border: none;
    text-align: left;
    font-family: var(--font);
    font-size: 0.88rem;
    color: #cfc6de;
    padding: 8px 12px;
    border-radius: 9px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.lang-list button:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.lang-list button.active {
    color: #fff;
    background: var(--primary-soft);
}

.cookie-banner {
    position: fixed;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    z-index: 200;
    display: none;
    width: min(92vw, 720px);
    padding: 18px 20px;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.cookie-banner.visible {
    display: flex;
}

.cookie-banner__content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    width: 100%;
    flex-wrap: wrap;
}

.cookie-banner p {
    color: var(--text);
    font-size: 0.95rem;
    max-width: 560px;
    flex: 1 1 420px;
    margin: 0;
    text-align: justify;
    line-height: 1.6;
}

.cookie-banner__actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    flex: 0 0 auto;
}

.cookie-banner__btn {
    padding: 10px 18px;
    font-size: 0.9rem;
    min-width: 96px;
    justify-content: center;
}

/* Mobile menu */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    padding: 8px;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 16px;
    right: 16px;
    pointer-events: auto;
    padding: 14px;
    flex-direction: column;
    gap: 2px;
    border-radius: var(--radius-lg);
    background: rgba(15, 5, 24, 0.96);
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
    display: block;
    padding: 12px 14px;
    color: #cfc6de;
    font-weight: 600;
    border-radius: 12px;
}

.mobile-menu a:hover,
.mobile-menu a.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.mobile-menu .btn {
    margin-top: 8px;
    width: 100%;
}

.mobile-langs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.mobile-langs button {
    flex: 1 0 56px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: #cfc6de;
    font-family: var(--font);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 8px 0;
    border-radius: 9px;
    cursor: pointer;
}

.mobile-langs button.active {
    background: var(--primary-soft);
    border-color: rgba(157, 78, 221, 0.5);
    color: #fff;
}

/* ------------------------------------------------------------
   Hero
   ------------------------------------------------------------ */

.hero {
    min-height: 62vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 170px 0 90px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    mix-blend-mode: overlay;
}

.hero-fade {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(to bottom, transparent, rgba(15, 5, 24, 0.8), var(--bg-soft));
}

.hero h1 {
    font-size: clamp(2.6rem, 8vw, 5.5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    margin: 24px 0;
    line-height: 1.08;
}

.hero .subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-muted);
    max-width: 680px;
    margin: 0 auto 40px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.hero-meta {
    margin-top: 22px;
    font-size: 0.85rem;
    color: var(--text-faint);
}

.hero-meta a { color: var(--text-muted); text-decoration: underline; }

/* ------------------------------------------------------------
   Feature cards
   ------------------------------------------------------------ */

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    padding: 30px;
    border-radius: var(--radius-lg);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon svg { width: 24px; height: 24px; }

.icon-red    { background: linear-gradient(135deg, rgba(239,68,68,0.2),  rgba(249,115,22,0.2)); color: #f87171; }
.icon-blue   { background: linear-gradient(135deg, rgba(59,130,246,0.2), rgba(6,182,212,0.2));  color: #60a5fa; }
.icon-green  { background: linear-gradient(135deg, rgba(34,197,94,0.2),  rgba(16,185,129,0.2)); color: #4ade80; }
.icon-purple { background: linear-gradient(135deg, rgba(157,78,221,0.25), rgba(216,180,254,0.15)); color: #c084fc; }
.icon-amber  { background: linear-gradient(135deg, rgba(245,158,11,0.2), rgba(234,179,8,0.2));  color: #fbbf24; }
.icon-pink   { background: linear-gradient(135deg, rgba(236,72,153,0.2), rgba(244,114,182,0.2)); color: #f472b6; }

.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

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

/* ------------------------------------------------------------
   Showcase / gallery
   ------------------------------------------------------------ */

.carousel {
    max-width: 960px;
    margin: 0 auto;
    padding: 8px;
    border-radius: 20px;
}

.carousel-frame {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: rgba(0, 0, 0, 0.5);
    touch-action: pan-y;
}

.carousel-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.4s;
}

.carousel-nav {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    pointer-events: none;
}

.carousel-nav button {
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border);
    color: #fff;
    cursor: pointer;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: background 0.25s;
}

.carousel-nav button:hover { background: rgba(157, 78, 221, 0.4); }

.carousel-caption {
    position: absolute;
    left: 14px;
    bottom: 14px;
    z-index: 2;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(15, 5, 24, 0.72);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 600;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    pointer-events: none;
    max-width: calc(100% - 28px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
}

.carousel-dots button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    padding: 0;
    transition: background 0.25s, transform 0.25s;
}

.carousel-dots button.active {
    background: var(--primary);
    transform: scale(1.3);
}

/* Segmented control */
.segmented-control {
    display: inline-flex;
    position: relative;
    padding: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.segment-btn {
    position: relative;
    z-index: 2;
    padding: 9px 26px;
    border: none;
    border-radius: 999px;
    background: none;
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 600;
    color: #9ca3af;
    cursor: pointer;
    transition: color 0.3s;
    white-space: nowrap;
}

.segment-btn:hover { color: var(--text); }
.segment-btn.active { color: #fff; }

.segment-slider {
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 4px;
    width: calc(50% - 4px);
    border-radius: 999px;
    background: var(--primary);
    box-shadow: 0 0 20px rgba(157, 78, 221, 0.5);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    max-width: 960px;
    margin: 0 auto;
}

.gallery-card {
    padding: 6px 6px 0;
    border-radius: var(--radius-lg);
    transition: transform 0.3s;
    overflow: hidden;
}

.gallery-card:hover { transform: translateY(-6px); }

.gallery-card .shot {
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s;
}

.gallery-card:hover img { opacity: 0.9; }

.gallery-card .label {
    padding: 12px 6px;
    font-weight: 600;
    color: #fff;
    text-align: center;
}

/* ------------------------------------------------------------
   Quickstart steps (homepage)
   ------------------------------------------------------------ */

.quickstep {
    display: block;
    position: relative;
    border-color: rgba(157, 78, 221, 0.4);
    background: linear-gradient(160deg, rgba(157, 78, 221, 0.14), rgba(20, 10, 35, 0.55) 55%);
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.quickstep:hover {
    border-color: rgba(157, 78, 221, 0.7);
    transform: translateY(-4px);
    box-shadow: 0 14px 44px -10px rgba(157, 78, 221, 0.4);
}

.quickstep .step-num {
    margin-bottom: 18px;
}

.quickstep h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.quickstep p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.card-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 9px 18px;
    border-radius: 999px;
    background: var(--primary-soft);
    border: 1px solid rgba(157, 78, 221, 0.5);
    color: var(--accent);
    font-weight: 700;
    font-size: 0.9rem;
    transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.card-cta svg {
    flex-shrink: 0;
    transition: transform 0.25s;
}

.quickstep:hover .card-cta {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.quickstep:hover .card-cta svg { transform: translateX(3px); }

/* ------------------------------------------------------------
   Lightbox
   ------------------------------------------------------------ */

.zoomable { cursor: zoom-in; }

body.no-scroll { overflow: hidden; }

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 400;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 5vh 4vw 9vh;
    background: rgba(5, 1, 10, 0.9);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.lightbox.open { display: flex; }

.lightbox img {
    max-width: 100%;
    max-height: 84vh;
    border-radius: 12px;
    border: 1px solid var(--border-strong);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
    cursor: default;
}

.lightbox-caption {
    position: absolute;
    bottom: 2.5vh;
    left: 50%;
    transform: translateX(-50%);
    max-width: 90vw;
    padding: 7px 18px;
    border-radius: 999px;
    background: rgba(15, 5, 24, 0.8);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.88rem;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lightbox-btn {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border);
    color: #fff;
    cursor: pointer;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: background 0.25s;
}

.lightbox-btn:hover { background: rgba(157, 78, 221, 0.4); }

.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* ------------------------------------------------------------
   Back to top
   ------------------------------------------------------------ */

.back-to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 150;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(20, 10, 35, 0.75);
    border: 1px solid var(--border-strong);
    color: #fff;
    cursor: pointer;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s, transform 0.3s, visibility 0.3s, background 0.3s;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.back-to-top:hover { background: var(--primary); }

/* ------------------------------------------------------------
   FAQ accordion
   ------------------------------------------------------------ */

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item { overflow: hidden; }

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    text-align: left;
    padding: 22px 26px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font);
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    transition: background 0.25s;
}

.faq-question:hover { background: rgba(255, 255, 255, 0.04); }

.faq-question svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--primary);
    transition: transform 0.3s;
}

.faq-item.open .faq-question svg { transform: rotate(180deg); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(0, 0, 0, 0.2);
}

.faq-answer-inner {
    padding: 22px 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

.faq-answer-inner a { text-decoration: underline; }

/* ------------------------------------------------------------
   Page header (subpages)
   ------------------------------------------------------------ */

.page-header {
    padding: 170px 0 40px;
    text-align: center;
}

.page-header h1 {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 800;
    margin: 18px 0 14px;
}

.page-header .lead {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 640px;
    margin: 0 auto;
}

/* ------------------------------------------------------------
   Download page
   ------------------------------------------------------------ */

.download-card {
    max-width: 760px;
    margin: 0 auto;
    padding: 38px;
    border-radius: var(--radius-lg);
    text-align: center;
    border-color: rgba(157, 78, 221, 0.35);
    box-shadow: 0 20px 80px -20px rgba(157, 78, 221, 0.3);
}

.download-card h2 {
    font-size: 1.7rem;
    margin-bottom: 6px;
}

.download-facts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 20px 0 26px;
}

.download-note {
    margin-top: 18px;
    font-size: 0.85rem;
    color: var(--text-faint);
}

.checksum-box {
    margin-top: 26px;
    text-align: left;
}

.checksum-box .label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-faint);
    margin-bottom: 8px;
}

.code-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 14px;
}

.code-row code {
    flex: 1;
    background: none;
    border: none;
    padding: 0;
    font-size: 0.8rem;
    color: var(--green);
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
}

.code-row code::-webkit-scrollbar { display: none; }

.copy-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-family: var(--font);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 7px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.copy-btn:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }
.copy-btn.copied { color: var(--green); border-color: rgba(74, 222, 128, 0.4); }

/* Requirements table */
.req-table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: var(--radius);
}

.req-table th,
.req-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
}

.req-table tr:last-child th,
.req-table tr:last-child td { border-bottom: none; }

.req-table th {
    color: #fff;
    font-weight: 700;
    white-space: nowrap;
    width: 34%;
}

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

.table-wrap {
    overflow-x: auto;
    border-radius: var(--radius);
}

/* Older releases (collapsed by default) */
.older-releases {
    max-width: 760px;
    margin: 20px auto 0;
}

.older-releases > summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: fit-content;
    margin: 0 auto;
    padding: 8px 16px;
    border-radius: 999px;
    cursor: pointer;
    list-style: none;
    font-size: 0.85rem;
    color: var(--text-faint);
    transition: color 0.2s, background 0.2s;
}

.older-releases > summary::-webkit-details-marker { display: none; }

.older-releases > summary:hover {
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
}

.older-releases > summary:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.older-releases > summary .chev {
    flex-shrink: 0;
    transition: transform 0.2s;
}

.older-releases[open] > summary .chev { transform: rotate(180deg); }

.older-note {
    max-width: 620px;
    margin: 14px auto 0;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-faint);
}

.release-list {
    margin: 18px auto 0;
    padding: 4px 24px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
}

.release-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.release-row:last-child { border-bottom: none; }

.release-row .rel-info {
    flex: 1 1 260px;
    min-width: 0;
}

.release-row .rel-name {
    display: block;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
}

.release-row .rel-meta {
    display: block;
    margin-top: 3px;
    font-size: 0.8rem;
    color: var(--text-faint);
    overflow-wrap: anywhere;
}

.release-row .btn { flex-shrink: 0; }

@media (max-width: 560px) {
    .release-list { padding: 4px 18px; }
    .release-row .btn { width: 100%; justify-content: center; }
}

/* Tabs (USB writing guide) */
.tabs-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
}

.tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-family: var(--font);
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s;
}

.tab-btn:hover { color: #fff; }

.tab-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 0 24px rgba(157, 78, 221, 0.4);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Numbered steps */
.steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 760px;
    margin: 0 auto;
}

.step {
    position: relative;
    display: flex;
    gap: 22px;
    padding-bottom: 34px;
}

.step:last-child { padding-bottom: 0; }

.step::before {
    content: "";
    position: absolute;
    left: 19px;
    top: 44px;
    bottom: 4px;
    width: 2px;
    background: linear-gradient(to bottom, rgba(157, 78, 221, 0.5), rgba(157, 78, 221, 0.08));
}

.step:last-child::before { display: none; }

.step-num {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-soft);
    border: 1px solid rgba(157, 78, 221, 0.45);
    color: var(--accent);
    font-weight: 800;
    font-size: 0.95rem;
}

.step-body { padding-top: 7px; min-width: 0; }

.step-body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.step-body p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.step-body p + p { margin-top: 8px; }

.step-body .code-row { margin-top: 12px; }

.callout {
    display: flex;
    gap: 14px;
    padding: 18px 20px;
    border-radius: var(--radius);
    background: rgba(157, 78, 221, 0.08);
    border: 1px solid rgba(157, 78, 221, 0.3);
    margin-top: 14px;
    font-size: 0.92rem;
    color: var(--text-muted);
}

.callout.warn {
    background: rgba(245, 158, 11, 0.07);
    border-color: rgba(245, 158, 11, 0.3);
}

.callout svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--accent);
    margin-top: 2px;
}

.callout.warn svg { color: #fbbf24; }

.callout strong { color: var(--text); }

/* ------------------------------------------------------------
   Changelog page
   ------------------------------------------------------------ */

.release {
    position: relative;
    max-width: 800px;
    margin: 0 auto 34px;
    padding: 34px 38px;
    border-radius: var(--radius-lg);
}

.release-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.release-head h2 {
    font-size: 1.6rem;
    font-weight: 800;
}

.release .note {
    color: var(--text-faint);
    font-size: 0.88rem;
    margin-bottom: 18px;
}

.release ul {
    margin: 0;
    padding-left: 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.release ul ul {
    margin-top: 8px;
    gap: 6px;
}

.release li::marker { color: var(--primary); }

.release strong { color: var(--text); }

.chip-current {
    background: rgba(74, 222, 128, 0.12);
    border-color: rgba(74, 222, 128, 0.4);
    color: var(--green);
}

/* ------------------------------------------------------------
   Packages page
   ------------------------------------------------------------ */

.pkg-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.pkg-card {
    padding: 28px;
    border-radius: var(--radius-lg);
}

.pkg-card-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.pkg-card-head h3 {
    font-size: 1.15rem;
    font-weight: 700;
}

.pkg-card > p {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 16px;
}

.pkg-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pkg-tags .tag {
    padding: 5px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 600;
}

.pkg-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pkg-list li {
    padding: 11px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.pkg-list li:first-child { border-top: none; }

.pkg-list .pkg-name {
    display: block;
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.pkg-list .pkg-desc {
    display: block;
    color: var(--text-muted);
    font-size: 0.88rem;
}

/* ------------------------------------------------------------
   Community / CTA / footer
   ------------------------------------------------------------ */

.cta-section {
    text-align: center;
    background: var(--bg-soft);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.cta-section h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 14px;
}

.cta-section > .container > p {
    color: var(--text-muted);
    max-width: 620px;
    margin: 0 auto 34px;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.site-footer {
    position: relative;
    z-index: 1;
    background: var(--bg);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 56px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 44px;
}

.footer-brand .nav-brand { margin-bottom: 14px; }

.footer-brand p {
    color: var(--text-faint);
    font-size: 0.88rem;
    max-width: 280px;
}

.footer-col h4 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-faint);
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col a {
    color: var(--text-muted);
    font-size: 0.92rem;
    transition: color 0.2s;
}

.footer-col a:hover { color: #fff; }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 26px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    color: var(--text-faint);
    font-size: 0.85rem;
}

/* ------------------------------------------------------------
   Reveal animation
   ------------------------------------------------------------ */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1),
        transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.stagger-1 { transition-delay: 0.08s; }
.stagger-2 { transition-delay: 0.16s; }
.stagger-3 { transition-delay: 0.24s; }
.stagger-4 { transition-delay: 0.32s; }

@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;
    }

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

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */

@media (max-width: 1020px) {
    .nav-links { display: none; }
    .menu-toggle { display: block; }
}

@media (max-width: 860px) {
    section { padding: 64px 0; }

    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .pkg-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
    .features-grid,
    .gallery-grid { grid-template-columns: 1fr; }

    .hero { padding-top: 130px; }

    .hero-actions .btn { width: 100%; }

    .download-card { padding: 26px 20px; }

    .release { padding: 26px 20px; }

    .step { gap: 14px; }
    .step::before { left: 15px; }
    .step-num { width: 32px; height: 32px; font-size: 0.85rem; }
    .step-body { padding-top: 3px; }

    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
