:root {
    --lcc-blue: #003366;
    --lcc-blue-dark: #01264c;
    --lcc-blue-soft: #1e5a96;
    --lcc-blue-pale: #eaf4ff;
    --lcc-gold: #ffd700;
    --page-bg: #dbe6f0;
    --panel-bg: #eef4fa;
    --panel-border: #bccfe0;
    --text-main: #1f2937;
    --text-soft: #50667b;
    --safe: #1f9d55;
    --safe-bg: #e6f5ec;
    --caution: #b7791f;
    --caution-bg: #fbf4e4;
    --warning: #c05621;
    --warning-bg: #faefe8;
    --risk: #9b2c2c;
    --risk-bg: #f9ecec;
    --danger: #c53030;
    --danger-bg: #faeeee;
    --shadow: 0 18px 45px rgba(0, 51, 102, 0.10);
    --nav-height: 84px;
    --anchor-offset: 106px;
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --transition-speed: 0.2s;
}

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

body {
    font-family: "Manrope", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(0, 51, 102, 0.12), transparent 18%),
        radial-gradient(circle at bottom right, rgba(30, 90, 150, 0.14), transparent 22%),
        linear-gradient(rgba(0, 51, 102, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 51, 102, 0.05) 1px, transparent 1px),
        linear-gradient(180deg, #dbe6f0 0%, #e5eef6 48%, #edf3f8 100%);
    background-size:
        auto,
        auto,
        42px 42px,
        42px 42px,
        auto;
    color: var(--text-main);
}

h1,
h2,
h3,
h4,
.nav-brand p,
.nav-drawer-copy strong,
.hero-button,
.hero-stat-value,
.scanner-card-title,
.section-title,
.result-card h3,
.info-card h3,
.guide-card h3,
.faq-item h3 {
    font-family: "Sora", "Manrope", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

html,
body {
    overflow-x: clip;
}

html {
    scroll-padding-top: var(--anchor-offset);
    scroll-behavior: smooth;
}

#home,
#tutorial,
#scanner,
#guide,
#results {
    scroll-margin-top: var(--anchor-offset);
}

.page-shell {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    padding: 16px 22px;
    margin-bottom: 0;
    width: 100vw;
    padding-left: 28px;
    padding-right: 28px;
    background: rgba(255, 255, 255, 0.95);
    border-top: 1px solid rgba(214, 226, 240, 0.95);
    border-bottom: 1px solid rgba(214, 226, 240, 0.95);
    box-shadow: 0 12px 30px rgba(0, 51, 102, 0.10);
    backdrop-filter: blur(10px);
}

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

.nav-brand-mark {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 0;
    background: transparent;
    color: inherit;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-shadow: none;
    box-shadow: none;
}

.nav-logo {
    width: 82%;
    height: 82%;
    object-fit: contain;
    display: block;
}

.nav-brand p {
    color: var(--lcc-blue);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.05;
}

.nav-brand span {
    color: var(--text-soft);
    font-size: 0.9rem;
    line-height: 1.2;
}

.nav-links {
    display: none;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

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

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

.nav-drawer-intro,
.nav-drawer-group-label,
.nav-drawer-cta {
    display: none;
}

.nav-toggle {
    display: none;
    width: 48px;
    height: 48px;
    padding: 0;
    border: none;
    border-radius: 14px;
    background: var(--lcc-blue);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    background: #ffffff;
    border-radius: 999px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-links a {
    padding: 8px 13px;
    border-radius: 999px;
    color: var(--lcc-blue);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.96rem;
    line-height: 1.1;
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-links a:hover {
    background: rgba(0, 51, 102, 0.08);
    color: var(--lcc-blue);
}

.nav-links a.is-active {
    background: var(--lcc-blue);
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(0, 51, 102, 0.14);
}

.nav-assistant {
    padding: 8px 13px;
    border-radius: 999px;
    background: transparent;
    border: 1px solid transparent;
    color: var(--lcc-blue);
    font-weight: 700;
    font-size: 0.96rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 2200;
}

.nav-assistant[aria-expanded="true"] {
    background: var(--lcc-blue);
    color: #fff;
}

@media (min-width: 769px) {
    .nav-links {
        display: flex;
        align-items: center;
    }

    .nav-links a,
    .nav-assistant {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 40px;
        line-height: 1;
    }
}

@media (min-width: 769px) and (max-width: 1180px) {
    .main-nav {
        gap: 12px;
        padding-left: 18px;
        padding-right: 18px;
    }

    .nav-brand {
        gap: 10px;
        flex-shrink: 0;
    }

    .nav-brand-mark {
        width: 44px;
        height: 44px;
        border-radius: 12px;
        font-size: 0.92rem;
    }

    .nav-brand p {
        font-size: 0.96rem;
    }

    .nav-brand span {
        font-size: 0.82rem;
    }

    .nav-links {
        flex-wrap: nowrap;
        gap: 6px;
        align-items: center;
    }

    .nav-links a,
    .nav-assistant {
        padding: 8px 11px;
        font-size: 0.92rem;
        white-space: nowrap;
        min-height: 38px;
    }
}

.ai-widget {
    position: fixed;
    bottom: 22px;
    right: 22px;
    width: 300px;
    max-width: calc(100% - 44px);
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border-radius: 18px;
    box-shadow: 0 18px 48px rgba(2, 6, 23, 0.28);
    border: 1px solid rgba(10, 25, 48, 0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(10px) scale(0.98);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
    z-index: 2000;
}

.ai-widget[aria-hidden="false"] {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.ai-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 36%),
        linear-gradient(90deg, var(--lcc-blue), var(--lcc-blue-soft));
    color: #fff;
    font-weight: 700;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ai-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ai-title {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.ai-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-header-btn {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    border: none;
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease;
}

.ai-header-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.ai-header-btn svg {
    width: 18px;
    height: 18px;
}

.ai-close {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    border: none;
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease;
}

.ai-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.ai-close svg {
    width: 18px;
    height: 18px;
}

.ai-messages {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 236px;
    overflow: auto;
    background:
        radial-gradient(circle at top left, rgba(0, 51, 102, 0.12), transparent 18%),
        radial-gradient(circle at bottom right, rgba(30, 90, 150, 0.14), transparent 22%),
        linear-gradient(rgba(0, 51, 102, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 51, 102, 0.05) 1px, transparent 1px),
        linear-gradient(180deg, #dbe6f0 0%, #e5eef6 48%, #edf3f8 100%);
    background-size:
        auto,
        auto,
        42px 42px,
        42px 42px,
        auto;
    color: #1f2937;
    background-attachment: fixed;
}

.ai-welcome {
    text-align: center;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    margin: auto;
    animation: aiWelcomeFadeIn 0.45s ease both;
}

.ai-welcome-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin-bottom: 12px;
    animation: aiWelcomeRise 0.5s ease 0.06s both;
}

.ai-welcome h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--lcc-blue);
    margin-bottom: 8px;
    animation: aiWelcomeRise 0.5s ease 0.12s both;
}

.ai-welcome p {
    font-size: 0.8rem;
    color: var(--text-soft);
    line-height: 1.55;
    max-width: 280px;
    animation: aiWelcomeRise 0.5s ease 0.18s both;
}

.assistant-prompt-grid {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 14px;
}

.assistant-prompt-grid,
.assistant-prompt-grid-mini {
    display: flex;
    flex-direction: column;
}

.assistant-prompt-card {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    text-align: left;
    padding: 10px 10px 8px;
    border: 1px solid rgba(0, 51, 102, 0.10);
    border-radius: 14px;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.72), transparent 38%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 250, 255, 0.98) 100%);
    box-shadow: 0 10px 22px rgba(0, 51, 102, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    position: relative;
    overflow: hidden;
}

.assistant-prompt-card:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 51, 102, 0.16);
    box-shadow: 0 14px 28px rgba(0, 51, 102, 0.12);
}

.assistant-prompt-card::after {
    content: "";
    position: absolute;
    right: -18px;
    top: -18px;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    opacity: 0.14;
    pointer-events: none;
}

.assistant-prompt-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0 8px;
    margin-bottom: 6px;
    border-radius: 999px;
    background: rgba(0, 51, 102, 0.08);
    color: var(--lcc-blue);
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.assistant-prompt-card strong {
    display: block;
    flex: 1;
    color: var(--lcc-blue);
    font-family: "Sora", "Manrope", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-size: 0.82rem;
    line-height: 1.35;
    margin-bottom: 0;
}

.assistant-prompt-icon {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    margin-bottom: 0;
    background: rgba(255, 255, 255, 0.74);
    box-shadow: inset 0 0 0 1px rgba(0, 51, 102, 0.06);
}

.assistant-prompt-icon svg {
    width: 16px;
    height: 16px;
}

.assistant-prompt-card:nth-child(1) {
    border-color: rgba(43, 108, 176, 0.32);
    background:
        radial-gradient(circle at top right, rgba(43, 108, 176, 0.15), transparent 42%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(240, 247, 255, 0.98) 100%);
}

.assistant-prompt-card:nth-child(1)::after {
    background: rgba(43, 108, 176, 0.28);
}

.assistant-prompt-card:nth-child(1) .assistant-prompt-kicker {
    background: rgba(43, 108, 176, 0.12);
    color: #1d4f91;
}

.assistant-prompt-card:nth-child(1) .assistant-prompt-icon {
    color: #1d4f91;
    background: rgba(43, 108, 176, 0.12);
}

.assistant-prompt-card:nth-child(2) {
    border-color: rgba(47, 133, 90, 0.30);
    background:
        radial-gradient(circle at top right, rgba(47, 133, 90, 0.15), transparent 42%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(241, 251, 245, 0.98) 100%);
}

.assistant-prompt-card:nth-child(2)::after {
    background: rgba(47, 133, 90, 0.28);
}

.assistant-prompt-card:nth-child(2) .assistant-prompt-kicker {
    background: rgba(47, 133, 90, 0.12);
    color: #276749;
}

.assistant-prompt-card:nth-child(2) .assistant-prompt-icon {
    color: #276749;
    background: rgba(47, 133, 90, 0.12);
}

.assistant-prompt-card:nth-child(3) {
    border-color: rgba(183, 121, 31, 0.30);
    background:
        radial-gradient(circle at top right, rgba(183, 121, 31, 0.15), transparent 42%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 249, 238, 0.98) 100%);
}

.assistant-prompt-card:nth-child(3)::after {
    background: rgba(183, 121, 31, 0.24);
}

.assistant-prompt-card:nth-child(3) .assistant-prompt-kicker {
    background: rgba(183, 121, 31, 0.12);
    color: #975a16;
}

.assistant-prompt-card:nth-child(3) .assistant-prompt-icon {
    color: #975a16;
    background: rgba(183, 121, 31, 0.12);
}

.assistant-prompt-card:nth-child(4) {
    border-color: rgba(128, 90, 213, 0.30);
    background:
        radial-gradient(circle at top right, rgba(128, 90, 213, 0.15), transparent 42%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 241, 255, 0.98) 100%);
}

.assistant-prompt-card:nth-child(4)::after {
    background: rgba(128, 90, 213, 0.24);
}

.assistant-prompt-card:nth-child(4) .assistant-prompt-kicker {
    background: rgba(128, 90, 213, 0.12);
    color: #6b46c1;
}

.assistant-prompt-card:nth-child(4) .assistant-prompt-icon {
    color: #6b46c1;
    background: rgba(128, 90, 213, 0.12);
}

.assistant-prompt-card-mini {
    min-height: 82px;
}

.assistant-prompt-grid-mini {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-top: 10px;
}

.assistant-prompt-card-mini {
    gap: 7px;
    padding: 7px 8px;
    min-height: 58px;
    border-radius: 11px;
}

.assistant-prompt-card-mini::after {
    width: 48px;
    height: 48px;
    right: -14px;
    top: -14px;
}

.assistant-prompt-card-mini strong {
    font-size: 0.7rem;
    line-height: 1.25;
}

.assistant-prompt-card-mini .assistant-prompt-icon {
    width: 24px;
    height: 24px;
    border-radius: 8px;
}

.assistant-prompt-card-mini .assistant-prompt-icon svg {
    width: 13px;
    height: 13px;
}

