/* ============================================
   Link Sentinel - Apple-like Minimal UI
   ============================================ */

/* --------------------------------------------
   CSS Custom Properties
   -------------------------------------------- */
:root {
    /* Apple Color Scheme */
    --primary-color: #0071e3;
    --primary-hover: #0077ed;
    --primary-dark: #0056b3;
    --accent-light: rgba(0, 113, 227, 0.08);
    --accent-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);

    /* Text Colors */
    --text-color: #1d1d1f;
    --text-secondary: #6e6e73;
    --text-tertiary: #86868b;

    /* Background Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #fbfbfd;
    --bg-tertiary: #f5f5f7;
    --bg-gradient: linear-gradient(180deg, #ffffff 0%, #f5f5f7 100%);

    /* Status Colors */
    --color-safe: #30d158;
    --color-caution: #ff9f0a;
    --color-danger: #ff453a;
    --color-info: #0a84ff;
    --color-blacklisted: #1d1d1f;

    /* Border */
    --border-color: rgba(0, 0, 0, 0.06);
    --border-color-strong: rgba(0, 0, 0, 0.1);

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 24px 80px rgba(0, 0, 0, 0.16);
    --shadow-glow: 0 0 40px rgba(0, 113, 227, 0.15);

    /* Transitions */
    --transition: 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    --transition-fast: 0.15s cubic-bezier(0.25, 0.1, 0.25, 1);
    --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Typography */
    --font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', 'Segoe UI', sans-serif;

    /* Spacing */
    --header-height: 52px;
    --section-padding: 120px;
    --container-max: 980px;
    --container-wide: 1120px;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 980px;
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
    :root {
        --text-color: #f5f5f7;
        --text-secondary: #a1a1a6;
        --text-tertiary: #86868b;
        --bg-primary: #000000;
        --bg-secondary: #0d0d0d;
        --bg-tertiary: #1d1d1f;
        --bg-gradient: linear-gradient(180deg, #000000 0%, #1d1d1f 100%);
        --border-color: rgba(255, 255, 255, 0.06);
        --border-color-strong: rgba(255, 255, 255, 0.1);
        --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
        --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
        --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.6);
        --shadow-xl: 0 24px 80px rgba(0, 0, 0, 0.7);
        --shadow-glow: 0 0 60px rgba(0, 113, 227, 0.2);
        --color-blacklisted: #f5f5f7;
        --accent-light: rgba(0, 113, 227, 0.15);
    }
}

/* --------------------------------------------
   Reset & Base
   -------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    font-size: 17px;
    line-height: 1.5;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: var(--text-color);
    background-color: var(--bg-primary);
}

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

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    text-decoration: none;
    opacity: 0.8;
}

ul, ol {
    list-style: none;
}

/* --------------------------------------------
   Layout
   -------------------------------------------- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.container-wide {
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: var(--section-padding) 0;
    position: relative;
}

.section-title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.025em;
    text-align: center;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--text-color) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title.text-left {
    text-align: left;
}

.section-subtitle {
    font-size: 19px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-secondary);
    text-align: center;
    max-width: 580px;
    margin: 0 auto 60px;
}

/* --------------------------------------------
   Header / Navigation
   -------------------------------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 9999;
}

@media (prefers-color-scheme: dark) {
    .header {
        background-color: rgba(0, 0, 0, 0.72);
    }
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0 24px;
}

/* Logo */
.logo {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color);
    letter-spacing: -0.02em;
}

.logo:hover {
    opacity: 1;
    color: var(--text-color);
}

/* Navigation */
.nav-list {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 0;
    transition: var(--transition-fast);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-color);
    opacity: 1;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
    border-radius: 1px;
}

/* Header CTA */
.header-cta {
    display: block;
}

.header-cta .btn {
    font-size: 13px;
    padding: 8px 18px;
    font-weight: 500;
}

/* App Store Badge */
.appstore-link {
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
}

.appstore-link:hover {
    opacity: 0.85;
    transform: scale(1.02);
}

.appstore-badge {
    height: 48px;
    width: auto;
}

.appstore-badge-sm {
    height: 32px;
    width: auto;
}

.appstore-badge-mobile {
    height: 44px;
    width: auto;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 10001;
}

.menu-icon {
    display: block;
    width: 18px;
    height: 2px;
    background-color: var(--text-color);
    position: relative;
    transition: var(--transition);
    border-radius: 1px;
}

.menu-icon::before,
.menu-icon::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 2px;
    background-color: var(--text-color);
    transition: var(--transition);
    border-radius: 1px;
}

.menu-icon::before { top: -6px; }
.menu-icon::after { bottom: -6px; }

.menu-toggle.active .menu-icon {
    background-color: transparent;
}

.menu-toggle.active .menu-icon::before {
    top: 0;
    transform: rotate(45deg);
}

.menu-toggle.active .menu-icon::after {
    bottom: 0;
    transform: rotate(-45deg);
}

/* --------------------------------------------
   Main Content
   -------------------------------------------- */
main {
    padding-top: var(--header-height);
}

/* --------------------------------------------
   Hero Section
   -------------------------------------------- */
.hero {
    min-height: calc(100vh - var(--header-height));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 24px;
    background: var(--bg-gradient);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200%;
    height: 100%;
    background: radial-gradient(ellipse at center top, var(--accent-light) 0%, transparent 60%);
    pointer-events: none;
}

.hero-content {
    max-width: 960px;
    position: relative;
    z-index: 1;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 16px;
    padding: 6px 16px;
    background: var(--accent-light);
    border-radius: var(--radius-full);
    letter-spacing: 0.02em;
}

.hero-title {
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.035em;
    margin-bottom: 24px;
    color: var(--text-color);
}

.hero-description {
    font-size: 20px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-secondary);
    max-width: 540px;
    margin: 0 auto 40px;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-tertiary);
    margin-bottom: 16px;
}

.hero-trust span:not(.divider) {
    display: flex;
    align-items: center;
    gap: 6px;
}

.hero-trust .divider {
    width: 1px;
    height: 14px;
    background: var(--text-tertiary);
    opacity: 0.4;
}

/* --------------------------------------------
   Buttons
   -------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 17px;
    font-weight: 500;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    min-width: 160px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 113, 227, 0.35);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 113, 227, 0.4);
    opacity: 1;
}

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

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    font-weight: 500;
}

.btn-secondary:hover {
    background: var(--accent-light);
    opacity: 1;
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 1.5px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    opacity: 1;
}

.btn-lg {
    padding: 18px 36px;
    font-size: 17px;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 14px;
    min-width: auto;
}

/* --------------------------------------------
   Problem Section
   -------------------------------------------- */
.problem-section {
    background: var(--bg-primary);
}

.problem-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

.problem-description {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 40px;
}

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

@media (max-width: 980px) {
    .problem-list {
        grid-template-columns: 1fr;
    }
}

.problem-list li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
    align-items: flex-start;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-xs);
}

.problem-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--color-danger) 0%, #ff6b6b 100%);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(255, 59, 48, 0.3);
}

.problem-icon svg {
    width: 18px;
    height: 18px;
    stroke: #ffffff;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.problem-item-body {
    flex: 1;
}

.problem-capture {
    margin-top: 12px;
}

.problem-capture .screenshot-placeholder {
    margin: 0;
    max-width: 100%;
    width: 100%;
    aspect-ratio: 16/9;
    padding: 16px;
    box-shadow: var(--shadow-md);
    font-size: 14px;
}

.problem-list li strong {
    display: block;
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-color);
}

.problem-list li p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Mock Email Panel */
.mock-email-panel {
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
}

