﻿/* =========================================================
   DISSECT — FINAL CLEANED UI STYLES
   - Landing page
   - Results workspace (single-tab-at-a-time)
   - Dark mode
   - Progress card
   - Charts
   - Compact tables / forms / sidebar
========================================================= */

/* =========================
   TOKENS
========================= */
:root {
    --bg: #f6f5f0;
    --bg-elev: #fbfaf7;
    --surface: #ffffff;
    --surface-2: #f7f5ef;
    --surface-3: #f1ede2;

    --text: #171717;
    --text-soft: #4f4f4f;
    --text-muted: #777777;

    --border: #e5e0d4;
    --border-strong: #d7cfbf;

    --brand: #b8913e;
    --brand-dark: #8d6f2d;
    --brand-soft: #f7edd6;
    --brand-soft-2: #fff8ea;

    --success: #2f855a;
    --success-soft: #e8f7ee;

    --warning: #b7791f;
    --warning-soft: #fff6e6;

    --danger: #c53b3b;
    --danger-soft: #fdecec;

    --info: #3b6f9e;
    --info-soft: #edf5fc;

    --shadow-sm: 0 6px 18px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 12px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.12);

    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 24px;

    --sidebar-width: 270px;
    --content-width: 1320px;

    --font: Inter, "Segoe UI", Roboto, Arial, sans-serif;
    --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

    --accent: #06b6d4;
    --accent-hover: #0891b2;
    --accent-soft: rgba(6, 182, 212, 0.12);
    --navy: #0f172a;
    --navy-2: #1e293b;
    --navy-3: #334155;
}

/* =========================
   DARK MODE
========================= */
html[data-theme="dark"] {
    --bg: #0b1120;
    --bg-elev: #0f172a;
    --surface: #131c31;
    --surface-2: #1a2540;
    --surface-3: #243049;

    --text: #f1f5f9;
    --text-soft: #cbd5e1;
    --text-muted: #94a3b8;

    --border: rgba(148, 163, 184, 0.14);
    --border-strong: rgba(148, 163, 184, 0.24);

    --brand: #06b6d4;
    --brand-dark: #22d3ee;
    --brand-soft: rgba(6, 182, 212, 0.14);
    --brand-soft-2: rgba(6, 182, 212, 0.08);

    --accent: #06b6d4;
    --accent-hover: #22d3ee;
    --accent-soft: rgba(6, 182, 212, 0.14);

    --success: #4ade80;
    --success-soft: rgba(74, 222, 128, 0.12);

    --warning: #fbbf24;
    --warning-soft: rgba(251, 191, 36, 0.12);

    --danger: #f87171;
    --danger-soft: rgba(248, 113, 113, 0.12);

    --info: #38bdf8;
    --info-soft: rgba(56, 189, 248, 0.12);

    --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.55);
}

/* =========================
   RESET / BASE
========================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    line-height: 1.55;
    overflow-x: hidden;
}

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

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

button,
input,
textarea,
select {
    font: inherit;
}

.hidden {
    display: none !important;
}

pre,
code,
.mono-text {
    font-family: var(--font-mono);
    font-size: 0.9em;
}

html[data-theme="dark"] .page-bg-grid {
    background-image:
        linear-gradient(rgba(196, 154, 69, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(196, 154, 69, 0.06) 1px, transparent 1px);
}

.btn-sm {
    padding: 10px 14px;
    font-size: 0.9rem;
    border-radius: 12px;
}

/* global scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: #9c9c9c transparent;
}

*::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

*::-webkit-scrollbar-thumb {
    background: rgba(120, 120, 120, 0.65);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

*::-webkit-scrollbar-track {
    background: transparent;
}

/* =========================
   SHARED UTILS
========================= */

.panel-head h3,
.results-topbar-left h2 {
    margin: 14px 0 10px;
    font-size: clamp(1.55rem, 2vw, 2.1rem);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.results-topbar-left p,
.summary-box,
.note-list-box {
    color: var(--text-soft);
}

/* =========================
   BRAND
========================= */
.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.brand-link {
    color: inherit;
}

/* =========================
   BUTTONS
========================= */
.btn {
    border: none;
    border-radius: 14px;
    padding: 13px 18px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-1px);
}

.theme-toggle {
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    padding: 11px 16px;
    border-radius: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.theme-icon-btn {
    min-width: 64px;
    padding: 12px 14px;
    gap: 10px;
}

.theme-icon {
    font-size: 1rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

html[data-theme="light"] .theme-icon-moon {
    opacity: 0.45;
}

html[data-theme="light"] .theme-icon-sun {
    opacity: 1;
}

html[data-theme="dark"] .theme-icon-sun {
    opacity: 0.45;
}

html[data-theme="dark"] .theme-icon-moon {
    opacity: 1;
}

/* =========================
   ALERTS
========================= */
.alert {
    margin-top: 14px;
    border-radius: 14px;
    padding: 14px 16px;
    font-size: 0.95rem;
    font-weight: 600;
}

.alert-error {
    background: var(--danger-soft);
    color: var(--danger);
    border: 1px solid rgba(197, 59, 59, 0.2);
}

/* =========================
   LANDING PAGE
========================= */

/* =========================
   SCAN CARD + PROGRESS
========================= */
.input-help {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.92rem;
}

/* progress */
.progress-card {
    border: 1px solid var(--border);
    background: var(--surface-2);
    border-radius: 20px;
    padding: 18px;
    box-shadow: var(--shadow-sm);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 14px;
}

.progress-header h4 {
    margin: 0;
    font-size: 1rem;
}

.progress-header p {
    margin: 6px 0 0;
    color: var(--text-soft);
    font-size: 0.94rem;
}

.progress-bar-shell {
    width: 100%;
    height: 12px;
    border-radius: 999px;
    background: var(--surface-3);
    overflow: hidden;
    border: 1px solid var(--border);
}

.progress-bar-fill {
    width: 0%;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--brand), #d6b26a);
    transition: width 0.35s ease;
}

/* =========================
   LANDING SECTIONS
========================= */

/* =========================
   RESULTS LAYOUT
========================= */

.results-shell{
    display:grid;
    grid-template-columns:var(--sidebar-width) minmax(0,1fr);
    align-items:start;
}

/* left sidebar */
.results-sidebar {
    position: sticky;
    top: 0;
    align-self: start;
    height: auto;
    max-height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px 12px 14px;
    background: var(--bg-elev);
    border-right: 1px solid var(--border);
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
    scrollbar-gutter: stable;
}

.results-sidebar::-webkit-scrollbar {
    width: 6px;
}

.results-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.results-sidebar::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 999px;
    transition: background 0.2s ease;
}

.results-sidebar:hover {
    scrollbar-color: rgba(130, 130, 130, 0.38) transparent;
}

.results-sidebar:hover::-webkit-scrollbar-thumb {
    background: rgba(130, 130, 130, 0.38);
}

html[data-theme="dark"] .results-sidebar:hover {
    scrollbar-color: rgba(180, 180, 180, 0.24) transparent;
}

html[data-theme="dark"] .results-sidebar:hover::-webkit-scrollbar-thumb {
    background: rgba(180, 180, 180, 0.24);
}

