/* ==========================================================
   TIKTOK.FETCHLARK - BESPOKE HIGH-FIDELITY DESIGN SYSTEM
   Uniquely Crafted FETCHLARK Workspace (Non-Generic SaaS Architecture)
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,400;0,700;0,900;1,400;1,700&display=swap');

:root {
    /* Brand Color Spectrum */
    --brand-pink: #fe2c55;
    --brand-pink-glow: rgba(254, 44, 85, 0.4);
    --brand-cyan: #25f4ee;
    --brand-cyan-glow: rgba(37, 244, 238, 0.35);

    /* Deep FETCHLARK Canvas Palette */
    --canvas-base: #06080d;
    --canvas-elevated: #0b0f17;
    --canvas-surface: #101622;
    --canvas-subtle: #171f30;
    --canvas-highlight: #1e293f;

    /* Borders & Accents */
    --border-subtle: rgba(255, 255, 255, 0.07);
    --border-medium: rgba(255, 255, 255, 0.13);
    --border-glow: rgba(37, 244, 238, 0.25);

    /* High Contrast Typography */
    --text-pure: #ffffff;
    --text-primary: #e8ecf4;
    --text-secondary: #94a3b8;
    --text-dim: #64748b;
    --text-muted: #475569;

    /* Status & Highlights */
    --status-emerald: #10b981;
    --status-amber: #f59e0b;
    --status-ruby: #f43f5e;
    --status-violet: #a855f7;

    /* Spatial Geometry */
    --radius-pill: 9999px;
    --radius-2xl: 24px;
    --radius-xl: 18px;
    --radius-lg: 14px;
    --radius-md: 10px;
    --radius-sm: 6px;

    /* Layer Depth Shadows */
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.25);
    --shadow-deep: 0 12px 40px rgba(0, 0, 0, 0.5);
    --shadow-neon: 0 0 35px rgba(254, 44, 85, 0.22), 0 0 50px rgba(37, 244, 238, 0.15);

    /* Motion Curves */
    --bezier-snappy: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== RESET & RESILIENCE ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: var(--canvas-base);
    color: var(--text-primary);
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: radial-gradient(circle at 50% 0%, #111726 0%, var(--canvas-base) 65%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    line-height: 1.6;
}

code, kbd, samp, pre {
    font-family: 'JetBrains Mono', monospace;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--canvas-base);
}
::-webkit-scrollbar-thumb {
    background: var(--canvas-subtle);
    border-radius: var(--radius-pill);
    border: 2px solid var(--canvas-base);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--brand-pink);
}

/* Base Utility Classes */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 28px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s var(--bezier-snappy);
}

/* ===== TOP FETCHLARK HEADER ===== */
.fetchlark-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(6, 8, 13, 0.85);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 14px 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.brand-badge {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #000;
    box-shadow: 0 0 16px var(--brand-pink-glow);
}

.brand-icon img {
    width: 100%;
    height: 100%;
    display: block;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-pure);
}

.accent-dot {
    color: var(--brand-pink);
}

.brand-tag {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--brand-cyan);
    font-family: 'JetBrains Mono', monospace;
}

.fetchlark-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-item {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    position: relative;
    padding: 4px 0;
}

.nav-item:hover {
    color: var(--text-pure);
}
.platform-icon-btn .picon img { width: 22px; height: 22px; object-fit: contain; display: block; }

.nav-item::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--brand-pink), var(--brand-cyan));
    transition: width 0.25s var(--bezier-snappy);
    border-radius: var(--radius-pill);
}

.nav-item:hover::after {
    width: 100%;
}