.mock-header {
    display: flex;
    gap: 8px;
    padding: 14px 18px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.mock-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.mock-dot:nth-child(1) { background: #ff5f57; }
.mock-dot:nth-child(2) { background: #febc2e; }
.mock-dot:nth-child(3) { background: #28c840; }

.mock-content {
    padding: 28px;
}

.mock-link {
    padding: 20px;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--color-danger);
    box-shadow: var(--shadow-sm);
}

.mock-link-text {
    display: block;
    font-size: 15px;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-family: 'SF Mono', Monaco, monospace;
}

.mock-link-actual {
    display: block;
    font-size: 13px;
    color: var(--color-danger);
    margin-bottom: 12px;
    font-family: 'SF Mono', Monaco, monospace;
}

.mock-warning {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-danger) 0%, #ff6b6b 100%);
    padding: 6px 14px;
    border-radius: var(--radius-full);
}

/* --------------------------------------------
   Solution Section
   -------------------------------------------- */
.solution-section {
    background: var(--bg-tertiary);
    position: relative;
}

.solution-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color-strong), transparent);
}

.solution-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 64px;
}

.solution-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 28px;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.solution-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.solution-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #5a9ff5 100%);
    color: #ffffff;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.3);
}

.solution-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-color);
}

.solution-content p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* --------------------------------------------
   Feature Section
   -------------------------------------------- */
.features {
    background: var(--bg-primary);
}

.feature-grid {
    display: flex;
    flex-direction: column;
    gap: 120px;
}

.feature-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.feature-item.reverse {
    direction: rtl;
}

.feature-item.reverse > * {
    direction: ltr;
}

.feature-content {
    max-width: 440px;
}

.feature-title {
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    color: var(--text-color);
}

.feature-description {
    font-size: 17px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.feature-details {
    list-style: none;
    padding: 0;
}

.feature-details li {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    padding-left: 24px;
    position: relative;
}

.feature-details li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
}

.feature-image {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}

.feature-screenshot {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.feature-placeholder {
    font-size: 16px;
    color: var(--text-tertiary);
    font-weight: 500;
}

/* Privacy Flow Diagram */
.feature-screenshot.privacy-flow {
    flex-direction: column;
    gap: 24px;
}

.flow-diagram {
    display: flex;
    align-items: center;
    gap: 16px;
}

.flow-item {
    padding: 14px 24px;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 500;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.flow-arrow {
    font-size: 20px;
    color: var(--primary-color);
}

.flow-blocked {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-danger);
    font-size: 14px;
    font-weight: 500;
}

.blocked-icon {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--color-danger) 0%, #ff6b6b 100%);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
}

/* --------------------------------------------
   History Overview Section
   -------------------------------------------- */
.history-overview-section {
    background: var(--bg-primary);
}

.history-preview {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 600px;
    margin: 48px auto;
}

.history-preview-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    transition: var(--transition);
}

.history-preview-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.preview-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.preview-icon {
    font-size: 20px;
    font-weight: 700;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.preview-icon.safe {
    background: rgba(48, 209, 88, 0.15);
    color: var(--color-safe);
}

.preview-icon.caution {
    background: rgba(255, 159, 10, 0.15);
    color: var(--color-caution);
}

.preview-icon.danger {
    background: rgba(255, 69, 58, 0.15);
    color: var(--color-danger);
}

.preview-icon.pulse {
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.05); }
}

.preview-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.preview-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
}

.preview-sender {
    font-size: 13px;
    color: var(--text-secondary);
    font-family: 'SF Mono', Monaco, monospace;
}

.preview-badge {
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.preview-badge.safe {
    background: rgba(48, 209, 88, 0.15);
    color: var(--color-safe);
}

.preview-badge.caution {
    background: rgba(255, 159, 10, 0.15);
    color: var(--color-caution);
}

.preview-badge.danger {
    background: rgba(255, 69, 58, 0.15);
    color: var(--color-danger);
}

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

.history-feature {
    display: flex;
    gap: 16px;
    padding: 24px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.history-feature:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.history-feature-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.history-feature-text strong {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 6px;
}

.history-feature-text p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* --------------------------------------------
   History Detail Section
   -------------------------------------------- */
.history-detail-section {
    background: var(--bg-tertiary);
}

/* Banner Section Layout (Screenshot + Legend) */
.banner-section-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    align-items: start;
}

.banner-screenshot .screenshot-placeholder {
    min-height: 350px;
}

.banner-legend {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: 28px;
    border: 1px solid var(--border-color);
}

.banner-legend-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 20px;
}

.banner-legend-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.banner-legend-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
}

.banner-legend-item.safe {
    background: rgba(48, 209, 88, 0.1);
    border: 1px solid rgba(48, 209, 88, 0.3);
}

.banner-legend-item.caution {
    background: rgba(255, 159, 10, 0.1);
    border: 1px solid rgba(255, 159, 10, 0.3);
}

.banner-legend-item.danger {
    background: rgba(255, 69, 58, 0.1);
    border: 1px solid rgba(255, 69, 58, 0.3);
}

.banner-legend-item.blacklist {
    background: rgba(99, 99, 102, 0.1);
    border: 1px solid rgba(99, 99, 102, 0.4);
}

.banner-legend-item .legend-emoji {
    font-size: 18px;
    flex-shrink: 0;
}

.banner-legend-item .legend-label {
    font-weight: 600;
    font-size: 14px;
    min-width: 90px;
}

.banner-legend-item.safe .legend-label { color: var(--color-safe); }
.banner-legend-item.caution .legend-label { color: var(--color-caution); }
.banner-legend-item.danger .legend-label { color: var(--color-danger); }
.banner-legend-item.blacklist .legend-label { color: #636366; }

.banner-legend-item .legend-desc {
    font-size: 13px;
    color: var(--text-secondary);
}

/* History Section Layout (Screenshot + Features) */
.history-section-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    align-items: start;
}

.history-screenshot .screenshot-placeholder {
    min-height: 350px;
}

.history-features-compact {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.history-feature-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 20px;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.history-feature-item .feature-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: var(--primary-color);
}

.history-feature-item .feature-icon svg {
    width: 100%;
    height: 100%;
}

.history-feature-item .feature-text strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 4px;
}

.history-feature-item .feature-text p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Legacy styles (kept for compatibility) */
.history-detail-block {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: 40px;
    margin-bottom: 32px;
    border: 1px solid var(--border-color);
}

.history-detail-block:last-child {
    margin-bottom: 0;
}

.history-detail-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 12px;
}

.history-detail-desc {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 28px;
}


/* Banner Examples (legacy) */
.banner-examples {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.banner-example {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.banner-example.safe {
    background: rgba(48, 209, 88, 0.1);
    border: 1px solid rgba(48, 209, 88, 0.3);
}

.banner-example.caution {
    background: rgba(255, 159, 10, 0.1);
    border: 1px solid rgba(255, 159, 10, 0.3);
}

.banner-example.danger {
    background: rgba(255, 69, 58, 0.1);
    border: 1px solid rgba(255, 69, 58, 0.3);
}

.banner-example.blacklist {
    background: rgba(99, 99, 102, 0.1);
    border: 1px solid rgba(99, 99, 102, 0.4);
}

.banner-prefix {
    font-weight: 600;
    color: var(--text-color);
}

.banner-emoji {
    font-size: 16px;
}

.banner-label {
    font-weight: 600;
}

.banner-example.safe .banner-label { color: var(--color-safe); }
.banner-example.caution .banner-label { color: var(--color-caution); }
.banner-example.danger .banner-label { color: var(--color-danger); }
.banner-example.blacklist .banner-label { color: #636366; }

.banner-message {
    color: var(--text-secondary);
}

/* Auth Status Grid */
.auth-status-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.auth-status-item {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

.auth-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.auth-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.auth-result {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
}

.auth-desc {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Auth Example */
.auth-example {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 24px;
}

.auth-example h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.auth-example-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    align-items: center;
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 14px;
}

.auth-label {
    font-weight: 600;
    color: var(--text-color);
}

.auth-value {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
}

.auth-value.pass {
    background: rgba(48, 209, 88, 0.15);
    color: var(--color-safe);
}

.auth-value.fail {
    background: rgba(255, 69, 58, 0.15);
    color: var(--color-danger);
}

/* Responsive History Sections */
@media (max-width: 768px) {
    .history-features {
        grid-template-columns: 1fr;
    }

    .auth-status-grid {
        grid-template-columns: 1fr;
    }

    .history-detail-block {
        padding: 28px 20px;
    }

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

/* --------------------------------------------
   Detection Section
   -------------------------------------------- */
.detection-section {
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-tertiary) 100%);
}

.detection-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 64px;
}

.detection-item {
    text-align: center;
    padding: 28px 16px;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.detection-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.detection-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #5a9ff5 100%);
    color: #ffffff;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.25);
}

.detection-content h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-color);
}