@keyframes aiWelcomeFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.ai-msg {
    position: relative;
    padding: 12px 14px;
    border-radius: 18px;
    max-width: 85%;
    line-height: 1.65;
    font-size: 0.95rem;
    word-break: break-word;
    overflow-wrap: anywhere;
}
.ai-msg.user {
    align-self: flex-end;
    color: #ffffff;
    background: linear-gradient(135deg, #0d4d86 0%, #1e5a96 100%);
    border-bottom-right-radius: 6px;
    box-shadow: 0 10px 24px rgba(0, 51, 102, 0.18);
}
.ai-msg.bot  {
    align-self: flex-start;
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(0, 51, 102, 0.08);
    border-bottom-left-radius: 6px;
    box-shadow: 0 10px 22px rgba(0, 51, 102, 0.08);
}

.ai-msg p {
    margin: 0;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.ai-msg p + p {
    margin-top: 10px;
}

.ai-msg ul, .ai-msg ol {
    margin: 10px 0;
    padding-left: 24px;
}

.ai-msg li {
    margin-bottom: 6px;
}

.ai-msg strong {
    font-weight: 600;
}

.ai-msg code {
    background: var(--bg-tertiary);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

.ai-msg pre {
    background: var(--bg-tertiary);
    padding: 14px;
    border-radius: var(--border-radius-sm);
    overflow-x: auto;
    margin: 10px 0;
}

.ai-msg pre code {
    background: none;
    padding: 0;
}

.ai-msg a {
    color: inherit;
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 2px;
}

.ai-msg.user a {
    color: #ffffff;
}

.ai-msg.bot::before {
    content: "Phinny";
    display: block;
    margin-bottom: 6px;
    color: var(--lcc-blue-soft);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.ai-msg.pending {
    display: block;
    align-self: flex-start;
    width: auto;
    max-width: min(220px, calc(100% - 12px));
    opacity: 0.95;
    color: var(--text-soft);
    background: rgba(255, 255, 255, 0.9);
    border-style: dashed;
    position: relative;
    font-style: normal;
}

.ai-msg.pending::after {
    content: " ...";
    display: inline;
    letter-spacing: 0.08em;
    animation: ai-ellipsis 1s infinite ease-in-out;
}

@keyframes ai-ellipsis {
    0%   { opacity: 0.35; }
    50%  { opacity: 1; }
    100% { opacity: 0.35; }
}

.ai-structured {
    display: block;
    padding: 16px 17px;
    max-width: 92%;
    border-radius: 20px;
    box-shadow: 0 14px 28px rgba(0, 51, 102, 0.09);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(243, 249, 255, 0.96) 100%);
}
.ai-structured-header { display:flex; align-items:flex-start; flex-wrap:wrap; gap:10px; margin-bottom:10px; }
.ai-verdict { font-weight:800; padding:7px 11px; border-radius:999px; background:var(--lcc-blue); color:#fff; font-size:0.76rem; letter-spacing: 0.06em; }
.ai-verdict[title="PHISHING"] { background: #c62828; }
.ai-summary { color: var(--text-main); font-weight:700; line-height: 1.55; font-size: 0.98rem; }
.ai-section-title { margin-top:14px; font-weight:800; color:var(--lcc-blue-dark); font-size: 0.8rem; letter-spacing: 0.05em; text-transform: uppercase; }
.ai-reasons, .ai-advice { margin:10px 0 0 18px; display: grid; gap: 8px; }
.ai-reasons li, .ai-advice li { padding-left: 2px; }
.ai-human-text { margin-top:12px; color:var(--text-soft); font-size:0.95rem; line-height: 1.7; white-space:pre-wrap; }
.ai-compact {
    max-width: 100%;
    background: linear-gradient(180deg, #ffffff 0%, #f6fbff 100%);
}
.ai-compact .ai-structured-header {
    margin-bottom: 6px;
}
.ai-compact .ai-summary {
    display: block;
    font-size: 0.98rem;
}
.ai-compact .ai-human-text {
    margin-top: 6px;
}

.ai-form {
    padding: 12px;
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-input-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    margin: 0;
    background: linear-gradient(180deg, #f8fbff 0%, #f4f8fc 100%);
    border: 1px solid rgba(0, 51, 102, 0.10);
    border-radius: var(--border-radius);
    padding: 8px 8px 8px 16px;
    transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    box-shadow: 0 2px 8px rgba(0, 51, 102, 0.04);
}

.form-input-wrapper:focus-within {
    border-color: rgba(0, 51, 102, 0.28);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(0, 51, 102, 0.08);
}

.chat-input {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    line-height: 1.5;
    resize: none;
    min-height: 40px;
    max-height: 150px;
    padding: 8px 0;
    overflow-y: hidden;
}

.chat-input::-webkit-scrollbar {
    display: none;
}

.chat-input {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.chat-input::placeholder {
    color: var(--text-soft);
}

.chat-input:focus {
    outline: none;
}

.send-btn {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--lcc-blue), var(--lcc-blue-soft));
    border: none;
    border-radius: var(--border-radius-sm);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    flex-shrink: 0;
    box-shadow: 0 10px 20px rgba(0, 51, 102, 0.16);
}

.send-btn:hover {
    background: linear-gradient(135deg, var(--lcc-blue-soft), var(--lcc-blue));
    transform: translateY(-1px);
}

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

.send-btn svg {
    width: 20px;
    height: 20px;
}

.send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.input-hint {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-soft);
    margin-top: 0;
    padding: 0;
    width: 100%;
}

.ai-footer {
    font-size: 0.75rem;
    color: var(--text-soft);
    padding: 10px 12px 12px;
    border-top: 1px dashed rgba(10,25,48,0.04);
    background: rgba(255, 255, 255, 0.92);
}

.open-full {
    display: inline-block;
    padding: 6px 10px;
    margin-right: 10px;
    background: linear-gradient(90deg, var(--lcc-blue), var(--lcc-blue-soft));
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(2,6,23,0.18);
}

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

@media (max-width: 520px) {
    .ai-welcome h3 {
        font-size: 1.18rem;
        line-height: 1.28;
    }

    .ai-welcome p {
        font-size: 0.94rem;
        line-height: 1.65;
        max-width: 270px;
    }

    .assistant-prompt-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .assistant-prompt-grid-mini {
        grid-template-columns: 1fr;
    }

    .assistant-prompt-card-mini {
        min-height: 0;
    }

    .ai-widget {
        left: 12px;
        right: 12px;
        bottom: 12px;
        width: auto;
        max-height: calc(100vh - 32px);
        border-radius: 12px;
    }
    .ai-messages {
        max-height: calc(100vh - 220px);
        min-height: 0;
    }
}

.ai-fab {
    display: none;
    position: fixed;
    bottom: 18px;
    right: 18px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.3), transparent 28%),
        linear-gradient(145deg, #0f4f8a 0%, #1c6bb3 52%, #2b84d1 100%);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 14px 30px rgba(2, 6, 23, 0.32), 0 0 0 0 rgba(28, 107, 179, 0.38);
    font-size: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 2100;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    animation: ai-fab-pulse 2s infinite;
    overflow: hidden;
}

.ai-fab:hover {
    transform: translateY(-2px) scale(1.06);
    box-shadow: 0 18px 34px rgba(2, 6, 23, 0.38), 0 0 0 10px rgba(28, 107, 179, 0.14);
    animation: none;
    filter: saturate(1.08);
}

.ai-fab svg {
    width: 45px;
    height: 45px;
}

@keyframes ai-fab-pulse {
    0% {
        box-shadow: 0 14px 30px rgba(2, 6, 23, 0.32), 0 0 0 0 rgba(28, 107, 179, 0.38);
    }
    50% {
        box-shadow: 0 14px 30px rgba(2, 6, 23, 0.32), 0 0 0 12px rgba(28, 107, 179, 0);
    }
    100% {
        box-shadow: 0 14px 30px rgba(2, 6, 23, 0.32), 0 0 0 0 rgba(28, 107, 179, 0);
    }
}

@media (max-width: 520px) {
    .ai-fab { display: inline-flex; }

    .ai-widget.fullscreen {
        left: 0 !important;
        right: 0 !important;
        top: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100dvh !important;
        min-height: 100dvh !important;
        max-width: none !important;
        max-height: none !important;
        border-radius: 0 !important;
        transform: none !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .ai-widget.fullscreen .ai-messages {
        flex: 1 1 auto;
        max-height: none;
        min-height: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-gutter: stable;
    }

    .ai-widget.fullscreen .ai-messages::before {
        content: "";
        margin-top: auto;
    }

    .ai-widget .ai-form {
        position: sticky;
        bottom: 0;
        background: #fff;
        z-index: 2;
        margin-top: auto;
        padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    }

    body.noscroll { overflow: hidden; height: 100dvh; }
}

.panel,
.site-footer {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: 20px;
    box-shadow: var(--shadow);
}


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


@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hero {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-bottom: 28px;
    min-height: 0;
    padding: calc(34px + var(--nav-height)) 0 34px;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(125deg, rgba(255, 255, 255, 0.08) 0%, transparent 34%),
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.28), transparent 36%),
        radial-gradient(circle at 18% 30%, rgba(255, 215, 0, 0.22), transparent 28%),
        radial-gradient(circle at 82% 72%, rgba(255, 255, 255, 0.18), transparent 32%),
        radial-gradient(circle at left center, rgba(255, 255, 255, 0.16), transparent 40%),
        linear-gradient(135deg, #003366 0%, #0d4d86 52%, #1d66a8 100%);
    background-size:
        60px 60px,
        60px 60px,
        100% 100%,
        auto,
        auto,
        auto,
        auto,
        auto;
    border: none;
    border-radius: 0;
    box-shadow: none;
    color: #ffffff;
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.hero::before {
    top: -12%;
    right: -8%;
    width: 42vw;
    height: 42vw;
    min-width: 420px;
    min-height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent 62%);
}

.hero::after {
    left: -10%;
    bottom: -20%;
    width: 34vw;
    height: 34vw;
    min-width: 320px;
    min-height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.18), transparent 64%);
}

.hero-inner {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    min-height: 0;
    position: relative;
    z-index: 1;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    gap: 16px;
    animation: slideInLeft 0.8s ease-out forwards;
}

.hero-side {
    display: flex;
    align-items: center;
}

.hero-side-card {
    width: 100%;
    padding: 24px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 22px 50px rgba(0, 27, 54, 0.18);
    backdrop-filter: blur(10px);
}

.mini-label {
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}

.hero-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 8px;
}

.brand-block {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.brand-mark {
    min-width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-weight: 800;
    letter-spacing: 0.08em;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.eyebrow,
.section-label {
    color: var(--lcc-blue);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero .eyebrow {
    color: rgba(255, 255, 255, 0.78);
    animation: heroFadeInUp 0.8s ease-out 0.1s both;
}

.hero h1 {
    max-width: 18ch;
    margin: 6px 0 8px;
    color: #ffffff;
    font-size: clamp(2.15rem, 4.45vw, 4rem);
    font-weight: 800;
    line-height: 1.02;
    animation: heroFadeInUp 0.8s ease-out 0.2s both;
}

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

@keyframes heroFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes heroPulse {
    0%, 100% {
        box-shadow: 0 14px 28px rgba(0, 27, 54, 0.12);
    }
    50% {
        box-shadow: 0 14px 28px rgba(0, 27, 54, 0.2), 0 0 0 4px rgba(255, 255, 255, 0.1);
    }
}

.hero-title-line {
    display: block;
    white-space: nowrap;
}

.hero-subtitle,
.section-text,
.form-note,
.site-footer p:last-child {
    color: var(--text-soft);
}

.hero-subtitle {
    max-width: 47ch;
    color: rgba(255, 255, 255, 0.84);
    font-size: 1rem;
    line-height: 1.66;
    animation: heroFadeInUp 0.8s ease-out 0.3s both;
}

.hero-badge {
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-weight: 700;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    animation: heroFadeInUp 0.8s ease-out 0.5s both;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    width: min(100%, 640px);
    animation: heroFadeInUp 0.8s ease-out 0.7s both;
}

.hero-stat-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 15px 15px;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08));
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow:
        0 16px 30px rgba(0, 27, 54, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.hero-stat-card::after {
    content: "";
    position: absolute;
    top: -28px;
    right: -22px;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 68%);
    pointer-events: none;
}

.hero-stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow:
        0 22px 34px rgba(0, 27, 54, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.26);
}


.hero-stat-value {
    color: #ffffff;
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1;
}

.hero-stat-label {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.38;
}

@media (min-width: 1024px) {
    .hero-stats {
        width: min(100%, 580px);
        gap: 10px;
    }

    .hero-stat-card {
        padding: 13px 13px;
        border-radius: 16px;
        gap: 4px;
    }

    .hero-stat-value {
        font-size: 1.14rem;
    }

    .hero-stat-label {
        font-size: 0.76rem;
    }
}


.hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    padding: 16px 34px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

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

.primary-button {
    background: #ffffff;
    color: var(--lcc-blue);
}

.secondary-button {
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid rgba(255, 255, 255, 0.82);
    color: #ffffff;
    box-shadow: none;
}

.secondary-button:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.95);
}

