/* Chuk Chat Design System - Warm Paper Theme */

:root {
    --bg-color: #FDFBF7;
    --text-color: #2D2D2D;
    --text-secondary: #666666;
    --text-muted: #888888;
    --border-solid: #D0C8B8;
    --border-dotted: #C0B8A8;
    --success: #228B22;
    --error: #C41E3A;
    --accent: #B8860B;
    --highlight-bg: #F8F5EF;
    --card-bg: #FFFFFF;
    --icon-bg: #F0EBE0;
    --top-bar-height: 56px;
    --layout-max-width: 1320px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Courier New', Courier, monospace;
    font-size: 16px;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding-top: var(--top-bar-height);
}

/* Top Navigation Bar */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--top-bar-height);
    background: var(--card-bg);
    border-bottom: 2px solid var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 0 16px;
}

.nav-container {
    width: 100%;
    max-width: var(--layout-max-width);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-group {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    line-height: 1;
}

.logo {
    font-weight: bold;
    font-size: 22px;
    line-height: 1;
    white-space: nowrap;
    flex-shrink: 0;
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s;
}

.logo:hover {
    color: var(--accent);
}

.logo-slogan {
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    white-space: nowrap;
}

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--accent);
}

.nav-link.active {
    color: var(--text-color);
    font-weight: bold;
}

.nav-cta {
    background: var(--accent);
    color: #fff !important;
    padding: 5px 14px;
    font-weight: bold;
    border-radius: 4px;
    transition: background 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
    background: #9A7209;
    box-shadow: 0 0 8px rgba(184, 134, 11, 0.5);
}

.github-stars-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    border: 1px solid var(--border-solid);
    background: var(--highlight-bg);
    padding: 4px 8px;
    color: var(--text-secondary);
    transition: border-color 0.2s, color 0.2s;
}

.github-stars-link:hover {
    color: var(--text-color);
    border-color: var(--text-color);
    text-decoration: none;
}

.github-stars-text {
    font-size: 13px;
    font-weight: bold;
    white-space: nowrap;
}

.github-stars-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid var(--border-solid);
    padding: 2px 6px;
    background: var(--card-bg);
    color: var(--text-color);
    font-size: 12px;
    font-weight: bold;
}

.github-star-label {
    color: var(--text-secondary);
    font-weight: normal;
}

.github-star-count {
    min-width: 2ch;
    text-align: right;
}

.container {
    width: 100%;
    max-width: var(--layout-max-width);
    padding: 60px 24px;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Typography */
h1, h2, h3 {
    margin: 0;
    font-weight: bold;
    line-height: 1.3;
}

h1 {
    font-size: 42px;
    margin-bottom: 24px;
    color: var(--text-color);
    padding-bottom: 16px;
    border-bottom: 2px solid var(--text-color);
}

h2 {
    font-size: 30px;
    margin-bottom: 20px;
    color: var(--text-color);
    padding-bottom: 12px;
    border-bottom: 2px solid var(--text-color);
}

h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--text-color);
}

p {
    margin: 0 0 18px 0;
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.7;
}

.subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 28px;
    line-height: 1.7;
}

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

a:hover {
    text-decoration: underline;
}

ul {
    margin-bottom: 16px;
    padding-left: 24px;
    color: var(--text-secondary);
}

li {
    margin-bottom: 8px;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    background: var(--highlight-bg);
    color: var(--text-color);
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 24px;
    border: 1px dashed var(--border-dotted);
}

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

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 8px;
    align-items: center;
}

.lang-btn {
    font-size: 14px;
    padding: 4px 8px;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s;
    text-decoration: none;
    color: var(--text-secondary);
    border: 1px solid transparent;
}

.lang-btn:hover {
    opacity: 1;
    text-decoration: none;
}

.lang-btn.active {
    opacity: 1;
    color: var(--text-color);
    font-weight: bold;
    border: 1px solid var(--border-solid);
}

/* Buttons */
.btn-primary {
    background: var(--text-color);
    color: var(--card-bg);
    border: 1px solid var(--text-color);
    border-radius: 3px;
    padding: 12px 24px;
    font-family: inherit;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    background: var(--card-bg);
    color: var(--text-color);
    text-decoration: none;
}

.btn-secondary {
    background: var(--card-bg);
    color: var(--text-color);
    border: 1px solid var(--text-color);
    border-radius: 3px;
    padding: 12px 24px;
    font-family: inherit;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    background: var(--text-color);
    color: var(--card-bg);
    text-decoration: none;
}

/* Two Column Layout (legacy) */
.two-column-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 80px;
}

.content-column h1 {
    text-align: left;
    margin-bottom: 8px;
}

.brand-slogan {
    font-size: 13px;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin: 4px 0 24px 0;
    font-style: normal;
    font-weight: bold;
}