/* Tools dropdown keeps utility pages organised as the collection grows. */
.tools-menu { position: relative; }
.tools-menu summary { cursor: pointer; list-style: none; }
.tools-menu summary::-webkit-details-marker { display: none; }
.tools-trigger-icon { display: inline-block; width: 13px; height: 13px; margin: 0 0 -2px 8px; border-radius: 3px; background: linear-gradient(currentColor 0 0) 0 0/5px 5px,linear-gradient(currentColor 0 0) 100% 0/5px 5px,linear-gradient(currentColor 0 0) 0 100%/5px 5px,linear-gradient(currentColor 0 0) 100% 100%/5px 5px; background-repeat: no-repeat; opacity: .8; transition: color .2s ease,opacity .2s ease; }
.tools-menu[open] .tools-trigger-icon,.tools-menu summary:hover .tools-trigger-icon { color: var(--brand-cyan); opacity: 1; }
.tools-submenu {
    position: absolute;
    z-index: 30;
    top: calc(100% + 13px);
    left: 50%;
    min-width: 210px;
    padding: 8px;
    transform: translateX(-50%);
    background: #0d1727;
    border: 1px solid #29405b;
    border-radius: 12px;
    box-shadow: 0 18px 38px rgba(0, 0, 0, .35);
}
.tools-submenu::before { content: ''; position: absolute; top: -6px; left: 50%; width: 10px; height: 10px; transform: translateX(-50%) rotate(45deg); background: #0d1727; border-top: 1px solid #29405b; border-left: 1px solid #29405b; }
.tools-submenu a { position: relative; display: block; padding: 10px 12px; border-radius: 8px; color: var(--text-secondary); font-size: .9rem; font-weight: 700; white-space: nowrap; }
.tools-submenu a:hover { background: #15243a; color: var(--brand-cyan); }

.mobile-menu-toggle { display: none; border: 1px solid #29405b; border-radius: 9px; padding: 8px 11px; background: #0d1727; color: var(--text-pure); font: inherit; font-size: .9rem; font-weight: 800; cursor: pointer; }
.mobile-menu-toggle span { margin-left: 4px; }

.live-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    color: var(--status-emerald);
}

.live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--status-emerald);
    box-shadow: 0 0 10px var(--status-emerald);
    animation: pulseGlow 2s infinite ease-in-out;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

/* ===== BESPOKE HERO WORKSPACE ===== */
.fetchlark-hero {
    position: relative;
    padding: 70px 0 60px;
    overflow: hidden;
}

.hero-glow-1 {
    position: absolute;
    top: -120px;
    left: 15%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(254, 44, 85, 0.16) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-glow-2 {
    position: absolute;
    top: 50px;
    right: 5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(37, 244, 238, 0.12) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: center;
}

.mobile-download-hint { display: none; }

/* Control Deck Left */
.hero-control-deck {
    display: flex;
    flex-direction: column;
}

.pill-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-medium);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 22px;
    align-self: flex-start;
}

.chip-badge {
    background: var(--brand-pink);
    color: #fff;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.fetchlark-title {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.035em;
    color: var(--text-pure);
    margin-bottom: 18px;
}

.gradient-headline {
    background: linear-gradient(135deg, #ffffff 30%, var(--brand-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.fetchlark-subtext {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 580px;
}

/* Command Box Input Cockpit */
.command-box {
    background: var(--canvas-elevated);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-xl);
    padding: 16px;
    box-shadow: var(--shadow-deep), var(--shadow-neon);
    position: relative;
    backdrop-filter: blur(14px);
    margin-bottom: 28px;
}

.command-box fieldset {
    border: none;
}

.command-input-wrapper {
    display: flex;
    align-items: center;
    background: var(--canvas-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 6px 8px 6px 16px;
    gap: 12px;
    transition: all 0.25s var(--bezier-snappy);
}

.command-input-wrapper:focus-within {
    border-color: var(--brand-cyan);
    box-shadow: 0 0 0 3px rgba(37, 244, 238, 0.15);
    background: var(--canvas-subtle);
}

.input-icon-lead {
    color: var(--text-dim);
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.command-input-wrapper input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-pure);
    font-size: 1rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 500;
    min-width: 0;
}

.command-input-wrapper input::placeholder {
    color: var(--text-dim);
    font-size: 0.95rem;
}

.input-actions-dock {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.dock-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 8px 12px;
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dock-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-pure);
    border-color: var(--border-medium);
}

.dock-btn-clear {
    padding: 8px 10px;
    color: var(--status-ruby);
}

.submit-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--brand-pink) 0%, #ff4b72 100%);
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 700;
    font-family: 'Plus Jakarta Sans', sans-serif;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(254, 44, 85, 0.4);
    transition: all 0.2s var(--bezier-snappy);
    flex-shrink: 0;
}

.submit-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(254, 44, 85, 0.55);
    background: linear-gradient(135deg, #ff1744 0%, #ff5277 100%);
}

.submit-action-btn:active {
    transform: translateY(1px);
}

.command-meta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 6px 0;
    font-size: 0.8rem;
    color: var(--text-dim);
}

.meta-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
}

.indicator-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand-cyan);
    box-shadow: 0 0 6px var(--brand-cyan);
}

.shortcut-pill kbd {
    background: var(--canvas-subtle);
    border: 1px solid var(--border-medium);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.72rem;
    color: var(--text-secondary);
}

/* Scanner Loading Dock */
.loader {
    display: none;
    padding: 24px 0 12px;
    text-align: center;
}