.detection-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.detection-note {
    text-align: center;
    font-size: 14px;
    color: var(--text-tertiary);
    margin-top: 48px;
    padding-top: 28px;
    border-top: 1px solid var(--border-color);
}

/* --------------------------------------------
   Legend Section
   -------------------------------------------- */
.legend-section {
    background: var(--bg-tertiary);
}

.legend-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 64px;
}

.legend-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 16px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color-strong);
    border-top: 3px solid transparent;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.legend-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.legend-card.safe { border-top-color: var(--color-safe); }
.legend-card.caution { border-top-color: var(--color-caution); }
.legend-card.danger { border-top-color: var(--color-danger); }
.legend-card.blacklisted { border-top-color: var(--color-blacklisted); }
.legend-card.conditional { border-top-color: var(--color-info); }

.legend-card .legend-icon {
    font-size: 36px;
    margin-bottom: 16px;
}

.legend-card .legend-label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-color);
}

.legend-card .legend-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.legend-note {
    margin-top: 48px;
    padding: 16px 24px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

/* --------------------------------------------
   Install Section
   -------------------------------------------- */
.install-section {
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.install-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200%;
    height: 100%;
    background: radial-gradient(ellipse at center, var(--accent-light) 0%, transparent 50%);
    pointer-events: none;
}

.install-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin: 64px 0 48px;
    position: relative;
    z-index: 1;
}

.install-step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    max-width: 320px;
    padding: 28px;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.install-number {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #5a9ff5 100%);
    color: #ffffff;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.3);
}

.install-content h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-color);
}

.install-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.install-arrow {
    font-size: 28px;
    color: var(--primary-color);
    font-weight: 300;
}

.install-screenshot {
    margin-bottom: 48px;
    position: relative;
    z-index: 1;
}

.screenshot-placeholder {
    max-width: 560px;
    margin: 0 auto;
    aspect-ratio: 16/10;
    background: var(--bg-tertiary);
    border-radius: var(--radius-xl);
    border: 2px dashed var(--border-color-strong);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    font-size: 16px;
    color: var(--text-tertiary);
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.screenshot-placeholder.hero-screenshot {
    max-width: 100%;
    aspect-ratio: 16/9;
    min-height: 400px;
}

.screenshot-placeholder.wide {
    max-width: 100%;
    aspect-ratio: 21/9;
}

.placeholder-text {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 16px;
    padding: 8px 16px;
    background: var(--accent-light);
    border-radius: var(--radius-sm);
}

.placeholder-memo {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-tertiary);
    line-height: 1.6;
    max-width: 500px;
    padding: 16px;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

/* Screenshot Grid Layouts */
.screenshot-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin: 32px 0;
}

.screenshot-row .screenshot-placeholder {
    max-width: 100%;
    aspect-ratio: 4/3;
}

.screenshot-single {
    margin: 32px 0;
}

.screenshot-single .screenshot-placeholder {
    max-width: 800px;
}

/* Feature section screenshot placeholders */
.feature-image .screenshot-placeholder {
    max-width: 100%;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    border-radius: 0;
    border: none;
    box-shadow: none;
    background: transparent;
}

/* Responsive adjustments for screenshots */
@media (max-width: 768px) {
    .screenshot-row {
        grid-template-columns: 1fr;
    }

    .screenshot-placeholder.hero-screenshot {
        min-height: 280px;
    }

    .placeholder-memo {
        font-size: 12px;
        padding: 12px;
    }
}

.install-cta {
    display: flex;
    justify-content: center;
    gap: 16px;
    position: relative;
    z-index: 1;
}

/* --------------------------------------------
   About Section
   -------------------------------------------- */
.about {
    background: linear-gradient(180deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
}

.about-card {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: 64px;
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
}

.about-title {
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-color);
}

.about-text {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* --------------------------------------------
   FAQ Section
   -------------------------------------------- */
.faq-section {
    background: var(--bg-primary);
}

.faq-list {
    max-width: 680px;
    margin: 64px auto 0;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
}

.faq-question {
    width: 100%;
    padding: 24px 0;
    font-size: 17px;
    font-weight: 600;
    text-align: left;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-color);
    transition: var(--transition-fast);
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-question::after {
    content: '+';
    font-size: 28px;
    font-weight: 300;
    color: var(--text-tertiary);
    transition: var(--transition);
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
    color: var(--primary-color);
}

.faq-answer {
    display: none;
    padding-bottom: 24px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-more {
    text-align: center;
    margin-top: 48px;
}

/* --------------------------------------------
   CTA Section
   -------------------------------------------- */
.cta-section {
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-tertiary) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200%;
    height: 100%;
    background: radial-gradient(ellipse at center bottom, var(--accent-light) 0%, transparent 50%);
    pointer-events: none;
}

.cta-title {
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.025em;
    position: relative;
    z-index: 1;
    color: var(--text-color);
}

.cta-description {
    font-size: 19px;
    color: var(--text-secondary);
    margin-bottom: 48px;
    position: relative;
    z-index: 1;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    position: relative;
    z-index: 1;
}

/* --------------------------------------------
   Mobile Fixed CTA
   -------------------------------------------- */
.mobile-fixed-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 24px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color);
    z-index: 9998;
}

@media (prefers-color-scheme: dark) {
    .mobile-fixed-cta {
        background: rgba(0, 0, 0, 0.9);
    }
}

.mobile-fixed-cta .btn {
    width: 100%;
    min-height: 48px;
}

/* --------------------------------------------
   Page Header
   -------------------------------------------- */
.page-header {
    height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 24px;
    padding-top: var(--header-height);
    text-align: center;
    background: var(--bg-gradient);
    box-sizing: border-box;
}

.page-header .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-title {
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 16px;
    letter-spacing: -0.025em;
    color: var(--text-color);
}

.page-description {
    font-size: 19px;
    color: var(--text-secondary);
    max-width: 540px;
    margin: 0 auto;
}

/* --------------------------------------------
   Content Sections
   -------------------------------------------- */
.content-section {
    padding: 64px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.content-title {
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-color);
}

.content-subtitle {
    font-size: 22px;
    font-weight: 600;
    margin: 40px 0 20px;
    color: var(--text-color);
}

.content-text {
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* Steps */
.steps-list {
    counter-reset: step;
}

.step-item {
    display: flex;
    gap: 24px;
    padding: 28px 0;
    border-bottom: 1px solid var(--border-color);
}

.step-item:last-child {
    border-bottom: none;
}

.step-number {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #5a9ff5 100%);
    color: #ffffff;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.25);
}

.step-content h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-color);
}

.step-content p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Icon Legend (for how-to-use page) */
.icon-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    padding: 28px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    margin: 28px 0;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.icon-legend .legend-icon {
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

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

.icon-legend .legend-icon-pass {
    color: var(--color-safe);
}

.icon-legend .legend-icon-fail {
    color: var(--color-danger);
}

.icon-legend .legend-icon-none {
    color: var(--text-tertiary);
}

.icon-legend .legend-icon-unknown {
    color: var(--color-caution);
}

.icon-legend .legend-text {
    font-size: 15px;
    color: var(--text-secondary);
}

/* Classification Cards */
.classification-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 32px 0;
}