.content-column p {
    text-align: left;
    font-size: 16px;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

/* ===== Hero (tolaria-style) ===== */
.hero-section {
    margin: 24px 0 40px 0;
    padding: 0;
}

.hero-content {
    max-width: 760px;
}

.hero-title {
    font-size: 46px;
    line-height: 1.1;
    margin: 0 0 4px 0;
    padding-bottom: 0;
    border-bottom: none;
    color: var(--text-color);
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 22px;
    line-height: 1.5;
    color: var(--text-secondary);
    margin: 0 0 28px 0;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.btn-cta-primary,
.btn-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 22px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.15s;
    border: 1px solid var(--text-color);
    font-family: inherit;
    cursor: pointer;
}

.btn-cta-primary {
    background: var(--accent);
    color: #fff !important;
    border-color: var(--accent);
}

.btn-cta-primary:hover {
    background: #9A7209;
    border-color: #9A7209;
    box-shadow: 0 0 10px rgba(184, 134, 11, 0.35);
    text-decoration: none;
}

.btn-cta-secondary {
    background: var(--card-bg);
    color: var(--text-color) !important;
}

.btn-cta-secondary:hover {
    background: var(--text-color);
    color: var(--card-bg) !important;
    text-decoration: none;
}

.hero-tagline {
    font-size: 14px;
    color: var(--text-muted);
    margin: 12px 0 0 0;
    font-style: italic;
}

/* ===== Encryption hover effect ===== */
.encryption-container {
    position: relative;
    display: inline-block;
    cursor: help;
    color: var(--accent);
    font-weight: bold;
    border-bottom: 1px dotted var(--accent);
    padding: 0 2px;
}

.encryption-text {
    transition: opacity 0.25s ease;
    display: inline-block;
}

.encryption-container:hover .encryption-text,
.encryption-container:focus-visible .encryption-text {
    opacity: 0;
}

.encryption-crypto {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
    font-family: 'Courier New', Courier, monospace;
    color: var(--accent);
    pointer-events: none;
    overflow: hidden;
}

.encryption-container:hover .encryption-crypto,
.encryption-container:focus-visible .encryption-crypto {
    opacity: 1;
}

.crypto-rain,
.arch-crypto-rain {
    position: absolute;
    inset: -8px 0;
    overflow: hidden;
    pointer-events: none;
}

.crypto-char {
    position: absolute;
    top: 0;
    font-family: 'Courier New', Courier, monospace;
    font-size: 11px;
    color: var(--accent);
    opacity: 0.85;
    animation: crypto-fall linear infinite;
    transform: translateY(-100%);
}

@keyframes crypto-fall {
    0%   { transform: translateY(-110%); opacity: 0; }
    15%  { opacity: 1; }
    85%  { opacity: 1; }
    100% { transform: translateY(110%); opacity: 0; }
}

/* ===== Screenshot Slider (big, image-only, hover arrows, caption + dots below) ===== */
.screenshot-section {
    margin: 0 0 96px 0;
}

.screenshot-stage {
    width: 100%;
    margin: 0 auto;
}

.screenshot-viewer {
    position: relative;
    border: 1px solid var(--border-solid);
    border-radius: 10px;
    overflow: hidden;
    background: #111;
    box-shadow: 0 28px 70px -16px rgba(0, 0, 0, 0.4);
    aspect-ratio: 16 / 9;
}

.screenshot-track {
    display: flex;
    height: 100%;
    transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.screenshot-slide {
    flex: 0 0 100%;
    min-width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

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

.screenshot-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
    cursor: pointer;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    transition: opacity 0.25s ease, background 0.18s, transform 0.18s;
    opacity: 0;
    padding: 0;
}

.screenshot-viewer:hover .slider-arrow,
.slider-arrow:focus-visible {
    opacity: 0.9;
}

.slider-arrow:hover {
    background: var(--accent);
    border-color: var(--accent);
    opacity: 1 !important;
    transform: translateY(-50%) scale(1.06);
}

.slider-arrow-prev { left: 18px; }
.slider-arrow-next { right: 18px; }

.slider-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 18px;
    padding: 0 4px;
}

.screenshot-caption {
    margin: 0;
    color: var(--text-color);
    font-size: 16px;
    font-weight: bold;
    text-align: left;
    flex: 1;
    min-width: 0;
}

.slider-dots {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.slider-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--border-dotted);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.2s;
}

.slider-dot:hover {
    background: var(--text-secondary);
}

.slider-dot.active {
    background: var(--accent);
    transform: scale(1.25);
}

@media (max-width: 768px) {
    .screenshot-section {
        padding: 0 16px;
    }
    .slider-arrow {
        opacity: 0.7;
        width: 40px;
        height: 40px;
    }
    .slider-arrow-prev { left: 10px; }
    .slider-arrow-next { right: 10px; }
    .slider-controls {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .screenshot-caption {
        font-size: 14px;
    }
}

/* ===== Tools Marquee ===== */
.tools-section {
    margin: 0 0 88px 0;
    padding: 32px 0;
    border-top: 1px dotted var(--border-dotted);
    border-bottom: 1px dotted var(--border-dotted);
}

.tools-heading {
    text-align: center;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    margin: 0 0 24px 0;
}

.tools-marquee {
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.tools-track {
    display: flex;
    gap: 56px;
    width: max-content;
    animation: tools-scroll 38s linear infinite;
}

.tools-section:hover .tools-track {
    animation-play-state: paused;
}

@keyframes tools-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.tool-item {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 6px 4px;
    color: var(--text-secondary);
    text-decoration: none;
    flex-shrink: 0;
    transition: color 0.2s, transform 0.2s;
}

.tool-item:hover {
    color: var(--text-color);
    text-decoration: none;
    transform: translateY(-1px);
}

.tool-item img {
    width: 34px;
    height: 34px;
    display: block;
    opacity: 0.9;
    transition: opacity 0.2s, filter 0.2s;
    flex-shrink: 0;
    filter: brightness(0) saturate(100%) invert(53%) sepia(96%) saturate(545%) hue-rotate(11deg) brightness(86%) contrast(88%);
}

.tool-item:hover img {
    opacity: 1;
}

.tool-item img[src*="coingecko"] {
    filter: none;
}

.tool-text {
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.1;
}

.tool-name {
    font-size: 15px;
    font-weight: bold;
    color: var(--text-color);
    white-space: nowrap;
}

.tool-role {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    letter-spacing: 0.2px;
}

@media (max-width: 600px) {
    .tools-track { gap: 36px; }
    .tool-name { font-size: 14px; }
    .tool-role { font-size: 11px; }
    .tool-item img { width: 28px; height: 28px; }
    .model-logo-frame { width: 36px; height: 36px; }
    .model-logo-frame img { width: 24px; height: 24px; }
}

/* ===== Models — vertical cards, paper feel ===== */
.models-grid-section {
    margin: 0 0 96px 0;
    padding: 48px 40px 44px 40px;
    background:
        radial-gradient(ellipse at 50% -20%, rgba(184, 134, 11, 0.10), transparent 55%),
        var(--card-bg);
    border: 1px solid var(--border-solid);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.models-grid-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 220px;
    height: 4px;
    background: var(--accent);
    border-radius: 0 0 4px 4px;
}

.models-grid-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    margin-bottom: 36px;
    position: relative;
}

.models-grid-head .section-tag {
    margin-bottom: 4px;
}

.models-grid-title {
    font-size: 32px;
    margin: 0;
    padding-bottom: 0;
    border-bottom: none;
    color: var(--text-color);
    line-height: 1.15;
    letter-spacing: -0.5px;
    max-width: 640px;
}

.models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 14px;
    position: relative;
}

