/* ==================== Reset & Base ==================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; background: #f5f7fa; color: #1a2332; line-height: 1.6; }
a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ==================== Top Navigation ==================== */
.top-nav { background: #fff; border-bottom: 1px solid #e2e8f0; padding: 0 40px; display: flex; align-items: center; justify-content: space-between; height: 64px; position: sticky; top: 0; z-index: 100; }
.top-nav .logo { display: flex; align-items: center; gap: 12px; }
.top-nav .logo-icon { width: 40px; height: 40px; background: linear-gradient(135deg, #102d4d, #1e556d); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 14px; }
.top-nav .logo-text h1 { font-size: 18px; font-weight: 700; color: #1a2332; }
.top-nav .logo-text p { font-size: 12px; color: #64748b; margin-top: -2px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: #475569; font-size: 14px; font-weight: 500; text-decoration: none; }
.nav-links a:hover { color: #1a2332; }
.demo-btn { background: #1e556d; color: #fff; border: none; padding: 10px 24px; border-radius: 6px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit; transition: background 0.2s; }
.demo-btn:hover { background: #102d4d; }
.demo-cta { display: flex; align-items: center; justify-content: space-between; background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 8px; padding: 24px 28px; margin-bottom: 32px; }
.demo-cta h3 { font-size: 16px; font-weight: 600; color: #1e3a5f; margin-bottom: 4px; }
.demo-cta p { font-size: 14px; color: #475569; margin: 0; }

/* Modal */
.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; z-index: 1000; }
.modal { background: #fff; border-radius: 12px; width: 440px; max-width: 90vw; max-height: 90vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,0.15); }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid #e2e8f0; }
.modal-header h3 { font-size: 18px; font-weight: 600; color: #1a2332; margin: 0; }
.modal-close { background: none; border: none; font-size: 24px; color: #94a3b8; cursor: pointer; padding: 0; line-height: 1; }
.modal-close:hover { color: #1a2332; }
#demoForm, #demoSuccess { padding: 24px; }
.modal-field { margin-bottom: 16px; }
.modal-field label { display: block; font-size: 13px; font-weight: 600; color: #475569; margin-bottom: 6px; }
.modal-field input, .modal-field select { width: 100%; padding: 10px 12px; border: 1px solid #e2e8f0; border-radius: 6px; font-size: 14px; font-family: inherit; }
.modal-field input:focus, .modal-field select:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.modal-error { background: #fee2e2; color: #991b1b; padding: 10px 14px; border-radius: 6px; font-size: 13px; }
.nav-status { display: flex; align-items: center; gap: 6px; font-size: 14px; color: #475569; }
.nav-status .dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; display: inline-block; }

/* Breadcrumb */
.breadcrumb { max-width: 1200px; margin: 0 auto; padding: 12px 40px; font-size: 13px; color: #94a3b8; }
.breadcrumb a { color: #64748b; text-decoration: none; }
.breadcrumb a:hover { color: #2563eb; text-decoration: underline; }
.breadcrumb span { margin: 0 6px; }
.breadcrumb-current { color: #1a2332; font-weight: 500; }
.nav-status .dot.offline { background: #ef4444; }

/* ==================== Hero Section ==================== */
.hero { background: linear-gradient(135deg, #102d4d, #1e556d, #193e65); padding: 48px 40px; text-align: center; color: #fff; min-height: 180px; display: flex; flex-direction: column; justify-content: center; }
.hero-eyebrow { font-size: 13px; text-transform: uppercase; letter-spacing: 2px; color: rgba(255,255,255,0.5); margin-bottom: 16px; }
.hero h2 { font-size: 40px; font-weight: 700; margin-bottom: 16px; letter-spacing: -0.5px; }
.hero > p { font-size: 17px; color: rgba(255,255,255,0.65); max-width: 640px; margin: 0 auto; line-height: 1.6; }
.hero-actions { display: flex; gap: 14px; justify-content: center; margin-top: 32px; }
/* Hero Journey Steps */
.hero-journey { display: flex; align-items: stretch; justify-content: center; gap: 0; margin-top: 40px; max-width: 900px; margin-left: auto; margin-right: auto; }
.hero-journey-step { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 24px 28px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); border-radius: 10px; color: #fff; text-decoration: none; transition: all 0.25s; flex: 1; min-width: 0; }
.hero-journey-step:hover { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.4); text-decoration: none; transform: translateY(-2px); }
.hero-journey-num { width: 32px; height: 32px; background: rgba(255,255,255,0.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.hero-journey-title { font-size: 15px; font-weight: 600; display: block; margin-bottom: 6px; }
.hero-journey-desc { font-size: 13px; color: rgba(255,255,255,0.55); line-height: 1.4; }
.hero-journey-arrow { display: flex; align-items: center; color: rgba(255,255,255,0.3); font-size: 24px; padding: 0 12px; }
@media (max-width: 768px) {
    .hero-journey { flex-direction: column; gap: 12px; }
    .hero-journey-arrow { transform: rotate(90deg); padding: 4px 0; justify-content: center; }
}

/* ==================== Content Area ==================== */
.content { max-width: 1200px; margin: 0 auto; padding: 48px 40px; }
.content h2 { font-size: 28px; font-weight: 700; color: #1a2332; margin-bottom: 24px; }

/* ==================== Service Cards Grid ==================== */
.service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 20px; margin-bottom: 48px; }
.service-card { background: #fff; border: 1px solid #e2e8f0; border-left: 4px solid #1e3a5f; border-radius: 8px; padding: 24px 28px; transition: all 0.2s; }
.service-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); border-left-color: #2563eb; }
.service-card h3 { font-size: 17px; font-weight: 600; color: #1a2332; margin-bottom: 4px; }
.service-card .card-underline { width: 40px; height: 3px; background: #1e3a5f; border-radius: 2px; margin-bottom: 12px; }
.service-card .card-algo { font-size: 13px; color: #64748b; margin-bottom: 12px; }
.service-card .card-algo .tag { background: #eff6ff; color: #2563eb; padding: 2px 10px; border-radius: 12px; font-size: 12px; font-weight: 500; }
.service-card .card-status { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.service-card .status-dot { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #64748b; }
.service-card .status-dot::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #d1d5db; display: inline-block; }
.service-card .status-dot.pass::before { background: #22c55e; }
.service-card .status-dot.fail::before { background: #ef4444; }
.explore-btn { background: #1e3a5f; color: #fff; padding: 7px 18px; border-radius: 6px; font-size: 13px; font-weight: 500; text-decoration: none; transition: background 0.2s; }
.explore-btn:hover { background: #2563eb; text-decoration: none; }

/* ==================== Migration at a Glance ==================== */
.glance-section { margin-bottom: 40px; }
.glance-section h2 { margin-bottom: 8px; }
.glance-subtitle { color: #64748b; font-size: 15px; margin-bottom: 24px; }
.glance-risk { display: flex; gap: 16px; background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px; padding: 18px 22px; margin-bottom: 24px; align-items: flex-start; }
.glance-risk-icon { font-size: 28px; flex-shrink: 0; }
.glance-risk strong { color: #92400e; display: block; margin-bottom: 4px; font-size: 15px; }
.glance-risk p { color: #78350f; font-size: 14px; margin: 0; line-height: 1.5; }
.glance-table-wrapper { overflow-x: auto; margin-bottom: 20px; }
.glance-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; overflow: hidden; }
.glance-table th { background: #f8fafc; padding: 12px 16px; text-align: left; font-size: 12px; font-weight: 600; color: #64748b; text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 2px solid #e2e8f0; }
.glance-table td { padding: 14px 16px; border-bottom: 1px solid #f1f5f9; font-size: 14px; }
.glance-old { color: #94a3b8; }
.glance-arrow { color: #2563eb; font-size: 18px; font-weight: 700; text-align: center; width: 30px; }
.glance-new { color: #166534; }
.glance-new strong { font-weight: 700; }
.glance-impact { color: #475569; font-size: 13px; }
/* Stack Change Cards */
.stack-changes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 24px; }
@media (max-width: 900px) { .stack-changes { grid-template-columns: 1fr; } }
.stack-change-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; overflow: hidden; }
.stack-change-header { display: flex; align-items: center; gap: 10px; padding: 12px 18px; background: #f8fafc; border-bottom: 1px solid #e2e8f0; }
.stack-change-label { font-size: 12px; color: #94a3b8; }
.stack-change-body { display: flex; align-items: center; padding: 16px 18px; gap: 12px; }
.stack-change-from, .stack-change-to { flex: 1; }
.stack-change-title { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; color: #94a3b8; margin-bottom: 4px; }
.stack-change-from .stack-change-algo { display: block; color: #94a3b8; font-size: 14px; margin-bottom: 2px; }
.stack-change-risk { display: block; font-size: 11px; color: #94a3b8; font-style: italic; }
.stack-change-to .stack-change-algo { display: block; color: #166534; font-size: 14px; margin-bottom: 2px; }
.stack-change-standard { display: block; font-size: 11px; color: #2563eb; }
.stack-change-arrow { color: #2563eb; font-size: 20px; font-weight: 700; flex-shrink: 0; }
.stack-change-example { padding: 10px 18px; background: #f8fafc; border-top: 1px solid #f1f5f9; font-size: 12px; color: #64748b; }

.glance-unchanged { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 8px; padding: 18px 22px; margin-bottom: 24px; }
.glance-unchanged h4 { color: #166534; font-size: 14px; margin-bottom: 12px; }
.glance-unchanged-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.glance-unchanged-grid span { background: #dcfce7; color: #166534; padding: 5px 14px; border-radius: 20px; font-size: 13px; font-weight: 500; }
.glance-note { background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px; padding: 18px 22px; margin-bottom: 24px; }
.glance-note h4 { color: #92400e; font-size: 14px; margin-bottom: 12px; }
.glance-next { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .glance-next { grid-template-columns: 1fr; } }
.glance-next-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 20px; text-decoration: none; color: inherit; transition: all 0.2s; }
.glance-next-card:hover { border-color: #2563eb; box-shadow: 0 2px 8px rgba(0,0,0,0.06); text-decoration: none; }
.glance-next-card strong { color: #1a2332; display: block; margin-bottom: 4px; font-size: 15px; }
.glance-next-card p { color: #64748b; font-size: 13px; margin: 0 0 10px; }
.glance-next-card span { color: #2563eb; font-size: 13px; font-weight: 500; }

/* ==================== PQC Layers ==================== */
.pqc-layers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 32px; }
@media (max-width: 900px) { .pqc-layers { grid-template-columns: 1fr; } }
.pqc-layer { background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 24px 28px; display: flex; flex-direction: column; }
.pqc-layer:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.pqc-layer-header { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.pqc-layer-header h3 { font-size: 16px; font-weight: 600; color: #1a2332; margin: 0; }
.pqc-layer-badge { padding: 4px 14px; border-radius: 4px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.pqc-layer-badge.transport { background: #dbeafe; color: #1e40af; }
.pqc-layer-badge.auth { background: #dcfce7; color: #166534; }
.pqc-layer-badge.app { background: #fef3c7; color: #92400e; }

/* FIPS Cards */
.fips-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 28px; }
@media (max-width: 900px) { .fips-cards { grid-template-columns: 1fr; } }
.fips-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 0; overflow: hidden; }
.fips-card-header { padding: 10px 20px; font-size: 13px; font-weight: 700; letter-spacing: 0.5px; }
.fips-card-header.fips-203 { background: #dbeafe; color: #1e40af; }
.fips-card-header.fips-204 { background: #dcfce7; color: #166534; }
.fips-card-header.fips-205 { background: #fef3c7; color: #92400e; }
.fips-card h4 { padding: 16px 20px 0; font-size: 18px; color: #1a2332; margin: 0; }
.fips-card-full { padding: 2px 20px 0; font-size: 12px; color: #94a3b8; margin: 0; }
.fips-card > p:last-of-type { padding: 8px 20px 0; font-size: 14px; color: #475569; line-height: 1.5; margin: 0; }
.fips-card-use { padding: 14px 20px 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.fips-card-use span { background: #f1f5f9; color: #475569; padding: 4px 10px; border-radius: 4px; font-size: 12px; }
.fips-qudo-badge { background: #1e3a5f; color: #fff; padding: 2px 8px; border-radius: 3px; font-size: 10px; font-weight: 700; vertical-align: middle; margin-left: 6px; letter-spacing: 0.5px; }
.fips-card-variants { padding: 4px 20px; font-size: 12px; color: #64748b; }
.pqc-layer p { color: #475569; font-size: 14px; margin: 0 0 14px; line-height: 1.6; flex: 1; }
.pqc-layer-migration { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; padding: 10px 14px; background: #f8fafc; border-radius: 6px; }
.pqc-layer-classical { color: #94a3b8; font-size: 13px; font-weight: 500; }
.pqc-layer-arrow { color: #64748b; font-size: 18px; }
.pqc-layer-quantum { color: #166534; font-size: 13px; font-weight: 700; }
.pqc-layer-detail { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px solid #f1f5f9; }
.pqc-layer-algo { display: flex; align-items: center; gap: 10px; }
.pqc-layer-fips { font-size: 12px; color: #94a3b8; }
.pqc-layer-where { font-size: 13px; color: #64748b; }
.pqc-layer-services { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; padding-top: 12px; border-top: 1px solid #f1f5f9; }
.pqc-layer-svc { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; background: #f8fafc; border-radius: 6px; font-size: 13px; }
.pqc-layer-svc strong { color: #1a2332; }
.pqc-layer-svc span { color: #64748b; font-size: 12px; }

/* ==================== Main Sections ==================== */
.main-section { margin-bottom: 48px; }
.main-section-header { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.main-section-num { width: 36px; height: 36px; background: #1e3a5f; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; flex-shrink: 0; margin-top: 2px; }
.main-section-header h2 { margin-bottom: 4px; }
.nav-active { font-weight: 600 !important; color: #1e3a5f !important; }
.migration-heading { font-size: 18px; font-weight: 600; color: #1a2332; margin: 0 0 16px; }

/* Discover Grid */
.discover-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 32px; }
@media (max-width: 900px) { .discover-grid { grid-template-columns: 1fr; } }
/* Home Pillars */
.home-pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 40px; }
@media (max-width: 900px) { .home-pillars { grid-template-columns: 1fr; } }
.home-pillar { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 28px; text-decoration: none; color: inherit; transition: all 0.2s; display: flex; flex-direction: column; }
.home-pillar:hover { box-shadow: 0 6px 16px rgba(0,0,0,0.08); border-color: #2563eb; text-decoration: none; transform: translateY(-2px); }
.home-pillar-num { width: 32px; height: 32px; background: #1e3a5f; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; margin-bottom: 14px; }
.home-pillar h3 { font-size: 18px; font-weight: 600; color: #1a2332; margin-bottom: 8px; }
.home-pillar p { font-size: 14px; color: #64748b; line-height: 1.5; flex: 1; margin-bottom: 14px; }
.home-pillar-tools { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.home-pillar-tools span { background: #f1f5f9; color: #475569; padding: 4px 10px; border-radius: 4px; font-size: 12px; }
.home-pillar-action { font-size: 14px; font-weight: 500; color: #2563eb; }

/* Explore Features */
.explore-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 32px; }
@media (max-width: 900px) { .explore-features { grid-template-columns: repeat(2, 1fr); } }
.explore-feature { background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 18px; text-align: center; }
.explore-feature strong { display: block; font-size: 14px; color: #1a2332; margin-bottom: 4px; }
.explore-feature p { font-size: 13px; color: #64748b; margin: 0; }

.discover-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 28px; text-decoration: none; color: inherit; transition: all 0.2s; display: flex; flex-direction: column; }
.discover-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); border-color: #2563eb; text-decoration: none; }
.discover-card-icon { font-size: 32px; margin-bottom: 12px; }
.discover-card h3 { font-size: 17px; font-weight: 600; color: #1a2332; margin-bottom: 8px; }
.discover-card p { font-size: 14px; color: #64748b; line-height: 1.5; flex: 1; margin-bottom: 16px; }
.discover-card-action { font-size: 14px; font-weight: 500; color: #2563eb; }

/* Support Grid */
.support-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .support-grid { grid-template-columns: 1fr; } }
.support-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 24px; }
.support-card h3 { font-size: 16px; font-weight: 600; color: #1a2332; margin-bottom: 8px; }
.support-card p { font-size: 14px; color: #64748b; margin-bottom: 12px; line-height: 1.5; }
.support-card a { font-size: 14px; color: #2563eb; font-weight: 500; }

/* ==================== Algorithm Info Cards ==================== */
.algo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 32px; }
@media (max-width: 900px) { .algo-grid { grid-template-columns: 1fr; } }
.algo-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 28px; }
.algo-card-icon { font-size: 32px; margin-bottom: 12px; }
.algo-card h3 { font-size: 17px; font-weight: 600; color: #1a2332; margin-bottom: 8px; }
.algo-card p { font-size: 14px; color: #64748b; margin-bottom: 12px; line-height: 1.5; }
.tag { background: #eff6ff; color: #2563eb; padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 500; display: inline-block; }

/* FIPS Standards Bar */
.fips-bar { display: flex; align-items: center; justify-content: center; gap: 0; background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 16px 0; margin-bottom: 48px; }
.fips-item { text-align: center; padding: 0 32px; }
.fips-item strong { display: block; font-size: 14px; color: #1e3a5f; }
.fips-item span { font-size: 13px; color: #64748b; }
.fips-divider { width: 1px; height: 32px; background: #e2e8f0; }

/* Section Header */
.section-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 24px; padding-top: 16px; }
.section-header h2 { margin-bottom: 4px; }
.section-subtitle { font-size: 14px; color: #64748b; margin: 0; }
.section-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.section-meta { font-size: 13px; color: #94a3b8; }

/* ==================== Controls ==================== */
.controls { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; align-items: center; }
.controls button, .btn { background: #1e3a5f; color: #fff; border: none; padding: 10px 24px; border-radius: 6px; cursor: pointer; font-family: inherit; font-size: 14px; font-weight: 500; transition: all 0.2s; }
.controls button:hover, .btn:hover { background: #2563eb; }
.btn-outline { background: #fff; color: #475569; border: 1px solid #e2e8f0; }
.btn-outline:hover { background: #f8fafc; border-color: #cbd5e1; }
#lastRun { color: #94a3b8; font-size: 13px; margin-left: auto; }

/* ==================== Results Table ==================== */
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 8px; overflow: hidden; border: 1px solid #e2e8f0; }
thead { background: #f8fafc; }
th { padding: 12px 20px; text-align: left; font-size: 12px; font-weight: 600; color: #64748b; text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 1px solid #e2e8f0; }
td { padding: 14px 20px; font-size: 14px; color: #334155; border-bottom: 1px solid #f1f5f9; }
tbody tr:hover { background: #f8fafc; }
.status { padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.status.green, .pass { background: #dcfce7; color: #166534; }
.status.red, .fail { background: #fee2e2; color: #991b1b; }
.status.gray { background: #f1f5f9; color: #64748b; }
.spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid #e2e8f0; border-top-color: #2563eb; border-radius: 50%; animation: spin 0.8s linear infinite; margin-right: 8px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ==================== Service Detail Page ==================== */
.header-row { display: flex; align-items: center; gap: 20px; max-width: 1200px; margin: 0 auto; padding: 20px 40px; }
.header-row > div { flex: 1; }
.back-btn { color: #475569; font-size: 14px; border: 1px solid #e2e8f0; padding: 8px 16px; border-radius: 6px; transition: all 0.2s; text-decoration: none; background: #fff; }
.back-btn:hover { background: #f8fafc; text-decoration: none; }
.status-badge { padding: 6px 16px; border-radius: 20px; font-size: 13px; font-weight: 600; }
.status-badge.online { background: #dcfce7; color: #166534; }
.status-badge.offline { background: #fee2e2; color: #991b1b; }

/* Tabs */
.tabs { display: flex; gap: 0; border-bottom: 2px solid #e2e8f0; max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.tab { background: transparent; color: #64748b; border: none; padding: 14px 24px; cursor: pointer; font-family: inherit; font-size: 14px; font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all 0.2s; }
.tab:hover { color: #1a2332; }
.tab.active { color: #2563eb; border-bottom-color: #2563eb; }
.tab-content { display: none; max-width: 1200px; margin: 0 auto; padding: 32px 40px; }
.tab-content.active { display: block; }

/* Detail Grid & Cards */
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
@media (max-width: 900px) { .detail-grid { grid-template-columns: 1fr; } }
.detail-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 28px; }
.detail-card h3 { font-size: 16px; font-weight: 600; color: #1a2332; margin-bottom: 16px; }
.detail-card h4 { color: #1a2332; margin: 16px 0 8px; font-size: 15px; }
.detail-card p { color: #64748b; font-size: 14px; }
.pqc-highlight { border-left: 4px solid #2563eb; }
.info-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid #f1f5f9; font-size: 14px; }
.info-row:last-child { border-bottom: none; }
.info-row .label { color: #64748b; }
.info-row code { color: #2563eb; font-size: 13px; background: #eff6ff; padding: 2px 8px; border-radius: 4px; }
.algo-note { color: #64748b; font-size: 13px; margin-top: 8px; font-style: italic; }
.algo-detail-row { padding: 16px 0; border-bottom: 1px solid #f1f5f9; }
.algo-detail-row:last-child { border-bottom: none; }

/* PQC Usage Items */
.pqc-usage-item { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid #f1f5f9; }
.pqc-usage-item:last-child { border-bottom: none; }
.pqc-icon { font-size: 24px; }
.pqc-usage-item strong { color: #1a2332; display: block; margin-bottom: 4px; }
.pqc-usage-item p { margin-bottom: 6px; }

/* ==================== API Tester ==================== */
.api-tester { background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; margin-bottom: 16px; overflow: hidden; }
.api-header { display: flex; align-items: center; gap: 12px; padding: 14px 24px; background: #f8fafc; border-bottom: 1px solid #e2e8f0; }
.method-badge { padding: 4px 12px; border-radius: 4px; font-size: 12px; font-weight: 700; font-family: 'SF Mono', Consolas, monospace; }
.method-badge.GET { background: #dcfce7; color: #166534; }
.method-badge.POST { background: #dbeafe; color: #1e40af; }
.method-badge.DELETE { background: #fee2e2; color: #991b1b; }
.api-header code { color: #1a2332; font-size: 14px; flex: 1; }
.api-desc { color: #64748b; font-size: 13px; }
.api-body { padding: 24px; }
.api-pqc-note { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 6px; padding: 10px 16px; margin-bottom: 16px; font-size: 13px; color: #1e40af; display: flex; align-items: center; gap: 8px; }
.request-section { margin-bottom: 16px; }
.request-section label, .response-section label { display: block; color: #64748b; font-size: 12px; text-transform: uppercase; margin-bottom: 6px; font-weight: 600; letter-spacing: 0.5px; }
.api-request { width: 100%; background: #f8fafc; color: #1a2332; border: 1px solid #e2e8f0; border-radius: 6px; padding: 12px; font-family: 'SF Mono', Consolas, monospace; font-size: 13px; resize: vertical; }
.api-request:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.exec-btn { background: #1e556d; color: #fff; border: none; padding: 10px 28px; border-radius: 6px; cursor: pointer; font-family: inherit; font-size: 14px; font-weight: 600; transition: background 0.2s; }
.exec-btn:hover { background: #102d4d; }
.scan-btn { padding: 14px 32px; background: #fff; color: #1a2332; border-radius: 8px; font-size: 15px; font-weight: 700; position: relative; transition: all 0.25s ease; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.scan-btn:hover { background: #e0f2fe; color: #0c4a6e; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37,99,235,0.3); }
.scan-btn:active { transform: translateY(0); box-shadow: 0 2px 6px rgba(37,99,235,0.2); }
.copy-btn { background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; padding: 4px 12px; border-radius: 4px; font-size: 12px; cursor: pointer; margin-left: 8px; font-family: inherit; transition: all 0.2s; }
.copy-btn:hover { background: #e2e8f0; }
.response-section { margin-top: 20px; }
.response-meta { display: flex; gap: 16px; align-items: center; margin-bottom: 12px; }
.resp-status { font-weight: 600; }
.resp-latency { color: #64748b; font-size: 13px; }
.api-response { background: #1a2332; color: #a5f3fc; border-radius: 6px; padding: 16px; font-family: 'SF Mono', Consolas, monospace; font-size: 13px; overflow-x: auto; max-height: 300px; overflow-y: auto; white-space: pre-wrap; word-break: break-all; }

/* PQC Visibility Panel */
.pqc-visibility { margin-top: 16px; }
.pqc-badge { border-radius: 6px; padding: 12px 16px; font-size: 13px; margin-bottom: 8px; }
.pqc-badge.transport { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }
.pqc-badge.application { background: #dcfce7; border: 1px solid #86efac; color: #166534; }
.pqc-op-badge { background: #dbeafe; color: #1e40af; padding: 3px 10px; border-radius: 12px; font-size: 12px; margin-left: 6px; font-weight: 500; }
.pqc-message { background: #f8fafc; border-left: 3px solid #2563eb; padding: 10px 16px; margin-top: 8px; font-size: 13px; color: #475569; }
.pqc-provider { margin-top: 8px; font-size: 12px; color: #94a3b8; }

/* Code Block */
.code-block { background: #1e556d; border-radius: 6px; padding: 16px; font-family: 'SF Mono', Consolas, monospace; font-size: 13px; color: #e2e8f0; overflow-x: auto; white-space: pre; }

/* ==================== Integration Docs ==================== */
.doc-toc-link { background: #eff6ff; color: #1e40af; padding: 6px 14px; border-radius: 6px; font-size: 13px; font-weight: 500; text-decoration: none; transition: background 0.2s; }
.doc-toc-link:hover { background: #dbeafe; text-decoration: none; }
.doc-highlight-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 16px 0; }
@media (max-width: 900px) { .doc-highlight-grid { grid-template-columns: 1fr; } }
.doc-highlight { display: flex; gap: 14px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 16px; }
.doc-highlight-icon { font-size: 28px; }
.doc-highlight strong { color: #1a2332; display: block; margin-bottom: 4px; font-size: 14px; }
.doc-highlight p { color: #64748b; font-size: 13px; margin: 0; }
.doc-why-box { background: #fffbeb; border: 1px solid #fde68a; border-radius: 6px; padding: 14px 18px; margin-top: 16px; font-size: 13px; color: #92400e; }
.doc-callout { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 6px; padding: 12px 16px; margin-top: 12px; font-size: 13px; color: #1e40af; }
.doc-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.doc-table th { background: #f8fafc; padding: 10px 16px; text-align: left; font-size: 12px; font-weight: 600; color: #64748b; text-transform: uppercase; border-bottom: 2px solid #e2e8f0; }
.doc-table td { padding: 10px 16px; font-size: 14px; color: #334155; border-bottom: 1px solid #f1f5f9; }
.doc-table code { background: #f1f5f9; padding: 2px 6px; border-radius: 3px; font-size: 13px; }
.doc-recommended { background: #dcfce7; }
.doc-step { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid #f1f5f9; }
.doc-step:last-child { border-bottom: none; }
.doc-step-num { width: 36px; height: 36px; background: #1e3a5f; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; flex-shrink: 0; }
.doc-step h4 { margin-top: 0; margin-bottom: 8px; }
.doc-step p { margin-bottom: 10px; }
.doc-step .code-block { margin-top: 8px; }
.doc-code-tabs { display: flex; gap: 2px; border-bottom: 2px solid #e2e8f0; margin-bottom: 0; }
.doc-code-tab { background: transparent; color: #64748b; border: none; padding: 10px 20px; cursor: pointer; font-family: inherit; font-size: 13px; font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -2px; }
.doc-code-tab:hover { color: #1a2332; }
.doc-code-tab.active { color: #2563eb; border-bottom-color: #2563eb; }
.doc-code-content { display: none; }
.doc-code-content.active { display: block; }
.doc-code-content .code-block { border-top-left-radius: 0; border-top-right-radius: 0; margin-top: 0; }
.doc-faq-item { padding: 16px 0; border-bottom: 1px solid #f1f5f9; }
.doc-faq-item:last-child { border-bottom: none; }
.doc-faq-item h4 { color: #1a2332; margin-bottom: 8px; font-size: 14px; }
.doc-faq-item p { margin: 0; }

/* ==================== Crypto Inventory ==================== */
.ci-input-row { display: flex; gap: 12px; align-items: center; }
.ci-input { flex: 1; padding: 12px 16px; border: 1px solid #e2e8f0; border-radius: 6px; font-family: 'SF Mono', Consolas, monospace; font-size: 14px; }
.ci-input:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.ci-score-display { display: flex; align-items: center; gap: 20px; margin-top: 12px; }
.ci-score-circle { width: 80px; height: 80px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 800; border: 4px solid; }
.ci-score-circle.ci-green { border-color: #22c55e; color: #166534; background: #dcfce7; }
.ci-score-circle.ci-yellow { border-color: #f59e0b; color: #92400e; background: #fef3c7; }
.ci-score-circle.ci-red { border-color: #ef4444; color: #991b1b; background: #fee2e2; }
.ci-score-label { font-size: 18px; font-weight: 600; color: #1a2332; }
.ci-status { padding: 4px 12px; border-radius: 12px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.ci-status-safe { background: #dcfce7; color: #166534; }
.ci-status-ok { background: #dbeafe; color: #1e40af; }
.ci-status-risk { background: #fee2e2; color: #991b1b; }
.ci-status-unknown { background: #f1f5f9; color: #64748b; }
.ci-check-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid #f1f5f9; align-items: flex-start; }
.ci-check-item:last-child { border-bottom: none; }
.ci-check-icon { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
.ci-check-pass { background: #dcfce7; color: #166534; }
.ci-check-fail { background: #fee2e2; color: #991b1b; }
.ci-example { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border: 1px solid #e2e8f0; border-radius: 6px; cursor: pointer; transition: all 0.2s; }
.ci-example:hover { background: #f8fafc; border-color: #2563eb; }
.ci-example code { font-size: 14px; color: #1a2332; }

/* ==================== Crypto Inventory Banner ==================== */
.ci-banner { background: #eff6ff; border-bottom: 1px solid #bfdbfe; padding: 20px 40px; }
.ci-banner-content { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.ci-banner h3 { font-size: 16px; font-weight: 600; color: #1e3a5f; margin-bottom: 4px; }
.ci-banner p { font-size: 13px; color: #475569; margin: 0; }
.ci-banner-btn { background: #1e3a5f; color: #fff; padding: 10px 24px; border-radius: 6px; font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background 0.2s; }
.ci-banner-btn:hover { background: #2563eb; text-decoration: none; }

/* ==================== Download Page ==================== */
.download-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 32px; }
@media (max-width: 900px) { .download-grid { grid-template-columns: 1fr; } }
.download-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 28px; text-align: center; transition: all 0.2s; }
.download-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); border-color: #2563eb; }
.download-card .os-icon { font-size: 40px; margin-bottom: 12px; display: block; }
.download-card h3 { font-size: 17px; font-weight: 600; color: #1a2332; margin-bottom: 8px; }
.download-card .tag { margin-bottom: 16px; }
.download-btn { display: inline-block; background: #1e3a5f; color: #fff; padding: 10px 28px; border-radius: 6px; font-size: 14px; font-weight: 600; text-decoration: none; transition: background 0.2s; margin: 12px 0; }
.download-btn:hover { background: #2563eb; text-decoration: none; color: #fff; }
.download-checksum { font-size: 12px; color: #94a3b8; word-break: break-all; margin-top: 12px; }
.download-checksum code { background: #f1f5f9; padding: 4px 8px; border-radius: 4px; font-size: 11px; font-family: 'SF Mono', Consolas, monospace; }
.version-banner { display: flex; align-items: center; justify-content: center; gap: 24px; background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 16px 28px; margin-bottom: 28px; flex-wrap: wrap; }
.version-banner .version-item { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #475569; }
.version-banner .version-item strong { color: #1a2332; }
.version-badge { background: #dcfce7; color: #166534; padding: 4px 14px; border-radius: 12px; font-size: 13px; font-weight: 600; }

/* ==================== Code Block Copy ==================== */
.code-block-wrapper { position: relative; }
.code-block-wrapper .copy-btn { position: absolute; top: 8px; right: 8px; background: rgba(255,255,255,0.08); color: #94a3b8; border: 1px solid rgba(255,255,255,0.15); padding: 4px 12px; border-radius: 4px; font-size: 12px; cursor: pointer; font-family: inherit; transition: all 0.2s; }
.code-block-wrapper .copy-btn:hover { background: rgba(255,255,255,0.15); color: #e2e8f0; }
.code-block-wrapper .copy-btn.copied { background: #166534; color: #dcfce7; border-color: #166534; }

/* ==================== Collapsible Steps ==================== */
.step-collapse { border: 1px solid #e2e8f0; border-radius: 8px; margin-bottom: 12px; }
.step-collapse[open] { border-color: #3b82f6; }
.step-collapse summary { padding: 14px 18px; cursor: pointer; display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 600; color: #0f172a; list-style: none; user-select: none; }
.step-collapse summary::-webkit-details-marker { display: none; }
.step-collapse summary::before { content: '\25B6'; font-size: 11px; color: #94a3b8; transition: transform 0.2s; flex-shrink: 0; }
.step-collapse[open] summary::before { transform: rotate(90deg); color: #3b82f6; }
.step-collapse summary .step-num { background: #3b82f6; color: #fff; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0; }
.step-collapse summary .step-desc { font-size: 12px; font-weight: 400; color: #64748b; margin-left: auto; }
.step-collapse .step-body { padding: 0 18px 18px; }

/* ==================== Accordion / Troubleshooting ==================== */
.accordion-item { border-bottom: 1px solid #f1f5f9; }
.accordion-item:last-child { border-bottom: none; }
.accordion-item.hidden { display: none; }
.accordion-header { display: flex; align-items: center; justify-content: space-between; width: 100%; background: none; border: none; padding: 16px 0; cursor: pointer; font-family: inherit; font-size: 15px; font-weight: 600; color: #1a2332; text-align: left; transition: color 0.2s; }
.accordion-header:hover { color: #2563eb; }
.accordion-icon { font-size: 20px; font-weight: 400; color: #94a3b8; flex-shrink: 0; transition: transform 0.2s; width: 24px; text-align: center; }
.accordion-body { display: none; padding: 0 0 20px; }
.accordion-body.open { display: block; }
.accordion-body h4 { font-size: 13px; font-weight: 600; color: #64748b; text-transform: uppercase; letter-spacing: 0.5px; margin: 16px 0 8px; }
.accordion-body h4:first-child { margin-top: 0; }
.accordion-body p { font-size: 14px; color: #475569; line-height: 1.6; margin: 0 0 8px; }

/* ==================== Troubleshooting Search ==================== */
.ts-search-bar { margin-bottom: 24px; }
.ts-search-bar input { width: 100%; padding: 14px 20px; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 15px; font-family: inherit; background: #fff; transition: all 0.2s; }
.ts-search-bar input:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.ts-no-results { text-align: center; padding: 40px; color: #94a3b8; font-size: 15px; display: none; }
.ts-category.hidden { display: none; }

/* ==================== Nav CTA Button ==================== */
.nav-cta { background: #1e556d; color: #fff !important; padding: 8px 20px; border-radius: 6px; font-weight: 600 !important; transition: background 0.2s; }
.nav-cta:hover { background: #102d4d; text-decoration: none !important; color: #fff !important; }

/* ==================== Footer ==================== */
.footer { text-align: center; padding: 32px 40px; color: #94a3b8; font-size: 13px; border-top: 1px solid #e2e8f0; margin-top: 48px; }