.loader.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.stream-scanner {
    width: 100%;
    height: 4px;
    background: var(--canvas-subtle);
    border-radius: var(--radius-pill);
    overflow: hidden;
    position: relative;
    margin-bottom: 14px;
}

.scanner-bar {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 40%;
    background: linear-gradient(90deg, var(--brand-pink), var(--brand-cyan));
    border-radius: var(--radius-pill);
    animation: scanAnim 1.4s infinite ease-in-out;
}

@keyframes scanAnim {
    0% { left: -40%; }
    100% { left: 100%; }
}

.loader-text {
    font-size: 0.9rem;
    color: var(--brand-cyan);
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
}

/* Error Alert Box */
.error-msg {
    display: none;
    background: rgba(244, 63, 94, 0.12);
    border: 1px solid rgba(244, 63, 94, 0.3);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    margin-top: 16px;
    color: #fda4af;
    font-size: 0.92rem;
    font-weight: 500;
}

.error-msg.active {
    display: flex;
    align-items: center;
    gap: 10px;
    animation: fadeIn 0.3s ease;
}

/* Dynamic Result Card */
.result {
    display: none;
    margin-top: 20px;
}

.result.active {
    display: block;
    animation: fadeIn 0.35s ease;
}

.result-card {
    background: var(--canvas-surface);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    gap: 20px;
    padding: 16px;
    box-shadow: var(--shadow-soft);
}

.result-thumb {
    width: 150px;
    height: 200px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--canvas-base);
    background-size: cover;
    background-position: center;
    border: 1px solid var(--border-subtle);
}

.result-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.result-info h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-pure);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.result-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 8px 0 14px;
}

.result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--status-emerald) 0%, #059669 100%);
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 10px 18px;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
    transition: all 0.2s ease;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
    color: #fff;
}

/* Specs Row */
.hero-specs-row {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    padding: 14px 20px;
    border-radius: var(--radius-lg);
    font-size: 0.85rem;
}

.spec-cell {
    display: flex;
    flex-direction: column;
}

.spec-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-dim);
}

.spec-val {
    font-weight: 700;
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
}

.green-highlight {
    color: var(--status-emerald);
}

.spec-separator {
    color: var(--border-medium);
}

/* Right Column: FETCHLARK Mockup Frame */
.hero-visual-showcase {
    position: relative;
    min-width: 0;
}

.fetchlark-mockup-card {
    background: var(--canvas-elevated);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-deep), 0 0 50px rgba(37, 244, 238, 0.1);
    min-height: 560px;
    height: 650px;
    max-height: 650px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
}

.mockup-header {
    background: var(--canvas-surface);
    border-bottom: 1px solid var(--border-subtle);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mockup-controls {
    display: flex;
    gap: 6px;
}

.mockup-controls span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.mockup-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 0.06em;
}

.mockup-tag {
    background: rgba(37, 244, 238, 0.15);
    color: var(--brand-cyan);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
}

.mockup-visual-body {
    padding: 20px;
}