.model-card {
    background: var(--bg-color);
    border: 1px solid var(--border-solid);
    border-radius: 12px;
    padding: 24px 16px 20px 16px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    transition: transform 0.25s ease, border-color 0.2s, box-shadow 0.25s, background 0.25s;
    position: relative;
    overflow: hidden;
}

.model-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 3px;
    background: var(--accent);
    border-radius: 0 0 3px 3px;
    transition: transform 0.3s ease;
    transform-origin: center;
}

.model-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    background: var(--card-bg);
    box-shadow: 0 18px 40px -14px rgba(184, 134, 11, 0.28);
}

.model-card:hover::before {
    transform: translateX(-50%) scaleX(1);
}

.model-card-logo {
    width: 64px;
    height: 64px;
    background: var(--card-bg);
    border: 1px solid var(--border-dotted);
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    transition: transform 0.25s, border-color 0.2s, background 0.25s;
    margin-top: 4px;
}

.model-card:hover .model-card-logo {
    border-color: var(--accent);
    background: var(--highlight-bg);
    transform: scale(1.06) rotate(-2deg);
}

.model-card-logo img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    display: block;
    filter: brightness(0);
}

.model-card-name {
    font-size: 16px;
    font-weight: bold;
    color: var(--text-color);
    line-height: 1.2;
    letter-spacing: -0.1px;
    margin-top: 2px;
}

@media (max-width: 600px) {
    .models-grid-section { padding: 32px 16px 28px 16px; }
    .models-grid-title { font-size: 22px; }
    .models-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .model-card { padding: 18px 10px 16px 10px; }
    .model-card-logo { width: 52px; height: 52px; }
    .model-card-logo img { width: 32px; height: 32px; }
    .model-card-name { font-size: 14px; }
}

/* ===== Architecture Section ===== */
.architecture-section {
    margin: 0 0 80px 0;
}

.architecture-intro {
    margin-bottom: 28px;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--highlight-bg);
    border: 1px dashed var(--border-dotted);
    color: var(--accent);
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 10px;
    margin-bottom: 14px;
}

.architecture-title {
    font-size: 34px;
    margin: 0 0 12px 0;
    padding-bottom: 0;
    border-bottom: none;
    line-height: 1.2;
}

.architecture-lead {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    max-width: 760px;
}

.architecture-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-top: 28px;
}

.arch-card {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--border-solid);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 320px;
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease, border-color 0.2s;
}

.arch-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.45s ease;
}

.arch-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 0%), rgba(184, 134, 11, 0.08), transparent 40%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.arch-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: 0 22px 52px -16px rgba(184, 134, 11, 0.32);
}

.arch-card:hover::before {
    transform: scaleX(1);
}

.arch-card:hover::after {
    opacity: 1;
}

.arch-card-tag {
    margin: 0;
    padding: 16px 20px;
    color: var(--accent);
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-bottom: 1px dotted var(--border-dotted);
}

.arch-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 32px 24px;
    gap: 18px;
}

.arch-card-icon {
    width: 76px;
    height: 76px;
    border-radius: 18px;
    background: var(--icon-bg);
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 1px 2px rgba(0, 0, 0, 0.05);
}

.arch-card-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.5), transparent 55%);
    pointer-events: none;
    opacity: 0.7;
}

.arch-card:hover .arch-card-icon {
    transform: scale(1.08) rotate(-2deg);
    background: rgba(184, 134, 11, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 8px 24px -10px rgba(184, 134, 11, 0.5);
}

.arch-card-icon svg {
    transition: opacity 0.25s ease;
    position: relative;
    z-index: 2;
    width: 36px;
    height: 36px;
}

.arch-card-encryption .arch-card-icon {
    cursor: crosshair;
}

.arch-card-crypto {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.arch-card-encryption .arch-card-icon.is-tracking svg {
    opacity: 0.1;
}

.arch-card-encryption .arch-card-icon.is-tracking .arch-card-crypto {
    opacity: 1;
}

.arch-card-encryption .arch-card-icon.is-tracking {
    background: rgba(184, 134, 11, 0.14);
}

.crypto-trail-char {
    position: absolute;
    font-family: 'Courier New', Courier, monospace;
    font-size: 12px;
    font-weight: bold;
    color: var(--accent);
    pointer-events: none;
    transform: translate(-50%, -50%);
    animation: crypto-trail-fade 1.1s ease-out forwards;
    z-index: 3;
    text-shadow: 0 0 6px rgba(184, 134, 11, 0.5);
}

@keyframes crypto-trail-fade {
    0%   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, calc(-50% - 18px)) scale(0.6); }
}