.hero-points {
    display: grid;
    gap: 14px;
}

.hero-point {
    padding: 16px 18px;
    border-left: 3px solid rgba(255, 255, 255, 0.42);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
}

.hero-point strong {
    display: block;
    margin-bottom: 6px;
    color: #ffffff;
    font-size: 1rem;
}

.hero-point p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.65;
}

.overview-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 22px;
}

.overview-title {
    max-width: 10ch;
    color: #ffffff;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    line-height: 1;
}

.hero-pill {
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-weight: 700;
}

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

.side-stat {
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.primary-stat {
    background: rgba(255, 255, 255, 0.16);
}

.stat-label {
    display: inline-block;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.side-stat strong {
    display: block;
    color: #ffffff;
    font-size: 1.8rem;
    line-height: 1;
    margin-bottom: 8px;
}

.side-stat p {
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.6;
    font-size: 0.95rem;
}

.main-content {
    display: grid;
    gap: 24px;
}

.panel {
    padding: 26px;
}

.form-panel {
    padding: 0;
}

.tutorial-panel {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(165deg, rgba(255, 255, 255, 0.99), rgba(247, 250, 255, 0.98) 58%, rgba(244, 249, 253, 0.97));
    border: 1px solid rgba(214, 222, 235, 0.96);
    box-shadow:
        0 18px 40px rgba(15, 23, 42, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.tutorial-panel::before {
    content: none;
}

.tutorial-panel .section-heading,
.form-panel .section-heading {
    margin-bottom: 22px;
}

.tutorial-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.88fr) minmax(0, 1.12fr);
    gap: 22px;
    align-items: stretch;
}

.tutorial-flow {
    display: grid;
    gap: 18px;
    padding: 24px;
    border-radius: 30px;
    background:
        linear-gradient(165deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 252, 0.96));
    border: 1px solid rgba(216, 224, 236, 0.96);
    box-shadow:
        0 18px 36px rgba(15, 23, 42, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.tutorial-flow-head {
    display: grid;
    gap: 10px;
}

.tutorial-flow-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 999px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(234, 243, 255, 0.96));
    border: 1px solid rgba(164, 191, 224, 0.95);
    box-shadow:
        0 12px 24px rgba(0, 51, 102, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.96);
    color: #0f4a86;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.tutorial-flow-kicker::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(217, 145, 33, 0.98), rgba(241, 180, 62, 0.88));
    box-shadow: 0 0 0 4px rgba(241, 180, 62, 0.14);
}

.tutorial-flow-head h3 {
    color: var(--lcc-blue-dark);
    font-size: clamp(1.35rem, 2.1vw, 1.8rem);
    line-height: 1.28;
}

.tutorial-flow-head p {
    color: var(--text-soft);
    line-height: 1.7;
}

.tutorial-steps {
    display: grid;
    gap: 12px;
}

.tutorial-step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    align-items: start;
    padding: 16px 16px 16px 14px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(241, 247, 255, 0.95));
    border: 1px solid rgba(201, 216, 236, 0.94);
    box-shadow:
        0 14px 28px rgba(0, 51, 102, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.tutorial-step::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    border-radius: 20px 0 0 20px;
    opacity: 0.95;
}

.tutorial-step:hover {
    transform: translateY(-2px);
    border-color: rgba(148, 184, 228, 0.95);
    box-shadow:
        0 18px 32px rgba(0, 51, 102, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.tutorial-step:nth-child(1) {
    border-color: rgba(148, 184, 228, 0.96);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.99), rgba(239, 247, 255, 0.95));
}

.tutorial-step:nth-child(1)::before {
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.95), rgba(59, 130, 246, 0.84));
}

.tutorial-step:nth-child(2) {
    border-color: rgba(241, 203, 121, 0.92);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.99), rgba(255, 248, 232, 0.95));
}

.tutorial-step:nth-child(2)::before {
    background: linear-gradient(180deg, rgba(217, 145, 33, 0.96), rgba(241, 180, 62, 0.84));
}

.tutorial-step:nth-child(3) {
    border-color: rgba(134, 211, 186, 0.92);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.99), rgba(236, 250, 245, 0.95));
}

.tutorial-step:nth-child(3)::before {
    background: linear-gradient(180deg, rgba(5, 150, 105, 0.95), rgba(16, 185, 129, 0.84));
}

.tutorial-step-number {
    min-width: 50px;
    padding: 12px 10px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(0, 51, 102, 0.98), rgba(30, 90, 150, 0.9));
    color: #ffffff;
    font-weight: 800;
    font-size: 1rem;
    line-height: 1;
    letter-spacing: 0.04em;
    box-shadow:
        0 10px 18px rgba(0, 51, 102, 0.16),
        0 0 0 3px rgba(255, 255, 255, 0.58);
}

.tutorial-step:nth-child(1) .tutorial-step-number {
    background: linear-gradient(180deg, rgba(0, 51, 102, 0.98), rgba(30, 90, 150, 0.9));
}

.tutorial-step:nth-child(2) .tutorial-step-number {
    background: linear-gradient(180deg, rgba(180, 118, 18, 0.98), rgba(217, 145, 33, 0.92));
}

.tutorial-step:nth-child(3) .tutorial-step-number {
    background: linear-gradient(180deg, rgba(5, 150, 105, 0.98), rgba(13, 179, 126, 0.9));
}

.tutorial-step h4 {
    margin: 0 0 6px;
    color: var(--lcc-blue-dark);
    font-size: 1.06rem;
    line-height: 1.3;
}

.tutorial-step:nth-child(1) h4 {
    color: #0f3f78;
}

.tutorial-step:nth-child(2) h4 {
    color: #8f5400;
}

.tutorial-step:nth-child(3) h4 {
    color: #0b6b4a;
}

.tutorial-step p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.6;
    font-size: 0.92rem;
}

.video-wrapper {
    position: relative;
    width: 100%;
    margin: 0;
    align-self: stretch;
    min-height: 100%;
    padding: 18px;
    border-radius: 32px;
    overflow: hidden;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.99), rgba(246, 249, 255, 0.97));
    border: 1px solid rgba(217, 224, 236, 0.96);
    box-shadow:
        0 18px 36px rgba(15, 23, 42, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.94);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.video-wrapper::before {
    content: none;
}

.video-wrapper::after {
    content: none;
}

.video-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 22px;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.16);
}

.video-wrapper:hover {
    transform: translateY(-4px);
    border-color: rgba(198, 209, 227, 0.98);
    box-shadow:
        0 22px 42px rgba(15, 23, 42, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

@media (min-width: 1024px) {
    .video-wrapper {
        aspect-ratio: 16 / 6.5;
    }
}

.section-heading {
    margin-bottom: 18px;
    text-align: center;
}

.section-heading h2 {
    margin: 8px 0 10px;
    color: var(--lcc-blue-dark);
    font-size: clamp(1.7rem, 2.4vw, 2.35rem);
}

.section-text {
    max-width: 70ch;
    font-size: 1.02rem;
    line-height: 1.8;
    margin-inline: auto;
}

.url-form {
    display: grid;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.scanner-shell {
    display: grid;
    gap: 22px;
    padding: 32px;
    border-radius: 28px;
    background:
        linear-gradient(165deg, rgba(255, 255, 255, 0.99), rgba(247, 250, 255, 0.98) 58%, rgba(244, 249, 253, 0.97));
    border: 1px solid rgba(214, 222, 235, 0.96);
    box-shadow: 
        0 18px 40px rgba(15, 23, 42, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.scanner-shell::before {
    content: none;
}

.scanner-shell::after {
    content: none;
}

.scanner-shell:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 22px 42px rgba(15, 23, 42, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.scanner-head {
    display: grid;
    justify-items: center;
    justify-content: center;
    gap: 14px;
    position: relative;
    z-index: 1;
}

.scanner-icon-wrapper {
    display: none;
}

.scanner-icon {
    display: none;
}

.scanner-title {
    margin-top: 0;
    color: var(--lcc-blue-dark);
    font-size: clamp(1.7rem, 2.4vw, 2.35rem);
    line-height: 1.12;
    font-weight: 700;
    text-align: center;
}

.scanner-kicker {
    color: var(--lcc-blue);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.scanner-feature-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.scanner-feature-list span {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.08), rgba(30, 90, 150, 0.06));
    border: 1px solid rgba(0, 51, 102, 0.12);
    color: var(--lcc-blue);
    font-size: 0.82rem;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 51, 102, 0.06);
    transition: all 0.2s ease;
}

.scanner-feature-list span:hover {
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.12), rgba(30, 90, 150, 0.10));
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 51, 102, 0.10);
}

.scanner-features {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 8px;
    position: relative;
    z-index: 1;
}

.scanner-feature {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px 12px 18px;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 255, 0.94));
    border: 1px solid rgba(216, 225, 238, 0.92);
    border-radius: 14px;
    box-shadow:
        0 10px 22px rgba(15, 23, 42, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.88);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.scanner-feature:nth-child(1) {
    background: linear-gradient(145deg, rgba(231, 241, 255, 0.98), rgba(248, 251, 255, 0.95));
    border-color: rgba(164, 191, 224, 0.82);
}

.scanner-feature:nth-child(2) {
    background: linear-gradient(145deg, rgba(229, 248, 239, 0.98), rgba(246, 255, 250, 0.95));
    border-color: rgba(163, 217, 183, 0.82);
}

.scanner-feature:nth-child(3) {
    background: linear-gradient(145deg, rgba(255, 243, 221, 0.98), rgba(255, 250, 240, 0.95));
    border-color: rgba(242, 199, 124, 0.82);
}

.scanner-feature:hover {
    transform: translateY(-3px);
    border-color: rgba(198, 209, 227, 0.98);
    box-shadow:
        0 14px 26px rgba(15, 23, 42, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}


.scanner-feature svg {
    width: 18px;
    height: 18px;
    color: var(--lcc-blue);
}

.scanner-feature:nth-child(2) svg,
.scanner-feature:nth-child(2) span {
    color: #13795b;
}

.scanner-feature:nth-child(3) svg,
.scanner-feature:nth-child(3) span {
    color: #a34d00;
}

.scanner-feature span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--lcc-blue);
}

@media (max-width: 768px) {
    .scanner-head {
        flex-direction: column;
        text-align: center;
    }
    
    .scanner-features {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
    }
    
    .scanner-feature {
        justify-content: center;
        min-width: 0;
        padding: 8px 8px;
        gap: 6px;
    }
    
    .scanner-feature svg {
        width: 14px;
        height: 14px;
    }
    
    .scanner-feature span {
        font-size: 0.75rem;
        white-space: nowrap;
    }
}