.mockup-video-preview {
    height: 230px;
    background: linear-gradient(135deg, #131b2e 0%, #1a0f1d 100%);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mockup-visual-body {
    min-height: 450px;
    height: 500px;
    box-sizing: border-box;
    overflow: hidden;
    flex: 1 1 auto;
}

.mockup-video-preview.has-video {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.mockup-overlay-badge {
    position: absolute;
    background: rgba(6, 8, 13, 0.75);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-medium);
    padding: 5px 10px;
    border-radius: var(--radius-md);
    font-size: 0.72rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.badge-top-left { top: 12px; left: 12px; }
.badge-top-right { top: 12px; right: 12px; }
.badge-bottom { bottom: 12px; left: 12px; font-size: 0.68rem; color: var(--text-secondary); }

.badge-dot-green {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--status-emerald);
}

.mockup-center-graphic {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pulse-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid var(--brand-cyan);
    opacity: 0.3;
}

.ring-1 {
    width: 80px;
    height: 80px;
    animation: ringPulse 2.5s infinite ease-out;
}

.ring-2 {
    width: 120px;
    height: 120px;
    animation: ringPulse 2.5s infinite ease-out 0.8s;
}

@keyframes ringPulse {
    0% { transform: scale(0.6); opacity: 0.8; }
    100% { transform: scale(1.4); opacity: 0; }
}

.center-hud-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: rgba(37, 244, 238, 0.15);
    border: 2px solid var(--brand-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 25px var(--brand-cyan-glow);
}

.telemetry-deck {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
    margin-top: 18px;
}

.telemetry-card {
    background: var(--canvas-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.tele-title {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-dim);
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.08em;
}

.tele-data {
    font-size: 0.88rem;
    font-weight: 700;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-pure);
    margin-top: 2px;
    font-family: 'JetBrains Mono', monospace;
}

.tele-data.cyan { color: var(--brand-cyan); }
.tele-data.magenta { color: var(--brand-pink); }
.tele-data.green { color: var(--status-emerald); }

.mockup-footer {
    background: var(--canvas-surface);
    border-top: 1px solid var(--border-subtle);
    padding: 10px 18px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    flex: 0 0 auto;
}

.inspector-download { display: flex; align-items: center; justify-content: center; margin-top: 16px; padding: 12px 16px; border-radius: var(--radius-md); background: var(--status-emerald); color: #06110d; font-weight: 800; text-decoration: none; }
.inspector-download:hover { background: var(--brand-cyan); color: #06110d; }
.inspector-download[hidden] { display: none; }

/* ===== LEGACY CONTENT PAGES: FETCHLARK THEME ===== */
:root {
    --primary: var(--brand-pink);
    --primary-light: #ff5c7d;
    --secondary: var(--brand-cyan);
    --secondary-dark: #12c9c5;
    --success: var(--status-emerald);
    --text: var(--text-primary);
    --border: var(--border-medium);
    --card-bg: var(--canvas-surface);
    --transition: 180ms var(--bezier-snappy);
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(6, 8, 13, .9);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
}
.navbar .container { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.navbar .logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text-pure); text-decoration: none; font-weight: 800; letter-spacing: -.02em; }
.navbar .logo svg { width: 32px; height: 32px; }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav-links a { display: block; padding: 8px 11px; color: var(--text-secondary); text-decoration: none; font-size: .85rem; font-weight: 700; border-radius: var(--radius-sm); }
.nav-links a:hover { color: var(--text-pure); background: var(--canvas-subtle); }

main > .container [style*="var(--card-bg)"] { box-shadow: var(--shadow-soft); }
main > .container a, main section a { text-underline-offset: 3px; }
.footer { margin-top: 60px; padding: 40px 0 24px; background: var(--canvas-elevated); border-top: 1px solid var(--border-subtle); }
.footer .container { color: var(--text-secondary); }
.footer-content { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 32px; }
.footer h3, .footer h4 { color: var(--text-pure); margin-bottom: 12px; }
.footer ul { list-style: none; }
.footer li { margin: 8px 0; }
.footer a { color: var(--text-secondary); text-decoration: none; }
.footer a:hover { color: var(--brand-cyan); }

@media (max-width: 720px) {
    .navbar .container { min-height: 64px; padding: 0 16px; }
    .nav-links { gap: 0; }
    .nav-links li:nth-child(-n+2) { display: none; }
    .nav-links a { padding: 7px 8px; font-size: .78rem; }
    .footer-content { grid-template-columns: 1fr 1fr; }
    main [style*="grid-template-columns: repeat(3, 1fr)"] { grid-template-columns: 1fr !important; }
    main [style*="grid-template-columns: 1fr 1fr"] { grid-template-columns: 1fr !important; }
}

.code-dim { color: var(--text-dim); }
.code-cyan { color: var(--brand-cyan); font-weight: 700; }
.code-val { color: var(--text-primary); }
.code-success { color: var(--status-emerald); font-weight: 700; }

/* ===== CAPABILITIES STRIP ===== */
.capabilities-strip {
    padding: 24px 0;
    background: var(--canvas-elevated);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

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

.cap-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.cap-icon-box {
    font-size: 1.6rem;
    background: var(--canvas-surface);
    border: 1px solid var(--border-subtle);
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cap-content strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-pure);
    margin-bottom: 2px;
}

.cap-content p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* ===== SECTION HEADERS ===== */
.section-lead {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 56px;
}

.section-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    color: var(--brand-cyan);
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 12px;
    background: rgba(37, 244, 238, 0.08);
    border: 1px solid rgba(37, 244, 238, 0.2);
    padding: 4px 12px;
    border-radius: var(--radius-pill);
}

.section-title {
    font-size: 2.3rem;
    font-weight: 800;
    color: var(--text-pure);
    line-height: 1.2;
    letter-spacing: -0.025em;
    margin-bottom: 14px;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== BENTO ARCHITECTURE GRID ===== */
.bento-section {
    padding: 90px 0;
}

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

.bento-card {
    background: var(--canvas-elevated);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-xl);
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: all 0.3s var(--bezier-snappy);
}

.bento-card:hover {
    border-color: var(--brand-cyan);
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.bento-wide {
    grid-column: span 2;
}

.bento-full {
    grid-column: 1 / -1;
}

.bento-badge {
    align-self: flex-start;
    background: rgba(254, 44, 85, 0.12);
    border: 1px solid rgba(254, 44, 85, 0.3);
    color: var(--brand-pink);
    font-size: 0.68rem;
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.08em;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    margin-bottom: 18px;
}

.cyan-badge {
    background: rgba(37, 244, 238, 0.12);
    border-color: rgba(37, 244, 238, 0.3);
    color: var(--brand-cyan);
}

.purple-badge {
    background: rgba(168, 85, 247, 0.12);
    border-color: rgba(168, 85, 247, 0.3);
    color: var(--status-violet);
}

.green-badge {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.3);
    color: var(--status-emerald);
}

.bento-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-pure);
    margin-bottom: 12px;
    line-height: 1.3;
}

