﻿/* =========================================================
   Light theme for IEAM Integration Hub
   Dark "screens" (hub console, flow board, code, live panel)
   stay dark as accents; the editorial shell becomes light.
   ========================================================= */

html.light {
  color-scheme: light;
  --bg: #fbf7ef;
  --bg-soft: #f4ede1;
  --surface: #fffdf8;
  --surface-2: #fbf7ef;
  --surface-3: #f2ebdf;
  --line: rgba(66, 48, 28, 0.13);
  --line-strong: rgba(66, 48, 28, 0.24);
  --text: #22271f;
  --muted: #666a5c;
  --muted-2: #797b6c;
  --accent: #3d6b45;
  --accent-2: #b5653a;
  --accent-3: #a55b00;
  --success: #2f7d55;
  --danger: #b74444;
}

html.light body { background: var(--bg); color: var(--text); }
html.light ::selection { background: #c8e85a; color: #10170c; }
html.light h1, html.light h2, html.light h3 { color: var(--text); }
html.light .muted { color: #6e7d68; }
html.light .lead { color: #465545; }
html.light .accent {
  background: linear-gradient(100deg, #3f5c00 4%, #5f7d00 42%, #007b88 105%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}
html.light .section-kicker { color: var(--accent); }
html.light .micro-label { color: var(--muted); }
html.light a { color: inherit; }

/* ---------- Ambient ---------- */
html.light .page-grid {
  background-image:
    linear-gradient(rgba(40, 64, 34, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(40, 64, 34, 0.055) 1px, transparent 1px);
  opacity: 0.6;
}
html.light .page-glow {
  background:
    radial-gradient(ellipse 48% 40% at 76% 0%, rgba(0, 168, 180, 0.09), transparent 65%),
    radial-gradient(ellipse 42% 38% at 20% 8%, rgba(169, 205, 52, 0.13), transparent 70%);
}

/* ---------- Header ---------- */
html.light .site-header.is-scrolled {
  background: rgba(247, 250, 243, 0.84);
  border-bottom-color: var(--line);
}
html.light .brand-mark {
  border-color: #b6d14a;
  background: linear-gradient(145deg, #eef8d4, #ffffff);
  color: #3f5c00;
  box-shadow: 0 5px 18px rgba(70, 100, 20, 0.08);
}
html.light .brand-mark span { color: var(--text); }
html.light .brand-copy strong { color: var(--text); }
html.light .brand-copy > span { color: var(--muted); }
html.light .main-nav a { color: #52634f; }
html.light .main-nav a:hover, html.light .main-nav a.is-current { color: var(--text); }
html.light .main-nav a::after { background: #5f7d00; }
html.light .theme-toggle, html.light .menu-toggle {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.62);
}
html.light .theme-toggle:hover, html.light .menu-toggle:hover { background: #fff; }
html.light .mobile-menu { background: rgba(247, 250, 243, 0.97); }
html.light .mobile-menu nav a { border-bottom-color: var(--line); color: var(--text); }
html.light .mobile-menu-close, html.light .mobile-menu-kicker, html.light .mobile-menu-note { color: var(--muted); }
html.light .scroll-progress span { background: linear-gradient(90deg, #5f7d00, #007b88); }

/* ---------- Buttons ---------- */
html.light .btn { --btn-fg: var(--text); --btn-br: #c9d5c2; --btn-bg: #ffffff; }
html.light .btn-primary {
  --btn-bg: linear-gradient(100deg, #d7ff4f, #c4ef3d);
  --btn-fg: #0a0e13;
  --btn-br: transparent;
  box-shadow: 0 10px 28px rgba(112, 148, 20, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
html.light .btn-primary:hover { box-shadow: 0 14px 34px rgba(112, 148, 20, 0.26); }
html.light .btn-ghost { --btn-bg: rgba(255, 255, 255, 0.72); }
html.light .btn-ghost:hover { --btn-bg: #fff; --btn-br: #aebfa6; }
html.light .text-link { color: var(--accent); }

/* ---------- Hero ---------- */
html.light .hero-orb-a { background: rgba(0, 168, 180, 0.1); }
html.light .hero-orb-b { background: rgba(169, 205, 52, 0.14); }
html.light .hero-eyebrow {
  background: rgba(255, 255, 255, 0.64);
  border-color: #cbd8c3;
  color: #4e604a;
}
html.light .hero-trust { color: #687766; }
html.light .hero-trust .icon { color: var(--accent); }
html.light .hero-board-link { color: var(--accent); }
html.light .scroll-cue { color: var(--muted); }
html.light .scroll-cue-line { background: #c4d1bd; }
html.light .hero-source { color: #7e8c79; }
html.light .float-badge {
  border-color: #d3dfcb;
  background: rgba(255, 255, 255, 0.9);
  color: #4e604a;
  box-shadow: 0 16px 40px rgba(38, 62, 28, 0.14);
}
html.light .float-badge strong { color: var(--text); }
html.light .float-icon { background: #f0f7dd; color: var(--accent); }
html.light .float-badge-b .float-icon { background: #e6f7f8; color: var(--accent-2); }

/* ---------- Stats ---------- */
html.light .stats-band { background: #eaf1e3; border-color: #d7e1cf; }
html.light .stat { border-left-color: #d7e1cf; }
html.light .stat strong { color: var(--text); }
html.light .stat span { color: #61705d; }

/* ---------- Sections ---------- */
/* Dark technical screens keep the dark token palette inside a light page. */
html.light .console,
html.light .board-shell,
html.light .activator-shot,
html.light .activator-camera,
html.light .code-card,
html.light .scenario-screen {
  --text: #f2f6ff;
  --muted: #8e9db3;
  --muted-2: #66768c;
  --accent: #d7ff4f;
  --accent-2: #56d9ff;
  --line: rgba(160, 190, 230, 0.12);
  --line-strong: rgba(180, 210, 250, 0.22);
  --success: #34d399;
  color: var(--text);
}

html.light .section { border-top-color: #dde5d6; }
html.light .section-aside { color: var(--muted); }
html.light .section-footnote { color: #72816d; }
html.light .section-footnote .icon { color: var(--accent); }

/* ---------- About ---------- */
html.light .big-copy { color: #263324; }
html.light .big-copy strong { color: var(--text); }
html.light .about-copy > p + p { color: var(--muted); }
html.light .check-list li { color: #536351; }
html.light .check-list strong { color: var(--text); }
html.light .check-list .icon { color: var(--accent); }
html.light .principle-card {
  border-color: #dfe8d8;
  background: linear-gradient(145deg, #ffffff, #f6faf1);
  box-shadow: 0 12px 34px rgba(37, 63, 27, 0.05);
}
html.light .principle-card:hover {
  border-color: #b9d28c;
  background: #fff;
  box-shadow: 0 18px 42px rgba(37, 63, 27, 0.09);
}
html.light .principle-num { color: #8b9a86; }
html.light .principle-icon { background: #edf6d6; color: var(--accent); }
html.light .principle-card p { color: var(--muted); }
html.light .about-quote {
  border-left-color: #6f8a00;
  background: linear-gradient(90deg, rgba(150, 188, 31, 0.11), transparent 62%);
}
html.light .about-quote .quote-mark { color: rgba(90, 120, 0, 0.16); }
html.light .about-quote p { color: var(--text); }
html.light .about-quote p span { color: #74826f; }
html.light .about-quote cite { color: #7a8974; }

/* ---------- Contours ---------- */
html.light .contour-tabs { background: #eef4e8; border-color: #d6e1ce; }
html.light .contour-tab { color: #647360; }
html.light .contour-tab.is-active {
  background: #fff;
  border-color: #d2dfc9;
  color: var(--text);
  box-shadow: 0 8px 22px rgba(36, 61, 25, 0.07);
}
html.light .contour-tab-mark { border-color: #cedac6; background: #f8fafc; color: var(--accent); }
html.light .contour-tab small { color: var(--muted); }
html.light .contour-panel {
  border-color: #e2e8f0;
  background: radial-gradient(ellipse 70% 100% at 0% 0%, rgba(0, 168, 180, 0.055), transparent 60%), linear-gradient(145deg, #ffffff, #f8fafc);
  box-shadow: 0 16px 44px rgba(36, 61, 25, 0.05);
}
html.light .contour-title-row h3 code { color: #3f5c00; }
html.light .version-pill { border-color: #c3d69c; background: #f3f9e6; color: #4d6a00; }
html.light .contour-lead { color: var(--muted); }
html.light .feature-grid { border-color: #e2e8f0; background: #e2e8f0; }
html.light .feature-item { background: #fff; }
html.light .feature-item:hover { background: #f5faee; }
html.light .feature-icon { background: #e8f5f5; color: var(--accent-2); }
html.light .feature-item p { color: var(--muted); }
html.light .contour-side { border-left-color: #e2e8f0; }
html.light .side-stat span { color: var(--muted); }
html.light .side-stat strong { color: var(--text); }
html.light .side-stat i { background: #e1e9da; }
html.light .side-stat i::after { background: linear-gradient(90deg, #6f8a00, #007b88); }
html.light .side-common { border-top-color: #e2e8f0; }
html.light .side-common .micro-label { color: var(--accent-2); }
html.light .side-common p { color: var(--muted); }
html.light .side-note { border-top-color: #e2e8f0; color: #536351; }
html.light .side-note .icon { color: var(--accent); }
html.light .supported-configs { border-color: #e2e8f0; background: #fff; box-shadow: 0 10px 28px rgba(36, 61, 25, 0.04); }
html.light .supported-configs-label .micro-label { color: var(--accent-2); }
html.light .supported-configs-label p { color: var(--muted); }
html.light .supported-list span { border-color: #d4dfcc; background: #f8fafc; color: #4f5f4b; }
html.light .supported-list span:last-child { border-color: #bcd68b; background: #f1f9df; color: #4b6b00; }

/* ---------- Development ---------- */
html.light .development { background: radial-gradient(ellipse 60% 70% at 84% 16%, rgba(169, 205, 52, 0.1), transparent 65%); }
html.light .dev-case {
  border-color: #d4e0cb;
  background: radial-gradient(ellipse 70% 100% at 100% 0%, rgba(169, 205, 52, 0.09), transparent 60%), linear-gradient(145deg, #fff, #f7faf1);
  box-shadow: 0 18px 50px rgba(37, 63, 27, 0.07);
}
html.light .dev-case::before { border-color: rgba(95, 125, 0, 0.12); }
html.light .dev-case .micro-label { color: var(--accent-2); }
html.light .dev-case h3 { color: var(--text); }
html.light .dev-lead { color: var(--muted); }
html.light .dev-stats { border-color: #dce6d4; background: #dce6d4; }
html.light .dev-stats > div { background: #fff; }
html.light .dev-stats span { color: var(--muted); }
html.light .dev-tags span { border-color: #d4e0cb; color: #5b6b56; background: #fff; }
html.light .dev-contact { border-top-color: #dfe8d8; color: #7a8974; }
html.light .dev-contact a { color: var(--accent); }
html.light .dev-point {
  border-color: #e2e8f0;
  background: linear-gradient(145deg, #fff, #f8fafc);
  box-shadow: 0 10px 26px rgba(37, 63, 27, 0.04);
}
html.light .dev-point:hover { border-color: #b8d18a; }
html.light .dev-point-icon { background: #e8f5f5; color: var(--accent-2); }
html.light .dev-point p { color: var(--muted); }
html.light .dev-process { border-color: #e2e8f0; background: #fff; }
html.light .dev-process-head > span:last-child { color: var(--muted-2); }
html.light .dev-process-steps { border-color: #e2e8f0; background: #e2e8f0; }
html.light .dev-process-steps > div { background: #f8fafc; }
html.light .dev-process-steps p { color: var(--muted); }

/* Activator case keeps its dark live screen; the editorial frame is light. */
html.light .activator-case {
  border-color: #d2e2d0;
  background: radial-gradient(ellipse 70% 100% at 100% 0%, rgba(0, 168, 180, 0.06), transparent 60%), linear-gradient(145deg, #fff, #f7fbf3);
  box-shadow: 0 18px 50px rgba(37, 63, 27, 0.07);
}
html.light .activator-case::before { border-color: rgba(0, 123, 136, 0.1); }
html.light .activator-lead { color: var(--muted); }
html.light .activator-steps { border-color: #e2e8f0; background: #e2e8f0; }
html.light .activator-steps > div { background: #fff; }
html.light .activator-steps p { color: var(--muted); }
html.light .activator-steps > div > span { color: var(--accent-2); }
html.light .activator-facts { border-color: #e2e8f0; background: #e2e8f0; }
html.light .activator-facts > div { background: #fff; }
html.light .activator-facts span { color: var(--muted); }
html.light .activator-tags span { border-color: #bcd9d9; color: #007b88; background: #f0fafa; }
html.light .activator-shot { border-color: #253c49; box-shadow: 0 22px 55px rgba(17, 34, 27, 0.24); }
html.light .activator-camera { border-color: #c8d7be; }

/* ---------- Projects ---------- */
html.light .projects { background: radial-gradient(ellipse 70% 60% at 8% 20%, rgba(169, 205, 52, 0.08), transparent 65%); }
html.light .project-card {
  border-color: #e2e8f0;
  background: linear-gradient(145deg, #fff, #f8fafc);
  box-shadow: 0 12px 34px rgba(37, 63, 27, 0.05);
}
html.light .project-card:hover { border-color: #b8d18a; box-shadow: 0 18px 44px rgba(37, 63, 27, 0.1); }
html.light .project-card::before { border-color: rgba(95, 125, 0, 0.12); }
html.light .project-index { color: var(--accent); }
html.light .project-card h3 { color: var(--text); }
html.light .project-card p { color: var(--muted); }
html.light .project-tags span { background: #edf4e7; color: #5b6b56; }
html.light .project-badges b { border-color: #d2dfc9; color: #5b6b56; background: #fff; }
html.light .project-badges b:first-child { color: #4b6b00; border-color: #c4d89b; background: #f5fae9; }
html.light .project-badges b:last-child:not(:first-child) { color: #007b88; border-color: #b9dadc; background: #f1fafa; }
html.light .projects-foot { border-color: #e2e8f0; background: #fff; }
html.light .projects-foot p { color: var(--muted); }

/* ---------- Flow board (dark screen) ---------- */
html.light .board-section { background: radial-gradient(ellipse 72% 80% at 50% 0%, rgba(0, 168, 180, 0.06), transparent 68%); }

/* ---------- Integration catalog ---------- */
html.light .filter-bar { background: rgba(248, 251, 244, 0.9); border-color: #d7e2cf; }
html.light .filter-btn { color: #5d6d59; }
html.light .filter-btn:hover { color: var(--text); background: #f0f6ea; }
html.light .filter-btn.is-active { background: #d7ff4f; color: #0b0f14; }
html.light .filter-btn.is-active span { color: rgba(10, 14, 19, 0.6); }
html.light .int-card {
  border-color: #e2e8f0;
  background: linear-gradient(145deg, #fff, #f8fafc);
  box-shadow: 0 10px 30px rgba(37, 63, 27, 0.04);
}
html.light .int-card:hover, html.light .int-card:focus-visible {
  border-color: #b4ce85;
  box-shadow: 0 22px 50px rgba(37, 63, 27, 0.1);
}
html.light .int-card::before { background: radial-gradient(320px circle at var(--mx) var(--my), rgba(164, 200, 42, 0.12), transparent 65%); }
html.light .int-cat { color: var(--muted); }
html.light .int-products b { border-color: #d2dfc9; color: #5b6b56; background: #fff; }
html.light .int-products b:first-child { color: #4b6b00; border-color: #c4d89b; background: #f5fae9; }
html.light .int-products b:last-child { color: #007b88; border-color: #b9dadc; background: #f1fafa; }
html.light .int-icon { border-color: #d7e4ce; background: #f4f9ed; color: var(--accent); }
html.light .int-card h3 { color: var(--text); }
html.light .int-card p { color: var(--muted); }
html.light .int-tags span { background: #edf4e7; color: #66765f; }
html.light .int-more { color: #5d6d59; }
html.light .int-card:hover .int-more { color: var(--accent); }
html.light .map-footer { border-color: #e2e8f0; background: #fff; }
html.light .map-footer p { color: var(--muted); }
html.light .future-chips span { border-color: #cfdcc7; color: #5d6d59; background: #fff; }
html.light .future-chips span:hover { border-color: #a8c274; color: var(--accent); }

/* ---------- Architecture ---------- */
html.light .arch-tabs, html.light .scenario-tabs, html.light .api-tabs { background: #eef4e8; border-color: #d6e1ce; }
html.light .arch-tab, html.light .scenario-tab, html.light .api-tab { color: #647360; }
html.light .arch-tab:hover, html.light .scenario-tab:hover, html.light .api-tab:hover { color: var(--text); }
html.light .arch-tab.is-active, html.light .scenario-tab.is-active, html.light .api-tab.is-active { background: #fff; border-color: #d2dfc9; color: var(--text); }
html.light .arch-tab.is-active .arch-tab-dot { background: var(--accent); }
html.light .arch-diagram { border-color: #e2e8f0; background: linear-gradient(160deg, #fff, #f8fafc); }
html.light .arch-diagram::before { background-image: radial-gradient(rgba(48, 76, 40, 0.12) 1px, transparent 1px); }
html.light .arch-label { color: #64748b; }
html.light .arch-chip { border-color: #d7e3cf; background: #fff; color: #5b6b56; }
html.light .arch-chip .icon { color: #85947f; }
html.light .arch-chip.is-lit { border-color: #b7d181; background: #f2f9e2; color: var(--text); box-shadow: 0 0 20px rgba(95, 125, 0, 0.08); }
html.light .channel-line { background: linear-gradient(90deg, transparent, rgba(95, 125, 0, 0.3), rgba(0, 123, 136, 0.22), transparent); }
html.light .channel-labels span:first-child { color: #52624f; }
html.light .arch-hub { border-color: #c9df9c; background: linear-gradient(110deg, #f3f9e5, #effafa); }
html.light .arch-hub-top { color: #4d6a00; }
html.light .arch-hub-tags span { background: #fff; color: #5b6b56; }
html.light .arch-detail { border-color: #e2e8f0; background: #fff; }
html.light .arch-detail > p { color: var(--muted); }
html.light .arch-endpoint { border-top-color: #e0e8da; }
html.light .arch-endpoint code { color: var(--accent); }

/* ---------- Scenarios ---------- */
html.light .scenario-panel {
  border-color: #e2e8f0;
  background: radial-gradient(ellipse 70% 100% at 100% 0%, rgba(0, 168, 180, 0.06), transparent 60%), linear-gradient(145deg, #fff, #f8fafc);
}
html.light .scenario-copy > p { color: var(--muted); }
html.light .scenario-steps li > span { border-color: #d0ddc8; background: #fff; color: var(--accent); }
html.light .scenario-steps p { color: var(--muted); }
html.light .scenario-metrics { border-color: #e2e8f0; background: #e2e8f0; }
html.light .scenario-metrics > div { background: #f8fafc; }
html.light .scenario-metrics span { color: var(--muted); }
html.light .scenario-orbit { border-color: rgba(0, 123, 136, 0.1); }
html.light .orbit-b { border-color: rgba(95, 125, 0, 0.12); }

/* ---------- API / code ---------- */
html.light .api-info { border-color: #e2e8f0; background: #fff; }
html.light .api-info > p { color: var(--muted); }
html.light .api-facts { border-color: #e2e8f0; background: #e2e8f0; }
html.light .api-facts > div { background: #f8fafc; }
html.light .api-facts span { color: #64748b; }
html.light .code-card { box-shadow: 0 18px 46px rgba(31, 52, 24, 0.16); }
html.light code { color: #24431e; }
html.light .code-body code { color: #c5d4e7; }

/* ---------- Roadmap ---------- */
html.light .timeline-item::before { background: linear-gradient(#c9d7c0, transparent); }
html.light .timeline-num { border-color: #cfdec6; background: #fff; color: var(--accent); }
html.light .timeline-item p { color: var(--muted); }
html.light .timeline-top span { color: #64748b; }
html.light .pilot-builder {
  border-color: #cfe0bd;
  background: radial-gradient(ellipse 100% 80% at 100% 0%, rgba(169, 205, 52, 0.11), transparent 60%), linear-gradient(150deg, #fff, #f8fafc);
  box-shadow: 0 20px 55px rgba(37, 63, 27, 0.09);
}
html.light .pilot-badge { color: var(--accent); }
html.light .pilot-lead { color: var(--muted); }
html.light .pilot-label { color: #64748b; }
html.light .pilot-option { border-color: #d2dfc9; background: #fff; color: #5b6b56; }
html.light .pilot-option:hover { color: var(--text); border-color: #b8cfa9; }
html.light .pilot-option.is-active { background: #f0f9df; border-color: #b3cd7d; color: #4b6b00; }
html.light .pilot-result { border-color: #cfe0dc; background: #f7fbf5; }
html.light .pilot-result-head span { color: var(--accent-2); }
html.light .pilot-result > p { color: var(--muted); }
html.light .pilot-chips span { background: #edf4e7; color: #5b6b56; }
html.light .pilot-meta { border-top-color: #e0e8da; color: var(--muted); }
html.light .pilot-meta b { color: var(--text); }
html.light .pilot-note { color: #64748b; }
html.light .prepare-strip { border-color: #e2e8f0; background: #fff; }
html.light .prepare-strip > span:not(.prepare-title) { background: #eef4e8; color: #5d6d59; }

/* ---------- FAQ ---------- */
html.light .faq-list { border-top-color: #e2e8f0; }
html.light .faq-item { border-bottom-color: #e2e8f0; }
html.light .faq-item summary { color: var(--text); }
html.light .faq-icon::before, html.light .faq-icon::after { background: #64748b; }
html.light .faq-answer p { color: var(--muted); }

/* ---------- CTA ---------- */
html.light .cta-panel {
  border-color: #cfe0bd;
  background: radial-gradient(ellipse 70% 100% at 90% 0%, rgba(169, 205, 52, 0.16), transparent 60%), linear-gradient(130deg, #fff, #f3f8eb);
  box-shadow: 0 22px 62px rgba(37, 63, 27, 0.08);
}
html.light .cta-panel::before { background-image: linear-gradient(rgba(40, 64, 34, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(40, 64, 34, 0.06) 1px, transparent 1px); }
html.light .cta-copy > p:not(.section-kicker) { color: var(--muted); }
html.light .cta-note { color: #64748b; }
html.light .cta-meta { border-left-color: #e2e8f0; }
html.light .cta-meta span { color: #64748b; }
html.light .cta-meta strong { color: var(--text); }
html.light .cta-meta a { color: var(--accent); }

/* ---------- Footer ---------- */
html.light .site-footer { border-top-color: #e2e8f0; background: #eef4e8; }
html.light .footer-brand p { color: var(--muted); }
html.light .footer-nav span { color: #64748b; }
html.light .footer-nav a { color: #5b6b56; }
html.light .footer-nav a:hover { color: var(--accent); }
html.light .footer-bottom { border-top-color: #d7e2cf; color: #64748b; }
html.light .footer-bottom code { color: #536351; }

/* ---------- Modals ---------- */
html.light .modal { border-color: #d2dfc9; background: #fbfdf8; color: var(--text); box-shadow: 0 40px 120px rgba(20, 38, 14, 0.24); }
html.light .modal::backdrop { background: rgba(24, 38, 19, 0.4); backdrop-filter: blur(7px); }
html.light .modal-close { border-color: #d2dfc9; background: #fff; color: #5b6b56; }
html.light .modal-close:hover { color: var(--text); border-color: #aebfa6; }
html.light .contact-copy > p { color: var(--muted); }
html.light .contact-copy a { color: var(--accent); }
html.light .contact-alt { border-top-color: #e2e8f0; }
html.light .contact-alt a { color: var(--accent); }
html.light .contact-alt span { color: #64748b; }
html.light .field > span { color: #5d6d59; }
html.light .field input, html.light .field select, html.light .field textarea {
  border-color: #d5e0cd;
  background: #fff;
  color: var(--text);
}
html.light .field input:focus, html.light .field select:focus, html.light .field textarea:focus {
  border-color: #9dbb67;
  background: #fff;
}
html.light .field input::placeholder, html.light .field textarea::placeholder { color: #8b9987; }
html.light .consent { color: var(--muted); }
html.light .form-note { color: #64748b; }
html.light .int-modal-head .int-modal-title p { color: var(--muted); }
html.light .int-modal-icon { border-color: #c7dca1; background: #f4f9e8; color: var(--accent); }
html.light .int-modal-side { border-color: #e2e8f0; background: #f8fafc; }
html.light .int-modal-side p { color: var(--muted); }
html.light .int-modal-body li { color: #536351; }
html.light .int-modal-body h3, html.light .int-modal-side .micro-label { color: var(--accent-2); }
html.light .int-steps p { color: #536351; }
html.light .int-steps li > span { border-color: #cfdec6; background: #fff; color: var(--accent); }
html.light .int-modal-tags span { border-color: #d4e0cb; color: #5b6b56; background: #fff; }
html.light .toast { border-color: #c4d79e; background: #fff; color: var(--text); box-shadow: 0 18px 50px rgba(20, 38, 14, 0.18); }

/* ---------- Light responsive accents ---------- */
@media (max-width: 820px) {
  html.light .supported-configs, html.light .projects-foot { background: #fff; }
}

/* ---------- Friendly presentation layer ---------- */
.friendly-hero { display: none; }

html.light .page-grid { opacity: 0.18; }
html.light .page-glow {
  background:
    radial-gradient(ellipse 48% 40% at 78% 0%, rgba(181, 101, 58, 0.1), transparent 66%),
    radial-gradient(ellipse 44% 42% at 16% 6%, rgba(109, 145, 88, 0.13), transparent 70%);
}
html.light .hero-orb-a { background: rgba(181, 101, 58, 0.09); }
html.light .hero-orb-b { background: rgba(109, 145, 88, 0.13); }
html.light .hero-eyebrow {
  font-family: var(--font);
  border-color: #e4d8c6;
  background: rgba(255, 253, 248, 0.8);
  color: #5f6356;
  letter-spacing: 0;
}
html.light .accent {
  background: linear-gradient(100deg, #2f5d3a 4%, #467a4a 48%, #b5653a 105%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
html.light .lead { font-size: 1.05rem; line-height: 1.68; color: #535b4e; }
html.light .section-aside { font-size: 0.94rem; line-height: 1.65; color: #666a5c; }
html.light .hero-trust { color: #666a5c; font-family: var(--font); letter-spacing: 0; }
html.light .hero-board-link { color: #3d6b45; }
html.light .hero-source { display: none; }
html.light .float-badge { display: none; }
html.light .hero-visual { align-items: stretch; }
html.light .hero-visual .console { display: none; }

html.light .friendly-hero {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  padding: 26px;
  border: 1px solid #e3d8c7;
  border-radius: 26px;
  background:
    radial-gradient(ellipse 80% 70% at 100% 0%, rgba(181, 101, 58, 0.07), transparent 62%),
    linear-gradient(150deg, #fffdf8, #fbf6ec);
  box-shadow: 0 24px 60px rgba(75, 55, 32, 0.1);
}
.friendly-hero-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.friendly-label { font-family: var(--font); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.03em; color: #3d6b45; }
.friendly-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px;
  border: 1px solid #d9c9b2; border-radius: 999px;
  background: #fffaf2; color: #7a5a3b; font-size: 0.66rem; white-space: nowrap;
}
.friendly-pill .live-dot { width: 5px; height: 5px; background: #6d9158; box-shadow: none; }
.friendly-steps { display: flex; flex-direction: column; }
.friendly-step { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 13px; padding: 14px 0; border-bottom: 1px dashed #e5dac9; }
.friendly-step:first-child { padding-top: 4px; }
.friendly-step:last-child { border-bottom: 0; padding-bottom: 4px; }
.friendly-num {
  display: grid; place-items: center; width: 36px; height: 36px;
  border: 1px solid #cfdcc5; border-radius: 50%;
  background: #edf4e4; color: #3d6b45; font-size: 0.82rem; font-weight: 800;
}
.friendly-step strong { display: block; margin-bottom: 3px; font-size: 1rem; letter-spacing: -0.02em; color: #22271f; }
.friendly-step p { color: #666a5c; font-size: 0.84rem; line-height: 1.58; }
.friendly-example { padding: 14px 16px; border-left: 3px solid #b5653a; border-radius: 0 13px 13px 0; background: #fbefe4; }
.friendly-example > span { display: block; margin-bottom: 4px; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #a75a32; }
.friendly-example p { color: #3f4438; font-size: 0.85rem; line-height: 1.55; }
.friendly-example strong { color: #22271f; }
.friendly-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 2px; color: #7a7c6d; font-size: 0.73rem; }
.friendly-foot a { display: inline-flex; align-items: center; gap: 5px; color: #3d6b45; font-weight: 700; }
.friendly-foot a .icon { width: 15px; height: 15px; }

html.light .btn-primary {
  --btn-bg: #356b3f;
  --btn-fg: #fffdf8;
  --btn-br: #356b3f;
  color: #fffdf8;
  box-shadow: 0 10px 24px rgba(53, 107, 63, 0.18);
}
html.light .btn-primary:hover { --btn-bg: #2b5934; --btn-br: #2b5934; box-shadow: 0 14px 30px rgba(53, 107, 63, 0.24); }
html.light .filter-btn.is-active { background: #356b3f; color: #fffdf8; }
html.light .filter-btn.is-active span { color: rgba(255, 253, 248, 0.7); }

html.light .section-kicker,
html.light .micro-label,
html.light .stat span,
html.light .int-cat,
html.light .project-index,
html.light .dev-tags span,
html.light .int-tags span,
html.light .project-tags span,
html.light .supported-list span,
html.light .pilot-label {
  font-family: var(--font);
  letter-spacing: 0.035em;
}
html.light .section-kicker { color: #3d6b45; }
html.light .principle-card,
html.light .contour-panel,
html.light .dev-case,
html.light .activator-case,
html.light .project-card,
html.light .int-card,
html.light .pilot-builder,
html.light .cta-panel,
html.light .supported-configs,
html.light .projects-foot,
html.light .map-footer { border-radius: 22px; }
html.light .modal { border-radius: 26px; }
html.light .stats-band { background: #f3ede1; border-color: #e4d9c8; }
html.light .stat { border-left-color: #e4d9c8; }
html.light .stat span { color: #6f7163; }
html.light .friendly-step p,
html.light .project-card p,
html.light .int-card p,
html.light .principle-card p,
html.light .feature-item p,
html.light .dev-lead { line-height: 1.62; }

html.light .project-card,
html.light .int-card,
html.light .principle-card,
html.light .dev-point { background: linear-gradient(145deg, #fffdf8, #fbf7ef); }
html.light .contour-tabs,
html.light .arch-tabs,
html.light .scenario-tabs,
html.light .api-tabs { background: #f3ede1; border-color: #e4d9c8; }
html.light .contour-tabs { display: inline-flex; flex-wrap: wrap; width: auto; max-width: 100%; }
html.light .contour-tab { flex: 1 1 250px; min-width: 250px; }
html.light .contour-tab-mark { font-family: var(--font); letter-spacing: 0.02em; }
html.light .contour-panel,
html.light .scenario-panel,
html.light .dev-case,
html.light .activator-case { background: radial-gradient(ellipse 70% 100% at 100% 0%, rgba(181, 101, 58, 0.045), transparent 60%), linear-gradient(145deg, #fffdf8, #fbf7ef); }
html.light .cta-panel { background: radial-gradient(ellipse 70% 100% at 90% 0%, rgba(181, 101, 58, 0.12), transparent 60%), linear-gradient(130deg, #fffdf8, #f7f0e4); }
html.light .site-footer { background: #f3ede1; border-top-color: #e4d9c8; }
html.light .footer-bottom { border-top-color: #e4d9c8; }
html.light .section-footnote { color: #77796b; }

@media (max-width: 680px) {
  html.light .friendly-hero { padding: 18px; gap: 13px; border-radius: 20px; }
  .friendly-hero-top { align-items: flex-start; flex-direction: column; gap: 7px; }
  .friendly-step { grid-template-columns: 34px minmax(0, 1fr); gap: 10px; padding: 12px 0; }
  .friendly-num { width: 30px; height: 30px; font-size: 0.76rem; }
  .friendly-foot { align-items: flex-start; flex-direction: column; gap: 7px; }
}

/* ---------- Modern light theme ---------- */
html.light {
  scroll-padding-top: 112px;
  --bg: #f4f7f4;
  --bg-soft: #edf3ee;
  --surface: #ffffff;
  --surface-2: #f7faf7;
  --surface-3: #eef4ef;
  --line: rgba(15, 40, 26, 0.11);
  --line-strong: rgba(15, 40, 26, 0.2);
  --text: #101712;
  --muted: #5b6a60;
  --muted-2: #7b887e;
  --accent: #0f6b46;
  --accent-2: #0b7a75;
  --accent-3: #9a6a1f;
}
html.light body {
  background:
    radial-gradient(ellipse 52% 38% at 82% 0%, rgba(15, 107, 70, 0.055), transparent 68%),
    radial-gradient(ellipse 40% 34% at 8% 8%, rgba(11, 122, 117, 0.045), transparent 70%),
    var(--bg);
}
html.light .page-grid { opacity: 0.09; }
html.light .page-glow {
  background:
    radial-gradient(ellipse 48% 40% at 78% 0%, rgba(11, 122, 117, 0.07), transparent 66%),
    radial-gradient(ellipse 44% 42% at 16% 6%, rgba(15, 107, 70, 0.08), transparent 70%);
}
html.light .hero-orb-a { background: rgba(11, 122, 117, 0.08); }
html.light .hero-orb-b { background: rgba(15, 107, 70, 0.1); }
html.light .accent {
  background: linear-gradient(100deg, #0b3d2e 4%, #0f6b46 46%, #0b7a75 105%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
html.light .hero-eyebrow { border-color: #dbe7df; background: rgba(255, 255, 255, 0.78); color: #53645a; }
html.light .section-kicker {
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: 5px 9px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: #0f6b46;
  font-size: 0.6rem;
}

/* Floating glass navigation */
html.light .site-header,
html.light .site-header.is-scrolled {
  height: 84px;
  border: 0;
  background: transparent;
  backdrop-filter: none;
}
html.light .nav-shell {
  height: 64px;
  margin-top: 9px;
  padding: 0 16px;
  border: 1px solid rgba(16, 40, 26, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 12px 36px rgba(16, 40, 26, 0.06);
}
html.light .scroll-progress { display: none; }
html.light .theme-toggle { background: #f6faf7; border-color: #e2e8f0; }
html.light .theme-toggle:hover { background: #fff; border-color: #b9d2c1; }
html.light .mobile-menu { background: rgba(255, 255, 255, 0.97); }

/* Hero */
html.light .friendly-hero {
  border-color: #e2e8f0;
  background:
    radial-gradient(ellipse 80% 70% at 100% 0%, rgba(15, 107, 70, 0.07), transparent 62%),
    #ffffff;
  box-shadow: 0 24px 68px rgba(16, 40, 26, 0.08);
}
html.light .friendly-pill { border-color: #cfe3d4; background: #f3faf5; color: #2f6b4b; }
html.light .friendly-pill .live-dot { background: #0f6b46; }
html.light .friendly-num { border-color: #cfe3d4; background: #edf8f1; color: #0f6b46; }
html.light .friendly-step { border-bottom-color: #e5eee7; }
html.light .friendly-example { border-left-color: #0f6b46; background: #eef8f1; }
html.light .friendly-example > span { color: #0b7a75; }
html.light .friendly-example p { color: #334139; }
html.light .friendly-foot a { color: #0f6b46; }
html.light .btn-primary {
  --btn-bg: #0b3d2e;
  --btn-fg: #ffffff;
  --btn-br: #0b3d2e;
  color: #ffffff;
  box-shadow: 0 10px 26px rgba(11, 61, 46, 0.2);
}
html.light .btn-primary:hover { --btn-bg: #092e24; --btn-br: #092e24; }
html.light .btn-ghost { --btn-bg: rgba(255, 255, 255, 0.8); }
html.light .stats-band { background: rgba(255, 255, 255, 0.62); border-color: #e2e8f0; }
html.light .stat { border-left-color: #e2e8f0; }
html.light .stat span { color: #67776d; }
html.light .filter-btn.is-active { background: #0b3d2e; color: #fff; }
html.light .filter-btn.is-active span { color: rgba(255, 255, 255, 0.7); }

/* Cleaner surfaces */
html.light .project-card,
html.light .int-card,
html.light .principle-card,
html.light .dev-point,
html.light .contour-panel,
html.light .dev-case,
html.light .activator-case,
html.light .scenario-panel,
html.light .pilot-builder,
html.light .supported-configs,
html.light .projects-foot,
html.light .map-footer {
  border-color: #e2e8f0;
  background: #ffffff;
}
html.light .project-card,
html.light .int-card,
html.light .principle-card,
html.light .dev-point { box-shadow: 0 12px 34px rgba(16, 40, 26, 0.045); }
html.light .project-card:hover,
html.light .int-card:hover { border-color: #a9c9b4; box-shadow: 0 22px 50px rgba(16, 40, 26, 0.09); }
html.light .contour-tabs,
html.light .arch-tabs,
html.light .scenario-tabs,
html.light .api-tabs { background: #eef4ef; border-color: #e2e8f0; }
html.light .contour-tab.is-active,
html.light .arch-tab.is-active,
html.light .scenario-tab.is-active,
html.light .api-tab.is-active { background: #fff; border-color: #e2e8f0; }
html.light .cta-panel {
  border-color: #d5e6da;
  background:
    radial-gradient(ellipse 70% 100% at 90% 0%, rgba(15, 107, 70, 0.1), transparent 60%),
    radial-gradient(ellipse 50% 80% at 10% 100%, rgba(11, 122, 117, 0.06), transparent 65%),
    #ffffff;
}
html.light .site-footer { background: #edf3ee; border-top-color: #e2e8f0; }
html.light .footer-bottom { border-top-color: #e2e8f0; }
html.light .section-footnote { color: #75847a; }

/* Modern bento blocks */
html.light .blocks { background: linear-gradient(180deg, transparent, rgba(15, 107, 70, 0.025)); }
html.light .block-card {
  border-color: #e2e8f0;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 14px 38px rgba(16, 40, 26, 0.045);
}
html.light .block-card:hover { border-color: #a9c9b4; box-shadow: 0 24px 56px rgba(16, 40, 26, 0.09); }
html.light .block-gos { background: linear-gradient(145deg, #e9f7ef, #ffffff 72%); }
html.light .block-tg { background: linear-gradient(145deg, #ecf6fb, #ffffff 72%); }
html.light .block-api { background: linear-gradient(145deg, #f0f8dc, #ffffff 72%); }
html.light .block-logistics { background: linear-gradient(145deg, #fbf4e8, #ffffff 72%); }
html.light .block-icon { background: rgba(255, 255, 255, 0.72); border-color: #d6e5db; color: #0f6b46; }
html.light .block-chip { font-family: var(--font); letter-spacing: 0.02em; background: rgba(255, 255, 255, 0.6); }
html.light .block-num { color: #839187; }
html.light .block-lead { color: #5b6a60; }
html.light .block-example { background: rgba(255, 255, 255, 0.68); border-left-color: #0f6b46; }
html.light .block-example span { font-family: var(--font); color: #0b7a75; }
html.light .block-example p { color: #526158; }
html.light .block-points li { font-family: var(--font); border-color: #d7e5db; background: rgba(255, 255, 255, 0.7); color: #617168; }
html.light .block-foot { border-top-color: #dfeae3; }
html.light .block-foot strong { color: #1a2a20; }
html.light .block-foot a { color: #0f6b46; }
html.light .block-cta {
  border-color: #0c2b22;
  background:
    radial-gradient(ellipse 80% 100% at 100% 0%, rgba(199, 244, 100, 0.12), transparent 58%),
    #0c2b22;
}
html.light .block-cta .block-chip { border-color: rgba(215, 255, 79, 0.28); background: rgba(215, 255, 79, 0.08); color: #d7ff4f; }
html.light .block-cta h3 { color: #ffffff; }
html.light .block-cta p { color: #a9c4b6; }
html.light .block-cta .btn-primary {
  --btn-bg: #d7ff4f;
  --btn-fg: #0b0f14;
  color: #0b0f14;
  box-shadow: none;
}
@media (max-width: 980px) {
  html.light .block-cta { grid-column: span 2; }
}
@media (max-width: 680px) {
  html.light .block-cta { grid-column: auto; }
}

/* ---------- Light print ---------- */
@media print {
  html.light body { background: #fff; color: #111; }
}