.arch-card-text {
    margin: 0;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.65;
    max-width: 300px;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
    }
    .hero-subtitle {
        font-size: 18px;
    }
    .architecture-title {
        font-size: 26px;
    }
    .architecture-grid {
        grid-template-columns: 1fr;
    }
    .arch-card {
        min-height: 240px;
    }
    .hero-ctas {
        flex-direction: column;
    }
    .btn-cta-primary,
    .btn-cta-secondary {
        justify-content: center;
    }
}

/* Screenshot */
.screenshot-container {
    border: 1px solid var(--border-solid);
    overflow: hidden;
    background: var(--card-bg);
}

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

/* Form Section */
.waitlist-container {
    max-width: 420px;
    margin: 0 auto 60px auto;
    position: relative;
}

.waitlist-form {
    display: flex;
    gap: 0;
    background: var(--card-bg);
    padding: 0;
    border: 1px solid var(--border-solid);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.15s ease;
}

input[type="email"] {
    flex: 1;
    background: var(--card-bg);
    border: none;
    padding: 12px 20px;
    color: var(--text-color);
    font-family: inherit;
    font-size: 16px;
    outline: none;
    min-width: 0;
}

input[type="email"]::placeholder {
    color: var(--text-muted);
}

button {
    background: var(--text-color);
    color: var(--card-bg);
    border: none;
    padding: 12px 20px;
    font-family: inherit;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}

button:hover {
    background: var(--accent);
}

button:disabled {
    opacity: 0.6;
    cursor: wait;
}

.success-message {
    background: var(--highlight-bg);
    border: 1px dashed var(--border-dotted);
    color: var(--success);
    padding: 14px;
    font-weight: bold;
    display: none;
    animation: fadeIn 0.3s ease-out;
    margin-top: 16px;
    text-align: center;
    font-size: 16px;
}

/* Grid Sections */
.section {
    margin-bottom: 80px;
}

.section.bordered {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px dotted var(--border-dotted);
}

.section.bordered:last-child {
    border-bottom: none;
}

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

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border-solid);
    padding: 24px;
    transition: all 0.15s;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.feature-card:hover {
    border-color: var(--text-color);
}

.feature-card h3 {
    margin-top: 0;
    padding-bottom: 8px;
    border-bottom: 1px dotted var(--border-dotted);
}

.feature-card p {
    margin-bottom: 0;
    color: var(--text-secondary);
}

.text-block {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    background: var(--highlight-bg);
    border: 1px dashed var(--border-dotted);
    padding: 28px;
}

.text-block h2 {
    text-align: center;
    border-bottom: none;
    padding-bottom: 0;
}

.text-block p {
    font-size: 17px;
    margin-bottom: 0;
}

.platforms-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0;
    font-size: 15px;
    color: var(--text-color);
}

.platform-item {
    padding: 8px 14px;
    background: var(--card-bg);
    border: 1px solid var(--border-solid);
    transition: all 0.2s;
}

.platform-item:hover {
    border-color: var(--text-color);
}

/* Preview Images */
.preview-wrapper {
    position: relative;
    margin: 40px auto 80px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 700px;
}

.desktop-image-container {
    position: relative;
    z-index: 2;
    border: 1px solid var(--border-solid);
    overflow: hidden;
    width: 100%;
    background: var(--card-bg);
}

.desktop-image-container img {
    width: 100%;
    height: auto;
    display: block;
}

.mobile-image-overlay {
    position: absolute;
    bottom: -30px;
    right: -20px;
    width: 28%;
    max-width: 180px;
    z-index: 3;
    border: 1px solid var(--border-solid);
    overflow: hidden;
    background: var(--card-bg);
}

.mobile-image-overlay img {
    width: 100%;
    height: auto;
    display: block;
}

/* Cards */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border-solid);
    padding: 24px;
    margin-bottom: 20px;
}

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

/* Highlight Box */
.highlight {
    background: var(--highlight-bg);
    border: 1px dashed var(--border-dotted);
    padding: 16px;
    margin: 16px 0;
}

/* Footer */
.footer {
    padding-top: 40px;
    padding-bottom: 40px;
    border-top: 1px dotted var(--border-dotted);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    width: 100%;
    margin-top: 60px;
}

.footer span {
    color: var(--text-muted);
    font-size: 15px;
}

.footer a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s;
}

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

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: 1px solid var(--border-solid);
    padding: 8px;
    cursor: pointer;
    color: var(--text-color);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: var(--top-bar-height);
    left: 0;
    right: 0;
    background: var(--card-bg);
    border-bottom: 2px solid var(--text-color);
    padding: 16px;
    z-index: 999;
    flex-direction: column;
    gap: 12px;
}

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

.mobile-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 12px 16px;
    border: 1px solid var(--border-solid);
    text-align: center;
    font-size: 16px;
}

.mobile-menu a:hover,
.mobile-menu a.active {
    background: var(--highlight-bg);
    color: var(--text-color);
}

.mobile-menu a.nav-cta {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    font-weight: bold;
}

.mobile-menu a.nav-cta:hover {
    background: #9A7209;
}

.mobile-menu .mobile-lang {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px dotted var(--border-dotted);
}

.mobile-menu .mobile-lang a {
    flex: 1;
    max-width: 100px;
}

/* Responsive Design */
@media (max-width: 1040px) {
    .nav-right {
        gap: 12px;
    }

    .nav-links {
        gap: 16px;
    }

    .nav-link {
        font-size: 15px;
    }

    .github-stars-text {
        display: none;
    }
}