.sidebar-top {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.sidebar-section-title {
    color: var(--text-muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 800;
    margin-bottom: 8px;
    padding-left: 4px;
}

.results-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-right: 2px;
}

.tab-btn {
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-soft);
    text-align: left;
    padding: 10px 12px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.92rem;
    line-height: 1.25;
    cursor: pointer;
    transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-icon {
    opacity: 0.55;
    font-size: 0.82rem;
    width: 1.1em;
    flex-shrink: 0;
}

.tab-btn.active .tab-icon {
    opacity: 1;
}

.tab-btn-muted {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.tab-btn:hover {
    background: var(--surface);
    color: var(--brand-dark);
    border-color: var(--border);
}

.tab-btn.active {
    background: var(--brand-soft);
    color: var(--brand-dark);
    border-color: rgba(184, 145, 62, 0.3);
}

.sidebar-note {
    margin-top: 16px;
    background: linear-gradient(180deg, #fff8ea 0%, #fff2d2 100%);
    border: 1px solid rgba(184, 145, 62, 0.32);
    border-left: 5px solid var(--brand);
    box-shadow: 0 12px 26px rgba(184, 145, 62, 0.12);
    border-radius: 14px;
    padding: 12px;
}

.sidebar-note strong {
    display: block;
    margin-bottom: 6px;
    font-size: 0.95rem;
    color: var(--text);
}

.sidebar-note p {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.88rem;
    line-height: 1.5;
}

html[data-theme="dark"] .sidebar-note {
    background: linear-gradient(180deg, rgba(196, 154, 69, 0.14) 0%, rgba(196, 154, 69, 0.08) 100%);
    border-color: rgba(196, 154, 69, 0.28);
}

/* main results */
.results-main {
    min-width: 0;
    max-width: 100%;
    padding: 18px 28px 40px;
    overflow-x: hidden;
    flex: 1;
}

/* sticky results topbar */
.results-topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    padding: 10px 0 16px;
    margin-bottom: 18px;
    background: color-mix(in srgb, var(--bg) 90%, transparent);
    backdrop-filter: blur(10px);
}

html[data-theme="dark"] .results-topbar {
    background: color-mix(in srgb, var(--bg) 86%, transparent);
}

.results-topbar-left h2 {
    margin-top: 10px;
    margin-bottom: 8px;
}

.results-topbar-left p {
    margin: 0;
    max-width: 760px;
}

.results-topbar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.results-target-banner {
    display: grid;
    grid-template-columns: 2fr repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.target-banner-card-wide strong {
    font-size: 0.92rem;
}

.empty-state-banner {
    background: var(--surface);
    border: 1px dashed var(--border-strong);
    border-radius: 20px;
    padding: 40px 24px;
    text-align: center;
    margin-bottom: 20px;
}

.empty-state-banner h3 {
    margin: 0 0 8px;
}

.empty-state-banner p {
    color: var(--text-soft);
    margin: 0 0 18px;
}

.target-banner-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    padding: 14px 16px;
    min-width: 0;
}

.target-banner-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 800;
}

.target-banner-card strong {
    font-size: 1rem;
    word-break: break-word;
}

/* =========================
   RESULTS WORKSPACE / TABS
========================= */
.results-workspace,
.tab-panel,
.panel-card,
.form-card {
    min-width: 0;
    max-width: 100%;
}

.tab-panel {
    display: none;
    animation: fadeIn 0.18s ease;
    padding: 0;
    margin: 0;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.panel-head {
    margin-bottom: 14px;
}

.section-stack,
.forms-container {
    display: grid;
    gap: 16px;
}

.section-stack-no-overflow {
    grid-template-columns: 1fr;
    overflow-x: hidden;
    min-width: 0;
    max-width: 100%;
}

.section-stack-no-overflow>.pro-card {
    min-width: 0;
}

.table-host {
    min-width: 0;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
}

/* =========================
   RISK HERO & METRICS
========================= */
.risk-hero {
    margin-bottom: 18px;
}

.risk-hero-card {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 24px;
    padding: 24px;
    border-radius: 22px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    background: var(--surface);
    position: relative;
    overflow: hidden;
}

.risk-hero-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: var(--brand);
}

.risk-hero-critical::before {
    background: #dc2626;
}

.risk-hero-high::before {
    background: #ea580c;
}

.risk-hero-medium::before {
    background: #d97706;
}

.risk-hero-low::before {
    background: #16a34a;
}

.risk-hero-label {
    display: block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    font-weight: 800;
    margin-bottom: 8px;
}

.risk-hero-level {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 8px;
}

.risk-hero-critical .risk-hero-level {
    color: #dc2626;
}

.risk-hero-high .risk-hero-level {
    color: #ea580c;
}

.risk-hero-medium .risk-hero-level {
    color: #d97706;
}

.risk-hero-low .risk-hero-level {
    color: #16a34a;
}

.risk-hero-desc {
    margin: 0 0 10px;
    color: var(--text-soft);
    font-weight: 600;
}

.risk-hero-summary {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.94rem;
    line-height: 1.55;
    max-width: 62ch;
}

.risk-hero-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-content: start;
}

.risk-stat {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px;
}

.risk-stat-label {
    display: block;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 800;
    margin-bottom: 6px;
}

.risk-stat strong {
    font-size: 1.1rem;
}

.risk-stat small {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 600;
}

.metric-strip {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}

.metric-tile {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.metric-tile-label {
    display: block;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 800;
    margin-bottom: 6px;
}

.metric-tile-value {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--brand-dark);
}

/* =========================
   SCORE BARS & SEVERITY
========================= */
.score-bar-host {
    padding: 4px 0;
}

.score-bar-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.score-bar-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.92rem;
    color: var(--text-soft);
}

.score-bar-track {
    height: 10px;
    border-radius: 999px;
    background: var(--surface-3);
    border: 1px solid var(--border);
    overflow: hidden;
}

.score-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--brand), #d6b26a);
    transition: width 0.4s ease;
}

.severity-breakdown {
    display: grid;
    gap: 12px;
}

.severity-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 14px;
    align-items: center;
}

.severity-row-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-soft);
    font-weight: 600;
}

.severity-row-bar {
    height: 8px;
    border-radius: 999px;
    background: var(--surface-3);
    overflow: hidden;
}

.severity-row-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.35s ease;
}

.severity-row-critical .severity-row-fill {
    background: #dc2626;
}

.severity-row-high .severity-row-fill {
    background: #ea580c;
}

.severity-row-medium .severity-row-fill {
    background: #d97706;
}

.severity-row-low .severity-row-fill {
    background: #16a34a;
}

.severity-row-info .severity-row-fill {
    background: #2563eb;
}

.auth-surface-grid {
    margin-bottom: 14px;
}

.auth-block {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.auth-block strong {
    display: block;
    margin-bottom: 8px;
    font-size: 0.92rem;
}

.form-block-section {
    margin-top: 14px;
}

.table-more {
    margin: 8px 0 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.data-table-compact {
    min-width: 480px !important;
}

.data-table-compact th,
.data-table-compact td {
    padding: 11px 12px !important;
    font-size: 0.88rem !important;
}

/* =========================
   OVERVIEW / SUMMARY / MINI CARDS
========================= */
.overview-grid,
.summary-cards,
.mini-cards-grid {
    display: grid;
    gap: 14px;
}

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

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

.summary-cards {
    margin-bottom: 18px;
}

.info-card,
.summary-card,
.mini-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    padding: 16px;
    min-width: 0;
}

.info-card .label,
.summary-card .label,
.mini-card .label {
    display: block;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
    font-weight: 800;
}

.info-card .value,
.summary-card .value,
.mini-card .value {
    font-size: 1rem;
    font-weight: 800;
    word-break: break-word;
}

.summary-box,
.note-list-box {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    min-height: 72px;
    white-space: pre-wrap;
}

/* compact coverage notes */
#coveragePanel {
    margin-top: 22px;
    padding: 18px;
}

#coverageNotesBox {
    min-height: 0;
    padding: 12px 14px;
    border-radius: 14px;
}

#coverageNotesBox .inline-list {
    margin: 0;
}

.coverage-compact .inline-list {
    margin: 0;
}

/* =========================
   FINDINGS / TAGS / PILLS
========================= */
.findings-list {
    display: grid;
    gap: 12px;
}

.finding-item {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px;
    min-width: 0;
}

.finding-title {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 6px;
    font-weight: 800;
}

.finding-detail {
    color: var(--text-soft);
    font-size: 0.94rem;
    white-space: pre-wrap;
    word-break: break-word;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 12px;
    border-radius: 999px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text-soft);
    font-size: 0.88rem;
    font-weight: 700;
}

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

.risk-pill,
.meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.meta-pill {
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text-soft);
}

.risk-critical {
    background: rgba(180, 40, 40, 0.14);
    color: #b42318;
    border: 1px solid rgba(180, 40, 40, 0.18);
}

.risk-high {
    background: rgba(197, 59, 59, 0.14);
    color: #c2410c;
    border: 1px solid rgba(197, 59, 59, 0.18);
}

.risk-medium {
    background: rgba(183, 121, 31, 0.14);
    color: #b7791f;
    border: 1px solid rgba(183, 121, 31, 0.18);
}

.risk-low {
    background: rgba(47, 133, 90, 0.14);
    color: #2f855a;
    border: 1px solid rgba(47, 133, 90, 0.18);
}

.risk-info {
    background: rgba(59, 111, 158, 0.14);
    color: #3b6f9e;
    border: 1px solid rgba(59, 111, 158, 0.18);
}

/* =========================
   FORM CARDS
========================= */
.forms-container {
    gap: 16px;
}

.form-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    padding: 18px;
    min-width: 0;
    overflow: hidden;
}

.form-card-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 14px;
}

.form-card-head h4 {
    margin: 0 0 10px;
    font-size: 1.02rem;
}

.form-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.form-block {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px;
    min-width: 0;
    overflow: hidden;
}

.form-block h5 {
    margin: 0 0 10px;
    font-size: 0.95rem;
}

.detail-list {
    margin: 0;
    padding-left: 18px;
    color: var(--text-soft);
}

.detail-list li+li {
    margin-top: 8px;
}

.form-block .empty-state {
    margin-top: 6px;
}

.form-block .table-wrap {
    border-radius: 14px;
}

.form-block .data-table th,
.form-block .data-table td {
    padding: 11px 12px;
    font-size: 0.9rem;
}

.form-card .risk-pill,
.form-card .meta-pill {
    padding: 7px 10px;
    font-size: 0.8rem;
}

/* =========================
   TABLES
========================= */

.table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    -webkit-overflow-scrolling: touch;
}

.data-table {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
    table-layout: auto;
}

.data-table th,
.data-table td {
    text-align: left;
    vertical-align: top;
    padding: 16px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
    line-height: 1.45;
    word-break: normal;
    overflow-wrap: break-word;
}