@media (max-width: 1024px) {
    .classification-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.classification-card {
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    padding: 0;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    overflow: hidden;
}

.classification-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.classification-card.safe::before { background: linear-gradient(135deg, var(--color-safe), #2dd4bf); }
.classification-card.caution::before { background: linear-gradient(135deg, var(--color-caution), #fbbf24); }
.classification-card.danger::before { background: linear-gradient(135deg, var(--color-danger), #fb923c); }
.classification-card.blacklisted::before { background: linear-gradient(135deg, var(--color-blacklisted), #64748b); }
.classification-card.conditional::before { background: linear-gradient(135deg, var(--color-info), #60a5fa); }

.classification-card::before {
    content: '';
    display: block;
    height: 4px;
    width: 100%;
}

.classification-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px 20px 16px;
    text-align: center;
}

.classification-icon {
    font-size: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(var(--text-rgb), 0.06);
}

.classification-icon svg {
    width: 32px;
    height: 32px;
}

.classification-card.safe .classification-icon {
    color: var(--color-safe);
    background: rgba(16, 185, 129, 0.1);
}

.classification-card.caution .classification-icon {
    color: var(--color-caution);
    background: rgba(245, 158, 11, 0.1);
}

.classification-card.danger .classification-icon {
    color: var(--color-danger);
    background: rgba(239, 68, 68, 0.1);
}

.classification-card.blacklisted .classification-icon {
    color: var(--color-blacklisted);
    background: rgba(100, 116, 139, 0.1);
}

.classification-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    letter-spacing: -0.02em;
}

.classification-criteria {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
    padding: 0 20px 24px;
}

.classification-criteria li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 12px;
}

.classification-criteria li:last-child {
    margin-bottom: 0;
}

.classification-criteria li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 5px;
    height: 5px;
    background: var(--text-tertiary);
    border-radius: 50%;
    opacity: 0.6;
}

/* Tabs */
.tabs-container {
    margin: 36px 0;
}

.tabs-nav {
    display: flex;
    gap: 4px;
    background: var(--bg-tertiary);
    padding: 6px;
    border-radius: var(--radius-md);
    margin-bottom: 28px;
    overflow-x: auto;
}

.tab-btn {
    flex: 1;
    min-width: max-content;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
}

.tab-btn:hover {
    color: var(--text-color);
}

.tab-btn.active {
    background: var(--bg-primary);
    color: var(--text-color);
    box-shadow: var(--shadow-sm);
}

.tab-content {
    display: none;
}

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

/* Core Features Grid (for settings page) */
.core-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.core-feature-card {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: 44px 32px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-xs);
}

.core-feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.core-feature-icon {
    font-size: 52px;
    margin-bottom: 24px;
}

.core-feature-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 14px;
    color: var(--text-color);
}

.core-feature-description {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* --------------------------------------------
   Form Styles
   -------------------------------------------- */
.form-wrapper {
    max-width: 560px;
    margin: 0 auto;
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: 48px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 28px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-color);
}

.required {
    color: var(--color-danger);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 16px 18px;
    font-size: 17px;
    font-family: inherit;
    border: 1.5px solid var(--border-color-strong);
    border-radius: var(--radius-md);
    background-color: var(--bg-primary);
    color: var(--text-color);
    transition: var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px var(--accent-light);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-tertiary);
}

.form-textarea {
    resize: vertical;
    min-height: 140px;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.form-checkbox input[type="checkbox"] {
    width: 22px;
    height: 22px;
    margin-top: 2px;
    accent-color: var(--primary-color);
}

.checkbox-label {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.form-error {
    display: block;
    font-size: 13px;
    color: var(--color-danger);
    margin-top: 8px;
}

.form-actions {
    margin-top: 36px;
}

.form-result {
    margin-top: 24px;
    padding: 18px;
    border-radius: var(--radius-md);
    text-align: center;
    font-size: 15px;
    font-weight: 500;
}

.form-result.success {
    background: rgba(48, 209, 88, 0.1);
    color: var(--color-safe);
}

.form-result.error {
    background: rgba(255, 69, 58, 0.1);
    color: var(--color-danger);
}

/* --------------------------------------------
   Footer
   -------------------------------------------- */
.footer {
    background: var(--bg-tertiary);
    padding: 64px 0 24px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--border-color);
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 16px;
}

.footer-description {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.footer-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    font-size: 14px;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--text-color);
    opacity: 1;
}

.footer-bottom {
    padding-top: 24px;
    text-align: center;
}

.footer-copyright {
    font-size: 13px;
    color: var(--text-tertiary);
}

/* --------------------------------------------
   Animations
   -------------------------------------------- */
.fade-in {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* JavaScript enabled: start hidden for animation */
.js-enabled .fade-in {
    opacity: 0;
    transform: translateY(30px);
}

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

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

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* --------------------------------------------
   Responsive Design
   -------------------------------------------- */
@media (max-width: 768px) {
    :root {
        --section-padding: 80px;
    }

    /* Header */
    .menu-toggle {
        display: block;
    }

    .header-cta {
        display: none;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--bg-primary);
        padding: 100px 32px 32px;
        transition: var(--transition);
        z-index: 10000;
    }

    .nav.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    .nav-link {
        display: block;
        font-size: 32px;
        font-weight: 600;
        padding: 20px 0;
        color: var(--text-color);
        border-bottom: 1px solid var(--border-color);
        width: 100%;
    }

    .nav-link.active::after {
        display: none;
    }

    /* Mobile Fixed CTA */
    .mobile-fixed-cta {
        display: block;
    }

    main {
        padding-bottom: 100px;
    }

    /* Hero */
    .hero {
        min-height: auto;
        padding: 80px 24px 100px;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-description {
        font-size: 17px;
    }

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

    .hero-trust {
        flex-direction: column;
        gap: 8px;
    }

    .hero-trust .divider {
        display: none;
    }

    /* Page Header */
    .page-header {
        height: 280px;
        padding: 0 24px;
        padding-top: var(--header-height);
    }

    .btn {
        width: 100%;
    }

    /* Sections */
    .section-title {
        font-size: 32px;
    }

    .section-subtitle {
        font-size: 17px;
    }

    /* Problem */
    .problem-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .problem-visual {
        order: -1;
    }

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

    /* Solution */
    .solution-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Features */
    .feature-item {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .feature-item.reverse {
        direction: ltr;
    }

    .feature-title {
        font-size: 28px;
    }

    .feature-description {
        font-size: 16px;
    }

    /* Banner & History Section Layouts */
    .banner-section-layout,
    .history-section-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .banner-screenshot .screenshot-placeholder,
    .history-screenshot .screenshot-placeholder {
        min-height: 280px;
    }

    /* Detection */
    .detection-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .detection-item:last-child {
        grid-column: span 2;
    }

    /* Legend */
    .legend-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .legend-card:last-child {
        grid-column: span 2;
    }

    /* Install */
    .install-steps {
        flex-direction: column;
        gap: 20px;
    }

    .install-arrow {
        transform: rotate(90deg);
    }

    .install-step {
        max-width: none;
        width: 100%;
    }

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

    /* Core Features */
    .core-features-grid {
        grid-template-columns: 1fr;
    }

    /* About */
    .about-card {
        padding: 40px 28px;
    }

    .about-title {
        font-size: 28px;
    }

    /* CTA */
    .cta-title {
        font-size: 36px;
    }

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

    /* Page Header */
    .page-title {
        font-size: 36px;
    }

    /* Content */
    .content-title {
        font-size: 28px;
    }

    .content-subtitle {
        font-size: 20px;
    }

    /* Tabs */
    .tabs-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .tab-btn {
        white-space: nowrap;
    }

    /* Icon Legend */
    .icon-legend {
        flex-direction: column;
        gap: 16px;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-brand {
        max-width: none;
    }

    /* Form */
    .form-wrapper {
        padding: 32px 24px;
    }
}

/* --------------------------------------------
   Utility Classes
   -------------------------------------------- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.hidden { display: none; }
/* Note: .visible class should not override display property - handled by opacity in fade-in animation */

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --------------------------------------------
   Phishing Education Page
   -------------------------------------------- */

/* Intro Section */
.phishing-intro {
    background: var(--bg-primary);
}

.intro-card {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    padding: 48px;
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
}

.intro-icon {
    font-size: 64px;
    flex-shrink: 0;
    color: var(--primary-color);
}

.intro-icon svg {
    width: 64px;
    height: 64px;
}

.intro-content h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 16px;
}

.intro-content p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.intro-stats {
    display: flex;
    gap: 40px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 13px;
    color: var(--text-tertiary);
}

/* Phishing Sections */
.phishing-section {
    background: var(--bg-primary);
}

.phishing-section.alt-bg {
    background: var(--bg-tertiary);
}

.phishing-block {
    position: relative;
    padding-left: 80px;
}

.phishing-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #5a9ff5 100%);
    color: #ffffff;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(0, 113, 227, 0.3);
}

.phishing-title {
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 16px;
}

.phishing-lead {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.phishing-explanation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.explanation-text h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 16px;
}

.explanation-text p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.explanation-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Warning & Info Boxes */
.warning-box,
.info-box {
    display: flex;
    gap: 16px;
    padding: 20px 24px;
    border-radius: var(--radius-md);
    margin-top: 24px;
}

.warning-box {
    background: rgba(255, 69, 58, 0.08);
    border: 1px solid rgba(255, 69, 58, 0.2);
}

.info-box {
    background: rgba(0, 113, 227, 0.08);
    border: 1px solid rgba(0, 113, 227, 0.2);
}

.warning-icon,
.info-icon {
    font-size: 24px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.warning-icon svg {
    color: var(--color-danger);
}

.info-icon svg {
    color: var(--primary-color);
}

.warning-content strong,
.info-content strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
}

.warning-content strong {
    color: var(--color-danger);
}

.info-content strong {
    color: var(--primary-color);
}

.warning-content p,
.info-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Auth Cards */
.auth-explanation {
    margin-top: 48px;
    padding-top: 48px;
    border-top: 1px solid var(--border-color);
}

.auth-explanation h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 16px;
}

.auth-explanation > p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.auth-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.auth-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 28px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.auth-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

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

.auth-card-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 12px;
    color: var(--primary-color);
}

.auth-card-icon svg {
    width: 32px;
    height: 32px;
}

.auth-card h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 4px;
}

.auth-card-full {
    font-size: 12px;
    color: var(--text-tertiary);
}

.auth-card p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Link Examples */
.link-example {
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    padding: 24px;
    margin: 24px 0;
}

.link-example-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
}

.link-example-item.fake {
    background: var(--bg-primary);
}

.link-example-item.real {
    background: rgba(255, 69, 58, 0.1);
}

.link-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    min-width: 100px;
}