.input-row {
    display: flex;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.scanner-input-row {
    align-items: stretch;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.url-form input {
    flex: 1;
    min-width: 0;
    padding: 20px 22px;
    border: 1px solid rgba(0, 51, 102, 0.14);
    border-radius: 18px;
    font-size: 1.06rem;
    outline: none;
    color: var(--lcc-blue-dark);
    background:
        linear-gradient(180deg, #ffffff 0%, #f9fbfe 100%);
    box-shadow:
        0 8px 20px rgba(0, 51, 102, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.url-form input:focus {
    border-color: rgba(0, 51, 102, 0.28);
    box-shadow:
        0 0 0 4px rgba(0, 51, 102, 0.08),
        0 12px 24px rgba(0, 51, 102, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
    transform: translateY(-1px);
}

.url-form input:hover:not(:focus) {
    border-color: rgba(0, 51, 102, 0.20);
    box-shadow:
        0 10px 22px rgba(0, 51, 102, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.url-form input::placeholder {
    color: rgba(80, 102, 123, 0.9);
}

.url-form button {
    min-width: 180px;
    padding: 20px 26px;
    border: none;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--lcc-blue), var(--lcc-blue-soft));
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(0, 51, 102, 0.18);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.url-form button::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;
}

.url-form button:hover {
    background: linear-gradient(135deg, var(--lcc-blue-dark), var(--lcc-blue));
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(0, 51, 102, 0.22);
}

.url-form button:hover::before {
    left: 100%;
}

.url-form button:active {
    transform: translateY(0);
    box-shadow: 0 8px 20px rgba(0, 51, 102, 0.16);
}

.form-note {
    text-align: center;
    color: var(--text-soft);
    font-size: 0.9rem;
    line-height: 1.55;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.result-card {
    padding: 28px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--bg-primary, #ffffff) 0%, #f8fafc 100%);
    border: 1px solid var(--border-color, #e2e8f0);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.result-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary, #3182ce);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.result-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
}

.result-card:hover::before {
    opacity: 1;
}

.safe-card {
    border-left: 5px solid var(--safe);
}

.safe-card::before {
    background: var(--safe);
}

.phishing-card {
    border-left: 5px solid var(--danger);
}

.phishing-card::before {
    background: var(--danger);
}

.caution-card {
    border-left: 5px solid var(--caution);
}

.caution-card::before {
    background: var(--caution);
}

.warning-card {
    border-left: 5px solid var(--warning);
}

.warning-card::before {
    background: var(--warning);
}

.risk-card {
    border-left: 5px solid var(--risk);
}

.risk-card::before {
    background: var(--risk);
}

.results-panel {
    padding: 0;
    position: relative;
    overflow: hidden;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.results-panel.is-hidden {
    display: none;
}

.results-panel.result-reveal {
    animation: resultPanelFadeIn 0.45s ease;
}

.results-panel::before {
    content: none;
}

.result-content {
    position: relative;
    padding: 26px;
    border-radius: 28px;
    background:
        linear-gradient(165deg, rgba(255, 255, 255, 0.99), rgba(247, 250, 255, 0.98) 58%, rgba(244, 249, 253, 0.97));
    border: 1px solid rgba(214, 222, 235, 0.96);
    box-shadow:
        0 18px 40px rgba(15, 23, 42, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.result-content.result-reveal-content .result-header {
    animation: resultRiseIn 0.45s ease both;
}

.result-content.result-reveal-content .result-body > * {
    animation: resultRiseIn 0.5s ease both;
}

.result-content.result-reveal-content .result-body > *:nth-child(1) {
    animation-delay: 0.05s;
}

.result-content.result-reveal-content .result-body > *:nth-child(2) {
    animation-delay: 0.12s;
}

.result-content.result-reveal-content .result-body > *:nth-child(3) {
    animation-delay: 0.18s;
}

.result-content.result-reveal-content .result-body > *:nth-child(4) {
    animation-delay: 0.24s;
}

.result-content.result-reveal-content .result-body > *:nth-child(5) {
    animation-delay: 0.3s;
}

.result-content.result-reveal-content .result-body > *:nth-child(6) {
    animation-delay: 0.36s;
}

.result-content::before {
    content: none;
}

.result-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 0;
    text-align: center;
}

.result-loading-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 14px;
    border-radius: 999px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(234, 243, 255, 0.96));
    border: 1px solid rgba(164, 191, 224, 0.95);
    box-shadow:
        0 12px 24px rgba(15, 23, 42, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
    color: #0f4a86;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.result-loading-title {
    margin: 0;
    color: var(--lcc-blue-dark);
    font-size: clamp(1.6rem, 3vw, 2.35rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    text-wrap: balance;
}

.result-loading-text {
    max-width: 620px;
    margin: 0;
    color: var(--text-secondary, #4a5568);
    font-size: 1rem;
    line-height: 1.75;
    text-wrap: balance;
}

.result-loading-bar {
    width: min(100%, 520px);
    height: 14px;
    padding: 2px;
    border-radius: 999px;
    background: rgba(226, 234, 244, 0.92);
    overflow: hidden;
    box-shadow: inset 0 2px 6px rgba(15, 23, 42, 0.08);
}

.result-loading-bar-fill {
    display: block;
    width: 38%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--lcc-blue), var(--lcc-blue-soft), var(--lcc-gold));
    background-size: 200% 100%;
    animation: resultLoadingShift 1.2s ease-in-out infinite;
}

.result-loading-steps {
    width: min(100%, 620px);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.result-loading-step {
    padding: 14px 16px;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 255, 0.94));
    border: 1px solid rgba(216, 225, 238, 0.92);
    box-shadow:
        0 10px 20px rgba(15, 23, 42, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.88);
    color: var(--text-primary, #1a202c);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.45;
}

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

@keyframes resultLoadingShift {
    0% {
        transform: translateX(-28%);
        background-position: 0% 50%;
    }
    50% {
        transform: translateX(128%);
        background-position: 100% 50%;
    }
    100% {
        transform: translateX(-28%);
        background-position: 0% 50%;
    }
}

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

.result-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-bottom: 28px;
    flex-wrap: wrap;
    padding: 0 0 22px;
    border-bottom: 1px solid rgba(214, 222, 235, 0.96);
}

.result-title-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    min-width: 0;
    width: 100%;
    text-align: center;
}

.result-grade {
    color: var(--text-primary, #1a202c);
    font-size: clamp(2.3rem, 4.8vw, 3.7rem);
    font-weight: 900;
    margin: 0;
    letter-spacing: -0.02em;
    line-height: 1;
    text-shadow: 0 8px 20px rgba(0, 51, 102, 0.08);
    text-align: center;
}

.result-meta {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
    max-width: 100%;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 999px;
    font-size: 1.02rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.status-badge::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 18%, transparent);
}

.status-badge.low {
    background: linear-gradient(135deg, color-mix(in srgb, var(--safe) 20%, transparent), color-mix(in srgb, var(--safe) 10%, transparent));
    color: var(--safe);
    border: 1px solid color-mix(in srgb, var(--safe) 30%, transparent);
}

.status-badge.medium {
    background: linear-gradient(135deg, color-mix(in srgb, var(--caution) 20%, transparent), color-mix(in srgb, var(--caution) 10%, transparent));
    color: var(--caution);
    border: 1px solid color-mix(in srgb, var(--caution) 30%, transparent);
}

.status-badge.high {
    background: linear-gradient(135deg, color-mix(in srgb, var(--danger) 20%, transparent), color-mix(in srgb, var(--danger) 10%, transparent));
    color: var(--danger);
    border: 1px solid color-mix(in srgb, var(--danger) 30%, transparent);
}

.result-body {
    display: grid;
    gap: 18px;
}

.result-side-stack {
    display: contents;
}

@media (min-width: 1024px) {
    .result-body {
        grid-template-columns: minmax(0, 1.14fr) minmax(0, 0.86fr);
        grid-template-areas:
            "info info"
            "risk risk"
            "indicators side";
        gap: 20px;
        align-items: start;
    }

    .result-side-stack {
        display: grid;
        grid-area: side;
        gap: 20px;
        align-content: start;
    }

    .result-side-stack > .result-page-overview,
    .result-side-stack > .result-summary,
    .result-side-stack > .result-recommendation {
        grid-area: auto;
    }

    .result-info-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .result-risk-section {
        max-width: none;
    }

    .result-indicators {
        height: 100%;
        align-self: stretch;
        min-height: 0;
        max-height: 560px;
        overflow: hidden;
    }

    .result-page-overview,
    .result-summary,
    .result-recommendation {
        height: auto;
        align-self: start;
    }
}

.result-info-icon {
    width: 20px;
    height: 20px;
    color: var(--lcc-blue-soft);
    flex-shrink: 0;
}


.result-indicators-icon {
    width: 20px;
    height: 20px;
    color: var(--safe);
    flex-shrink: 0;
}

.result-summary-icon {
    width: 20px;
    height: 20px;
    color: var(--lcc-blue-soft);
    flex-shrink: 0;
}

.result-recommendation-icon {
    width: 20px;
    height: 20px;
    color: var(--lcc-blue);
    flex-shrink: 0;
}

.result-page-overview-icon {
    width: 20px;
    height: 20px;
    color: var(--lcc-blue);
    flex-shrink: 0;
}

.result-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    grid-area: info;
}

.result-info-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 255, 0.94));
    border-radius: 18px;
    border: 1px solid rgba(216, 225, 238, 0.92);
    box-shadow:
        0 10px 22px rgba(15, 23, 42, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.result-info-label {
    color: var(--text-secondary, #4a5568);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.result-info-value {
    color: var(--text-primary, #1a202c);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.result-risk-section {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 20px;
    grid-area: risk;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.16), transparent 35%),
        linear-gradient(145deg, var(--lcc-blue), color-mix(in srgb, var(--lcc-blue-soft) 82%, #ffffff));
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    box-shadow: 0 20px 34px rgba(0, 51, 102, 0.18);
}

.result-risk-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.result-risk-label {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.result-risk-value {
    color: #ffffff;
    font-size: 2.1rem;
    font-weight: 900;
    line-height: 1;
    text-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
}

.result-progress-bar {
    height: 14px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    overflow: hidden;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.12);
}

.result-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #f7fafc, #c8e0ff, #ffd700);
    border-radius: 999px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.18);
}

.result-indicators {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px 20px;
    grid-area: indicators;
    background: linear-gradient(145deg, rgba(246, 251, 255, 0.98), rgba(236, 244, 251, 0.95));
    border-radius: 18px;
    border: 1px solid rgba(196, 216, 233, 0.9);
    box-shadow:
        0 10px 22px rgba(15, 23, 42, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.result-indicators-label {
    color: var(--text-secondary, #4a5568);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.result-indicators-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
    min-height: 0;
}

.result-indicators.expanded .result-indicators-list {
    max-height: 420px;
    overflow-y: auto;
    padding-right: 8px;
    scrollbar-gutter: stable;
}

.result-indicators-list.collapsed li:nth-child(n+5) {
    display: none;
}

.result-indicators-list li {
    position: relative;
    display: grid;
    gap: 10px;
    padding: 12px 14px 12px 18px;
    color: var(--text-primary, #1a202c);
    font-size: 0.9rem;
    line-height: 1.55;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(210, 224, 237, 0.8);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.result-indicator-item {
    overflow: hidden;
}

.result-indicator-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    max-width: 100%;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid transparent;
}

.result-indicator-text {
    display: block;
}

.result-indicator-item.is-danger {
    background: linear-gradient(145deg, rgba(255, 245, 246, 0.98), rgba(255, 236, 240, 0.95));
    border-color: rgba(242, 180, 193, 0.88);
}

.result-indicator-badge.is-danger {
    color: #b42345;
    background: linear-gradient(145deg, rgba(244, 63, 94, 0.13), rgba(255, 228, 234, 0.7));
    border-color: rgba(242, 173, 188, 0.9);
}

.result-indicator-item.is-warning {
    background: linear-gradient(145deg, rgba(255, 249, 237, 0.98), rgba(255, 242, 214, 0.95));
    border-color: rgba(241, 211, 147, 0.9);
}

.result-indicator-badge.is-warning {
    color: #9a6700;
    background: linear-gradient(145deg, rgba(245, 158, 11, 0.14), rgba(255, 243, 205, 0.72));
    border-color: rgba(232, 196, 118, 0.92);
}

.result-indicator-item.is-safe {
    background: linear-gradient(145deg, rgba(241, 252, 246, 0.98), rgba(228, 247, 236, 0.95));
    border-color: rgba(162, 219, 185, 0.9);
}

.result-indicator-badge.is-safe {
    color: #13795b;
    background: linear-gradient(145deg, rgba(22, 163, 74, 0.13), rgba(224, 247, 233, 0.72));
    border-color: rgba(156, 214, 178, 0.92);
}

.result-indicator-item.is-info {
    background: linear-gradient(145deg, rgba(248, 251, 255, 0.98), rgba(236, 244, 251, 0.95));
    border-color: rgba(196, 216, 233, 0.88);
}

.result-indicator-badge.is-info {
    color: #0f4a86;
    background: linear-gradient(145deg, rgba(13, 77, 134, 0.12), rgba(220, 234, 249, 0.68));
    border-color: rgba(173, 198, 228, 0.9);
}

.result-indicators-toggle {
    align-self: flex-start;
    margin-top: 4px;
    padding: 9px 14px;
    border: 1px solid rgba(181, 202, 222, 0.92);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(233, 242, 250, 0.95));
    color: var(--lcc-blue);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    box-shadow: 0 8px 18px rgba(0, 51, 102, 0.08);
}

.result-indicators-toggle:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(0, 51, 102, 0.12);
    background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(227, 238, 248, 1));
}

@media (min-width: 1024px) {
    .result-indicators-list li {
        font-size: 1rem;
    }

    .result-indicators.expanded .result-indicators-list {
        flex: 1 1 auto;
        min-height: 0;
        max-height: none;
        overflow-y: auto;
        padding-right: 8px;
        scrollbar-gutter: stable;
    }
    
    .result-page-overview p,
    .result-summary p,
    .result-recommendation p {
        font-size: 1.05rem;
    }
}

.result-indicators-list li::before {
    content: "";
    display: none;
}

.result-page-overview {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px 20px;
    grid-area: overview;
    background: linear-gradient(145deg, rgba(244, 249, 255, 0.98), rgba(235, 243, 251, 0.96));
    border-radius: 18px;
    border: 1px solid rgba(196, 216, 233, 0.9);
    box-shadow:
        0 10px 22px rgba(15, 23, 42, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.result-summary {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px 20px;
    grid-area: summary;
    background: linear-gradient(145deg, rgba(246, 251, 255, 0.98), rgba(236, 244, 251, 0.95));
    border-radius: 18px;
    border: 1px solid rgba(196, 216, 233, 0.9);
    box-shadow:
        0 10px 22px rgba(15, 23, 42, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.result-recommendation {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px 20px;
    grid-area: recommendation;
    background:
        linear-gradient(145deg, rgba(0, 51, 102, 0.05), rgba(255, 215, 0, 0.06)),
        linear-gradient(145deg, rgba(248, 251, 255, 0.98), rgba(238, 245, 252, 0.96));
    border-radius: 18px;
    border: 1px solid rgba(197, 216, 234, 0.92);
    box-shadow:
        0 10px 22px rgba(15, 23, 42, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.result-disclaimer {
    grid-column: 1 / -1;
    padding: 2px 2px 0;
}

.result-disclaimer p {
    margin: 0;
    color: rgba(74, 85, 104, 0.9);
    font-size: 0.8rem;
    line-height: 1.55;
    text-align: center;
}

.result-page-overview-label,
.result-summary-label,
.result-recommendation-label {
    color: var(--text-secondary, #4a5568);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.result-page-overview p,
.result-summary p,
.result-recommendation p {
    color: var(--text-primary, #1a202c);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

.result-indicators-header,
.result-page-overview-header,
.result-summary-header,
.result-recommendation-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

@media (min-width: 769px) and (max-width: 1023px) {
    .result-content {
        padding: 20px;
        border-radius: 24px;
    }

    .result-header {
        gap: 18px;
        align-items: center;
        margin-bottom: 22px;
        padding-bottom: 18px;
    }

    .result-title-group {
        flex: 1 1 100%;
        gap: 10px;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .status-badge {
        font-size: 0.96rem;
        padding: 12px 20px;
    }

    .result-grade {
        font-size: 2.6rem;
    }

    .result-body {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        grid-template-areas:
            "risk risk"
            "info info"
            "overview overview"
            "indicators indicators"
            "summary recommendation";
        gap: 18px;
    }

    .result-side-stack {
        display: contents;
    }

    .result-info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .result-risk-section {
        padding: 18px 18px;
        border-radius: 20px;
    }

    .result-risk-value {
        font-size: 1.9rem;
    }

    .result-indicators-list {
        grid-template-columns: 1fr;
    }

    .result-indicators.expanded .result-indicators-list {
        max-height: 360px;
    }

    .result-page-overview,
    .result-summary,
    .result-recommendation,
    .result-indicators {
        padding: 17px 18px;
    }
}

@media (max-width: 768px) {
    .result-loading {
        padding: 22px 12px 8px;
        gap: 14px;
    }

    .result-loading-title {
        font-size: 1.9rem;
    }

    .result-loading-text {
        font-size: 0.95rem;
        line-height: 1.65;
    }

    .result-loading-steps {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .result-loading-step {
        padding: 13px 14px;
        font-size: 0.88rem;
    }

    .result-content {
        padding: 20px;
        border-radius: 24px;
    }

    .result-body {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-areas:
            "info"
            "risk"
            "overview"
            "indicators"
            "summary"
            "recommendation";
        gap: 16px;
    }

    .result-header {
        padding-bottom: 16px;
        margin-bottom: 18px;
        gap: 14px;
    }

    .result-title-group {
        width: 100%;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .result-grade {
        font-size: 1.9rem;
    }

    .status-badge {
        font-size: 0.88rem;
        padding: 10px 16px;
    }

    .result-risk-section {
        padding: 18px 16px;
    }

    .result-risk-value {
        font-size: 1.75rem;
    }

    .result-info-grid {
        grid-template-columns: 1fr;
        grid-auto-flow: row;
    }

    .result-info-item {
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        column-gap: 10px;
        row-gap: 0;
    }

    .result-info-icon {
        grid-column: 1;
        grid-row: 1;
    }

    .result-info-label {
        grid-column: 2;
        grid-row: 1;
        font-size: 0.68rem;
    }

    .result-info-value {
        grid-column: 3;
        grid-row: 1;
        text-align: right;
        font-size: 0.92rem;
        max-width: 100%;
    }
}

@media (min-width: 641px) and (max-width: 768px) {
    .result-content {
        padding: 20px;
        border-radius: 24px;
    }

    .result-header {
        gap: 16px;
        margin-bottom: 20px;
        padding-bottom: 16px;
        align-items: center;
    }

    .result-title-group {
        width: 100%;
        gap: 10px;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .status-badge {
        width: auto;
        justify-content: center;
        align-self: center;
        font-size: 0.98rem;
        padding: 12px 20px;
    }

    .result-grade {
        font-size: 2.6rem;
        text-align: center;
    }

    .result-body {
        display: grid;
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .result-info-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .result-info-item,
    .result-indicators,
    .result-summary,
    .result-recommendation {
        padding: 16px;
        border-radius: 17px;
    }

    .result-disclaimer {
        padding: 2px 2px 0;
    }

    .result-risk-section {
        padding: 18px 16px;
        border-radius: 20px;
        gap: 12px;
    }

    .result-risk-header {
        flex-direction: row;
        align-items: center;
    }

    .result-risk-value {
        font-size: 1.7rem;
    }

    .result-indicators-list li {
        font-size: 0.88rem;
        padding: 11px 12px 11px 14px;
    }

    .result-info-label {
        font-size: 0.7rem;
    }

    .result-info-value {
        font-size: 0.95rem;
    }

    .result-summary p,
    .result-recommendation p {
        font-size: 0.92rem;
    }
}

@media (max-width: 520px) {
    .result-content {
        padding: 20px;
        border-radius: 24px;
        box-shadow:
            0 14px 30px rgba(15, 23, 42, 0.08),
            inset 0 1px 0 rgba(255, 255, 255, 0.92);
    }

    .result-header {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 12px;
        margin-bottom: 16px;
        padding-bottom: 14px;
    }

    .result-title-group {
        width: 100%;
        min-width: 0;
        flex: 1 1 100%;
        gap: 8px;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .status-badge {
        width: auto;
        max-width: 100%;
        justify-content: center;
        align-self: center;
        font-size: 0.9rem;
        padding: 11px 18px;
    }

    .result-grade {
        font-size: 2.2rem;
        line-height: 1.05;
        text-align: center;
    }

    .result-body {
        gap: 14px;
        display: flex;
        flex-direction: column;
    }

    .result-info-grid {
        gap: 12px;
    }

    .result-indicators.expanded .result-indicators-list {
        max-height: 300px;
        padding-right: 6px;
    }

    .result-info-item,
    .result-page-overview,
    .result-indicators,
    .result-summary,
    .result-recommendation {
        padding: 15px 14px;
        border-radius: 16px;
    }

    .result-disclaimer {
        padding: 2px 2px 0;
    }

    .result-risk-section {
        padding: 16px 14px;
        border-radius: 18px;
        gap: 12px;
    }

    .result-risk-header {
        gap: 8px;
        flex-direction: column;
        align-items: flex-start;
    }

    .result-risk-value {
        font-size: 1.48rem;
    }

    .result-progress-bar {
        height: 12px;
    }

    .result-indicators-list li {
        padding: 10px 12px 10px 13px;
        font-size: 0.84rem;
        border-radius: 12px;
    }

    .result-indicators-toggle {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .result-summary p,
    .result-recommendation p {
        font-size: 0.9rem;
        line-height: 1.65;
    }

    .result-indicators-header,
    .result-summary-header,
    .result-recommendation-header {
        gap: 8px;
        align-items: flex-start;
    }

    .result-info-icon,
    .result-indicators-icon,
    .result-summary-icon,
    .result-recommendation-icon {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 420px) {
    .result-loading-badge {
        font-size: 0.76rem;
        padding: 9px 13px;
    }

    .result-loading-title {
        font-size: 1.65rem;
    }

    .result-loading-text {
        font-size: 0.9rem;
    }

    .result-loading-bar {
        height: 12px;
    }

    .result-content {
        padding: 20px;
        border-radius: 24px;
    }

    .result-header {
        margin-bottom: 14px;
        padding-bottom: 12px;
    }

    .status-badge {
        font-size: 0.84rem;
        padding: 9px 14px;
    }

    .result-grade {
        font-size: 1.6rem;
    }

    .result-info-item,
    .result-indicators,
    .result-summary,
    .result-recommendation,
    .result-risk-section {
        padding: 14px 12px;
        border-radius: 14px;
    }

    .result-disclaimer {
        padding: 2px 2px 0;
    }

    .result-info-item {
        grid-template-columns: auto 1fr;
        row-gap: 4px;
        align-items: start;
    }

    .result-info-icon {
        grid-row: 1 / span 2;
    }

    .result-info-label {
        grid-column: 2;
        grid-row: 1;
    }

    .result-info-label,
    .result-risk-label,
    .result-indicators-label,
    .result-summary-label,
    .result-recommendation-label {
        font-size: 0.66rem;
    }

    .result-info-value {
        grid-column: 2;
        grid-row: 2;
        text-align: left;
        font-size: 0.88rem;
    }

    .result-risk-value {
        font-size: 1.34rem;
    }

    .result-indicators-list li {
        padding: 9px 10px 9px 12px;
        font-size: 0.8rem;
        line-height: 1.5;
    }

    .result-indicator-badge {
        font-size: 0.64rem;
        padding: 5px 8px;
    }

    .result-summary p,
    .result-recommendation p,
    .result-disclaimer p {
        font-size: 0.8rem;
        line-height: 1.5;
    }
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.info-list,
.score-list {
    display: grid;
    gap: 14px;
}

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

.tips-panel,
.checks-panel {
    background:
        radial-gradient(circle at top left, rgba(30, 90, 150, 0.08), transparent 26%),
        radial-gradient(circle at top right, rgba(0, 51, 102, 0.06), transparent 22%),
        linear-gradient(165deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.97) 58%, rgba(244, 249, 253, 0.96));
    border: 1px solid rgba(214, 222, 235, 0.96);
    box-shadow:
        0 18px 40px rgba(15, 23, 42, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.tips-panel {
    padding-bottom: 22px;
}

.checks-panel {
    padding-bottom: 22px;
}

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

.check-card {
    position: relative;
    padding: 20px 20px 18px;
    border-radius: 22px;
    overflow: hidden;
    background:
        linear-gradient(150deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 255, 0.94));
    border: 1px solid rgba(216, 225, 238, 0.92);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        0 16px 30px rgba(15, 23, 42, 0.05);
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.check-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, var(--lcc-blue), var(--lcc-blue-soft));
}

.check-card:hover {
    transform: translateY(-3px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.96),
        0 20px 34px rgba(15, 23, 42, 0.08);
}

.check-card-icon {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--lcc-blue-dark);
    background: linear-gradient(145deg, rgba(231, 241, 255, 0.98), rgba(248, 251, 255, 0.96));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.96),
        0 12px 20px rgba(15, 23, 42, 0.05);
}

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

.check-card:nth-child(2)::before {
    background: linear-gradient(90deg, #16a34a, #22c55e);
}

.check-card:nth-child(3)::before {
    background: linear-gradient(90deg, #f59e0b, #f97316);
}

.check-card:nth-child(4)::before {
    background: linear-gradient(90deg, #7c3aed, #6366f1);
}

.check-card-kicker {
    display: inline-flex;
    align-self: flex-start;
    padding: 7px 12px;
    border-radius: 999px;
    background: linear-gradient(145deg, rgba(13, 77, 134, 0.11), rgba(212, 228, 246, 0.44));
    color: #0f4a86;
    border: 1px solid rgba(164, 191, 224, 0.72);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.check-card:nth-child(2) .check-card-kicker {
    background: linear-gradient(145deg, rgba(22, 163, 74, 0.1), rgba(221, 248, 229, 0.54));
    color: #13795b;
    border-color: rgba(163, 217, 183, 0.8);
}

.check-card:nth-child(3) .check-card-kicker {
    background: linear-gradient(145deg, rgba(245, 158, 11, 0.12), rgba(255, 234, 204, 0.6));
    color: #a34d00;
    border-color: rgba(242, 199, 124, 0.82);
}

.check-card:nth-child(4) .check-card-kicker {
    background: linear-gradient(145deg, rgba(124, 58, 237, 0.11), rgba(235, 228, 255, 0.56));
    color: #5b3cc4;
    border-color: rgba(196, 180, 244, 0.84);
}

.check-card:nth-child(2) .check-card-icon {
    color: #13795b;
    background: linear-gradient(145deg, rgba(229, 248, 239, 0.98), rgba(246, 255, 250, 0.96));
}

.check-card:nth-child(3) .check-card-icon {
    color: #b45309;
    background: linear-gradient(145deg, rgba(255, 243, 221, 0.98), rgba(255, 250, 240, 0.96));
}

.check-card:nth-child(4) .check-card-icon {
    color: #5b3cc4;
    background: linear-gradient(145deg, rgba(241, 236, 255, 0.98), rgba(250, 247, 255, 0.96));
}

.check-card h3 {
    margin: 0;
    color: var(--lcc-blue-dark);
    font-size: 1.18rem;
    line-height: 1.26;
    padding-right: 58px;
}

.check-card p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.58;
    font-size: 0.93rem;
}

.info-item,
.score-list li {
    position: relative;
    padding: 20px 20px 18px 22px;
    border-radius: 22px;
    overflow: hidden;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.95));
    border: 1px solid rgba(223, 228, 240, 0.98);
    box-shadow:
        0 12px 26px rgba(15, 23, 42, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.96);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.info-item::before,
.score-list li::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #2563eb);
}

.info-item::after {
    content: none;
}

.info-item:hover,
.score-list li:hover {
    transform: translateY(-4px);
    border-color: rgba(212, 219, 235, 0.98);
    box-shadow:
        0 20px 34px rgba(15, 23, 42, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.98);
}

.info-item:nth-child(2)::before {
    background: linear-gradient(90deg, #10b981, #059669);
}

.info-item:nth-child(3)::before {
    background: linear-gradient(90deg, #f43f5e, #e11d48);
}

.info-item:nth-child(4)::before {
    background: linear-gradient(90deg, #8b5cf6, #6d28d9);
}

.info-item:nth-child(1) {
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(245, 249, 255, 0.96));
}

.info-item:nth-child(2) {
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(245, 249, 255, 0.96));
}

.info-item:nth-child(3) {
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(245, 249, 255, 0.96));
}

.info-item:nth-child(4) {
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(247, 244, 255, 0.96));
}

.info-icon {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--lcc-blue-dark);
    background: linear-gradient(145deg, rgba(231, 241, 255, 0.98), rgba(248, 251, 255, 0.96));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.96),
        0 12px 20px rgba(15, 23, 42, 0.05);
}

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

.info-item:nth-child(2) .info-icon {
    color: #13795b;
    background: linear-gradient(145deg, rgba(229, 248, 239, 0.98), rgba(246, 255, 250, 0.96));
}

.info-item:nth-child(3) .info-icon {
    color: #b42345;
    background: linear-gradient(145deg, rgba(255, 233, 238, 0.98), rgba(255, 246, 248, 0.96));
}

.info-item:nth-child(4) .info-icon {
    color: #6d28d9;
    background: linear-gradient(145deg, rgba(241, 233, 255, 0.98), rgba(249, 245, 255, 0.96));
}

.info-item h3 {
    margin-bottom: 8px;
    color: var(--lcc-blue-dark);
    font-size: 1.18rem;
    line-height: 1.28;
    padding-right: 58px;
}

.info-kicker {
    display: inline-flex;
    align-items: center;
    margin-bottom: 12px;
    padding: 7px 12px;
    border-radius: 999px;
    color: #0f4a86;
    background: linear-gradient(145deg, rgba(13, 77, 134, 0.11), rgba(212, 228, 246, 0.44));
    border: 1px solid rgba(164, 191, 224, 0.72);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        0 8px 18px rgba(148, 163, 184, 0.08);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.info-item:nth-child(2) .info-kicker {
    color: #13795b;
    background: linear-gradient(145deg, rgba(22, 163, 74, 0.1), rgba(221, 248, 229, 0.54));
    border-color: rgba(163, 217, 183, 0.8);
}

.info-item:nth-child(3) .info-kicker {
    color: #b42345;
    background: linear-gradient(145deg, rgba(244, 63, 94, 0.11), rgba(255, 228, 234, 0.56));
    border-color: rgba(244, 175, 189, 0.82);
}

.info-item:nth-child(4) .info-kicker {
    color: #6d28d9;
    background: linear-gradient(145deg, rgba(139, 92, 246, 0.12), rgba(243, 236, 255, 0.58));
    border-color: rgba(200, 178, 246, 0.82);
}

.info-item p,
.score-list li {
    line-height: 1.65;
    color: var(--text-soft);
}

.score-list {
    list-style: none;
}

.score-groups {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.score-group {
    display: grid;
    align-content: start;
    gap: 0;
    padding: 24px 24px 22px;
    border-radius: 24px;
    border: 1px solid rgba(221, 226, 238, 0.96);
    box-shadow:
        0 14px 30px rgba(15, 23, 42, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.score-group::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0));
}

.score-group:hover {
    transform: translateY(-4px);
    box-shadow:
        0 22px 36px rgba(15, 23, 42, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.score-group-label {
    display: block;
    margin-bottom: 18px;
    padding: 0 0 14px;
    border-radius: 0;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.48);
    box-shadow: none;
}

.score-band-list {
    display: grid;
    gap: 12px;
    align-content: start;
}

.score-band {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    align-items: start;
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.88),
        0 10px 18px rgba(15, 23, 42, 0.04);
}

.caution-group {
    align-self: start;
}

.caution-group .score-band-list {
    gap: 14px;
}

.caution-group .score-band {
    min-height: 120px;
}

.danger-group .score-band {
    min-height: 112px;
}

.safe-group .score-band {
    min-height: 104px;
}

.score-band-grade {
    min-width: 58px;
    padding: 12px 10px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.38rem;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: rgba(255, 255, 255, 0.96);
    color: #0f172a;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

.score-band h3 {
    margin: 0 0 6px;
    color: var(--lcc-blue-dark);
    font-size: 1.06rem;
    line-height: 1.3;
}

.score-band p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.6;
    font-size: 0.92rem;
}

.safe-group {
    background:
        radial-gradient(circle at top right, rgba(30, 90, 150, 0.08), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.96));
    border-color: rgba(208, 219, 234, 0.8);
}

.safe-group::before {
    background: linear-gradient(90deg, rgba(31, 157, 85, 0.78), rgba(31, 157, 85, 0.08));
}

.safe-group .score-group-label {
    color: var(--safe);
}

.safe-group .score-band {
    background: rgba(255, 255, 255, 0.82);
    border-color: rgba(185, 237, 211, 0.72);
}

.safe-group .score-band-grade {
    color: var(--safe);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(236, 251, 245, 0.96));
}

.caution-group {
    background:
        radial-gradient(circle at top right, rgba(30, 90, 150, 0.08), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.96));
    border-color: rgba(208, 219, 234, 0.8);
}

.caution-group::before {
    background: linear-gradient(90deg, rgba(183, 121, 31, 0.78), rgba(183, 121, 31, 0.08));
}

.caution-group .score-group-label {
    color: var(--caution);
}

.caution-group .score-band {
    background: rgba(255, 255, 255, 0.82);
    border-color: rgba(191, 220, 249, 0.72);
}

.caution-group .score-band-grade {
    color: #2563eb;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.96));
}

.danger-group {
    background:
        radial-gradient(circle at top right, rgba(30, 90, 150, 0.08), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.96));
    border-color: rgba(208, 219, 234, 0.8);
}

.danger-group::before {
    background: linear-gradient(90deg, rgba(197, 48, 48, 0.78), rgba(197, 48, 48, 0.08));
}

.danger-group .score-group-label {
    color: var(--danger);
}

.danger-group .score-band {
    background: rgba(255, 255, 255, 0.82);
    border-color: rgba(251, 205, 216, 0.72);
}

.danger-group .score-band-grade {
    color: var(--danger);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 241, 244, 0.96));
}

@media (min-width: 1025px) {
    .score-groups {
        align-items: start;
    }

    .score-group {
        height: auto;
    }

    .score-band h3 {
        min-height: 2.6em;
    }

    .score-band p {
        min-height: 4.8em;
    }
}

.score-list strong {
    display: inline-block;
    min-width: 2.2ch;
    margin-right: 8px;
    color: var(--text-primary);
    font-size: 1.02rem;
    font-weight: 800;
}

.site-footer {
    margin-top: 24px;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 18px 0;
    background:
        linear-gradient(135deg, #003366 0%, #0d4d86 52%, #1d66a8 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 -10px 24px rgba(0, 51, 102, 0.12);
    backdrop-filter: blur(10px);
    border-radius: 0;
}

.footer-inner {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    gap: 18px;
}

.footer-top,
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-summary,
.footer-team,
.footer-nav {
    max-width: 320px;
}

.footer-team {
    max-width: 380px;
}

.footer-heading {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.footer-summary p:last-child {
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.7;
}

.footer-nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    opacity: 0.88;
}

.footer-nav-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-team-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(150px, 1fr));
    gap: 10px 20px;
}

.footer-team-list span {
    display: block;
    padding-left: 14px;
    position: relative;
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.65;
    letter-spacing: 0.01em;
}

.footer-team-list span::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 215, 0, 0.82);
}

.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.04));
}

.footer-logo {
    width: 58px;
    height: 58px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

.footer-brand p:first-child {
    color: #ffffff;
    font-weight: 700;
}

.footer-brand p:last-child {
    color: rgba(255, 255, 255, 0.76);
}

.footer-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-links a:hover {
    background: #ffffff;
    color: var(--lcc-blue);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 520px;
}

.footer-bottom {
    align-items: flex-start;
}

.footer-team-row {
    display: flex;
    justify-content: center;
    width: 100%;
}

.footer-team-row .footer-team {
    width: min(100%, 1180px);
    max-width: none;
}

.footer-about {
    color: rgba(255,255,255,0.86);
    line-height: 1.6;
    font-size: 0.95rem;
}

.newsletter-form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.newsletter-form input[type="email"],
.newsletter-form input[type="text"] {
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.06);
    color: #fff;
    outline: none;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.68);
}

.feedback-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
}

.newsletter-form button {
    padding: 8px 12px;
    border-radius: 8px;
    background: #ffffff;
    color: var(--lcc-blue);
    border: none;
    font-weight: 700;
    cursor: pointer;
}

@media (max-width: 900px) {
    .newsletter-form { flex-direction: column; align-items: stretch; }
    .newsletter-form button,
    .newsletter-form input[type="email"],
    .newsletter-form input[type="text"] { width: 100%; }

    .feedback-form {
        display: flex;
    }

    .footer-team-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px 14px;
    }
}

.newsletter-feedback {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.9);
    margin-top: 6px;
}
.newsletter-feedback.success { color: #b6f2c7; }
.newsletter-feedback.error { color: #ffd1d1; }

.footer-icon {
    position: relative;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.footer-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.github-icon::before,
.github-icon::after,
.campus-icon::before,
.campus-icon::after {
    content: "";
    position: absolute;
}

.github-icon::before {
    inset: 1px 2px 3px 2px;
    border: 2px solid currentColor;
    border-radius: 50%;
}

.github-icon::after {
    left: 6px;
    top: 0;
    width: 6px;
    height: 6px;
    border-top: 2px solid currentColor;
    border-left: 2px solid currentColor;
    transform: rotate(45deg);
}

.campus-icon::before {
    left: 1px;
    top: 2px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 7px solid currentColor;
}

.campus-icon::after {
    left: 3px;
    bottom: 1px;
    width: 12px;
    height: 8px;
    border: 2px solid currentColor;
    border-top: 0;
    border-radius: 0 0 3px 3px;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInUp 0.8s ease-out;
}

.hero-logo {
    width: min(100%, 440px);
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.18));
    animation: float 6s ease-in-out infinite;
}

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

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@media (max-width: 768px) {
    .hero-top,
    .input-row,
    .footer-top,
    .footer-bottom,
    .footer-inner {
        flex-direction: column;
    }

    .result-grid,
    .info-grid {
        grid-template-columns: 1fr;
    }

    .info-list,
    .score-groups,
    .checks-grid {
        grid-template-columns: 1fr;
    }

    .tutorial-layout {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .tutorial-flow {
        display: grid;
        padding: 0;
        border-radius: 0;
        gap: 14px;
        background: transparent;
        border: 0;
        box-shadow: none;
    }

    .tutorial-step {
        padding: 12px 12px 11px;
        gap: 10px;
        border-radius: 18px;
    }

    .tutorial-step-number {
        min-width: 42px;
        padding: 8px 7px;
        border-radius: 12px;
        font-size: 0.85rem;
    }

    .tutorial-flow-head {
        gap: 8px;
    }

    .tutorial-flow-kicker {
        align-self: center;
        padding: 7px 10px;
        font-size: 0.7rem;
        letter-spacing: 0.06em;
    }

    .tutorial-flow-head h3 {
        font-size: 1.2rem;
        line-height: 1.24;
    }

    .tutorial-steps {
        gap: 10px;
    }

    .tutorial-step h4 {
        margin-bottom: 4px;
        font-size: 0.98rem;
    }

    .tutorial-step p {
        font-size: 0.84rem;
        line-height: 1.45;
    }

    .video-wrapper {
        aspect-ratio: 16 / 10;
        min-height: auto;
        padding: 14px;
        border-radius: 26px;
    }

    .video-wrapper::before {
        top: 14px;
        left: 14px;
        right: 14px;
    }

    .score-band {
        grid-template-columns: auto 1fr;
        padding: 14px;
        gap: 12px;
    }

    .score-band-grade {
        min-width: 52px;
        font-size: 1.18rem;
        border-radius: 14px;
    }

    .score-band h3 {
        font-size: 0.95rem;
    }

    .score-band p {
        font-size: 0.86rem;
        line-height: 1.55;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 24px;
        min-height: auto;
    }

    .hero-side {
        display: block;
    }

    .hero h1 {
        max-width: 12ch;
        font-size: clamp(2.7rem, 6vw, 3.55rem);
        line-height: 1.08;
    }

    .hero {
        min-height: auto;
        padding: calc(18px + var(--nav-height)) 0 24px;
    }

    .hero-copy {
        align-items: center;
        gap: 15px;
    }

    .hero-subtitle {
        max-width: 36ch;
        font-size: 1.02rem;
        line-height: 1.66;
    }

    .hero-visual {
        margin-top: 0;
        order: -1;
    }

    .hero-logo {
        width: min(100%, 228px);
    }

    .hero-stats {
        width: min(100%, 560px);
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .scanner-head {
        flex-direction: column;
    }

}

@media (min-width: 769px) and (max-width: 1024px) {
    .footer-inner {
        display: grid;
        gap: 18px;
    }

    .footer-top {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 18px;
        align-items: start;
    }

    .footer-bottom {
        display: grid;
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
        gap: 18px;
        align-items: start;
    }

    .footer-brand,
    .footer-nav,
    .footer-contact,
    .footer-links {
        width: 100%;
        max-width: none;
    }

    .footer-links {
        justify-content: flex-start;
    }

    .footer-team-row .footer-team {
        width: 100%;
    }

    .footer-team-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px 16px;
    }

    .hero {
        min-height: auto;
        padding: calc(24px + var(--nav-height)) 0 34px;
    }

    .hero-inner {
        width: min(100% - 24px, 980px);
        grid-template-columns: 1fr;
        gap: 30px;
        min-height: auto;
        text-align: center;
        align-items: center;
        justify-items: center;
    }

    .hero-copy {
        width: 100%;
        max-width: 820px;
        align-items: center;
        gap: 20px;
    }

    .hero h1 {
        max-width: 13ch;
        margin: 6px 0 10px;
        font-size: clamp(3.8rem, 6.4vw, 4.7rem);
        line-height: 1.04;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-subtitle {
        max-width: 42ch;
        font-size: 1rem;
        line-height: 1.58;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 16px;
        width: auto;
        margin: 4px auto 0;
    }

    .hero-button {
        width: auto;
        min-width: 220px;
        min-height: 0;
        padding: 19px 22px;
        font-size: 1.04rem;
    }

    .hero-stats {
        width: auto;
        grid-template-columns: repeat(3, minmax(140px, 180px));
        justify-content: center;
        gap: 16px;
        margin: 2px auto 0;
    }

    .hero-stat-card {
        padding: 20px 18px;
        border-radius: 18px;
    }

    .hero-stat-card:last-child {
        grid-column: auto;
        width: 100%;
        justify-self: stretch;
    }

    .hero-stat-value {
        font-size: 1.75rem;
    }

    .hero-stat-label {
        font-size: 0.9rem;
    }

    .hero-visual {
        margin-top: 0;
        order: -1;
        justify-content: center;
        width: 100%;
        justify-self: center;
    }

    .hero-logo {
        width: min(100%, 290px);
        margin: 0 auto;
    }

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

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

    .score-groups {
        grid-template-columns: 1fr;
    }

    .score-band-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .caution-group .score-band-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .danger-group .score-band-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .tutorial-layout {
        grid-template-columns: 1fr;
    }

    .tutorial-flow {
        padding: 22px;
    }

    .video-wrapper {
        aspect-ratio: 16 / 8.8;
        min-height: auto;
    }
}

@media (min-width: 901px) and (max-width: 1100px) and (min-height: 1200px) {
    .hero {
        min-height: 0;
        padding: calc(32px + var(--nav-height)) 0 38px;
    }

    .hero-inner {
        min-height: 0;
        align-content: start;
        justify-content: initial;
        gap: 30px;
    }

    .hero-copy {
        gap: 24px;
    }

    .hero-logo {
        width: min(100%, 324px);
    }

    .hero h1 {
        max-width: 10.8ch;
        font-size: clamp(3.45rem, 5vw, 4.3rem);
    }

    .hero-subtitle {
        max-width: 34ch;
        font-size: 1.18rem;
        line-height: 1.72;
    }

    .hero-actions {
        margin-top: 10px;
        gap: 20px;
    }

    .hero-button {
        min-height: 58px;
        padding: 0 28px;
        font-size: 1.04rem;
    }

    .hero-stats {
        width: min(100%, 720px);
        margin-top: 12px;
        gap: 20px;
    }

    .hero-stat-card {
        padding: 21px 24px;
    }

    .hero-stat-value {
        font-size: 1.64rem;
    }

    .hero-stat-label {
        font-size: 0.92rem;
    }
}

@media (max-width: 768px) {
    .page-shell {
        width: min(100% - 20px, 1100px);
        padding-top: 0;
    }

    .hero,
    .panel,
    .site-footer {
        padding: 20px;
    }

    .scanner-shell {
        padding: 20px;
        gap: 16px;
    }

    .result-side-stack {
        display: contents;
    }

    .scanner-title {
        font-size: 26px;
    }

    .hero {
        min-height: auto;
        padding: calc(14px + var(--nav-height)) 0 22px;
    }

    .hero-inner {
        width: min(100% - 16px, 1100px);
        gap: 18px;
        min-height: auto;
    }

    .main-nav {
        padding: 16px;
        align-items: center;
        flex-wrap: wrap;
        padding-left: 16px;
        padding-right: 16px;
        overflow: visible;
        isolation: isolate;
    }

    .nav-toggle {
        display: inline-block;
        margin-left: auto;
    }

    .nav-drawer-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(2, 16, 32, 0.42);
        backdrop-filter: blur(4px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.22s ease;
        z-index: 999;
    }

    .main-nav::after {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(2, 16, 32, 0.34);
        backdrop-filter: blur(4px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.22s ease;
        z-index: 0;
    }

    .nav-links {
        width: min(340px, calc(100vw - 24px));
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        gap: 10px;
        margin-top: 0;
        padding: 92px 16px 24px;
        border-radius: 0;
        background: linear-gradient(180deg, #ffffff 0%, #f4f8fc 100%);
        border: none;
        position: fixed;
        inset: 0 0 0 auto;
        height: 100svh;
        min-height: 100svh;
        max-height: none;
        transform: translateX(100%);
        transition: transform 0.24s ease;
        z-index: 1001;
        box-shadow: -22px 0 48px rgba(15, 23, 42, 0.18);
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        border-left: 1px solid rgba(214, 222, 235, 0.92);
        z-index: 2;
    }

    .nav-drawer-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        margin: -76px -16px 8px;
        padding: 18px 16px 16px;
        border-bottom: 1px solid rgba(214, 222, 235, 0.96);
        background: rgba(255, 255, 255, 0.58);
    }

    .nav-drawer-intro {
        display: grid;
        gap: 10px;
        margin-bottom: 8px;
        padding: 6px 2px 4px;
    }

    .nav-drawer-chip {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: fit-content;
        min-height: 28px;
        padding: 0 11px;
        border-radius: 999px;
        background: rgba(0, 51, 102, 0.08);
        color: var(--lcc-blue);
        font-size: 0.76rem;
        font-weight: 800;
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }

    .nav-drawer-intro p {
        color: var(--text-soft);
        font-size: 0.92rem;
        line-height: 1.6;
    }

    .nav-drawer-group {
        display: grid;
        gap: 8px;
    }

    .nav-drawer-group + .nav-drawer-group {
        margin-top: 6px;
        padding-top: 14px;
        border-top: 1px solid rgba(214, 222, 235, 0.92);
    }

    .nav-drawer-group-label {
        display: block;
        padding: 0 2px;
        color: var(--text-soft);
        font-size: 0.76rem;
        font-weight: 800;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .nav-drawer-brand {
        display: flex;
        align-items: center;
        gap: 12px;
        min-width: 0;
    }

    .nav-drawer-logo {
        width: 44px;
        height: 44px;
        object-fit: contain;
        flex-shrink: 0;
    }

    .nav-drawer-copy {
        min-width: 0;
    }

    .nav-drawer-copy strong {
        display: block;
        color: var(--lcc-blue);
        line-height: 1.3;
    }

    .nav-drawer-copy span {
        display: block;
        margin-top: 2px;
        color: var(--text-soft);
        font-size: 0.82rem;
    }

    .nav-drawer-close {
        width: 42px;
        height: 42px;
        border: 1px solid rgba(0, 51, 102, 0.1);
        border-radius: 12px;
        background: rgba(247, 250, 255, 0.96);
        color: var(--lcc-blue);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        cursor: pointer;
    }

    .nav-drawer-close svg {
        width: 18px;
        height: 18px;
    }

    .main-nav.nav-open .nav-links {
        transform: translateX(0);
    }

    .main-nav.nav-open + .nav-drawer-overlay {
        opacity: 1;
        pointer-events: auto;
    }

    .main-nav.nav-open::after {
        opacity: 1;
    }

    .main-nav.nav-open .nav-toggle span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .main-nav.nav-open .nav-toggle span:nth-child(2) {
        opacity: 0;
    }

    .main-nav.nav-open .nav-toggle span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .nav-links a {
        width: 100%;
        justify-content: flex-start;
        padding: 12px 14px;
        border-radius: 12px;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        position: relative;
        border: 1px solid transparent;
        transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    }

    .nav-links a::before {
        content: "";
        width: 4px;
        align-self: stretch;
        border-radius: 999px;
        background: transparent;
        flex-shrink: 0;
        transition: background 0.2s ease, box-shadow 0.2s ease;
    }

    .nav-links a:hover {
        background: rgba(0, 51, 102, 0.06);
        border-color: rgba(0, 51, 102, 0.06);
        transform: translateX(2px);
    }

    .nav-links a.is-active {
        background: linear-gradient(135deg, rgba(0, 51, 102, 0.1), rgba(30, 90, 150, 0.14));
        color: var(--lcc-blue);
        border-color: rgba(0, 51, 102, 0.08);
        box-shadow: 0 12px 26px rgba(0, 51, 102, 0.08);
    }

    .nav-links a.is-active::before {
        background: linear-gradient(180deg, var(--lcc-blue), var(--lcc-blue-soft));
        box-shadow: 0 0 0 2px rgba(0, 51, 102, 0.08);
    }

    .nav-links .nav-assistant {
        width: 100%;
        min-height: 48px;
        padding: 12px 14px;
        border-radius: 12px;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        justify-content: flex-start;
        background: transparent;
        border: 1px solid transparent;
        color: var(--lcc-blue);
        font-size: 1rem;
        font-weight: 700;
        line-height: 1.4;
        box-shadow: none;
    }

    .footer-inner {
        width: min(100% - 20px, 1100px);
        align-items: flex-start;
        gap: 16px;
    }

    .footer-links {
        justify-content: flex-start;
        width: 100%;
    }

    .footer-top,
    .footer-bottom {
        width: 100%;
        align-items: flex-start;
    }

    .footer-brand,
    .footer-team,
    .footer-nav {
        width: 100%;
        max-width: none;
    }

    .footer-team-row .footer-team {
        width: 100%;
    }

    .footer-brand {
        gap: 12px;
    }

    .footer-brand p:first-child,
    .footer-brand p:last-child {
        line-height: 1.6;
    }

    .footer-nav-links,
    .footer-meta,
    .footer-links {
        width: 100%;
    }

    .footer-nav-links {
        flex-direction: column;
        gap: 8px;
    }

    .footer-team-list {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .footer-nav-links a,
    .footer-links a {
        width: 100%;
        justify-content: flex-start;
    }

    .footer-chip {
        width: 100%;
        justify-content: center;
    }

    .footer-logo {
        width: 48px;
        height: 48px;
    }

    .brand-block {
        flex-direction: column;
        gap: 14px;
    }

    .hero-badge {
        white-space: normal;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 10px;
    }

    .hero-stats {
        width: 100%;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }

    .scanner-tags span {
        min-height: 32px;
        padding: 0 10px;
        font-size: 0.78rem;
    }

    .scanner-input-row {
        flex-direction: column;
        padding: 8px;
    }

    .url-form button {
        width: 100%;
        min-width: 0;
        min-height: 52px;
    }

    .hero-button {
        width: 100%;
        min-height: 48px;
        padding: 0 16px;
    }

    .hero-side-stats {
        grid-template-columns: 1fr;
    }

    .hero-side-card,
    .hero-point,
    .side-stat {
        padding: 16px;
    }

    .hero-logo {
        width: min(100%, 172px);
    }

    .hero h1 {
        max-width: 10ch;
        margin: 2px 0 6px;
        font-size: clamp(2.15rem, 9.5vw, 2.55rem);
        line-height: 1.08;
        letter-spacing: -0.02em;
    }

    .hero-subtitle {
        max-width: 31ch;
        font-size: 0.95rem;
        line-height: 1.62;
    }


    .overview-top {
        flex-direction: column;
    }

    .overview-title {
        max-width: none;
    }

    .nav-drawer-intro p {
        font-size: 0.88rem;
    }
}

@media (max-width: 520px) {
    .nav-links {
        width: min(320px, calc(100vw - 20px));
        padding: 90px 14px 22px;
    }

    .nav-drawer-head {
        margin-left: -14px;
        margin-right: -14px;
        padding-left: 14px;
        padding-right: 14px;
    }

    .nav-drawer-close {
        width: 40px;
        height: 40px;
    }

    .nav-links a,
    .nav-links .nav-assistant {
        min-height: 44px;
        padding: 11px 14px;
        font-size: 0.95rem;
    }

    .hero-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: 100%;
        gap: 8px;
    }

    .hero-stat-card {
        padding: 10px 8px;
        border-radius: 14px;
    }

    .hero-stat-value {
        font-size: 1.02rem;
    }

    .hero-stat-label {
        font-size: 0.72rem;
        line-height: 1.35;
    }

    .hero-inner {
        width: min(100% - 24px, 1100px);
        gap: 16px;
    }

    .hero-copy {
        gap: 14px;
    }

    .hero .eyebrow {
        font-size: 0.72rem;
        letter-spacing: 0.06em;
    }

    .hero-logo {
        width: min(100%, 160px);
    }

    .hero h1 {
        max-width: none;
        font-size: clamp(2rem, 10vw, 2.35rem);
    }

    .hero-subtitle {
        max-width: 29ch;
        font-size: 0.92rem;
        line-height: 1.58;
    }

    .hero-button {
        font-size: 0.96rem;
    }

    .tutorial-flow {
        padding: 0;
        border-radius: 0;
        gap: 12px;
        background: transparent;
        border: 0;
        box-shadow: none;
    }

    .tutorial-flow-head h3 {
        font-size: 1.08rem;
        line-height: 1.22;
    }

    .tutorial-steps {
        gap: 8px;
    }

    .tutorial-step {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 11px 11px 10px;
    }

    .tutorial-step-number {
        width: fit-content;
        min-width: 0;
        padding: 7px 9px;
        font-size: 0.8rem;
        border-radius: 10px;
    }

    .tutorial-step h4 {
        margin-bottom: 3px;
        font-size: 0.92rem;
    }

    .tutorial-step p {
        font-size: 0.8rem;
        line-height: 1.4;
    }
}

@media (min-width: 641px) and (max-width: 768px) {
    .hero {
        padding: calc(34px + var(--nav-height)) 0 24px;
    }

    .hero-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: 100%;
    }

    .hero-actions {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        width: min(100%, 520px);
        margin: 0 auto;
    }

    .hero-button {
        width: auto;
        min-width: 210px;
        padding: 0 18px;
    }

    .footer-links {
        width: auto;
        justify-content: flex-start;
        gap: 10px;
    }

    .footer-team-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px 16px;
    }

    .footer-links a {
        width: auto;
        min-width: 160px;
        justify-content: center;
    }

    .hero-inner {
        width: min(100% - 24px, 1100px);
        gap: 20px;
    }

    .hero-copy {
        width: 100%;
        gap: 15px;
    }

    .hero .eyebrow {
        font-size: 0.78rem;
    }

    .hero h1 {
        max-width: 12ch;
        font-size: clamp(2.35rem, 6vw, 2.85rem);
    }

    .hero-subtitle {
        max-width: 37ch;
        font-size: 0.99rem;
        line-height: 1.64;
    }

    .hero-logo {
        width: min(100%, 190px);
    }

    .hero-actions {
        max-width: 460px;
        margin: 0 auto;
    }
}

@media (min-width: 521px) and (max-width: 640px) {
    .hero-inner {
        width: min(100% - 24px, 1100px);
        gap: 18px;
    }

    .hero-copy {
        width: 100%;
        align-items: center;
        gap: 15px;
    }

    .hero h1 {
        max-width: none;
        font-size: clamp(2.3rem, 7vw, 2.85rem);
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-subtitle {
        max-width: 35ch;
        font-size: 0.98rem;
        line-height: 1.62;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        width: min(100%, 460px);
        margin: 0 auto;
    }

    .hero-button {
        width: auto;
        min-width: 190px;
        padding: 0 18px;
    }

    .hero-stats {
        width: 100%;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px 12px;
    }

    .hero-stat-card:last-child {
        grid-column: auto;
        width: 100%;
        justify-self: stretch;
    }

    .footer-links {
        width: auto;
        justify-content: flex-start;
        gap: 10px;
    }

    .footer-links a {
        width: auto;
        min-width: 150px;
        justify-content: center;
    }
}

@media (min-width: 1025px) {
    .hero-inner {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 28px;
        text-align: center;
    }

    .hero-visual {
        display: none;
    }

    .hero-copy {
        width: 100%;
        max-width: 880px;
        align-items: center;
        gap: 18px;
    }

    .hero h1 {
        max-width: 16ch;
        margin-left: auto;
        margin-right: auto;
        font-size: clamp(2.2rem, 4vw, 3.9rem);
        line-height: 1.02;
        text-align: left;
    }

    .hero-title-line:last-child {
        text-align: center;
    }

    .hero-subtitle {
        max-width: 52ch;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
        width: 100%;
    }

    .hero-stats {
        width: min(100%, 760px);
        margin-left: auto;
        margin-right: auto;
    }
}

/* Final unified hero layout */
.hero-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 28px;
    text-align: center;
}

.hero-copy {
    width: 100%;
    max-width: 880px;
    align-items: center;
    gap: 22px;
}

.hero h1 {
    max-width: 16ch;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(2.35rem, 5vw, 4.35rem);
    line-height: 0.98;
    text-align: left;
}

.hero-title-line:last-child {
    text-align: center;
}

.hero-subtitle {
    max-width: 52ch;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    justify-content: center;
    width: auto;
}

.hero-stats {
    width: auto;
    grid-template-columns: repeat(3, minmax(140px, 180px));
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 640px) {
    .hero {
        padding: calc(48px + var(--nav-height)) 0 30px;
    }

    .hero-inner {
        gap: 24px;
    }

    .hero-copy {
        gap: 18px;
    }

    .hero h1 {
        max-width: 12.5ch;
        font-size: clamp(1.9rem, 6.8vw, 2.55rem);
        line-height: 1.04;
        text-align: center;
    }

    .hero-subtitle {
        max-width: 28ch;
        font-size: 0.9rem;
        line-height: 1.6;
        text-wrap: balance;
    }

    .hero-title-line:last-child {
        text-align: center;
    }

    .hero-actions {
        flex-direction: row;
        align-items: center;
        width: auto;
        margin-left: auto;
        margin-right: auto;
        gap: 8px;
        flex-wrap: wrap;
    }

    .hero-button {
        width: auto;
        min-width: 136px;
        padding: 11px 18px;
        font-size: 0.92rem;
        flex: 0 1 auto;
        justify-content: center;
    }

    .hero-stats {
        width: auto;
        grid-template-columns: repeat(3, minmax(84px, 102px));
        justify-content: center;
        gap: 8px;
    }

    .hero-stat-card:last-child {
        grid-column: auto;
        width: 100%;
        justify-self: stretch;
    }

    .hero-stat-card {
        padding: 12px 10px;
        border-radius: 16px;
    }

    .hero-stat-value {
        font-size: 1.18rem;
    }

    .hero-stat-label {
        font-size: 0.72rem;
    }
}

@media (max-width: 400px) {
    .hero {
        padding: calc(44px + var(--nav-height)) 0 26px;
    }

    .hero h1 {
        max-width: none;
        width: 100%;
        font-size: clamp(1.72rem, 6.2vw, 2rem);
        line-height: 1.04;
        text-align: center;
    }

    .hero-subtitle {
        max-width: 26ch;
        font-size: 0.88rem;
        line-height: 1.58;
    }

    .hero-actions {
        gap: 8px;
    }

    .hero-button {
        min-width: 128px;
        padding: 10px 16px;
        font-size: 0.88rem;
    }

    .hero-stats {
        grid-template-columns: repeat(3, minmax(78px, 96px));
    }

    .hero-title-line:last-child {
        text-align: center;
    }
}