@media (max-width: 768px) {
    .two-column-section {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .content-column h1,
    .content-column p {
        text-align: center;
    }

    .cta-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 40px 16px;
    }

    .top-bar {
        padding: 0 16px;
    }

    h1 {
        font-size: 26px;
    }

    h2 {
        font-size: 22px;
    }

    .waitlist-form {
        flex-direction: column;
        border-radius: 0;
        border: 1px solid var(--border-solid);
    }

    input[type="email"] {
        border-bottom: 1px solid var(--border-solid);
        padding: 12px 16px;
    }

    button {
        padding: 12px 16px;
    }

    .mobile-image-overlay {
        position: relative;
        bottom: auto;
        right: auto;
        width: 60%;
        margin-top: -20px;
        margin-left: auto;
        margin-right: auto;
    }

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

    .nav-links {
        display: none;
    }

    .lang-switcher {
        display: none;
    }

    .nav-right {
        gap: 8px;
    }

    .github-stars-link {
        padding: 4px 6px;
    }

    .github-stars-text {
        display: none;
    }

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

    .cta-buttons {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }

    .section {
        margin-bottom: 60px;
    }

    .footer {
        flex-wrap: wrap;
        gap: 12px;
        font-size: 13px;
    }

    .footer span,
    .footer a {
        font-size: 13px;
    }
}

/* Comparison Table */
/* ===== Comparison Section (premium) ===== */
.comparison-section {
    margin: 0 0 96px 0;
}

.comparison-intro {
    margin-bottom: 28px;
    max-width: 760px;
}

.comparison-title {
    font-size: 34px;
    margin: 0 0 12px 0;
    padding-bottom: 0;
    border-bottom: none;
    line-height: 1.2;
}

.comparison-lead {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.comparison-frame {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--border-solid);
    border-radius: 14px;
    padding: 6px;
    box-shadow: 0 18px 48px -20px rgba(0, 0, 0, 0.18);
    overflow: hidden;
}


.comparison-table-wrapper {
    overflow-x: auto;
    border-radius: 10px;
    -webkit-overflow-scrolling: touch;
}

.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 15px;
    table-layout: fixed;
    min-width: 760px;
}

.comparison-table colgroup,
.comparison-table col {
    /* placeholder for future col sizing */
}

.comparison-table thead th {
    position: sticky;
    top: 0;
    padding: 18px 14px;
    text-align: center;
    font-weight: bold;
    font-size: 14px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    background: var(--highlight-bg);
    border-bottom: 1px solid var(--border-dotted);
    width: 14%;
}

.comparison-table thead th.comparison-feature-col {
    text-align: left;
    width: 30%;
    color: var(--text-color);
    font-size: 12px;
    letter-spacing: 1.2px;
}

.comparison-table thead th.comparison-highlight-col {
    background: var(--highlight-bg);
    color: var(--text-color);
    font-size: 14px;
    letter-spacing: 0.4px;
    text-transform: none;
    position: relative;
    width: 14%;
    border-bottom: 2px solid var(--accent);
}

.comparison-highlight-name {
    display: block;
    font-weight: bold;
    font-size: 16px;
    letter-spacing: 0;
    color: var(--text-color);
}