.link-example code {
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 14px;
    color: var(--text-color);
}

.link-example-item.real code {
    color: var(--color-danger);
}

.link-example-arrow {
    text-align: center;
    padding: 8px;
    font-size: 14px;
    color: var(--text-tertiary);
}

/* Domain Comparison */
.similar-domain-section,
.shortened-url-section {
    margin-top: 48px;
    padding-top: 48px;
    border-top: 1px solid var(--border-color);
}

.similar-domain-section h3,
.shortened-url-section h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 16px;
}

.similar-domain-section > p,
.shortened-url-section > p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.domain-comparison {
    display: flex;
    gap: 24px;
    margin-bottom: 16px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

.domain-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.domain-label {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
}

.domain-item.real .domain-label {
    background: rgba(48, 209, 88, 0.15);
    color: var(--color-safe);
}

.domain-item.fake .domain-label {
    background: rgba(255, 69, 58, 0.15);
    color: var(--color-danger);
}

.domain-item code {
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 15px;
    color: var(--text-color);
}

.domain-item code .highlight {
    color: var(--color-danger);
    font-weight: 700;
    background: rgba(255, 69, 58, 0.15);
    padding: 2px 4px;
    border-radius: 3px;
}

.domain-note {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-left: auto;
}

/* Shortened URL */
.shortened-example {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    margin: 24px 0;
}

.shortened-before,
.shortened-after {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    flex: 1;
}

.shortened-before {
    background: var(--bg-tertiary);
}

.shortened-after {
    background: var(--bg-primary);
}

.shortened-after.danger {
    background: rgba(255, 69, 58, 0.1);
}

.shortened-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.shortened-before code,
.shortened-after code {
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 13px;
    color: var(--text-color);
    word-break: break-all;
}

.shortened-after.danger code {
    color: var(--color-danger);
}

.shortened-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-tertiary);
    font-size: 13px;
}

.shortened-arrow::before {
    content: '→';
    font-size: 24px;
}

/* Format List */
.format-list {
    list-style: none;
    margin: 20px 0;
}

.format-list li {
    padding: 12px 0;
    padding-left: 24px;
    position: relative;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.format-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 18px;
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
}

.format-list li strong {
    color: var(--text-color);
}

/* Format Cards */
.mail-format-comparison {
    margin-top: 40px;
}

.mail-format-comparison h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 24px;
}

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

.format-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.format-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
}

.format-icon {
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

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

.format-card-header h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
}

.format-card-body {
    padding: 20px;
}

.format-card-body p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.url-display {
    display: block;
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 13px;
    padding: 12px 16px;
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
    color: var(--primary-color);
    margin-bottom: 12px;
}

.url-display.fake-link {
    cursor: pointer;
    text-decoration: underline;
}

.format-note {
    font-size: 12px;
    color: var(--text-tertiary);
}

.format-note.danger {
    color: var(--color-danger);
}

/* External Link List */
.external-link-list {
    list-style: none;
    margin: 24px 0;
}

.external-link-list li {
    display: flex;
    gap: 16px;
    padding: 16px;
    margin-bottom: 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

.link-type-icon {
    font-size: 28px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.link-type-icon svg {
    width: 28px;
    height: 28px;
}

.external-link-list li strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 4px;
}

.external-link-list li p {
    font-size: 13px;
    color: var(--text-tertiary);
    margin: 0;
}

/* Verification Guide */
.verification-guide {
    margin-top: 48px;
    padding-top: 48px;
    border-top: 1px solid var(--border-color);
}

.verification-guide h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 16px;
}

.verification-guide > p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.verify-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.verify-step {
    display: flex;
    gap: 16px;
    padding: 24px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
}

.verify-step-number {
    width: 36px;
    height: 36px;
    background: var(--primary-color);
    color: #ffffff;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    flex-shrink: 0;
}

.verify-step-content h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
}

.verify-step-content p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Summary Section */
.phishing-summary {
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-tertiary) 100%);
}

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

.summary-item {
    text-align: center;
    padding: 32px 24px;
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.summary-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.summary-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.summary-icon svg {
    width: 48px;
    height: 48px;
}

.summary-item h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 12px;
}

.summary-item p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.summary-cta {
    text-align: center;
    padding: 48px;
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}

.summary-cta h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 16px;
}

.summary-cta p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.6;
}