.data-table th {
    background: var(--surface-2);
    color: var(--text-muted);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 800;
    position: sticky;
    top: 0;
    z-index: 1;
}

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

/* generic stable columns */
.data-table th:nth-child(1),
.data-table td:nth-child(1),
.data-table th:nth-child(2),
.data-table td:nth-child(2),
.data-table th:nth-child(4),
.data-table td:nth-child(4) {
    white-space: nowrap;
}

/* generic TEXT column */
.data-table th:nth-child(3),
.data-table td:nth-child(3) {
    min-width: 220px;
}

/* generic URL column */
.data-table th:nth-child(5),
.data-table td:nth-child(5) {
    min-width: 320px;
    word-break: break-word;
}

/* links table specific tuning */
.links-table-wrap .data-table {
    min-width: 1080px;
}

.links-table-wrap .data-table th:nth-child(1),
.links-table-wrap .data-table td:nth-child(1) {
    min-width: 96px;
    /* Type */
    white-space: nowrap;
}

.links-table-wrap .data-table th:nth-child(2),
.links-table-wrap .data-table td:nth-child(2) {
    min-width: 96px;
    /* Scheme */
    white-space: nowrap;
}

.links-table-wrap .data-table th:nth-child(3),
.links-table-wrap .data-table td:nth-child(3) {
    min-width: 220px;
    /* Text */
    white-space: normal;
    word-break: break-word;
}

.links-table-wrap .data-table th:nth-child(4),
.links-table-wrap .data-table td:nth-child(4) {
    min-width: 180px;
    /* Path */
    white-space: nowrap;
}

.links-table-wrap .data-table th:nth-child(5),
.links-table-wrap .data-table td:nth-child(5) {
    min-width: 360px;
    /* URL */
    white-space: normal;
    word-break: break-word;
}

/* =========================
   RECOMMENDATIONS
========================= */
.recommendation-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.recommendation-column {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
    padding: 16px;
    min-width: 0;
}

.recommendation-column-head {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.recommendation-column-head h4 {
    margin: 0;
    font-size: 1rem;
}

.rec-list {
    display: grid;
    gap: 12px;
}

.rec-item {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px;
    color: var(--text-soft);
    font-size: 0.93rem;
    word-break: break-word;
}

/* =========================
   JSON BOX
========================= */
.json-box {
    margin: 0;
    background: #111111;
    color: #f3f3f3;
    border-radius: 16px;
    padding: 16px;
    overflow: auto;
    max-height: 68vh;
    font-size: 0.88rem;
    line-height: 1.5;
    border: 1px solid #242424;
}

html[data-theme="dark"] .json-box {
    background: #0f0f0f;
    border-color: #2a2a2a;
}

/* =========================
   EMPTY / NO-DATA STATES
========================= */
.empty-state {
    background: var(--surface-2);
    border: 1px dashed var(--border-strong);
    border-radius: 14px;
    padding: 14px;
    color: var(--text-muted);
    font-size: 0.93rem;
}

.inline-list {
    margin: 10px 0 0;
    padding-left: 18px;
    color: var(--text-soft);
}

.inline-list li+li {
    margin-top: 8px;
}

/* =========================
   CHARTS
========================= */
.chart-panel {
    margin-top: 18px;
}

.chart-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.chart-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    grid-auto-flow: row;
    align-items: stretch;
    gap: 18px;
    margin-bottom: 18px;
    width: 100%;
    grid-auto-columns: minmax(0, 1fr);
}

.chart-grid-3>* {
    min-width: 0;
}

.chart-grid-3>.pro-card {
    min-width: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.chart-grid-3 .chart-wrap-sm {
    min-width: 0;
    flex: 1;
    width: 100%;
}

.chart-wrap-sm {
    height: 260px;
}

.chart-wrap {
    position: relative;
    width: 100%;
    height: 320px;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1280px) {

    .results-target-banner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .target-banner-card-wide {
        grid-column: 1 / -1;
    }

    .metric-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .risk-hero-card {
        grid-template-columns: 1fr;
    }

    .chart-grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .overview-grid,
    .summary-cards,
    .mini-cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

@media (max-width: 1100px) {
    .results-shell {
        grid-template-columns: 1fr;
    }

    .results-sidebar {
        position: relative;
        top: 0;
        height: auto;
        max-height: none;
        overflow: visible;
        padding: 14px 16px 10px;
        border-right: none;
        border-bottom: 1px solid var(--border);
        scrollbar-gutter: auto;
    }

    .results-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        padding-right: 0;
    }

    .tab-btn {
        width: 100%;
    }

    .results-topbar {
        position: static;
        padding-top: 0;
        background: transparent;
        backdrop-filter: none;
    }

    .site-header-inner,
    .results-topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .results-topbar-actions {
        justify-content: flex-start;
    }

    .feature-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 980px) {

    .chart-wrap {
        height: 280px;
    }
}

@media (max-width: 820px) {

    .scan-card-stats,
    .results-target-banner,
    .overview-grid,
    .summary-cards,
    .mini-cards-grid,
    .progress-steps,
    .metric-strip,
    .severity-row {
        grid-template-columns: 1fr;
    }

    .severity-row-label {
        flex-wrap: wrap;
    }

    .results-main {
        padding: 20px 16px 28px;
    }

    .feedback-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .feedback-card-actions .btn {
        width: 100%;
    }

    .panel-card,
    .form-card {
        padding: 16px;
    }
}

@media (max-width: 700px) {
    .results-sidebar {
        padding: 12px 14px 10px;
    }

    .results-nav {
        grid-template-columns: 1fr;
    }

    .sidebar-top {
        margin-bottom: 14px;
    }

    .sidebar-note {
        margin-top: 14px;
    }
}

@media (max-width: 560px) {

    .scan-card,
    .panel-card,
    .form-card,
    .feature-card,
    .note-card,
    .recommendation-column {
        padding: 16px;
        border-radius: 18px;
    }

    .tab-btn {
        padding: 11px 12px;
    }

    .data-table th,
    .data-table td {
        padding: 12px 13px;
    }
}

/* =========================================================
   COMMERCIAL SECURITY TOOL — LANDING & REPORTS
========================================================= */

.page-index {
    background: var(--bg);
    min-height: 100vh;
}

.landing-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: 0;
}

.landing-glow-a {
    width: 600px;
    height: 600px;
    top: -200px;
    right: -100px;
    background: rgba(6, 182, 212, 0.15);
}

.landing-glow-b {
    width: 500px;
    height: 500px;
    bottom: -150px;
    left: -100px;
    background: rgba(99, 102, 241, 0.1);
}

.landing-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--border);
    background: color-mix(in srgb, var(--bg) 85%, transparent);
    backdrop-filter: blur(16px);
}

.landing-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand-wordmark {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* =========================================================
   DISSECT LOGO — dynamic in-app mark (static/logo.svg)
========================================================= */
.dissect-logo {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
}

.dissect-logo-img {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: inherit;
    transition: transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.dissect-logo-orbit,
.dissect-logo-pulse {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
}

.dissect-logo-orbit-a {
    inset: -3px;
    border: 1.5px solid transparent;
    border-top-color: rgba(6, 182, 212, 0.55);
    border-right-color: rgba(129, 140, 248, 0.35);
    animation: logo-orbit 4s linear infinite;
    opacity: 0;
    transition: opacity 0.25s;
}

.dissect-logo-orbit-b {
    inset: -6px;
    border: 1px solid transparent;
    border-bottom-color: rgba(99, 102, 241, 0.45);
    border-left-color: rgba(34, 211, 238, 0.25);
    animation: logo-orbit 6s linear infinite reverse;
    opacity: 0;
    transition: opacity 0.25s;
}

.dissect-logo-pulse {
    inset: -8px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.2) 0%, transparent 70%);
    animation: logo-pulse 3s ease-in-out infinite;
    opacity: 0.5;
}

.dissect-logo--sm {
    width: 40px;
    height: 40px;
}

.dissect-logo--md {
    width: 48px;
    height: 48px;
}

.dissect-logo--lg {
    width: 56px;
    height: 56px;
}

.dissect-logo--xl {
    width: 72px;
    height: 72px;
}

/* Hover — header / linked contexts */
a.dissect-logo:hover .dissect-logo-img,
.brand-link:hover .dissect-logo .dissect-logo-img {
    transform: scale(1.06) rotate(-2deg);
}

a.dissect-logo:hover .dissect-logo-orbit-a,
.brand-link:hover .dissect-logo .dissect-logo-orbit-a,
.dissect-logo:focus-visible .dissect-logo-orbit-a {
    opacity: 1;
}

a.dissect-logo:hover .dissect-logo-orbit-b,
.brand-link:hover .dissect-logo .dissect-logo-orbit-b,
.dissect-logo:focus-visible .dissect-logo-orbit-b {
    opacity: 0.75;
}

/* Active scanning state */
.dissect-logo--scanning .dissect-logo-orbit-a,
.dissect-logo--scanning .dissect-logo-orbit-b {
    opacity: 1;
}