.bento-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.bento-visual-bar {
    margin-top: 26px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bar-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bar-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-dim);
    font-family: 'JetBrains Mono', monospace;
}

.bar-progress {
    height: 28px;
    background: var(--canvas-surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
}

.bar-progress span {
    display: flex;
    align-items: center;
    height: 100%;
    padding-left: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    color: #fff;
}

.bg-bad span { background: #475569; }
.bg-good span { background: linear-gradient(90deg, var(--brand-pink), var(--brand-cyan)); }

.mini-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.mini-tag {
    background: var(--canvas-surface);
    border: 1px solid var(--border-subtle);
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.url-syntax-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 22px;
}

.syntax-pill {
    background: var(--canvas-surface);
    border: 1px solid var(--border-subtle);
    padding: 10px 14px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
}

.syntax-pill code {
    color: var(--text-primary);
    font-size: 0.78rem;
}

.tag-ok {
    background: rgba(16, 185, 129, 0.15);
    color: var(--status-emerald);
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

/* ===== PIPELINE TIMELINE ===== */
.pipeline-section {
    padding: 90px 0;
    background: radial-gradient(circle at 50% 50%, rgba(37, 244, 238, 0.04) 0%, transparent 70%);
}

.pipeline-track {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: center;
    gap: 20px;
}

.pipeline-step {
    display: flex;
    flex-direction: column;
}

.step-counter {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--brand-cyan);
    margin-bottom: 12px;
    text-shadow: 0 0 15px var(--brand-cyan-glow);
}

.step-card {
    background: var(--canvas-elevated);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    box-shadow: var(--shadow-soft);
    height: 100%;
}

.step-card-icon {
    font-size: 2rem;
    margin-bottom: 14px;
}

.step-card h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-pure);
    margin-bottom: 10px;
}

.step-card p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
}

.step-subtext {
    font-size: 0.78rem;
    color: var(--text-dim);
    font-family: 'JetBrains Mono', monospace;
}

.pipeline-connector {
    font-size: 1.8rem;
    color: var(--border-medium);
    font-weight: 700;
    user-select: none;
}

/* ===== CREATOR WORKFLOWS ===== */
.workflows-section {
    padding: 90px 0;
}

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

.workflow-card {
    background: var(--canvas-elevated);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-xl);
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s var(--bezier-snappy);
}

.workflow-card:hover {
    border-color: var(--brand-pink);
    transform: translateY(-5px);
    box-shadow: 0 14px 32px rgba(254, 44, 85, 0.15);
}

.wf-icon {
    font-size: 2.2rem;
    margin-bottom: 16px;
}

.workflow-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-pure);
    margin-bottom: 10px;
    line-height: 1.35;
}

.workflow-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.wf-list {
    list-style: none;
    border-top: 1px solid var(--border-subtle);
    padding-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wf-list li {
    font-size: 0.82rem;
    color: var(--text-dim);
    position: relative;
    padding-left: 16px;
}

.wf-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--brand-cyan);
    font-weight: bold;
}

/* ===== ARTICLES & GUIDES ===== */
.articles-preview-section {
    padding: 90px 0;
    background: var(--canvas-elevated);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.articles-header-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 48px;
}

.view-all-link {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--brand-cyan);
}

.view-all-link:hover {
    color: var(--brand-pink);
    transform: translateX(4px);
}

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