.summary-cta .cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* Responsive Phishing Page */
@media (max-width: 768px) {
    .intro-card {
        flex-direction: column;
        padding: 32px 24px;
        gap: 24px;
    }

    .intro-icon {
        font-size: 48px;
    }

    .intro-stats {
        flex-direction: column;
        gap: 20px;
    }

    .phishing-block {
        padding-left: 0;
        padding-top: 72px;
    }

    .phishing-number {
        top: 0;
        left: 0;
    }

    .phishing-explanation {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .auth-cards {
        grid-template-columns: 1fr;
    }

    .domain-comparison {
        flex-direction: column;
        gap: 12px;
    }

    .shortened-example {
        flex-direction: column;
        gap: 12px;
    }

    .shortened-arrow {
        transform: rotate(90deg);
    }

    .format-cards {
        grid-template-columns: 1fr;
    }

    .verify-steps {
        grid-template-columns: 1fr;
    }

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

    .summary-cta {
        padding: 32px 24px;
    }

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

/* ============================================
   Flowchart (判断基準ページ)
   ============================================ */
.flowchart-container {
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    border-radius: var(--radius-xl);
    padding: 64px 32px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.flowchart-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 48px;
    text-align: center;
    letter-spacing: -0.02em;
}

.flowchart {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    max-width: 900px;
    margin: 0 auto;
}

/* ノード共通 */
.fc-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px 32px;
    background: var(--bg-primary);
    border: 1.5px solid var(--border-color-strong);
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    gap: 4px;
    font-size: 14px;
}

.fc-node:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

/* 開始/終了ノード（角丸長方形） */
.fc-terminal {
    border-radius: var(--radius-full);
    min-width: 200px;
    background: var(--bg-tertiary);
    border-color: var(--border-color-strong);
    color: var(--text-color);
    font-weight: 500;
    padding: 16px 32px;
}

.fc-terminal.fc-blacklisted {
    background: linear-gradient(135deg, var(--color-blacklisted) 0%, #000 100%);
    border-color: var(--color-blacklisted);
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* 処理ノード（長方形） */
.fc-process {
    border-radius: var(--radius-md);
    min-width: 300px;
    border-color: var(--color-info);
    background: linear-gradient(135deg, rgba(10, 132, 255, 0.05) 0%, rgba(10, 132, 255, 0.02) 100%);
}

.fc-process.fc-calculation {
    border-color: #8b5cf6;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.06) 0%, rgba(139, 92, 246, 0.02) 100%);
}

.fc-process.fc-final {
    border-color: var(--color-safe);
    background: linear-gradient(135deg, rgba(48, 209, 88, 0.08) 0%, rgba(48, 209, 88, 0.03) 100%);
}

/* 判断ノード（ひし形風） */
.fc-diamond {
    min-width: 150px;
    min-height: 90px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(255, 69, 58, 0.06) 0%, rgba(255, 69, 58, 0.02) 100%);
    border-color: var(--color-danger);
    padding: 24px 36px;
    font-size: 13px;
    font-weight: 600;
}

.fc-diamond.fc-diamond-caution {
    border-color: var(--color-caution);
    background: linear-gradient(135deg, rgba(255, 159, 10, 0.06) 0%, rgba(255, 159, 10, 0.02) 100%);
}

.fc-diamond.fc-diamond-safe {
    border-color: var(--color-safe);
    background: linear-gradient(135deg, rgba(48, 209, 88, 0.06) 0%, rgba(48, 209, 88, 0.02) 100%);
}

.fc-diamond.fc-diamond-info {
    border-color: var(--color-info);
    background: linear-gradient(135deg, rgba(10, 132, 255, 0.06) 0%, rgba(10, 132, 255, 0.02) 100%);
}

/* データノード（平行四辺形風 → 角丸で代用） */
.fc-data {
    border-radius: var(--radius-sm);
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 600;
    min-width: 140px;
    letter-spacing: -0.01em;
}

.fc-caution-data {
    background: linear-gradient(135deg, rgba(255, 159, 10, 0.12) 0%, rgba(255, 159, 10, 0.08) 100%);
    border-color: var(--color-caution);
    color: var(--color-caution);
}

.fc-safe-data {
    background: linear-gradient(135deg, rgba(48, 209, 88, 0.12) 0%, rgba(48, 209, 88, 0.08) 100%);
    border-color: var(--color-safe);
    color: var(--color-safe);
}

.fc-info-data {
    background: linear-gradient(135deg, rgba(10, 132, 255, 0.12) 0%, rgba(10, 132, 255, 0.08) 100%);
    border-color: var(--color-info);
    color: var(--color-info);
}

/* ステップ番号 */
.fc-step {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
    color: white;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--bg-primary);
    box-shadow: 0 2px 8px rgba(0, 113, 227, 0.3);
    z-index: 2;
}

.fc-diamond .fc-step {
    top: -6px;
}

/* ラベルと詳細 */
.fc-label {
    font-weight: 600;
    color: var(--text-color);
    font-size: 15px;
    letter-spacing: -0.01em;
}

.fc-detail {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
    font-weight: 400;
}

/* 矢印（縦） */
.fc-arrow {
    width: 2.5px;
    height: 32px;
    background: linear-gradient(180deg, var(--border-color-strong) 0%, var(--text-tertiary) 100%);
    position: relative;
    border-radius: 2px;
}

.fc-arrow::after {
    content: '';
    position: absolute;
    bottom: -7px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid var(--text-tertiary);
}

/* 判断グループ（ひし形 + 分岐） */
.fc-decision-group {
    display: flex;
    align-items: center;
    gap: 0;
    position: relative;
    margin: 8px 0;
}

/* YES分岐（右へ） */
.fc-yes-branch {
    display: flex;
    align-items: center;
    gap: 0;
    position: relative;
    margin-left: 16px;
}

.fc-yes-label {
    position: absolute;
    top: -22px;
    left: 24px;
    font-size: 11px;
    font-weight: 700;
    color: var(--color-danger);
    background: var(--bg-primary);
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid var(--color-danger);
}

.fc-arrow-right {
    width: 48px;
    height: 2.5px;
    background: linear-gradient(90deg, var(--color-danger) 0%, rgba(255, 69, 58, 0.6) 100%);
    position: relative;
    border-radius: 2px;
}

.fc-arrow-right::after {
    content: '';
    position: absolute;
    right: -7px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 8px solid var(--color-danger);
}

/* NO分岐ラベル */
.fc-no-label {
    position: absolute;
    bottom: -26px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    font-weight: 700;
    color: var(--text-tertiary);
    background: var(--bg-primary);
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid var(--border-color-strong);
}

/* 結果一覧 */
.fc-results {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    width: 100%;
    max-width: 700px;
    margin: 16px 0;
}

.fc-result-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 13px;
    border: 1.5px solid;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
}

.fc-result-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.fc-result-icon {
    width: 24px;
    height: 24px;
}

.fc-result-blacklisted .fc-result-icon {
    color: var(--color-blacklisted);
}

.fc-result-dangerous .fc-result-icon {
    color: var(--color-danger);
}

.fc-result-caution .fc-result-icon {
    color: var(--color-caution);
}

.fc-result-safe .fc-result-icon {
    color: var(--color-safe);
}

.fc-result-item span:first-child {
    font-size: 24px;
}

.fc-result-blacklisted {
    background: linear-gradient(135deg, rgba(29, 29, 31, 0.08) 0%, rgba(29, 29, 31, 0.04) 100%);
    border-color: var(--color-blacklisted);
    color: var(--text-color);
}

.fc-result-dangerous {
    background: linear-gradient(135deg, rgba(255, 69, 58, 0.12) 0%, rgba(255, 69, 58, 0.06) 100%);
    border-color: var(--color-danger);
    color: var(--color-danger);
}

.fc-result-caution {
    background: linear-gradient(135deg, rgba(255, 159, 10, 0.12) 0%, rgba(255, 159, 10, 0.06) 100%);
    border-color: var(--color-caution);
    color: var(--color-caution);
}

.fc-result-safe {
    background: linear-gradient(135deg, rgba(48, 209, 88, 0.12) 0%, rgba(48, 209, 88, 0.06) 100%);
    border-color: var(--color-safe);
    color: var(--color-safe);
}