.dissect-logo--scanning .dissect-logo-orbit-a {
    animation-duration: 1.2s;
}

.dissect-logo--scanning .dissect-logo-orbit-b {
    animation-duration: 1.8s;
}

.dissect-logo--scanning .dissect-logo-pulse {
    animation-duration: 1s;
    opacity: 0.85;
}

.dissect-logo--scanning .dissect-logo-img {
    animation: logo-scan-bob 1.2s ease-in-out infinite;
}

@keyframes logo-orbit {
    to {
        transform: rotate(360deg);
    }
}

@keyframes logo-pulse {

    0%,
    100% {
        transform: scale(0.92);
        opacity: 0.35;
    }

    50% {
        transform: scale(1.08);
        opacity: 0.7;
    }
}

@keyframes logo-scan-bob {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.landing-hero-logo-wrap {
    margin-bottom: 20px;
}

.landing-hero-logo-wrap .dissect-logo--xl {
    width: 80px;
    height: 80px;
}

.landing-hero-logo-wrap .dissect-logo-orbit-a,
.landing-hero-logo-wrap .dissect-logo-orbit-b {
    opacity: 0.85;
}

.scanner-core {
    position: absolute;
    inset: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scanner-core .dissect-logo--lg {
    width: 52px;
    height: 52px;
}

.sidebar-brand .dissect-logo {
    flex: 0 0 auto;
}

.brand .dissect-logo {
    flex: 0 0 auto;
}

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

    .dissect-logo-orbit-a,
    .dissect-logo-orbit-b,
    .dissect-logo-pulse,
    .dissect-logo--scanning .dissect-logo-img {
        animation: none !important;
    }

    .dissect-logo-orbit-a,
    .dissect-logo-orbit-b {
        opacity: 0.4;
    }
}

.landing-nav {
    display: flex;
    gap: 24px;
}

.landing-nav a {
    color: var(--text-muted);
    font-size: 0.92rem;
    font-weight: 600;
    transition: color 0.15s;
}

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

.landing-hero-section {
    position: relative;
    z-index: 1;
    padding: 64px 24px 48px;
    padding-top: 150px;
}

.landing-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: start;
}

.product-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--accent-soft);
    border: 1px solid rgba(6, 182, 212, 0.25);
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 20px;
}

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

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.85);
    }
}

.landing-headline {
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.04em;
    margin: 0 0 20px;
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent) 0%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.landing-lead {
    font-size: 1.08rem;
    color: var(--text-soft);
    line-height: 1.65;
    max-width: 54ch;
    margin: 0 0 28px;
}

.landing-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.trust-chip {
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    font-size: 0.88rem;
    color: var(--text-soft);
}

.trust-chip strong {
    color: var(--text);
    margin-right: 4px;
}

/* Scan panel */
.scan-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.scan-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), #818cf8);
}

.scan-panel-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.scan-panel-header h2 {
    margin: 0 0 6px;
    font-size: 1.35rem;
    font-weight: 800;
}

.scan-panel-header p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.scan-panel-badge {
    padding: 6px 12px;
    border-radius: 8px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    height: fit-content;
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent) 0%, #0891b2 100%);
    color: #fff;
    border: none;
    border-radius: 0;
    padding: 14px 22px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: opacity 0.15s;
    white-space: nowrap;
}

.btn-accent:hover {
    opacity: 0.92;
}

.btn-accent:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.btn-ghost {
    background: transparent;
    color: var(--text-soft);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 16px;
    font-weight: 600;
    cursor: pointer;
}

.btn-ghost:hover {
    background: var(--surface-2);
    color: var(--text);
}

.btn-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.scan-panel-footer {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.scan-panel-stat span {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 4px;
}

.scan-panel-stat strong {
    font-size: 0.92rem;
    font-family: var(--font-mono);
}

/* Scan overlay loader */
.scan-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(11, 17, 32, 0.92);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
}

body.scan-active {
    overflow: hidden;
}

.scan-overlay-inner {
    text-align: center;
    max-width: 420px;
    padding: 40px 32px;
}

.scanner-visual {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 28px;
}

.scanner-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid transparent;
}

.scanner-ring-outer {
    border-top-color: var(--accent);
    animation: scanner-spin 2s linear infinite;
}

.scanner-ring-mid {
    inset: 14px;
    border-right-color: rgba(6, 182, 212, 0.5);
    animation: scanner-spin 1.5s linear infinite reverse;
}

.scanner-ring-inner {
    inset: 28px;
    border-bottom-color: rgba(129, 140, 248, 0.5);
    animation: scanner-spin 1s linear infinite;
}

@keyframes scanner-spin {
    to {
        transform: rotate(360deg);
    }
}

.scan-overlay-title {
    margin: 0 0 8px;
    font-size: 1.25rem;
    font-weight: 800;
    color: #f1f5f9;
}

.scan-overlay-status {
    margin: 0 0 20px;
    color: #94a3b8;
    font-size: 0.95rem;
}

.scan-overlay-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 20px;
}

.scan-overlay-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), #818cf8);
    border-radius: 999px;
    transition: width 0.4s ease;
}

.scan-overlay-steps {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.overlay-step {
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #64748b;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.2s;
}

.overlay-step.active {
    color: var(--accent);
    border-color: rgba(6, 182, 212, 0.4);
    background: rgba(6, 182, 212, 0.1);
}

.overlay-step.done {
    color: #4ade80;
    border-color: rgba(74, 222, 128, 0.3);
}

.scan-overlay-hint {
    margin: 0;
    font-size: 0.82rem;
    color: #64748b;
}

/* Landing sections */
.landing-section {
    position: relative;
    z-index: 1;
    padding: 64px 24px;
}

.landing-section-alt {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.landing-section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.section-label {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: 12px;
}

.section-intro h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0 0 12px;
}

.section-intro p {
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 0 32px;
}

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

.pro-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 22px;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.pro-card:hover {
    border-color: rgba(6, 182, 212, 0.3);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.pro-card-elevated {
    box-shadow: var(--shadow-sm);
}

.pro-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 14px;
}

.pro-card-icon-cyan {
    background: rgba(6, 182, 212, 0.15);
}

.pro-card-icon-indigo {
    background: rgba(99, 102, 241, 0.15);
}

.pro-card-icon-violet {
    background: rgba(139, 92, 246, 0.15);
}

.pro-card-icon-teal {
    background: rgba(20, 184, 166, 0.15);
}

.pro-card-icon-amber {
    background: rgba(251, 191, 36, 0.15);
}

.pro-card-icon-rose {
    background: rgba(244, 63, 94, 0.15);
}

.pro-card h3,
.pro-card-header h2 {
    margin: 0 0 8px;
    font-size: 1.05rem;
    font-weight: 700;
}

.pro-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

.pro-card-header {
    margin-bottom: 16px;
}

.pro-card-header p {
    margin: 4px 0 0;
    font-size: 0.88rem;
}

.pro-card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.pro-card-kpi {
    text-align: center;
    padding: 20px 16px;
}

.kpi-icon {
    display: block;
    font-size: 1.2rem;
    color: var(--accent);
    margin-bottom: 8px;
}

.kpi-label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 6px;
}

.kpi-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
}

.pro-card-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.report-preview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
}

.report-preview-card {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
}

.report-preview-card-tech {
    border-color: rgba(6, 182, 212, 0.25);
    background: linear-gradient(180deg, var(--accent-soft) 0%, var(--bg) 100%);
}

.report-preview-type {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent);
    margin-bottom: 12px;
}

.report-preview-card h3 {
    margin: 0 0 16px;
    font-size: 1.2rem;
}

.report-preview-card ul {
    margin: 0;
    padding-left: 20px;
    color: var(--text-soft);
}

.report-preview-card li+li {
    margin-top: 8px;
}

.compliance-banner {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.08) 0%, var(--surface) 100%);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 16px;
    padding: 32px;
}

.compliance-banner h2 {
    margin: 0 0 16px;
    font-size: 1.4rem;
}

.compliance-banner ul {
    margin: 0;
    padding-left: 20px;
    color: var(--text-soft);
}

.compliance-banner li+li {
    margin-top: 10px;
}

.landing-footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 32px 24px;
    color: var(--text-muted);
    font-size: 0.88rem;
    border-top: 1px solid var(--border);
}

/* Report pages */
.page-report {
    background: var(--bg);
    min-height: 100vh;
}

.report-header {
    position: sticky;
    top: 0;
    z-index: 40;
    border-bottom: 1px solid var(--border);
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(16px);
}

.report-header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.report-switcher {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.report-switcher-vertical {
    flex-direction: column;
    margin-bottom: 16px;
    padding: 6px;
}

.report-switch {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-muted);
    transition: all 0.15s;
}

.report-switch:hover {
    color: var(--text);
}

.report-switch.active {
    background: var(--accent-soft);
    color: var(--accent);
}

.report-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.report-main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 32px 24px 64px;
}

.executive-content {
    display: block;
}

.exec-report-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 28px;
}