.comparison-table tbody td {
    padding: 14px 14px;
    text-align: center;
    vertical-align: middle;
    border-bottom: 1px dotted var(--border-dotted);
    color: var(--text-secondary);
    transition: background 0.18s ease;
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.comparison-table tbody tr:hover td {
    background: rgba(184, 134, 11, 0.04);
}

.comparison-table td.comparison-feature-col {
    text-align: left;
    font-weight: bold;
    color: var(--text-color);
    font-size: 14.5px;
}

.comparison-table td.comparison-highlight-col {
    background: rgba(184, 134, 11, 0.04);
    border-left: 1px solid rgba(184, 134, 11, 0.12);
    border-right: 1px solid rgba(184, 134, 11, 0.12);
    position: relative;
}

.comparison-table tbody tr:last-child td.comparison-highlight-col {
    border-bottom: 1px solid rgba(184, 134, 11, 0.12);
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.comparison-table tbody tr:hover td.comparison-highlight-col {
    background: rgba(184, 134, 11, 0.08);
}

.comparison-yes,
.comparison-no {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.comparison-yes {
    background: rgba(34, 139, 34, 0.12);
    color: var(--success);
}

.comparison-yes-highlight {
    background: rgba(34, 139, 34, 0.18);
    color: var(--success);
}

.comparison-no {
    background: rgba(220, 53, 53, 0.10);
    color: var(--error);
    opacity: 0.55;
}

.comparison-table tbody tr:hover .comparison-yes,
.comparison-table tbody tr:hover .comparison-no {
    transform: scale(1.1);
}

.comparison-platforms-cell {
    text-align: center;
}

.platform-tag {
    display: inline-block;
    padding: 3px 8px;
    margin: 2px;
    font-size: 11px;
    font-weight: bold;
    background: var(--highlight-bg);
    border: 1px solid var(--border-dotted);
    border-radius: 999px;
    color: var(--text-secondary);
    white-space: nowrap;
}

.platform-tag-highlight {
    background: rgba(184, 134, 11, 0.15);
    border-color: rgba(184, 134, 11, 0.4);
    color: var(--text-color);
}

@media (max-width: 768px) {
    .comparison-title {
        font-size: 26px;
    }
    .comparison-lead {
        font-size: 16px;
    }
}

@media (max-width: 600px) {
    .comparison-table {
        font-size: 13px;
        min-width: 620px;
    }
    .comparison-table thead th,
    .comparison-table tbody td {
        padding: 10px 8px;
    }
    .comparison-table thead th {
        font-size: 11px;
    }
    .comparison-highlight-name {
        font-size: 14px;
    }
    .comparison-highlight-ribbon {
        font-size: 9px;
        padding: 1px 6px;
    }
    .comparison-yes,
    .comparison-no {
        width: 24px;
        height: 24px;
    }
    .platform-tag {
        font-size: 10px;
        padding: 2px 6px;
    }
}

/* ===== Pricing Page (v2) ===== */
.pricing-hero {
    text-align: center;
    margin: 8px 0 40px 0;
}

.pricing-hero h1 {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 14px;
    font-size: 38px;
    line-height: 1.15;
    letter-spacing: -0.4px;
}

.pricing-subheading {
    color: var(--text-secondary);
    font-size: 17px;
    line-height: 1.55;
    max-width: 640px;
    margin: 0 auto;
}

.pricing-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 24px;
    margin-bottom: 36px;
    align-items: stretch;
}

.pricing-card-v2 {
    background: var(--card-bg);
    border: 2px solid var(--text-color);
    border-radius: 14px;
    padding: 32px 32px 28px 32px;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 16px 36px -10px rgba(184, 134, 11, 0.18);
}

.pricing-card-v2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 24px;
    right: 24px;
    height: 4px;
    background: var(--accent);
    border-radius: 0 0 4px 4px;
}

.pricing-card-head {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px dotted var(--border-dotted);
}

.pricing-tag {
    display: inline-block;
    background: var(--highlight-bg);
    color: var(--accent);
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 4px 10px;
    border: 1px dashed var(--border-dotted);
    margin-bottom: 16px;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 14px;
}

.pricing-price-amount {
    font-size: 64px;
    font-weight: bold;
    color: var(--text-color);
    line-height: 1;
    letter-spacing: -2px;
}

.pricing-price-period {
    font-size: 16px;
    color: var(--text-secondary);
}

.pricing-credits {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(184, 134, 11, 0.08);
    border: 1px solid rgba(184, 134, 11, 0.25);
    border-radius: 6px;
    padding: 7px 12px;
    font-size: 14px;
    color: var(--accent);
    font-weight: bold;
}

.pricing-cta {
    background: var(--accent);
    color: #fff !important;
    border: 1px solid var(--accent);
    border-radius: 8px;
    padding: 14px 24px;
    font-weight: bold;
    font-size: 16px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s;
    margin-bottom: 16px;
}

.pricing-cta:hover {
    background: #9A7209;
    border-color: #9A7209;
    box-shadow: 0 0 14px rgba(184, 134, 11, 0.5);
    text-decoration: none;
    transform: translateY(-1px);
}

.pricing-credits-note {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.55;
    margin: 4px 0 0 0;
}

.pricing-tax-note {
    margin: 16px 0 0 0;
    padding-top: 14px;
    border-top: 1px dashed var(--border-dotted);
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
}

.pricing-side {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pricing-list-card {
    background: var(--card-bg);
    border: 1px solid var(--border-solid);
    border-radius: 10px;
    padding: 20px 22px;
}

.pricing-list-card h3 {
    margin: 0 0 12px 0;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-color);
}

.pricing-list-included h3 { color: var(--success); }
.pricing-list-excluded h3 { color: var(--error); }

.pricing-list-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pricing-list-card li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 7px 0;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
}

.pricing-list-card li + li {
    border-top: 1px dotted var(--border-dotted);
}

.check-icon { color: var(--success); flex-shrink: 0; margin-top: 1px; }
.x-icon { color: var(--error); flex-shrink: 0; margin-top: 1px; }

.pricing-trust-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px dotted var(--border-dotted);
}

.pricing-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: bold;
    background: var(--card-bg);
    border: 1px solid var(--border-solid);
    border-radius: 999px;
    padding: 8px 14px;
}

.pricing-trust-item svg {
    color: var(--accent);
}

@media (max-width: 768px) {
    .pricing-layout {
        grid-template-columns: 1fr;
    }
    .pricing-hero h1 {
        font-size: 28px;
    }
    .pricing-price-amount {
        font-size: 52px;
    }
}

/* ===== Page-Specific Styles ===== */

/* ===== Downloads Page (v2) ===== */
.downloads-hero {
    text-align: center;
    margin: 8px 0 36px 0;
}

.downloads-hero h1 {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 12px;
    font-size: 36px;
    line-height: 1.15;
}

.downloads-subheading {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.55;
    max-width: 560px;
    margin: 0 auto;
}

.download-featured {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
    background: var(--card-bg);
    border: 2px solid var(--text-color);
    border-radius: 14px;
    padding: 24px 28px;
    text-decoration: none;
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.25s;
    box-shadow: 0 14px 32px -10px rgba(184, 134, 11, 0.18);
}

.download-featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 24px;
    right: 24px;
    height: 4px;
    background: var(--accent);
    border-radius: 0 0 4px 4px;
}

.download-featured:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px -12px rgba(184, 134, 11, 0.3);
    text-decoration: none;
}

.download-featured-icon {
    width: 64px;
    height: 64px;
    background: var(--icon-bg);
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.download-featured-icon svg {
    width: 32px !important;
    height: 32px !important;
    margin: 0 !important;
    color: var(--accent) !important;
}

.download-featured-text h2 {
    margin: 4px 0 4px 0;
    font-size: 22px;
    border-bottom: none;
    padding-bottom: 0;
    color: var(--text-color);
}

.download-featured-text p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.55;
}

.download-featured-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: var(--accent);
    background: var(--highlight-bg);
    border: 1px dashed var(--border-dotted);
    padding: 2px 8px;
}