.article-preview-card {
    background: var(--canvas-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    transition: all 0.25s ease;
}

.article-preview-card:hover {
    border-color: var(--border-medium);
    transform: translateY(-3px);
}

.art-badge {
    align-self: flex-start;
    background: rgba(254, 44, 85, 0.12);
    color: var(--brand-pink);
    font-size: 0.68rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    margin-bottom: 14px;
}

.article-preview-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-pure);
    margin-bottom: 10px;
    line-height: 1.4;
}

.article-preview-card h3 a:hover {
    color: var(--brand-cyan);
}

.article-preview-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.art-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    color: var(--text-dim);
    border-top: 1px solid var(--border-subtle);
    padding-top: 14px;
}

.art-link {
    color: var(--brand-pink);
    font-weight: 700;
}

.art-link:hover {
    color: var(--brand-cyan);
}

/* ===== FAQ ACCORDION ===== */
.faq-section {
    padding: 90px 0;
}

.faq-accordion-deck {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq-item {
    background: var(--canvas-elevated);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.25s ease;
}

.faq-item:hover {
    border-color: var(--border-glow);
}

.faq-question {
    width: 100%;
    background: transparent;
    border: none;
    padding: 22px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    text-align: left;
    cursor: pointer;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-pure);
}

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

.faq-chevron {
    color: var(--brand-cyan);
    flex-shrink: 0;
    transition: transform 0.3s var(--bezier-snappy);
}

.faq-question[aria-expanded="true"] .faq-chevron {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s var(--bezier-snappy);
}

.faq-answer p {
    padding: 0 24px 22px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

/* ===== FETCHLARK FOOTER ===== */
.fetchlark-footer {
    background: var(--canvas-elevated);
    border-top: 1px solid var(--border-subtle);
    padding: 70px 0 32px;
    margin-top: auto;
}

.footer-matrix {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 50px;
}

.footer-brand-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-pure);
    letter-spacing: -0.02em;
}

.footer-bio {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 14px 0 20px;
    max-width: 320px;
}

.footer-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--canvas-surface);
    border: 1px solid var(--border-subtle);
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    color: var(--text-dim);
    font-family: 'JetBrains Mono', monospace;
}

.status-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--status-emerald);
}

.footer-col h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-pure);
    margin-bottom: 18px;
    letter-spacing: -0.01em;
}

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

.footer-col a {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.footer-col a:hover {
    color: var(--brand-cyan);
    padding-left: 4px;
}

.footer-bottom-bar {
    border-top: 1px solid var(--border-subtle);
    padding-top: 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    font-size: 0.82rem;
    color: var(--text-dim);
}

.footer-badge-tech {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== MULTI-PLATFORM SELECTOR ===== */
.platform-quick-select {
    margin-bottom: 24px;
}

.platform-select-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-dim);
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 12px;
}

.platform-icons-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.platform-icon-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: var(--canvas-surface);
    border: 1px solid var(--border-subtle);
    padding: 10px 12px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 54px;
}

.platform-icon-btn:hover {
    background: var(--canvas-subtle);
    border-color: var(--brand-cyan);
    transform: translateY(-2px);
}

.platform-icon-btn.active {
    background: rgba(37, 244, 238, 0.1);
    border-color: var(--brand-cyan);
    box-shadow: 0 0 12px rgba(37, 244, 238, 0.2);
}

.platform-icon-btn .picon {
    font-size: 1.2rem;
}

.platform-icon-btn .pname {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* Platform Indicator Bar */
.platform-indicator-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--canvas-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    margin-bottom: 14px;
}

.current-platform-icon {
    font-size: 1.4rem;
}
.current-platform-icon img { display:block; width:24px; height:24px; object-fit:contain; }

.current-platform-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-pure);
    flex: 1;
}

.platform-auto-status { color: var(--brand-cyan); font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.02em; padding: 5px 8px; border: 1px solid rgba(37, 244, 238, 0.22); border-radius: var(--radius-pill); white-space: nowrap; }

.platform-change-btn {
    background: rgba(37, 244, 238, 0.1);
    border: 1px solid rgba(37, 244, 238, 0.3);
    color: var(--brand-cyan);
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.platform-change-btn:hover {
    background: rgba(37, 244, 238, 0.2);
}

/* Download Options Bar */
.download-options-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 14px 0;
}

.option-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.option-toggle input {
    display: none;
}

.toggle-switch {
    width: 36px;
    height: 20px;
    background: var(--canvas-subtle);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-pill);
    position: relative;
    transition: all 0.2s ease;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 12px;
    height: 12px;
    background: var(--text-dim);
    border-radius: 50%;
    transition: all 0.2s ease;
}

.option-toggle input:checked + .toggle-switch {
    background: rgba(37, 244, 238, 0.2);
    border-color: var(--brand-cyan);
}