.exec-report-head h1 {
    margin: 8px 0 10px;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.exec-target-line {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.exec-risk-badge {
    text-align: center;
    padding: 20px 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    min-width: 140px;
}

.exec-risk-level {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.exec-risk-critical {
    color: #ef4444;
}

.exec-risk-high {
    color: #f97316;
}

.exec-risk-medium {
    color: #eab308;
}

.exec-risk-low {
    color: #22c55e;
}

.exec-risk-sublabel {
    display: block;
    margin-top: 6px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.exec-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.exec-summary-text {
    color: var(--text-soft);
    line-height: 1.65;
    margin: 0 0 16px;
}

.exec-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.meta-chip {
    padding: 6px 12px;
    border-radius: 8px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-soft);
}

.finding-card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.finding-pro-card {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px;
    border-left: 4px solid var(--text-muted);
}

.finding-pro-critical {
    border-left-color: #ef4444;
}

.finding-pro-high {
    border-left-color: #f97316;
}

.finding-pro-medium {
    border-left-color: #eab308;
}

.finding-pro-low {
    border-left-color: #22c55e;
}

.finding-pro-info {
    border-left-color: #06b6d4;
}

.finding-pro-card-head {
    margin-bottom: 10px;
}

.finding-pro-card h3 {
    margin: 0 0 8px;
    font-size: 0.98rem;
    font-weight: 700;
}

.finding-pro-card p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.chart-wrap-md {
    height: 280px;
}

.chart-wrap-gauge {
    height: 220px;
}

.empty-state-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.page-technical .results-sidebar {
    background: var(--bg-elev);
}

.page-technical .pro-card {
    margin-bottom: 0;
}

@media (max-width: 1100px) {
    .landing-hero-inner {
        grid-template-columns: 1fr;
    }

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

    .pro-card-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .exec-two-col {
        grid-template-columns: 1fr;
    }

    .finding-card-grid {
        grid-template-columns: 1fr;
    }

    .report-preview-grid {
        grid-template-columns: 1fr;
    }

    .landing-nav {
        display: none;
    }
}

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

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

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

    .report-header-inner .report-switcher {
        display: none;
    }
}

/* =========================================================
   MOBILE & CROSS-PLATFORM POLISH
========================================================= */

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

a,
button,
input,
summary {
    -webkit-tap-highlight-color: transparent;
}

/* URL input — placeholder only, no fixed prefix */
.scan-input-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.scan-url-input {
    width: 100%;
    min-height: 48px;
    padding: 14px 16px;
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    background: var(--surface-2);
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 16px;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.scan-url-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.scan-url-input::placeholder {
    color: var(--text-muted);
    opacity: 0.85;
}

.btn-scan-submit {
    width: 100%;
    min-height: 48px;
    border-radius: 12px;
    justify-content: center;
}

@media (min-width: 641px) {
    .scan-input-stack {
        flex-direction: row;
        align-items: stretch;
    }

    .scan-url-input {
        flex: 1;
        min-width: 0;
        border-radius: 12px 0 0 12px;
    }

    .btn-scan-submit {
        width: auto;
        border-radius: 0 12px 12px 0;
        padding-left: 24px;
        padding-right: 24px;
    }
}

/* Mobile hamburger menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}

.mobile-menu-btn.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.is-open span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav-drawer {
    display: none;
}

.mobile-nav-drawer a {
    padding: 14px 12px;
    border-radius: 10px;
    font-weight: 600;
    color: var(--text-soft);
    min-height: 44px;
    display: flex;
    align-items: center;
}

.mobile-nav-drawer a:hover,
.mobile-nav-drawer a:active {
    background: var(--surface);
    color: var(--accent);
}

/* Landing sections — beta, FAQ, privacy */
.landing-section-compact {
    padding: 48px 24px;
}

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

.step-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 22px;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 800;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.step-card h3 {
    margin: 0 0 8px;
    font-size: 1rem;
}

.step-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

.beta-banner,
.privacy-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
}

.beta-banner h2,
.privacy-card h2 {
    margin: 8px 0 20px;
    font-size: 1.35rem;
}

.beta-limits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.beta-limit-item {
    padding: 16px;
    border-radius: 12px;
    background: var(--surface-2);
    border: 1px solid var(--border);
}

.beta-limit-item strong {
    display: block;
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.beta-limit-item p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
}

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

.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 4px 18px;
}

.faq-item summary {
    padding: 14px 0;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    margin-left: auto;
    color: var(--accent);
    font-size: 1.2rem;
}

.faq-item[open] summary::after {
    content: "−";
}

.faq-item p {
    margin: 0 0 16px;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

.privacy-card ul {
    margin: 0;
    padding-left: 20px;
    color: var(--text-soft);
}

.privacy-card li+li {
    margin-top: 12px;
}

.feedback-card-landing {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
}

.feedback-card-landing h2 {
    margin: 8px 0 10px;
    font-size: 1.3rem;
}

.feedback-card-landing p {
    margin: 0;
    color: var(--text-muted);
    max-width: 560px;
}

.landing-footer-sub {
    margin-top: 6px;
    font-size: 0.8rem;
    opacity: 0.75;
}

.landing-headline br {
    display: none;
}

/* Report pages — mobile bottom bar */
.mobile-report-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--border);
    gap: 8px;
}

.page-report .report-main {
    padding-bottom: 32px;
}

.mobile-report-link {
    flex: 1;
    text-align: center;
    padding: 12px 8px;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-muted);
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-report-link.active {
    background: var(--accent-soft);
    color: var(--accent);
}

.mobile-report-link-accent {
    background: var(--accent);
    color: #fff !important;
}