.download-featured-cta {
    color: var(--text-color);
    font-weight: bold;
    font-size: 15px;
    white-space: nowrap;
}

.downloads-grid-v2 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.download-card-v2 {
    background: var(--card-bg);
    border: 1px solid var(--border-solid);
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.download-card-v2:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px -10px rgba(184, 134, 11, 0.22);
}

.download-card-disabled {
    opacity: 0.55;
}

.download-card-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px dotted var(--border-dotted);
}

.download-card-icon {
    flex-shrink: 0;
    color: var(--text-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--icon-bg);
    border-radius: 10px;
}

.download-card-icon svg {
    width: 26px !important;
    height: 26px !important;
    margin: 0 !important;
    color: var(--text-color) !important;
}

.download-card-name {
    font-size: 17px;
    font-weight: bold;
    color: var(--text-color);
    line-height: 1.1;
}

.download-card-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.download-card-cta {
    background: var(--text-color);
    color: var(--card-bg) !important;
    border: 1px solid var(--text-color);
    padding: 10px 16px;
    font-weight: bold;
    font-size: 14px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.download-card-cta:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff !important;
    text-decoration: none;
}

.download-card-cta.disabled {
    background: var(--highlight-bg);
    color: var(--text-muted) !important;
    border: 1px dashed var(--border-dotted);
    cursor: not-allowed;
    pointer-events: none;
}

.download-sub-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.download-sub-links a {
    font-size: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 4px 10px;
    border: 1px solid var(--border-solid);
    border-radius: 999px;
    transition: border-color 0.15s, color 0.15s;
}

.download-sub-links a:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.downloads-meta {
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 24px;
}

@media (max-width: 600px) {
    .download-featured {
        grid-template-columns: auto 1fr;
        gap: 16px;
        padding: 18px 18px;
    }
    .download-featured-cta {
        grid-column: 1 / -1;
        text-align: center;
        padding-top: 8px;
        border-top: 1px dotted var(--border-dotted);
    }
}

/* ===== Support Page (v2) ===== */
.support-hero {
    text-align: center;
    margin: 8px 0 36px 0;
}

.support-hero h1 {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 12px;
    font-size: 36px;
    line-height: 1.15;
}

.support-subheading {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.55;
    max-width: 560px;
    margin: 0 auto;
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
    margin-bottom: 28px;
}

.support-tile {
    background: var(--card-bg);
    border: 1px solid var(--border-solid);
    border-radius: 12px;
    padding: 22px 22px 18px 22px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.support-tile:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 14px 32px -10px rgba(184, 134, 11, 0.22);
    text-decoration: none;
}

.support-tile-primary {
    border: 2px solid var(--text-color);
    position: relative;
}

.support-tile-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 18px;
    right: 18px;
    height: 3px;
    background: var(--accent);
    border-radius: 0 0 3px 3px;
}

.support-tile-icon {
    width: 48px;
    height: 48px;
    background: var(--icon-bg);
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-bottom: 4px;
}

.support-tile h3 {
    margin: 0;
    font-size: 17px;
    color: var(--text-color);
    border-bottom: none;
    padding-bottom: 0;
    line-height: 1.25;
}

.support-tile-text {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
    flex: 1;
}

.support-tile-link {
    color: var(--accent);
    font-size: 14px;
    font-weight: bold;
    margin-top: 6px;
    transition: color 0.2s;
}

.support-tile:hover .support-tile-link {
    color: #9A7209;
}

.support-meta {
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 16px;
    line-height: 1.6;
}

/* Pricing Page */
.pricing-card {
    background: var(--card-bg);
    border: 1px solid var(--border-solid);
    padding: 32px;
    text-align: center;
    max-width: 420px;
    margin: 40px auto 0 auto;
}

.pricing-card:hover {
    border-color: var(--text-color);
}

.pricing-card h2 {
    font-size: 24px;
    margin-bottom: 8px;
    border-bottom: none;
    padding-bottom: 0;
}

.pricing-card .price {
    font-size: 48px;
    font-weight: bold;
    color: var(--text-color);
    margin: 16px 0;
}

.pricing-card .price span {
    font-size: 18px;
    color: var(--text-secondary);
}

.pricing-card .vat {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.pricing-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    text-align: left;
}

.pricing-card li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px dotted var(--border-dotted);
}

.pricing-card li:last-child {
    border-bottom: none;
}

.pricing-card li svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.credits-info {
    background: var(--highlight-bg);
    border: 1px dashed var(--border-dotted);
    padding: 12px;
    margin-top: 16px;
    font-size: 14px;
    color: var(--text-secondary);
}

/* Downloads Page */
.downloads-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 32px;
}

.download-card {
    background: var(--card-bg);
    border: 1px solid var(--border-solid);
    padding: 24px;
    text-align: center;
    transition: all 0.15s;
}

.download-card:hover {
    border-color: var(--text-color);
}

.download-card .icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--icon-bg);
    border-radius: 8px;
}

.download-card h3 {
    margin-bottom: 8px;
    border-bottom: none;
}

.download-card p {
    font-size: 14px;
    margin-bottom: 16px;
}

.download-card .btn-primary:disabled,
.download-card .btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

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

/* Support Page */
.support-card {
    background: var(--card-bg);
    border: 1px solid var(--border-solid);
    padding: 40px;
    text-align: center;
    max-width: 500px;
    margin: 40px auto 0 auto;
}

.support-card:hover {
    border-color: var(--text-color);
}

.support-card .icon-circle {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--icon-bg);
    border-radius: 50%;
}

.support-card h2 {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 16px;
}

.support-card p {
    margin-bottom: 24px;
}