.option-toggle input:checked + .toggle-switch::after {
    left: 19px;
    background: var(--brand-cyan);
}

.toggle-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* ===== PLATFORMS SHOWCASE ===== */
.platforms-showcase {
    padding: 90px 0;
    background: var(--canvas-elevated);
    border-top: 1px solid var(--border-subtle);
}

.platforms-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.platform-tier:nth-child(n+2) { display: none; }

.platform-tier {
    background: var(--canvas-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 28px;
}

.tier-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-pure);
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-subtle);
}

.platform-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}

.platform-cards.compact {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}

.platform-card {
    background: var(--canvas-elevated);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: all 0.2s var(--bezier-snappy);
}

.platform-card:hover {
    border-color: var(--brand-pink);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(254, 44, 85, 0.15);
}

.platform-card.compact {
    padding: 12px 14px;
    gap: 10px;
}

.picon-lg {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    border: 1px solid;
}

.picon-lg img { width: 26px; height: 26px; object-fit: contain; }
.platform-card .picon-sm { width: 20px; height: 20px; object-fit: contain; }

.platform-card .pinfo {
    display: flex;
    flex-direction: column;
}

.pname-lg {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-pure);
}

.pfeatures {
    font-size: 0.72rem;
    color: var(--text-dim);
    margin-top: 2px;
}

.picon-sm {
    font-size: 1.2rem;
}