/* Scan overlay — mobile */
@media (max-width: 480px) {
    .scan-overlay-inner {
        padding: 32px 20px;
        max-width: 100%;
    }

    .scanner-visual {
        width: 110px;
        height: 110px;
    }

    .scan-overlay-steps {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .overlay-step {
        font-size: 0.7rem;
        padding: 5px 6px;
    }

    .overlay-step:nth-child(4),
    .overlay-step:nth-child(5) {
        grid-column: span 1;
    }
}

/* Report header — stack on mobile */
@media (max-width: 900px) {
    .mobile-menu-btn {
        display: flex;
    }

    .landing-nav {
        display: none;
    }

    .landing-hero-inner {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .landing-hero-content,
    .scan-panel {
        width: 100%;
    }

    .landing-hero-content {
        order: 0;
        margin-bottom: 18px;
    }

    .landing-lead {
        max-width: 100%;
    }

    .landing-trust-row {
        justify-content: flex-start;
    }

    .scan-panel {
        margin: 0 auto;
        max-width: 100%;
    }

    .scan-panel-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .scan-panel-badge {
        margin-top: 8px;
    }

    .report-header-inner {
        flex-wrap: wrap;
        gap: 12px;
    }

    .report-header-actions {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .report-header-actions .btn-accent,
    .report-header-actions .btn-ghost,
    .report-header-actions .share-btn,
    .report-header-actions .theme-toggle {
        flex: 1 1 100%;
        min-width: 0;
        justify-content: center;
    }

    .exec-report-head {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .exec-risk-badge {
        width: 100%;
    }

    .exec-kpi-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .chart-wrap-md,
    .chart-wrap-gauge {
        height: 220px;
    }

    .chart-grid-3 {
        grid-template-columns: 1fr;
    }

    .chart-wrap-sm {
        height: 210px;
    }

    .exec-two-col {
        gap: 18px;
    }

    .mobile-report-bar {
        display: flex;
    }

    .page-report .report-main {
        padding-bottom: calc(80px + env(safe-area-inset-bottom));
    }

    .page-technical .results-shell {
        grid-template-columns: 1fr;
        overflow-x: hidden;
    }

    .page-technical .results-sidebar {
        position: sticky;
        top: 0;
        z-index: 45;
        height: auto;
        max-height: none;
        overflow: visible;
        overflow-x: hidden;
        padding-bottom: 8px;
        border-right: none;
        border-bottom: 1px solid var(--border);
        background: var(--bg-elev);
        scrollbar-width: none;
    }

    .page-technical .results-sidebar::-webkit-scrollbar {
        display: none;
    }

    .page-technical .results-nav {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 8px;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .page-technical .results-nav::-webkit-scrollbar {
        display: none;
    }

    .page-technical .tab-btn {
        flex: 0 0 auto;
        white-space: nowrap;
        min-height: 44px;
    }

    .page-technical .sidebar-top,
    .page-technical .report-switcher-vertical {
        display: none;
    }

    .page-technical .results-main {
        padding: 16px 16px calc(80px + env(safe-area-inset-bottom));
        padding-top: 72px;
        overflow: visible !important;
    }

    .results-topbar-left p {
        max-width: 100%;
    }

    .results-target-banner {
        grid-template-columns: 1fr 1fr;
    }

    .target-banner-card-wide {
        grid-column: 1 / -1;
    }

    .landing-headline br {
        display: inline;
    }

    .landing-hero-section {
        padding: 40px 16px 32px;
    }

    .landing-section,
    .landing-section-compact {
        padding-left: 16px;
        padding-right: 16px;
    }

    .landing-header-inner {
        padding: 12px 16px;
    }

    .steps-grid,
    .beta-limits-grid {
        grid-template-columns: 1fr;
    }

    .feedback-card-landing {
        flex-direction: column;
        align-items: stretch;
    }

    .feedback-card-landing .btn-accent {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .pro-card-grid {
        grid-template-columns: 1fr 1fr;
    }

    .landing-headline {
        font-size: 1.85rem;
    }

    .scan-panel {
        padding: 20px 16px;
    }

    .report-main {
        padding-left: 16px;
        padding-right: 16px;
    }
}

@media (max-width: 380px) {
    .pro-card-grid {
        grid-template-columns: 1fr;
    }

    .trust-chip {
        width: 100%;
    }

    .results-target-banner {
        grid-template-columns: 1fr;
    }
}

/* Touch devices — larger tap targets */
@media (hover: none) and (pointer: coarse) {

    .btn,
    .tab-btn,
    .report-switch {
        min-height: 44px;
    }

    .theme-toggle {
        min-width: 44px;
        min-height: 44px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {

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

/* =========================
   ANIMATIONS
========================= */

/* Animated gradient background */
body {
    background: linear-gradient(135deg, var(--bg) 0%, var(--bg-elev) 50%, var(--bg) 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

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

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Subtle geometric pattern overlay */
.page-index::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(184, 145, 62, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(184, 145, 62, 0.02) 0%, transparent 30%);
    pointer-events: none;
    z-index: 0;
    animation: patternFloat 20s ease-in-out infinite;
}

@keyframes patternFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(10px, -10px) scale(1.02);
    }
}

html[data-theme="dark"] .page-index::before {
    background-image:
        radial-gradient(circle at 20% 80%, rgba(6, 182, 212, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(6, 182, 212, 0.02) 0%, transparent 30%);
}

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

.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animations for cards with enhanced 3D effect */
.step-card,
.pro-card,
.feature-card,
.report-preview-card,
.beta-limit-item,
.faq-item,
.finding-item,
.panel-card,
.form-card,
.info-card,
.summary-card,
.mini-card,
.recommendation-column {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        border-color 0.4s ease,
        filter 0.4s ease;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.step-card:hover,
.pro-card:hover,
.feature-card:hover,
.report-preview-card:hover,
.beta-limit-item:hover,
.faq-item:hover,
.finding-item:hover,
.panel-card:hover,
.form-card:hover,
.info-card:hover,
.summary-card:hover,
.mini-card:hover,
.recommendation-column:hover {
    transform: translateY(-8px) rotateX(2deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: var(--brand);
    filter: brightness(1.02);
}

/* Enhanced button animations with glow effect */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:active::after {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    box-shadow: 0 20px 40px rgba(184, 145, 62, 0.4), 0 0 20px rgba(184, 145, 62, 0.2);
    transform: translateY(-2px);
}

.btn-accent:hover {
    box-shadow: 0 20px 40px rgba(6, 182, 212, 0.4), 0 0 20px rgba(6, 182, 212, 0.2);
    transform: translateY(-2px);
}

/* Text reveal animations */
.text-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.text-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.landing-headline,
.section-intro h2,
.section-intro p {
    opacity: 0;
    animation: textReveal 1s ease forwards;
}

.landing-headline {
    animation-delay: 0.2s;
}

.section-intro h2 {
    animation-delay: 0.1s;
}

.section-intro p {
    animation-delay: 0.3s;
}

@keyframes textReveal {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero floating animation */
.landing-hero-logo-wrap {
    animation: heroFloat 6s ease-in-out infinite;
}

@keyframes heroFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Scan panel pulse animation */
.scan-panel {
    animation: scanPulse 3s ease-in-out infinite;
}

@keyframes scanPulse {

    0%,
    100% {
        box-shadow: var(--shadow-lg);
    }

    50% {
        box-shadow: 0 24px 60px rgba(184, 145, 62, 0.2);
    }
}

/* Smooth page transitions */
main,
.results-workspace,
.executive-content {
    animation: pageFadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes pageFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered card animations */
.step-card:nth-child(1) {
    animation-delay: 0.1s;
}

.step-card:nth-child(2) {
    animation-delay: 0.2s;
}

.step-card:nth-child(3) {
    animation-delay: 0.3s;
}

.pro-card:nth-child(1) {
    animation-delay: 0.1s;
}

.pro-card:nth-child(2) {
    animation-delay: 0.2s;
}

.pro-card:nth-child(3) {
    animation-delay: 0.3s;
}

.pro-card:nth-child(4) {
    animation-delay: 0.4s;
}

.pro-card:nth-child(5) {
    animation-delay: 0.5s;
}

.pro-card:nth-child(6) {
    animation-delay: 0.6s;
}

/* Capability icon glow animation */
.pro-card-icon {
    transition: transform 0.3s ease, filter 0.3s ease;
}

.pro-card:hover .pro-card-icon {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 0 8px rgba(184, 145, 62, 0.4));
}

/* Trust chip animation */
.trust-chip {
    animation: trustChipFade 0.8s ease forwards;
    opacity: 0;
}

.trust-chip:nth-child(1) {
    animation-delay: 0.3s;
}

.trust-chip:nth-child(2) {
    animation-delay: 0.4s;
}

.trust-chip:nth-child(3) {
    animation-delay: 0.5s;
}

@keyframes trustChipFade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar glassmorphism enhancement */
.landing-header {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.3s ease;
}

.landing-header:hover {
    background: color-mix(in srgb, var(--bg) 95%, transparent);
}

/* Scroll progress indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--brand), var(--accent));
    z-index: 9999;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px rgba(184, 145, 62, 0.5);
}

/* Page loading animation */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

@keyframes loaderPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--border);
    border-top-color: var(--brand);
    border-radius: 50%;
    animation: loaderSpin 1s linear infinite;
}

@keyframes loaderSpin {
    to {
        transform: rotate(360deg);
    }
}

/* Cursor glow effect (desktop only) */
@media (min-width: 1024px) {
    .cursor-glow {
        position: fixed;
        width: 300px;
        height: 300px;
        background: radial-gradient(circle, rgba(184, 145, 62, 0.08) 0%, transparent 70%);
        border-radius: 50%;
        pointer-events: none;
        z-index: 9998;
        transform: translate(-50%, -50%);
        transition: opacity 0.3s ease;
        opacity: 0;
    }

    .cursor-glow.active {
        opacity: 1;
    }
}

/* Enhanced link hover effects */
a {
    position: relative;
    transition: color 0.3s ease;
}

a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--brand);
    transition: width 0.3s ease;
}

a:hover::after {
    width: 100%;
}

/* Scan input focus enhancement */
.scan-url-input:focus {
    box-shadow: 0 0 0 4px var(--accent-soft), 0 0 20px rgba(6, 182, 212, 0.2);
    border-color: var(--accent);
}

/* URL validation feedback */
.input-validation {
    margin-top: 8px;
    min-height: 20px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.input-validation.error {
    color: var(--danger);
}

.input-validation.success {
    color: var(--success);
}

.input-validation.warning {
    color: var(--warning);
}

/* Quick scan examples */
.quick-scan-examples {
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.quick-scan-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.quick-scan-btn {
    padding: 6px 12px;
    font-size: 0.85rem;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.quick-scan-btn:hover {
    background: var(--surface-3);
    border-color: var(--brand);
    color: var(--brand);
    transform: translateY(-1px);
}

.quick-scan-btn:active {
    transform: translateY(0);
}

@media (max-width: 480px) {
    .quick-scan-examples {
        flex-direction: column;
        align-items: flex-start;
    }

    .quick-scan-btn {
        width: 100%;
    }
}

/* Keyboard hint styling */
.keyboard-hint {
    margin-top: 16px;
    padding: 12px;
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.keyboard-hint kbd {
    display: inline-block;
    padding: 4px 8px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

@media (max-width: 480px) {
    .keyboard-hint {
        font-size: 0.75rem;
        padding: 10px;
    }

    .keyboard-hint kbd {
        padding: 3px 6px;
        font-size: 0.7rem;
    }
}

/* Toast notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    min-width: 300px;
    max-width: 400px;
    padding: 16px 20px;
    background: var(--surface-elev);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    animation: toastSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateX(100%);
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast.hide {
    animation: toastSlideOut 0.3s ease forwards;
}

.toast-success {
    border-left: 4px solid var(--success);
}

.toast-error {
    border-left: 4px solid var(--danger);
}

.toast-warning {
    border-left: 4px solid var(--warning);
}

.toast-info {
    border-left: 4px solid var(--accent);
}

.toast-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 4px;
    color: var(--text);
}

.toast-message {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.toast-close {
    flex-shrink: 0;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    font-size: 1.2rem;
    line-height: 1;
    transition: color 0.2s ease;
}

.toast-close:hover {
    color: var(--text);
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes toastSlideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

@media (max-width: 480px) {
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }

    .toast {
        min-width: auto;
        max-width: none;
    }
}

.mobile-nav-drawer:not(.hidden) {
    transform: translateY(0);
    opacity: 1;
}

/* Animated counters */

/* Improved typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.landing-headline {
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.section-label {
    letter-spacing: 0.08em;
}

/* Improved spacing */
.landing-section {
    padding: 64px 24px;
}

.landing-section-inner {
    max-width: var(--content-width);
    margin: 0 auto;
}

.section-intro {
    margin-bottom: 32px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-intro h2 {
    margin: 12px 0 16px;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
}

.section-intro p {
    margin: 0 auto 32px;
    text-align: center;
}

.capability-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1040px;
    margin: 0 auto;
    width: 100%;
}

.report-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

/* Enhanced responsiveness */
/* Extra small devices (phones, 320px and up) */
@media (max-width: 375px) {
    .landing-section {
        padding: 40px 16px;
    }

    .landing-headline {
        font-size: 1.75rem;
    }

    .capability-grid,
    .report-preview-grid,
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .steps-grid,
    .beta-limits-grid {
        grid-template-columns: 1fr;
    }

    .metric-strip {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .overview-grid,
    .summary-cards,
    .mini-cards-grid {
        grid-template-columns: 1fr;
    }

    .btn {
        padding: 12px 16px;
        font-size: 0.9rem;
    }

    /* Disable cursor glow on small screens */
    .cursor-glow {
        display: none !important;
    }

    /* Disable parallax on small screens */
    .landing-hero-logo-wrap,
    .scan-panel {
        animation: none !important;
    }
}

/* Small devices (landscape phones, 376px and up) */
@media (min-width: 376px) and (max-width: 480px) {
    .landing-section {
        padding: 44px 18px;
    }

    .landing-headline {
        font-size: 1.85rem;
    }

    .capability-grid,
    .report-preview-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .metric-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .overview-grid,
    .summary-cards,
    .mini-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* Medium devices (tablets, 481px to 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .landing-section {
        padding: 48px 20px;
    }

    .landing-headline {
        font-size: 2.25rem;
    }

    .capability-grid,
    .report-preview-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

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

    .metric-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .overview-grid,
    .summary-cards,
    .mini-cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

/* Large devices (desktops, 769px to 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .landing-section {
        padding: 56px 24px;
    }

    .landing-headline {
        font-size: 2.75rem;
    }

    .capability-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

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

    .overview-grid,
    .summary-cards,
    .mini-cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .metric-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

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

/* Extra large devices (large desktops, 1025px and up) */
@media (min-width: 1025px) {
    .landing-section {
        padding: 64px 24px;
    }

    .landing-headline {
        font-size: 3.25rem;
    }

    .capability-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .report-preview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .overview-grid,
    .summary-cards,
    .mini-cards-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .metric-strip {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

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

    .recommendation-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile-specific optimizations */
@media (max-width: 768px) {

    /* Improve touch targets */
    .btn,
    .tab-btn,
    .theme-toggle,
    .mobile-menu-btn {
        min-height: 48px;
        min-width: 48px;
    }

    /* Safe area insets for notched devices */

    .mobile-report-bar {
        padding-bottom: calc(8px + env(safe-area-inset-bottom));
    }

    /* Disable hover effects on touch devices */
    @media (hover: none) {

        .step-card:hover,
        .pro-card:hover,
        .feature-card:hover,
        .panel-card:hover,
        .form-card:hover {
            transform: none;
            box-shadow: var(--shadow-sm);
        }

        .btn:hover {
            transform: none;
        }

        .btn::before {
            display: none;
        }
    }

    /* Optimize animations for mobile */
    .fade-in-section {
        transition: opacity 0.4s ease, transform 0.4s ease;
    }

    .landing-hero-logo-wrap,
    .scan-panel {
        animation: none;
    }

    /* Disable cursor glow */
    .cursor-glow {
        display: none !important;
    }

    /* Simplified navbar */

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

    /* Improved mobile spacing */

    /* Center scan form on mobile */

    /* Improved table overflow */
    .table-wrap {
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .table-wrap::-webkit-scrollbar {
        display: none;
    }

    /* Better form layout on mobile */

    .btn-scan-submit {
        width: 100%;
        border-radius: 12px;
    }
}

/* Tablet-specific optimizations */
@media (min-width: 481px) and (max-width: 1024px) {

    /* Balanced touch targets */
    .btn,
    .tab-btn {
        min-height: 44px;
    }

    /* Improved spacing */
    .landing-section {
        padding: 52px 24px;
    }

    /* Better grid gaps */
    .capability-grid,
    .report-preview-grid {
        gap: 18px;
    }

    /* Optimized animations */
    .fade-in-section {
        transition: opacity 0.5s ease, transform 0.5s ease;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {

    /* Sharper borders */
    .btn,
    .card,
    .panel-card,
    .form-card {
        border-width: 0.5px;
    }
}

/* Content alignment fixes */

.landing-hero-inner {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Center content sections */
.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 32px;
}

.landing-section-inner {
    width: 100%;
    max-width: var(--content-width);
    margin: 0 auto;
}

/* Fix card alignment */
.feature-card,
.pro-card,
.step-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.feature-card h4,
.pro-card h4,
.step-card h3 {
    margin-bottom: 12px;
}

.feature-card p,
.pro-card p {
    flex: 1;
    margin: 0;
}

/* Fix scan card alignment */

.scan-form {
    width: 100%;
}

/* Fix button alignment */

/* Fix navigation alignment */

/* Fix footer alignment */

/* Fix results page alignment */
.results-shell {
    width: 100%;
    max-width: 100%;
}

.results-main {
    width: 100%;
    max-width: 100%;
}

/* Fix executive page alignment */
.exec-report-head {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Fix table alignment */
.table-wrap {
    width: 100%;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    min-width: 600px;
}

/* Fix form alignment */

/*=====================================================
        DISSECT MOBILE REDESIGN
======================================================*/

@media screen and (max-width:900px) {

    /* ---------- HERO ---------- */

    .landing-hero-section {
        padding: 35px 20px 20px;
    }

    .landing-hero-inner {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 28px;
    }

    .landing-hero-content {
        order: 1;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .landing-hero-logo-wrap {
        display: none;
    }

    .product-badge {
        margin-bottom: 18px;
    }

    .landing-headline {
        font-size: 2.15rem;
        line-height: 1.15;
        max-width: 420px;
        margin-bottom: 18px;
    }

    .landing-lead {
        font-size: 1rem;
        line-height: 1.7;
        max-width: 100%;
        margin-bottom: 20px;
    }

    /* ---------- TRUST CHIPS ---------- */

    .landing-trust-row {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        width: 100%;
        margin-top: 10px;
    }

    .trust-chip {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        min-height: 82px;
        padding: 12px 10px;
    }

    .trust-chip strong {
        display: block;
        white-space: nowrap;
        font-size: 1rem;
        font-weight: 700;
        line-height: 1.2;
    }

    .trust-chip span {
        display: block;
        margin-top: 6px;
        white-space: nowrap;
        font-size: .84rem;
        line-height: 1.2;
    }

    /* ---------- SCAN PANEL ---------- */

    .scan-panel {
        order: 2;
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 18px;
        border-radius: 22px;
    }

    .scan-panel-header {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 18px;
    }

    .scan-panel-header h2 {
        font-size: 1.45rem;
        line-height: 1.2;
    }

    /* Hide unnecessary content */

    .scan-panel-header p,
    .scan-panel-footer,
    .keyboard-hint {
        display: none !important;
    }

    .scan-input-stack {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    .scan-url-input {
        width: 100%;
        min-height: 54px;
        font-size: 16px;
        padding: 16px;
        border-radius: 14px;
    }

    .btn-scan-submit {
        width: 100%;
        height: 54px;
        border-radius: 14px;
        font-size: 1rem;
        font-weight: 700;
    }

    .input-validation {
        text-align: center;
    }

    /* ---------- REMOVE LONG SECTIONS ---------- */

    #how-it-works,
    .report-preview-section,
    .beta-section,
    .privacy-section,
    .feedback-section,
    .compliance-section {
        display: none !important;
    }

    /* ---------- CAPABILITIES ---------- */

    #capabilities {
        padding-top: 20px;
        margin-top: 0;
    }

    .landing-section {
        padding: 30px 20px;
    }

    .capability-grid {
        gap: 14px;
    }

    /* Show only first 3 cards */

    .capability-grid .pro-card:nth-child(n+4) {
        display: none;
    }

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

    .faq-item:nth-child(n+3) {
        display: none;
    }

    /* ---------- FOOTER ---------- */

    .landing-footer {
        padding: 30px 20px;
    }

}

@media (max-width:900px) {

    .landing-header-inner {

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

    }

    .brand {

        margin-right: auto;

    }

    .mobile-menu-btn {

        order: 1;

    }

    .theme-toggle {

        order: 2;

    }

}

@media (max-width:900px) {

    .mobile-nav-drawer a:last-child {

        border-bottom: none;

    }

    .mobile-nav-drawer a.active {

        border-left: 3px solid var(--accent);

        padding-left: 19px;

    }

    .mobile-nav-title {

        padding: 0 22px 16px;

        font-size: .9rem;

        font-weight: 700;

        text-transform: uppercase;

        letter-spacing: .08em;

        opacity: .6;

    }

    /* ===========================
   MOBILE DRAWER
    =========================== */

    .mobile-overlay {

        position: fixed;
        inset: 0;

        background: rgba(0, 0, 0, .45);

        backdrop-filter: blur(2px);

        opacity: 0;
        visibility: hidden;

        transition: all .3s ease;

        z-index: 999;

    }

    .mobile-overlay.active {

        opacity: 1;
        visibility: visible;

    }

    /* Drawer */

    .mobile-nav-drawer {

        display: block;

        position: fixed;

        top: 0;
        left: 0;

        width: 88%;
        max-width: 340px;
        height: 100vh;

        background: var(--surface);

        overflow-y: auto;

        border-radius: 0 18px 18px 0;

        box-shadow: 0 15px 40px rgba(0, 0, 0, .25);

        transform: translateX(-100%);

        visibility: hidden;

        pointer-events: none;

        transition: transform .35s ease;

        z-index: 1000;

    }

    /* Open */

    .mobile-nav-drawer.open {

        visibility: visible;
        pointer-events: auto;
        transform: translateX(0);

    }

    /* Links */

    .mobile-nav-drawer a {

        display: flex;

        align-items: center;

        padding: 16px 22px;

        border-bottom: 1px solid rgba(255, 255, 255, .08);

    }

    [data-theme="light"] .mobile-nav-drawer a {

        border-bottom: 1px solid rgba(0, 0, 0, .08);

    }

    .landing-header {

        height: 72px;

    }

    .landing-header-inner {

        padding: 12px 18px;

    }

}

/*=====================================================
        EXECUTIVE MOBILE REDESIGN - PART 1
======================================================*/

@media (max-width:900px) {

    /* ---------- Top action container ---------- */

    /* ---------- Share / Export ---------- */

    .report-actions .btn {

        min-height: 48px;

        padding: 12px 16px;

        font-size: .95rem;

    }

    /* ---------- Theme Button ---------- */

    .report-actions .theme-toggle {

        width: 48px;

        min-width: 48px;

        height: 48px;

        padding: 0;

    }

    /* ---------- New Scan ---------- */

}

/*=====================================================
        EXECUTIVE MOBILE V2
======================================================*/

@media (max-width:900px) {

    /* ======================================
   HEADER
    ====================================== */

    .report-header {

        position: sticky;
        top: 0;
        z-index: 200;

    }

    .report-header-inner {

        display: flex;
        flex-direction: column;
        align-items: stretch;

        padding: 16px 18px;

        gap: 16px;

    }

    /* Hide desktop tabs */

    .report-switcher {

        display: none;

    }

    /* ======================================
   ACTION BUTTONS
    ====================================== */

    .report-header-actions {

        display: grid;
        grid-template-columns: 1fr 1fr 52px;
        gap: 10px;

    }

    /* Share */

    .share-btn {

        grid-column: 1;
        height: 48px;

    }

    /* Export */

    #downloadReportBtn {

        grid-column: 2;
        height: 48px;

    }

    /* New Scan */

    .report-header-actions a.btn.btn-accent.btn-sm {

        display: none !important;

    }

    /* Theme */

    .report-header-actions .theme-toggle {

        grid-column: 3;

        width: 52px;

        height: 48px;

        padding: 0;

        justify-self: stretch;

    }

    /* Equal button height */

    .report-header-actions .btn,
    .report-header-actions .theme-toggle {

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

    }

}

/* =====================================================
   TECHNICAL MOBILE - FORCE HORIZONTAL NAV
===================================================== */

@media screen and (max-width:900px) {

    .page-technical .results-shell {

        overflow: visible !important;

    }

    .page-technical .results-sidebar {

        position: relative !important;
        top: 0;

        width: 100% !important;
        max-width: none !important;
        padding: 0 !important;

        border: none !important;
        background: transparent;

        z-index: 999;

    }

    .page-technical .sidebar-top,
    .page-technical .report-switcher-vertical,
    .page-technical .sidebar-section-title,
    .page-technical .sidebar-note {

        display: none !important;

    }

    .page-technical .results-nav {

        position: fixed;

        top: 0;

        left: 0;
        right: 0;

        z-index: 1000;

        display: flex !important;

        flex-direction: row !important;

        flex-wrap: nowrap !important;

        overflow-x: auto;

        overflow-y: hidden;

        gap: 12px;

        padding: 12px 16px;

        background: var(--bg);

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

        scrollbar-width: none;

        -webkit-overflow-scrolling: touch;

    }

    .page-technical .results-nav::-webkit-scrollbar {

        display: none;

    }

    .page-technical .results-nav .tab-btn {

        display: inline-flex !important;

        flex: 0 0 auto !important;

        width: auto !important;

        min-width: max-content !important;

        padding: 10px 18px !important;

        white-space: nowrap !important;

    }

}

@media (max-width:900px) {

    .page-technical .results-topbar-actions .btn-accent {

        display: none !important;
    }

    .page-technical .results-topbar-actions {

        display: grid;

        grid-template-columns: 1fr 1fr 56px;

        gap: 12px;

        width: 100%;

        align-items: center;

    }

    .page-technical .share-btn,
    .page-technical #downloadReportBtn {

        width: 100%;

        height: 48px;

    }

    .page-technical .theme-toggle {

        width: 56px;

        height: 48px;

        display: flex;

        justify-content: center;

        align-items: center;

        padding: 0;

    }

}

@media (max-width:900px) {

    .page-technical .results-target-banner {

        display: grid !important;

        grid-template-columns: repeat(3, 1fr) !important;

        gap: 12px;

    }

    .page-technical .target-banner-card-wide {

        grid-column: 1 / -1;

    }

    .page-technical .target-banner-card {

        min-width: 0;

    }

    .page-technical .target-banner-card {

        padding: 12px 10px;

    }

    .page-technical .target-banner-card strong {

        font-size: 1.05rem;

    }

    .page-technical .target-banner-label {

        font-size: .78rem;

    }

}

/* ==========================================
   MOBILE REPORT FOOTER
========================================== */

@media screen and (max-width:900px) {

    .mobile-report-bar {

        position: fixed !important;

        left: 0;
        right: 0;
        bottom: 0;

        width: 100%;

        z-index: 9999;

        padding: 10px 14px calc(10px + env(safe-area-inset-bottom));

        background: var(--surface);

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

        display: grid;

        grid-template-columns: 1fr 1fr 1fr;

        gap: 10px;

        box-sizing: border-box;

    }

}

@media screen and (max-width:900px) {

    .page-executive,
    .page-technical {

        padding-bottom: 90px;

    }

}

@media screen and (max-width:900px) {

    html,
    body {

        overflow-x: hidden;

    }

    .page-executive,
    .page-technical {

        overflow-x: hidden;

    }

    .results-shell,
    .report-shell {

        width: 100%;

        max-width: 100%;

    }

}

@media screen and (max-width:900px) {

    .mobile-report-bar .btn {

        width: 100%;

        min-width: 0;

        white-space: nowrap;

    }

}

/* ==========================================
   EXECUTIVE REPORT MOBILE FIX
========================================== */

@media (max-width:900px) {

    html,
    body {
        overflow-x: hidden;
    }

    .page-executive {
        overflow-x: hidden;
    }

    .report-main,
    .executive-content {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        padding-inline: 12px;
        box-sizing: border-box;
    }

    .pro-card {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow: hidden;
        padding: 18px;
    }

    .finding-card-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 14px;
        width: 100%;
    }

    .finding-pro-card {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .finding-pro-card h3,
    .finding-pro-card p {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

}

/* ==========================================
   FIXED LANDING HEADER
========================================== */

.landing-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;

    background: rgba(255, 255, 255, .25);

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

    transition: background .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;
}

[data-theme="dark"] .landing-header {

    background: rgba(15, 20, 28, .25);

}

.landing-header.scrolled {

    background: rgba(255, 255, 255, .65);

    box-shadow: 0 8px 30px rgba(0, 0, 0, .08);

}

[data-theme="dark"] .landing-header.scrolled {

    background: rgba(15, 20, 28, .65);

}

/*=====================================================
        MOBILE CHARTS
======================================================*/

@media (max-width:900px) {

    .page-technical .charts-grid {

        display: flex;

        flex-direction: column;

        gap: 18px;

    }

    .page-technical .chart-card {

        width: 100%;

        min-width: 0;

        padding: 18px;

    }

    .page-technical .chart-card canvas {

        width: 100% !important;

        height: 220px !important;

    }

    .page-technical .chart-card.gauge canvas {

        height: 180px !important;

    }

}

/* ==========================================
   MOBILE CHART GRID FIX
========================================== */

@media (max-width:900px) {

    .page-technical .chart-grid {

        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 18px;

    }

    .page-technical .chart-grid-3 {

        grid-template-columns: 1fr !important;

    }

}