/* レスポンシブ */
@media (max-width: 768px) {
    .flowchart-container {
        padding: 40px 20px;
    }

    .flowchart-title {
        font-size: 24px;
        margin-bottom: 36px;
    }

    .fc-decision-group {
        flex-direction: column;
        align-items: center;
        margin: 12px 0;
    }

    .fc-yes-branch {
        flex-direction: column;
        margin-top: 12px;
        margin-left: 0;
    }

    .fc-yes-label {
        position: static;
        margin-bottom: 8px;
    }

    .fc-arrow-right {
        width: 2.5px;
        height: 28px;
        background: linear-gradient(180deg, var(--color-danger) 0%, rgba(255, 69, 58, 0.6) 100%);
    }

    .fc-arrow-right::after {
        right: auto;
        bottom: -7px;
        top: auto;
        left: 50%;
        transform: translateX(-50%);
        border-left: 6px solid transparent;
        border-right: 6px solid transparent;
        border-top: 8px solid var(--color-danger);
        border-bottom: none;
    }

    .fc-no-label {
        position: static;
        margin-top: 12px;
        transform: none;
    }

    .fc-diamond {
        min-width: 120px;
        min-height: 70px;
        padding: 20px 28px;
        font-size: 12px;
    }

    .fc-process {
        min-width: 240px;
        padding: 18px 24px;
    }

    .fc-node {
        padding: 16px 24px;
    }

    .fc-results {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .fc-result-item {
        padding: 14px 16px;
    }

    .fc-phase {
        padding: 20px 16px;
    }
}

/* 凡例 */
.fc-legend {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
    padding: 24px;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    border: 1.5px solid var(--border-color);
    box-shadow: var(--shadow-xs);
}

.fc-legend-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.fc-legend-badge {
    padding: 6px 16px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 700;
    min-width: 100px;
    text-align: center;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.fc-legend-blacklist .fc-legend-badge {
    background: linear-gradient(135deg, var(--color-blacklisted) 0%, #000 100%);
    color: white;
}

.fc-legend-untrusted .fc-legend-badge {
    background: linear-gradient(135deg, var(--color-danger) 0%, #d32f2f 100%);
    color: white;
}

.fc-legend-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    font-weight: 400;
}

/* フェーズ区切り */
.fc-phase {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 32px 20px;
    border-radius: var(--radius-lg);
    position: relative;
    margin: 12px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.fc-phase:hover {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.fc-phase-blacklist {
    background: linear-gradient(135deg, rgba(29, 29, 31, 0.04) 0%, rgba(29, 29, 31, 0.02) 100%);
    border: 2px dashed rgba(29, 29, 31, 0.25);
}

.fc-phase-evaluation {
    background: linear-gradient(135deg, rgba(255, 159, 10, 0.04) 0%, rgba(255, 159, 10, 0.02) 100%);
    border: 2px dashed rgba(255, 159, 10, 0.25);
}

.fc-phase-scoring {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.04) 0%, rgba(139, 92, 246, 0.02) 100%);
    border: 2px dashed rgba(139, 92, 246, 0.25);
}

.fc-phase-label {
    position: absolute;
    top: -14px;
    left: 28px;
    background: var(--bg-primary);
    padding: 5px 16px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.fc-phase-blacklist .fc-phase-label {
    color: var(--color-blacklisted);
    border: 1.5px solid rgba(29, 29, 31, 0.2);
}

.fc-phase-evaluation .fc-phase-label {
    color: var(--color-caution);
    border: 1.5px solid rgba(255, 159, 10, 0.3);
}

.fc-phase-scoring .fc-phase-label {
    color: #8b5cf6;
    border: 1.5px solid rgba(139, 92, 246, 0.3);
}

/* Danger用ひし形 */
.fc-diamond.fc-diamond-danger {
    border-color: var(--color-danger);
    background: linear-gradient(135deg, rgba(255, 69, 58, 0.06) 0%, rgba(255, 69, 58, 0.02) 100%);
}

/* Danger用データノード */
.fc-danger-data {
    background: linear-gradient(135deg, rgba(255, 69, 58, 0.12) 0%, rgba(255, 69, 58, 0.08) 100%);
    border-color: var(--color-danger);
    color: var(--color-danger);
}

/* 矢印の色バリエーション */
.fc-arrow-right.fc-arrow-danger {
    background: linear-gradient(90deg, var(--color-danger) 0%, rgba(255, 69, 58, 0.6) 100%);
}

.fc-arrow-right.fc-arrow-danger::after {
    border-left-color: var(--color-danger);
}

.fc-arrow-right.fc-arrow-safe {
    background: linear-gradient(90deg, var(--color-safe) 0%, rgba(48, 209, 88, 0.6) 100%);
}

.fc-arrow-right.fc-arrow-safe::after {
    border-left-color: var(--color-safe);
}

.fc-arrow-right.fc-arrow-info {
    background: linear-gradient(90deg, var(--color-info) 0%, rgba(10, 132, 255, 0.6) 100%);
}

.fc-arrow-right.fc-arrow-info::after {
    border-left-color: var(--color-info);
}

/* 優先順位テーブル */
.fc-priority-note {
    margin-top: 40px;
    padding: 32px;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    border: 1.5px solid var(--border-color);
    box-shadow: var(--shadow-xs);
}

.fc-priority-note h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.fc-priority-table {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fc-priority-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
}

.fc-priority-row:hover {
    background: var(--bg-tertiary);
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.fc-priority-case {
    font-size: 14px;
    color: var(--text-color);
    font-weight: 500;
}

.fc-priority-result {
    font-size: 13px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    letter-spacing: -0.01em;
}

.fc-priority-black {
    background: linear-gradient(135deg, rgba(29, 29, 31, 0.1) 0%, rgba(29, 29, 31, 0.08) 100%);
    color: var(--color-blacklisted);
    border: 1px solid rgba(29, 29, 31, 0.2);
}

.fc-priority-danger {
    background: linear-gradient(135deg, rgba(255, 69, 58, 0.12) 0%, rgba(255, 69, 58, 0.08) 100%);
    color: var(--color-danger);
    border: 1px solid rgba(255, 69, 58, 0.3);
}

.fc-priority-safe {
    background: linear-gradient(135deg, rgba(48, 209, 88, 0.12) 0%, rgba(48, 209, 88, 0.08) 100%);
    color: var(--color-safe);
    border: 1px solid rgba(48, 209, 88, 0.3);
}

/* 上書き設定の補足 */
.fc-priority-override {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.fc-priority-override-note {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 12px;
}

.fc-priority-override-note strong {
    color: var(--text-color);
    font-weight: 600;
}

.fc-priority-link {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    font-weight: 500;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-fast);
}

.fc-priority-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* セクション間リンクボックス */
.section-link-box {
    padding: 16px 20px;
    background: var(--accent-light);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--primary-color);
}

.section-link-box p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

.section-link-box a {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
}

.section-link-box a:hover {
    text-decoration: underline;
}

/* 結果に小テキスト追加 */
.fc-result-item small {
    font-size: 10px;
    opacity: 0.7;
    display: block;
    margin-top: 2px;
}

/* ダークモード */
@media (prefers-color-scheme: dark) {
    .fc-result-blacklisted {
        background: rgba(245, 245, 247, 0.1);
    }

    .fc-terminal.fc-blacklisted {
        color: #000;
    }

    .fc-phase-blacklist {
        background: rgba(245, 245, 247, 0.02);
        border-color: rgba(245, 245, 247, 0.15);
    }

    .fc-priority-black {
        color: #000;
    }
}

/* レスポンシブ追加 */
@media (max-width: 700px) {
    .fc-legend {
        padding: 16px;
    }

    .fc-legend-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .fc-phase {
        padding: 20px 12px;
    }

    .fc-phase-label {
        font-size: 10px;
        left: 12px;
    }

    .fc-priority-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 16px;
    }

    .fc-priority-row:hover {
        transform: translateX(2px);
    }
}

/* ============================================
   Simple Flow (簡易フロー)
   ============================================ */
.flowchart-simple {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 48px 20px 0;
}

.flowchart-subtitle {
    font-size: 14px;
    color: var(--text-tertiary);
    text-align: center;
    margin-top: -20px;
    margin-bottom: 40px;
}

.simple-flow {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sf-step {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    max-width: 560px;
    padding: 18px 24px;
    background: var(--bg-primary);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    position: relative;
    transition: all 0.2s ease;
}

.sf-step:hover {
    border-color: var(--border-color-strong);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.sf-step-start {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(0, 113, 227, 0.04) 0%, rgba(0, 113, 227, 0.02) 100%);
}

.sf-step-end {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(0, 113, 227, 0.04) 0%, rgba(0, 113, 227, 0.02) 100%);
}

.sf-step-critical {
    border-color: var(--color-blacklisted);
    background: linear-gradient(135deg, rgba(29, 29, 31, 0.04) 0%, rgba(29, 29, 31, 0.02) 100%);
}

.sf-step-warning {
    border-color: var(--color-danger);
    background: linear-gradient(135deg, rgba(255, 69, 58, 0.04) 0%, rgba(255, 69, 58, 0.02) 100%);
}

.sf-step-safe {
    border-color: var(--color-safe);
    background: linear-gradient(135deg, rgba(48, 209, 88, 0.04) 0%, rgba(48, 209, 88, 0.02) 100%);
}

.sf-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: 10px;
    flex-shrink: 0;
}

.sf-icon svg {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
}

.sf-step-start .sf-icon,
.sf-step-end .sf-icon {
    background: rgba(0, 113, 227, 0.1);
}

.sf-step-start .sf-icon svg,
.sf-step-end .sf-icon svg {
    color: var(--primary-color);
}

.sf-step-critical .sf-icon {
    background: rgba(29, 29, 31, 0.1);
}

.sf-step-critical .sf-icon svg {
    color: var(--color-blacklisted);
}

.sf-step-warning .sf-icon {
    background: rgba(255, 69, 58, 0.1);
}

.sf-step-warning .sf-icon svg {
    color: var(--color-danger);
}

.sf-step-safe .sf-icon {
    background: rgba(48, 209, 88, 0.1);
}

.sf-step-safe .sf-icon svg {
    color: var(--color-safe);
}

.sf-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.sf-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
}

.sf-desc {
    font-size: 12px;
    color: var(--text-tertiary);
}

.sf-badge {
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    padding: 4px 10px;
    font-size: 10px;
    font-weight: 700;
    border-radius: 6px;
    letter-spacing: 0.02em;
}

.sf-badge-block {
    background: #1d1d1f;
    color: white;
}

.sf-badge-danger {
    background: var(--color-danger);
    color: white;
}

.sf-connector {
    width: 2px;
    height: 24px;
    background: linear-gradient(180deg, var(--border-color-strong) 0%, var(--border-color) 100%);
    position: relative;
}

.sf-connector::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid var(--border-color);
}