.pname-sm {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* ===== RESPONSIVE MEDIA QUERIES ===== */
@media (max-width: 1024px) {
    .hero-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-visual-showcase {
        max-width: 600px;
        margin: 0 auto;
        width: 100%;
    }

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

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

    .bento-wide {
        grid-column: span 1;
    }

    .bento-full {
        grid-column: span 1;
    }

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

    .pipeline-track {
        grid-template-columns: 1fr;
    }

    .pipeline-connector {
        display: none;
    }

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

@media (max-width: 768px) {
    .fetchlark-mockup-card { height: auto; max-height: none; }
    .mockup-visual-body { height: auto; overflow: visible; }
    .mobile-download-hint:not([hidden]) { display: flex; grid-column: 1; justify-self: center; width: 100%; flex-direction: column; align-items: center; text-align: center; gap: 4px; margin: -18px auto 18px; color: var(--brand-cyan); font-size: 0.88rem; font-weight: 800; }
    .mobile-download-arrow { font-size: 2rem; line-height: 1; animation: mobileDownloadArrow 1s ease-in-out infinite alternate; }
    .hero-visual-showcase, .fetchlark-mockup-card, .mockup-visual-body, .telemetry-deck, .telemetry-card { min-width: 0; width: 100%; }
    .mockup-video-preview { height: 190px; }
    .telemetry-deck { grid-template-columns: 1fr; }
    .tele-data { max-width: 100%; }
    .inspector-download { width: 100%; }
    .fetchlark-nav {
        display: none;
    }

    .fetchlark-title {
        font-size: 2.4rem;
    }

    .command-input-wrapper {
        flex-wrap: wrap;
        padding: 10px;
    }

    .command-input-wrapper input {
        width: 100%;
        margin-bottom: 8px;
    }

    .submit-action-btn {
        width: 100%;
        justify-content: center;
    }

    .hero-specs-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .spec-separator {
        display: none;
    }

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

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

    .articles-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

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

    .footer-matrix {
        grid-template-columns: 1fr;
    }

    .footer-bottom-bar {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .result-card {
        flex-direction: column;
    }

    .result-thumb {
        width: 100%;
        height: 220px;
    }
}

@keyframes mobileDownloadArrow { from { transform: translateY(0); } to { transform: translateY(8px); } }

/* Site-wide editorial typography */
html, body, button, input, select, textarea, .site-header, .site-footer {
    font-family: 'Lato', Arial, sans-serif;
}

body * {
    font-family: 'Lato', Arial, sans-serif !important;
}

h1, h2, h3, h4, h5, h6, .section-title, .hero-title {
    font-family: 'Lato', Arial, sans-serif;
    font-weight: 900;
    letter-spacing: -0.02em;
}

/* Legal/contact pages use spacious reading rhythm rather than dense copy. */
.trust-page { min-height: 70vh; padding: 120px 20px 88px; }
.trust-content { max-width: 920px; }
.trust-content--narrow { max-width: 820px; }
.trust-page h1 { margin: 0; }
.trust-updated, .trust-intro { color: var(--text-secondary); margin: 14px 0 34px; line-height: 1.75; }
.trust-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 18px; padding: clamp(26px, 5vw, 52px); }
.trust-card h2 { margin: 36px 0 13px; font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.25; }
.trust-card h2:first-child { margin-top: 0; }
.trust-card p, .trust-card li { color: var(--text-secondary); font-size: 1rem; line-height: 1.85; }
.trust-card p { margin: 0 0 18px; }
.trust-card ul { margin: 16px 0 26px; padding-left: 24px; }
.trust-card li + li { margin-top: 9px; }
.trust-note { color: var(--text-muted) !important; font-size: .92rem !important; margin-top: 25px !important; }

@media (max-width: 640px) { .trust-page { padding: 94px 16px 60px; } .trust-card { border-radius: 14px; } }

@media (max-width: 768px) {
    .mobile-menu-toggle { display: inline-flex; align-items: center; }
    .header-cta { display: none !important; }
    .header-inner { position: relative; gap: 10px; }
    .mobile-menu-toggle { margin-left: auto; }
    .fetchlark-nav.is-open { display: flex; position: absolute; z-index: 40; top: calc(100% + 10px); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px; background: #0d1727; border: 1px solid #29405b; border-radius: 12px; box-shadow: 0 18px 38px rgba(0,0,0,.4); }
    .fetchlark-nav.is-open .nav-item { padding: 11px 12px; }
    .fetchlark-nav.is-open .tools-menu { padding: 0; }
    .fetchlark-nav.is-open .tools-menu summary { padding: 11px 12px; }
    .fetchlark-nav.is-open .tools-submenu { position: static; transform: none; min-width: 0; margin: 0 8px 8px; box-shadow: none; }
    .fetchlark-nav.is-open .tools-submenu::before { display: none; }
}

/* Comfortable reading layout for the explanatory sections on utility-tool pages. */
.tool-page > section,
.tool-page > div > section {
    box-sizing: border-box;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: clamp(25px, 5vw, 48px);
}

.tool-page > section p,
.tool-page > div > section p {
    margin: 0 0 22px;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.9;
}

.tool-page > section h2,
.tool-page > div > section h2 {
    margin: 42px 0 14px;
    font-size: clamp(1.35rem, 2vw, 1.75rem);
    line-height: 1.28;
}

.tool-page > section h2:first-of-type,
.tool-page > div > section h2:first-of-type { margin-top: 34px; }

/* The compressor article is split into two semantic sections; join them visually. */
.tool-page > div > section + section { margin-top: -45px !important; border-top: 0; border-radius: 0 0 18px 18px; padding-top: 0; }
.tool-page > div > section:first-of-type { border-radius: 18px 18px 0 0; border-bottom: 0; }
.tool-result-actions { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 20px; }
.tool-result-actions .resizer-download { margin: 0!important; }
.tool-result-actions .primary-btn { height: 62px; display: inline-flex; align-items: center; justify-content: center; margin: 0!important; }
.tool-privacy-note { max-width: 680px; margin: 14px auto 0; padding: 0 16px; box-sizing: border-box; text-align: center; color: var(--text-secondary); font-size: .88rem; font-style: italic; line-height: 1.6; }
.new-image-btn { display: none; min-width: 120px; height: 50px; box-sizing: border-box; margin: 0; padding: 12px 18px; border: 1px solid #334155; border-radius: 10px; background: transparent; color: var(--text-secondary); font: inherit; font-weight: 700; white-space: nowrap; cursor: pointer; }
.tool-result-actions .new-image-btn { height: 62px; }
.new-image-btn.is-visible { display: block; }
.tool-flow { display: flex; align-items: stretch; justify-content: space-around; gap: 12px; flex-wrap: wrap; margin: 28px 0; padding: 24px; border: 1px solid #29405b; border-radius: 16px; background: #111b2d; text-align: center; }
.tool-flow > div { flex: 1; min-width: 150px; display: grid; gap: 5px; place-items: center; }
.tool-flow > div > span { font-size: 2rem; }
.tool-flow > div > small { color: var(--text-muted); }
.tool-flow > b { align-self: center; color: var(--brand-cyan); font-size: 1.5rem; }
.new-image-btn:hover { border-color: var(--brand-cyan); color: var(--brand-cyan); background: #101926; }

@media (max-width: 640px) {
    .tool-page > section,
    .tool-page > div > section { border-radius: 14px; }
    .tool-page > section h2,
    .tool-page > div > section h2 { margin-top: 32px; }
    .tool-page > div > section + section { margin-top: -38px !important; border-radius: 0 0 14px 14px; }
}