.support-card .email-link {
    font-size: 18px;
    font-weight: bold;
}

/* Legal Pages (Privacy, Terms) */
.legal-content {
    max-width: 800px;
}

.legal-content .updated {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.legal-content h2 {
    margin-top: 40px;
}

.legal-content h3 {
    margin-top: 24px;
}

/* Confirmation Page (dl.html) */
.confirmation-card {
    background: var(--card-bg);
    border: 1px solid var(--border-solid);
    padding: 48px;
    text-align: center;
    max-width: 500px;
    margin: 80px auto;
}

.confirmation-card .checkmark {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--highlight-bg);
    border-radius: 50%;
    color: var(--success);
}

.confirmation-card h1 {
    font-size: 28px;
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 16px;
}

.confirmation-card p {
    margin-bottom: 0;
}

/* Blog Styles */
.blog-list {
    margin-top: 24px;
}

.blog-post-preview {
    background: var(--card-bg);
    border: 1px solid var(--border-solid);
    padding: 24px;
    margin-bottom: 20px;
    transition: all 0.15s;
}

.blog-post-preview:hover {
    border-color: var(--text-color);
}

.blog-post-preview h3 {
    margin-top: 0;
    margin-bottom: 8px;
}

.blog-post-preview h3 a {
    color: var(--text-color);
    text-decoration: none;
}

.blog-post-preview h3 a:hover {
    color: var(--accent);
}

.blog-post-meta {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.blog-post-preview p {
    margin-bottom: 0;
}

.blog-post-content {
    margin-top: 32px;
}

.blog-post-content h2 {
    margin-top: 40px;
}

.blog-post-content h3 {
    margin-top: 32px;
}

.blog-post-content pre {
    background: var(--card-bg);
    border: 1px solid var(--border-solid);
    padding: 16px;
    overflow-x: auto;
    margin: 16px 0;
}

.blog-post-content code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
}

.blog-post-content p code {
    background: var(--highlight-bg);
    padding: 2px 6px;
    border: 1px solid var(--border-dotted);
}

.blog-post-content blockquote {
    border-left: 3px solid var(--accent);
    margin: 16px 0;
    padding-left: 16px;
    color: var(--text-secondary);
    font-style: italic;
}

.blog-post-content img {
    max-width: 100%;
    height: auto;
    border: 1px solid var(--border-solid);
    margin: 16px 0;
}

.image-viewer-trigger {
    cursor: zoom-in;
    transition: opacity 0.2s;
}

.image-viewer-trigger:hover {
    opacity: 0.9;
}

body.image-viewer-open {
    overflow: hidden;
}

.image-viewer {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2100;
    animation: fadeIn 0.2s ease-out;
}

.image-viewer.active {
    display: block;
}

.image-viewer-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    margin: 0;
    padding: 0;
    background: rgba(18, 15, 10, 0.88);
    cursor: pointer;
}

.image-viewer-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(96vw, 1360px);
    height: min(92vh, 980px);
    margin: 4vh auto;
    background: var(--card-bg);
    border: 1px solid var(--border-solid);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.35);
}

.image-viewer-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-solid);
    background: var(--highlight-bg);
}

.image-viewer-btn {
    background: var(--card-bg);
    color: var(--text-color);
    border: 1px solid var(--border-solid);
    padding: 6px 12px;
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    min-width: 38px;
}

.image-viewer-btn:hover:not(:disabled) {
    border-color: var(--text-color);
}

.image-viewer-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.image-viewer-zoom-level {
    min-width: 54px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 13px;
}

.image-viewer-fit {
    min-width: 72px;
}

.image-viewer-close {
    margin-left: auto;
    font-size: 24px;
    line-height: 1;
    padding-top: 4px;
    padding-bottom: 4px;
}

.image-viewer-stage {
    flex: 1;
    overflow: auto;
    background: #F7F3EA;
}

.image-viewer-canvas {
    min-width: 100%;
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.image-viewer-canvas img {
    display: block;
    max-width: none;
    max-height: none;
    border: 1px solid var(--border-solid);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    user-select: none;
    -webkit-user-drag: none;
}

@media (max-width: 720px) {
    .image-viewer-panel {
        width: 100vw;
        height: 100vh;
        margin: 0;
        border: none;
    }

    .image-viewer-toolbar {
        gap: 6px;
        padding: 8px;
    }

    .image-viewer-btn {
        padding: 6px 10px;
    }

    .image-viewer-fit {
        min-width: 64px;
    }

    .image-viewer-canvas {
        padding: 10px;
    }
}

/* ===== Closing Block ===== */
.closing-related {
    text-align: center;
    margin: 24px auto 0 auto;
    font-size: 13px;
    color: var(--text-secondary);
}

.closing-related a {
    color: var(--text-secondary);
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 3px;
}

.closing-related a:hover {
    color: var(--accent);
}

.closing-related-sep {
    margin: 0 6px;
    opacity: 0.5;
}

/* ===== Scroll Reveal ===== */
[data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) var(--reveal-delay, 0ms),
                transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) var(--reveal-delay, 0ms);
    will-change: opacity, transform;
}

[data-reveal].is-revealed {
    opacity: 1;
    transform: translateY(0);
}

.comparison-table tbody tr {
    opacity: 0;
    transform: translateX(-12px);
    transition: opacity 0.5s ease var(--row-delay, 0ms),
                transform 0.5s ease var(--row-delay, 0ms);
}

.comparison-frame.is-revealed tbody tr {
    opacity: 1;
    transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
    [data-reveal],
    [data-reveal].is-revealed,
    .comparison-table tbody tr,
    .comparison-frame.is-revealed tbody tr {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