.sf-results {
    display: flex;
    gap: 10px;
    margin-top: 32px;
    flex-wrap: wrap;
    justify-content: center;
}

.sf-result {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: 1.5px solid;
}

.sf-result-icon {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

.sf-result-safe {
    background: rgba(48, 209, 88, 0.08);
    border-color: var(--color-safe);
    color: var(--color-safe);
}

.sf-result-caution {
    background: rgba(255, 159, 10, 0.08);
    border-color: var(--color-caution);
    color: var(--color-caution);
}

.sf-result-dangerous {
    background: rgba(255, 69, 58, 0.08);
    border-color: var(--color-danger);
    color: var(--color-danger);
}

.sf-result-blacklisted {
    background: rgba(29, 29, 31, 0.08);
    border-color: var(--color-blacklisted);
    color: var(--color-blacklisted);
}

/* Simple Flow レスポンシブ */
@media (max-width: 500px) {
    .sf-step {
        padding: 12px 16px;
        gap: 12px;
    }

    .sf-icon {
        width: 36px;
        height: 36px;
    }

    .sf-icon svg {
        width: 18px;
        height: 18px;
    }

    .sf-title {
        font-size: 13px;
    }

    .sf-desc {
        font-size: 11px;
    }

    .sf-badge {
        font-size: 9px;
        padding: 3px 8px;
        right: -6px;
    }

    .sf-connector {
        height: 20px;
    }

    .sf-results {
        gap: 8px;
    }

    .sf-result {
        padding: 6px 12px;
        font-size: 11px;
    }
}

/* Simple Flow ダークモード */
@media (prefers-color-scheme: dark) {
    .sf-step-critical .sf-icon {
        background: rgba(245, 245, 247, 0.1);
    }

    .sf-step-critical .sf-icon svg {
        color: var(--color-blacklisted);
    }

    .sf-result-blacklisted {
        background: rgba(245, 245, 247, 0.08);
    }

    .sf-badge-block {
        background: #f5f5f7;
        color: #1d1d1f;
    }
}

/* Priority Section (リストの優先順位) */
.priority-section {
    margin-top: 48px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
    padding-bottom: 40px;
}

.priority-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 20px;
    text-align: center;
}

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

.priority-card {
    background: var(--bg-primary);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: center;
    transition: all 0.2s ease;
}

.priority-card:hover {
    border-color: var(--border-color-strong);
    box-shadow: var(--shadow-sm);
}

.priority-vs {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
}

.priority-list {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    white-space: nowrap;
}

.priority-list-black {
    background: #1d1d1f;
    color: white;
}

.priority-list-white {
    background: var(--color-safe);
    color: white;
}

.priority-list-danger {
    background: var(--color-danger);
    color: white;
}

.priority-list-trusted {
    background: var(--primary-color);
    color: white;
}

.priority-vs-text {
    font-size: 10px;
    font-weight: 500;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.priority-winner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
}

.priority-winner svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.priority-winner-black {
    background: rgba(29, 29, 31, 0.08);
    color: #1d1d1f;
}

.priority-winner-danger {
    background: rgba(255, 69, 58, 0.08);
    color: var(--color-danger);
}

.priority-winner-neutral {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

@media (max-width: 600px) {
    .priority-cards {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .priority-card {
        padding: 14px;
    }

    .priority-vs {
        flex-direction: row;
        gap: 8px;
        margin-bottom: 12px;
    }

    .priority-list {
        font-size: 10px;
        padding: 3px 8px;
    }
}

@media (prefers-color-scheme: dark) {
    .priority-list-black {
        background: #f5f5f7;
        color: #1d1d1f;
    }

    .priority-winner-black {
        background: rgba(245, 245, 247, 0.1);
        color: #f5f5f7;
    }
}

/* ============================================
   Language Switcher
   ============================================ */
.lang-switcher {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 100;
    display: flex;
    gap: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 14px;
    padding: 3px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.lang-switcher a {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 11px;
    transition: var(--transition-fast);
}

.lang-switcher a:hover {
    color: var(--text-color);
    background: var(--bg-tertiary);
}

.lang-switcher a.active {
    color: var(--primary-color);
    background: var(--accent-light);
}

.lang-switcher .lang-flag {
    font-size: 12px;
    line-height: 1;
}

@media (max-width: 768px) {
    .lang-switcher {
        top: 70px;
        right: 12px;
        padding: 2px;
    }

    .lang-switcher a {
        padding: 4px 8px;
        font-size: 10px;
    }

    .lang-switcher .lang-flag {
        font-size: 11px;
    }
}

/* ============================================
   Internal Info Box (非公開情報)
   ============================================ */
.internal-info-box {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 24px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    border: 1px dashed var(--border-color);
    margin: 20px 0;
}

.internal-info-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: var(--text-tertiary);
}

.internal-info-icon svg {
    width: 100%;
    height: 100%;
}

.internal-info-content strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.internal-info-content p {
    font-size: 13px;
    color: var(--text-tertiary);
    line-height: 1.6;
    margin: 0;
}
