@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --navy: #10182c;
  --ink: #18223a;
  --muted: #737f96;
  --paper: #f6f7fa;
  --white: #fff;
  --purple: #7768d7;
  --lime: #d7fb68;
  --blue: #8fc8ef;
  --orange: #f2a36b;
  --green: #85cba0;
  --line: #e5e8ef;
  --sans: 'DM Sans', 'Avenir Next', sans-serif;
  --display: 'Manrope', 'Avenir Next', sans-serif;
  --mono: 'DM Mono', Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 78px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 14px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button { color: inherit; font: inherit; }
::selection { background: var(--lime); color: var(--navy); }
.skip-link { position: fixed; z-index: 100; top: 10px; left: 10px; padding: 10px 14px; transform: translateY(-150%); border-radius: 6px; background: var(--lime); color: var(--navy); font-weight: 700; }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid #9588e8; outline-offset: 3px; }

.topbar { position: sticky; z-index: 20; top: 0; display: flex; min-height: 68px; align-items: center; justify-content: space-between; gap: 24px; padding: 0 max(4vw, calc((100vw - 1420px) / 2)); border-bottom: 1px solid rgba(226,230,238,.9); background: rgba(255,255,255,.96); backdrop-filter: blur(15px); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-family: var(--display); font-size: 9px; font-weight: 800; letter-spacing: .08em; line-height: 1.45; text-decoration: none; white-space: nowrap; }
.brand small { color: #929bad; font-family: var(--mono); font-size: 7px; font-weight: 400; letter-spacing: .09em; }
.brand-mark { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 8px; background: var(--navy); color: var(--lime); font-family: var(--display); font-size: 19px; font-weight: 800; }
.top-nav { display: flex; align-items: center; gap: clamp(17px, 3vw, 38px); }
.top-nav a { color: #667187; font-size: 11px; font-weight: 600; text-decoration: none; transition: color .2s; }
.top-nav a:hover { color: var(--purple); }
.present-button { display: inline-flex; min-height: 36px; align-items: center; gap: 7px; padding: 0 13px; border: 1px solid #e1e5ec; border-radius: 6px; background: #fff; color: var(--ink); cursor: pointer; font-size: 10px; font-weight: 700; transition: background .2s, border-color .2s; }
.present-button > span:first-child { color: var(--purple); font-size: 14px; }
.present-button:hover { border-color: #c7c0ef; background: #faf9ff; }

.hero { position: relative; display: grid; min-height: 560px; grid-template-columns: minmax(340px, .92fr) minmax(440px, 1.08fr); align-items: center; gap: 5vw; overflow: hidden; padding: 70px max(6vw, calc((100vw - 1320px) / 2)) 76px; background: radial-gradient(ellipse at 78% 35%, rgba(115,102,216,.2), transparent 32%), radial-gradient(ellipse at 12% 108%, rgba(215,251,104,.08), transparent 31%), var(--navy); color: #fff; }
.hero::before { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px); background-size: 46px 46px; content: ''; mask-image: linear-gradient(90deg, transparent, #000 40%, #000); pointer-events: none; }
.hero-copy, .hero-art { position: relative; z-index: 1; }
.eyebrow { display: flex; align-items: center; gap: 8px; color: #8a95aa; font-family: var(--mono); font-size: 8px; font-weight: 500; letter-spacing: .1em; }
.eyebrow-light { color: #a1adc1; }
.live-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px rgba(215,251,104,.7); }
.hero h1, h2 { font-family: var(--display); letter-spacing: -.055em; }
.hero h1 { max-width: 630px; margin: 22px 0 16px; font-size: clamp(42px, 5vw, 68px); font-weight: 700; line-height: 1.06; }
.hero h1 em, .section-heading h2 em, .exercise-heading h2 em, .closing-section h2 em { color: var(--lime); font-style: normal; }
.hero-copy > p { max-width: 470px; margin: 0; color: #aeb8c9; font-size: 13px; line-height: 1.85; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 15px; margin-top: 27px; }
.button { display: inline-flex; min-height: 41px; align-items: center; gap: 16px; padding: 0 15px; border-radius: 5px; font-size: 10px; font-weight: 700; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.button:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(5,9,20,.18); }
.button-lime { background: var(--lime); color: var(--navy); }
.hero-note { color: #8894a9; font-size: 9px; }
.hero-note b { color: #d5dbea; font-weight: 600; }
.hero-points { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 31px; color: #78859c; font-family: var(--mono); font-size: 7px; letter-spacing: .09em; }
.hero-points span::before { display: inline-block; width: 4px; height: 4px; margin: 0 7px 1px 0; border-radius: 50%; background: #68758d; content: ''; }
.hero-art { align-self: center; min-width: 0; padding: 12px 13px 9px; border: 1px solid rgba(183,195,219,.16); border-radius: 14px; background: rgba(19,29,49,.76); box-shadow: 0 25px 75px rgba(0,0,0,.2); }
.art-label, .art-footer { display: flex; justify-content: space-between; color: #8692a8; font-family: var(--mono); font-size: 7px; letter-spacing: .08em; }
.hero-art svg { display: block; width: 100%; height: auto; margin-top: 8px; }
.art-footer { align-items: center; gap: 8px; padding: 2px 9px 4px; color: #a5b0c3; }
.art-footer i { height: 1px; flex: 1; background: #3c4960; }
.hero-bottom { position: absolute; right: max(6vw, calc((100vw - 1320px) / 2)); bottom: 18px; left: max(6vw, calc((100vw - 1320px) / 2)); display: flex; justify-content: space-between; color: #718099; font-family: var(--mono); font-size: 7px; letter-spacing: .1em; }
.hero-bottom b { margin-left: 6px; color: var(--lime); font-size: 12px; }

.lesson-meta { display: flex; min-height: 49px; align-items: center; gap: clamp(17px, 3vw, 40px); padding: 0 max(6vw, calc((100vw - 1320px) / 2)); border-bottom: 1px solid var(--line); background: #fff; color: #778399; font-size: 9px; }
.lesson-meta b { margin-right: 4px; color: #8479d2; font-family: var(--mono); font-size: 8px; font-weight: 500; }
.reading-progress { height: 2px; flex: 1; overflow: hidden; background: #edf0f4; }
.reading-progress i { display: block; width: 0; height: 100%; background: var(--purple); }

.section-block { max-width: 1280px; margin: 0 auto; padding: 80px 6vw; scroll-margin-top: 75px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 36px; margin-bottom: 30px; }
.section-no { display: grid; width: 20px; height: 20px; place-items: center; border: 1px solid #d9d5f4; border-radius: 50%; color: var(--purple); font-size: 8px; letter-spacing: 0; }
.section-heading h2 { margin: 13px 0 0; color: var(--ink); font-size: clamp(31px, 3.7vw, 48px); font-weight: 700; line-height: 1.12; }
.section-heading h2 em { color: var(--purple); }
.section-heading > p { max-width: 320px; margin: 0 0 3px; color: #788398; font-size: 11px; line-height: 1.8; }
.section-heading > p strong { color: #515e77; }
.responsibility-strip { display: grid; grid-template-columns: 1fr 28px 1fr 28px 1fr 28px 1fr; align-items: center; gap: 8px; }
.responsibility-strip article { position: relative; min-height: 160px; padding: 17px; border: 1px solid #e7eaf0; border-radius: 9px; background: #fff; box-shadow: 0 8px 22px rgba(35,45,73,.025); }
.strip-no { position: absolute; top: 14px; right: 14px; color: #b0b7c4; font-family: var(--mono); font-size: 8px; }
.strip-icon { display: grid; width: 34px; height: 34px; margin-bottom: 14px; place-items: center; border-radius: 8px; font-size: 17px; }
.icon-blue { background: #eef7fc; color: #65a9d6; }
.icon-violet { background: #f1effd; color: #7869d6; }
.icon-lime { background: #f2f8df; color: #7f9d39; }
.icon-orange { background: #fff3e9; color: #db9059; }
.responsibility-strip h3 { margin: 0 0 2px; font-family: var(--display); font-size: 14px; letter-spacing: -.03em; }
.responsibility-strip p { min-height: 32px; margin: 0; color: #7f899b; font-size: 9px; line-height: 1.55; }
.responsibility-strip small { display: block; margin-top: 9px; color: #a2aab8; font-family: var(--mono); font-size: 7px; letter-spacing: .08em; }
.strip-arrow { color: #b4bbc8; font-size: 17px; text-align: center; }
.key-sentence { display: flex; align-items: center; gap: 17px; margin-top: 13px; padding: 14px 17px; border-radius: 7px; background: var(--navy); color: #fff; }
.key-sentence > span:first-child { color: #91a0b5; font-family: var(--mono); font-size: 7px; letter-spacing: .1em; }
.key-sentence p { flex: 1; margin: 0; color: #b9c3d3; font-size: 11px; }
.key-sentence b { color: #fff; }
.key-mark { color: var(--lime); font-size: 16px; }
.speaker-note { margin-top: 13px; border: 1px solid #e6e8ef; border-radius: 6px; background: rgba(255,255,255,.64); color: #68748b; }
.speaker-note summary { padding: 9px 12px; cursor: pointer; font-size: 9px; font-weight: 700; list-style: none; }
.speaker-note summary::-webkit-details-marker { display: none; }
.speaker-note summary::after { float: right; color: #959eaf; content: '+'; font-size: 14px; line-height: 1; }
.speaker-note[open] summary::after { content: '−'; }
.speaker-note p { margin: 0; padding: 0 13px 12px; color: #7d8799; font-size: 9px; line-height: 1.7; }

.evolution-section { max-width: none; padding-right: max(6vw, calc((100vw - 1280px) / 2)); padding-left: max(6vw, calc((100vw - 1280px) / 2)); background: #fff; }
.evolution-track { display: grid; grid-template-columns: 1fr 28px 1fr 28px 1fr 28px 1fr; align-items: start; gap: 9px; }
.evolution-track article { min-width: 0; }
.evo-index { display: block; margin-bottom: 9px; color: #969fb0; font-family: var(--mono); font-size: 7px; letter-spacing: .08em; }
.evo-graphic { display: flex; height: 83px; align-items: center; justify-content: center; gap: 6px; margin-bottom: 12px; border: 1px solid #eceef3; border-radius: 7px; background: #f8f9fc; }
.central-graphic i { width: 16px; height: 25px; border: 1px solid #8a7cdc; border-radius: 3px; background: #f1effd; }
.central-graphic i:nth-child(2) { height: 41px; background: #e4e0fb; }
.client-graphic i { padding: 5px 6px; border: 1px solid #c9dfee; border-radius: 3px; background: #fff; color: #6787a1; font-family: var(--mono); font-size: 6px; font-style: normal; }
.client-graphic b { color: #8c82d4; font-size: 12px; }
.layers-graphic { flex-direction: column; gap: 4px; }
.layers-graphic i { width: 66px; height: 12px; border: 1px solid #dcd8f1; border-radius: 3px; background: #f0effa; }
.layers-graphic i:nth-child(2) { width: 84px; background: #e9e5fb; }
.services-graphic { gap: 5px; }
.services-graphic i { width: 30px; height: 29px; border: 1px solid #d8e5dc; border-radius: 5px; background: #edf8f0; box-shadow: 0 3px 5px #e7e9ed; }
.services-graphic i:nth-child(2) { transform: translateY(-8px); border-color: #d9d3f4; background: #f1effd; }
.evolution-track h3 { margin: 0 0 3px; font-family: var(--display); font-size: 12px; letter-spacing: -.02em; }
.evolution-track p { margin: 0; color: #818b9d; font-size: 9px; line-height: 1.6; }
.evo-arrow { padding-top: 91px; color: #b0b8c7; font-size: 16px; text-align: center; }
.not-a-ladder { display: flex; align-items: center; gap: 10px; margin-top: 21px; padding: 12px 14px; border: 1px solid #e7e4f8; border-radius: 6px; background: #f7f6ff; }
.not-a-ladder > span { display: grid; width: 21px; height: 21px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: #e9e6fb; color: #7465cd; font-weight: 700; }
.not-a-ladder p { margin: 0; color: #798398; font-size: 9px; }
.not-a-ladder b { color: #4f5b72; }

.compare-section { max-width: none; padding-right: max(6vw, calc((100vw - 1280px) / 2)); padding-left: max(6vw, calc((100vw - 1280px) / 2)); }
.architecture-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 15px; }
.architecture-tab { min-width: 0; padding: 13px; border: 1px solid #e5e8ef; border-radius: 8px; background: #fff; cursor: pointer; text-align: left; transition: transform .18s, border-color .18s, box-shadow .18s; }
.architecture-tab:hover { transform: translateY(-2px); border-color: #c9c2ef; }
.architecture-tab.selected { border-color: #897cdc; box-shadow: 0 0 0 2px rgba(119,104,215,.1), 0 8px 24px rgba(40,47,80,.06); }
.tab-top { display: flex; align-items: center; justify-content: space-between; color: #aab1bf; font-family: var(--mono); font-size: 7px; }
.tab-kind { color: #8c84c4; font-size: 6px; letter-spacing: .06em; }
.architecture-tab > strong { display: block; margin-top: 12px; color: var(--ink); font-family: var(--display); font-size: 12px; letter-spacing: -.025em; }
.architecture-tab > small { display: block; margin-top: 2px; color: #8993a5; font-size: 8px; }
.mini-diagram { display: flex; height: 62px; align-items: center; justify-content: center; gap: 4px; margin-top: 9px; padding: 7px; border-radius: 5px; background: #f7f8fb; }
.mini-diagram i { display: grid; min-width: 0; min-height: 25px; place-items: center; padding: 0 5px; border: 1px solid #dce2eb; border-radius: 3px; background: #fff; color: #6f7d93; font-family: var(--mono); font-size: 6px; font-style: normal; white-space: nowrap; }
.mini-diagram b { color: #8b80d7; font-size: 9px; font-weight: 500; }
.mini-client i:nth-of-type(1) { border-color: #cce3f1; color: #5d9ac1; }
.mini-client i:nth-of-type(2) { border-color: #d8d3f3; color: #7568c4; }
.mini-client i:nth-of-type(3) { border-color: #f1ddc9; color: #b77b4f; }
.mini-layers { flex-direction: column; gap: 3px; }
.mini-layers i { width: 57%; min-height: 12px; border-color: #dcd8f1; background: #f2f0fc; }
.mini-layers i:nth-child(2) { width: 75%; }
.mini-modular { gap: 4px; }
.mini-modular i { min-height: 32px; padding: 0 4px; border-color: #dcd8f1; background: #f4f2fe; color: #6f64b8; }
.mini-services { gap: 8px; }
.mini-services i { position: relative; width: 29px; min-width: 29px; height: 25px; border-color: #cfe3d4; background: #f0f9f2; }
.mini-services i::after { position: absolute; bottom: -8px; width: 14px; height: 4px; border: 1px solid #d9e7dc; border-radius: 0 0 3px 3px; background: #fff; content: ''; }
.architecture-detail { display: grid; grid-template-columns: 1.15fr .85fr; overflow: hidden; border: 1px solid #e4e7ee; border-radius: 9px; background: #fff; box-shadow: 0 8px 25px rgba(32,42,70,.035); }
.architecture-visual { min-width: 0; padding: 17px 18px 13px; background: #f1f3f8; }
.visual-caption { display: flex; justify-content: space-between; color: #858fa2; font-family: var(--mono); font-size: 7px; letter-spacing: .08em; }
.diagram-stage { display: grid; min-height: 255px; place-items: center; margin: 7px 0; }
.diagram-stage svg { display: block; width: 100%; max-height: 285px; }
.arch-svg { overflow: visible; font-family: var(--sans); }
.arch-svg .svg-canvas { fill: #f8f9fc; stroke: #e7eaf0; }
.arch-svg .svg-zone { fill: #f1effc; stroke: #c5bdec; stroke-dasharray: 5 4; }
.arch-svg .svg-node { fill: #fff; stroke: #dce2eb; }
.arch-svg .client-node { fill: #eff8fd; stroke: #a7d0e8; }
.arch-svg .app-node { fill: #fff; stroke: #cfc9ef; }
.arch-svg .svg-small { fill: #8792a5; font-family: var(--mono); font-size: 8px; letter-spacing: .04em; }
.arch-svg .svg-label { fill: #4d5a73; font-size: 10px; font-weight: 700; }
.arch-svg .svg-icon { fill: #7768d7; font-size: 16px; }
.arch-svg .svg-foot { fill: #7e899d; font-family: var(--mono); font-size: 7px; letter-spacing: .04em; }
.arch-svg .svg-flow, .arch-svg .svg-return, .arch-svg .svg-data-flow, .arch-svg .svg-event { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.arch-svg .svg-flow { stroke: #786bd2; stroke-width: 1.7; }
.arch-svg .svg-return { stroke: #8d9ab0; stroke-width: 1.4; stroke-dasharray: 3 3; }
.arch-svg .svg-data-flow { stroke: #df9862; stroke-width: 1.7; }
.arch-svg .svg-event { stroke: #70ad85; stroke-width: 1.5; stroke-dasharray: 4 4; }
.arch-svg .svg-cylinder { fill: #fff6ed; stroke: #e7b38c; stroke-width: 1.2; }
.arch-svg .svg-cylinder-top { fill: #fffaf5; stroke: #e7b38c; stroke-width: 1.2; }
.arch-svg .layer-ui { fill: #f1effd; stroke: #d8d3f3; }
.arch-svg .layer-app { fill: #eeebfc; stroke: #d1caf0; }
.arch-svg .layer-domain { fill: #f2f8df; stroke: #d8e8aa; }
.arch-svg .layer-data { fill: #fff3e9; stroke: #f0ddc9; }
.arch-svg .module-purple { fill: #f3f0fc; stroke: #d8d2f2; }
.arch-svg .module-green { fill: #eff8f0; stroke: #cfe4d3; }
.arch-svg .module-orange { fill: #fff4ea; stroke: #f0dcc8; }
.arch-svg .gateway-node { fill: #f1effd; stroke: #cfc8ef; }
.arch-svg .service-node { stroke-width: 1.2; }
.arch-svg .service-a { fill: #eef7fc; stroke: #c8e1f0; }
.arch-svg .service-b { fill: #f4f1fd; stroke: #d8d2f2; }
.arch-svg .service-c { fill: #fff4ea; stroke: #f0dcc8; }
.arch-svg .service-db { fill: #fff; stroke: #e0b28d; }
.visual-legend { display: flex; flex-wrap: wrap; gap: 13px; color: #8390a4; font-size: 7px; }
.visual-legend span { display: inline-flex; align-items: center; gap: 5px; }
.visual-legend i { display: inline-block; width: 13px; height: 2px; border-radius: 2px; }
.legend-request { background: #7668d6; }
.legend-data { background: #df9862; }
.legend-event { background: #70ad85; }
.architecture-explanation { padding: 25px clamp(18px, 3vw, 34px); }
.detail-tag { color: #8075cb; font-family: var(--mono); font-size: 7px; letter-spacing: .09em; }
.architecture-explanation h3 { margin: 7px 0 6px; font-family: var(--display); font-size: clamp(18px, 2vw, 24px); letter-spacing: -.04em; line-height: 1.2; }
.architecture-explanation > p { margin: 0 0 17px; color: #7e899b; font-size: 9px; line-height: 1.7; }
.detail-row { display: flex; align-items: start; gap: 8px; margin-top: 11px; }
.detail-icon { display: grid; width: 18px; height: 18px; flex: 0 0 auto; place-items: center; border-radius: 50%; font-size: 9px; font-weight: 700; }
.detail-icon.good { background: #eaf7ef; color: #589a70; }
.detail-icon.cost { background: #fff2e7; color: #cc8650; }
.detail-row p { margin: 0; }
.detail-row b, .detail-row span { display: block; }
.detail-row b { color: #526078; font-size: 8px; }
.detail-row span { margin-top: 2px; color: #8791a2; font-size: 8px; line-height: 1.55; }
.detail-callout { display: flex; align-items: center; gap: 8px; margin-top: 15px; padding: 8px 9px; border-radius: 5px; background: #f4f3fc; color: #737b8f; font-size: 8px; line-height: 1.5; }
.detail-callout b { display: grid; width: 19px; height: 19px; flex: 0 0 auto; place-items: center; border-radius: 4px; background: #e8e5fb; color: #7668cd; font-family: var(--mono); font-size: 8px; }

.comparison-table-wrap { margin-top: 15px; overflow: hidden; border: 1px solid #e4e7ee; border-radius: 7px; background: #fff; }
.table-title { display: flex; justify-content: space-between; padding: 11px 14px; color: #929bad; font-family: var(--mono); font-size: 7px; letter-spacing: .08em; }
.table-title span:last-child { display: none; }
.comparison-table { width: 100%; border-collapse: collapse; text-align: left; }
.comparison-table th, .comparison-table td { padding: 10px 14px; border-top: 1px solid #eff0f4; color: #7b8699; font-size: 8px; font-weight: 400; }
.comparison-table thead th { background: #f8f9fb; color: #9099aa; font-family: var(--mono); font-size: 7px; letter-spacing: .05em; }
.comparison-table tbody th { color: #4d5a73; font-size: 8px; font-weight: 700; white-space: nowrap; }
.comparison-table tr.highlight-row td, .comparison-table tr.highlight-row th { background: #faf9ff; }
.comparison-table tr.highlight-row th { color: #6458bc; }

.async-section { max-width: none; padding-right: max(6vw, calc((100vw - 1280px) / 2)); padding-left: max(6vw, calc((100vw - 1280px) / 2)); background: #fff; }
.async-compare { display: grid; grid-template-columns: 1fr 64px 1fr; align-items: center; gap: 10px; }
.async-card { padding: 17px; border: 1px solid #e7e9ef; border-radius: 8px; background: #fffdfa; }
.async-card.async { border-color: #dcebe0; background: #fbfefb; }
.async-label { display: flex; justify-content: space-between; color: #9aa3b1; font-family: var(--mono); font-size: 7px; letter-spacing: .08em; }
.status-bad { color: #c28c65; }
.status-good { color: #5e9c73; }
.async-card h3 { margin: 7px 0 13px; font-family: var(--display); font-size: 13px; letter-spacing: -.02em; }
.async-flow { display: flex; align-items: center; justify-content: space-between; gap: 5px; }
.async-flow span { display: grid; min-height: 34px; flex: 1; place-items: center; padding: 0 5px; border: 1px solid #e7e9ee; border-radius: 4px; background: #fff; color: #707c91; font-family: var(--mono); font-size: 7px; text-align: center; }
.async-flow b { color: #b5bdc9; font-size: 10px; font-weight: 400; }
.async-flow .slow { border-color: #f0d9c6; background: #fff3e9; color: #bc8053; }
.async-flow .queued { border-color: #d2e7d7; background: #eef8f0; color: #5b966d; }
.async-card > p { margin: 10px 0 0; color: #858fa0; font-size: 8px; }
.async-change { display: grid; justify-items: center; gap: 3px; color: #969eae; font-family: var(--mono); font-size: 6px; letter-spacing: .05em; }
.async-change b { color: #8376d4; font-size: 19px; font-weight: 400; }

.exercise-section { max-width: none; padding-right: max(6vw, calc((100vw - 1120px) / 2)); padding-left: max(6vw, calc((100vw - 1120px) / 2)); background: var(--navy); color: #fff; }
.exercise-heading { display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.exercise-heading h2 { margin: 12px 0 6px; font-size: clamp(34px, 4vw, 48px); line-height: 1.08; }
.exercise-heading > div:first-child > p { margin: 0; color: #aab5c8; font-size: 10px; }
.exercise-number { display: grid; width: 71px; height: 71px; flex: 0 0 auto; align-content: center; justify-items: center; border: 1px solid rgba(215,251,104,.35); border-radius: 50%; color: #8996ad; font-family: var(--mono); font-size: 6px; letter-spacing: .08em; }
.exercise-number b { color: var(--lime); font-family: var(--display); font-size: 24px; line-height: 1.2; }
.exercise-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 22px; }
.exercise-option { display: grid; min-height: 99px; grid-template-columns: 27px 1fr; align-content: start; gap: 3px 9px; padding: 13px; border: 1px solid #33405a; border-radius: 6px; background: #1a2741; color: #dbe2ec; cursor: pointer; text-align: left; transition: border-color .2s, background .2s, transform .2s; }
.exercise-option:hover { transform: translateY(-2px); border-color: #8175d2; background: #202e49; }
.exercise-option > span { display: grid; width: 25px; height: 25px; grid-row: span 2; place-items: center; border-radius: 5px; background: #293751; color: #aab7cb; font-family: var(--mono); font-size: 9px; }
.exercise-option b { font-size: 9px; font-weight: 600; }
.exercise-option small { color: #8e9bb2; font-size: 8px; }
.exercise-option.is-good { border-color: #85ad60; background: #213643; }
.exercise-option.is-good > span { background: var(--lime); color: var(--navy); }
.exercise-option.is-wrong { border-color: #8c5a60; background: #36283a; }
.exercise-feedback { display: flex; min-height: 40px; align-items: center; gap: 9px; margin-top: 11px; padding: 9px 11px; border-radius: 5px; background: rgba(255,255,255,.05); color: #aeb9cb; }
.exercise-feedback > span { display: grid; width: 19px; height: 19px; flex: 0 0 auto; place-items: center; border: 1px solid #4a5871; border-radius: 50%; color: var(--lime); font-size: 10px; }
.exercise-feedback p { margin: 0; font-size: 8px; line-height: 1.6; }
.exercise-feedback.good { background: rgba(133,203,160,.1); color: #c3ddca; }
.exercise-feedback.retry { background: rgba(242,163,107,.08); color: #d3beaf; }
.online-tip { display: flex; gap: 12px; margin-top: 13px; color: #8996ad; font-size: 8px; }
.online-tip b { color: var(--lime); font-family: var(--mono); font-size: 7px; letter-spacing: .08em; white-space: nowrap; }

.closing-section { display: grid; max-width: 1280px; grid-template-columns: 45px 1fr 1fr auto; align-items: center; gap: 18px; margin: 0 auto; padding: 35px 6vw; }
.closing-icon { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 9px; background: var(--navy); color: var(--lime); font-size: 18px; }
.closing-section .eyebrow { font-size: 7px; }
.closing-section h2 { margin: 4px 0 0; font-size: 22px; line-height: 1.15; }
.closing-section h2 em { color: var(--purple); }
.closing-section > p { max-width: 290px; margin: 0; color: #778398; font-size: 9px; }
.back-top { color: #7165c4; font-family: var(--mono); font-size: 7px; letter-spacing: .07em; text-decoration: none; white-space: nowrap; }
.footer { display: flex; justify-content: space-between; gap: 20px; padding: 15px max(6vw, calc((100vw - 1280px) / 2)); border-top: 1px solid var(--line); background: #fff; color: #98a1b0; font-family: var(--mono); font-size: 7px; letter-spacing: .07em; }

body.presenting .topbar { padding-right: 28px; padding-left: 28px; }
body.presenting .top-nav { display: none; }
body.presenting main { max-width: 1600px; margin: 0 auto; }
body.presenting .hero { min-height: min(78vh, 850px); }
body.presenting .hero h1 { font-size: clamp(52px, 6vw, 84px); }
body.presenting .section-block { max-width: 1400px; }
body.presenting .present-button { border-color: #c9c2ef; background: #f6f4ff; }

@media (max-width: 1000px) {
  .hero { grid-template-columns: .9fr 1.1fr; gap: 24px; padding-right: 4vw; padding-left: 4vw; }
  .hero h1 { font-size: clamp(42px, 5vw, 58px); }
  .section-block { padding-right: 4vw; padding-left: 4vw; }
  .evolution-section, .compare-section, .async-section { padding-right: 4vw; padding-left: 4vw; }
  .lesson-meta { padding-right: 4vw; padding-left: 4vw; }
  .comparison-table th, .comparison-table td { padding: 9px 9px; }
}
@media (max-width: 760px) {
  .topbar { min-height: 62px; gap: 12px; padding: 0 17px; }
  .top-nav { gap: 12px; }
  .top-nav a { font-size: 9px; }
  .hero { display: block; padding: 48px 23px 59px; }
  .hero h1 { max-width: 580px; font-size: clamp(42px, 9vw, 58px); }
  .hero-copy > p { max-width: 500px; }
  .hero-art { max-width: 570px; margin: 32px auto 0; }
  .hero-bottom { right: 23px; left: 23px; }
  .lesson-meta { gap: 12px; overflow: hidden; font-size: 7px; }
  .lesson-meta > span:nth-child(2), .lesson-meta > span:nth-child(3) { display: none; }
  .section-block { padding: 59px 23px; }
  .section-heading { display: block; }
  .section-heading > p { max-width: 520px; margin-top: 12px; }
  .evolution-section, .compare-section, .async-section { padding-right: 23px; padding-left: 23px; }
  .responsibility-strip { grid-template-columns: 1fr 20px 1fr; gap: 7px; }
  .responsibility-strip article { min-height: 143px; padding: 13px; }
  .responsibility-strip article:nth-of-type(1) { grid-column: 1; grid-row: 1; }
  .responsibility-strip article:nth-of-type(2) { grid-column: 3; grid-row: 1; }
  .responsibility-strip article:nth-of-type(3) { grid-column: 1; grid-row: 2; }
  .responsibility-strip article:nth-of-type(4) { grid-column: 3; grid-row: 2; }
  .responsibility-strip .strip-arrow { display: none; }
  .evolution-track { grid-template-columns: 1fr 20px 1fr; gap: 11px 7px; }
  .evolution-track article:nth-of-type(1) { grid-column: 1; grid-row: 1; }
  .evolution-track article:nth-of-type(2) { grid-column: 3; grid-row: 1; }
  .evolution-track article:nth-of-type(3) { grid-column: 1; grid-row: 2; }
  .evolution-track article:nth-of-type(4) { grid-column: 3; grid-row: 2; }
  .evo-arrow { display: none; }
  .architecture-tabs { grid-template-columns: repeat(2, 1fr); }
  .architecture-detail { grid-template-columns: 1fr; }
  .diagram-stage { min-height: 220px; }
  .architecture-explanation { padding: 19px; }
  .comparison-table-wrap { overflow-x: auto; }
  .comparison-table { min-width: 680px; }
  .table-title span:last-child { display: inline; }
  .async-compare { grid-template-columns: 1fr; gap: 8px; }
  .async-change { grid-template-columns: auto auto; justify-content: center; align-items: center; gap: 8px; }
  .async-change b { transform: rotate(90deg); }
  .exercise-section { padding-right: 23px; padding-left: 23px; }
  .exercise-options { grid-template-columns: 1fr; }
  .exercise-option { min-height: 64px; }
  .closing-section { grid-template-columns: 39px 1fr; padding: 28px 23px; }
  .closing-section > p { grid-column: 2; }
  .back-top { grid-column: 2; }
  .footer { padding-right: 23px; padding-left: 23px; }
}
@media (max-width: 500px) {
  html { scroll-padding-top: 67px; }
  .topbar { flex-wrap: wrap; min-height: 62px; padding: 8px 13px; }
  .brand { font-size: 8px; }
  .brand-mark { width: 27px; height: 27px; }
  .top-nav { order: 3; width: 100%; justify-content: space-between; padding: 6px 0 1px; border-top: 1px solid #f1f2f5; }
  .top-nav a { font-size: 8px; }
  .present-button { min-height: 31px; padding: 0 8px; font-size: 8px; }
  .hero { padding: 41px 17px 54px; }
  .hero h1 { font-size: 42px; }
  .hero-copy > p { font-size: 11px; }
  .hero-note { max-width: 155px; line-height: 1.5; }
  .hero-points { gap: 9px; font-size: 6px; }
  .hero-art { margin-top: 25px; padding: 8px; }
  .hero-art svg { min-height: 190px; }
  .hero-bottom { right: 17px; left: 17px; font-size: 6px; }
  .lesson-meta { padding: 0 17px; }
  .section-block { padding: 48px 17px; }
  .section-heading h2 { font-size: 34px; }
  .responsibility-strip { grid-template-columns: 1fr 16px 1fr; }
  .responsibility-strip article { min-height: 137px; padding: 11px; }
  .responsibility-strip h3 { font-size: 12px; }
  .responsibility-strip p { font-size: 8px; }
  .strip-arrow { font-size: 13px; }
  .key-sentence { gap: 9px; padding: 12px 10px; }
  .key-sentence p { font-size: 9px; }
  .evolution-section, .compare-section, .async-section { padding-right: 17px; padding-left: 17px; }
  .evolution-track { gap: 12px 5px; }
  .evolution-track h3 { font-size: 10px; }
  .evolution-track p { font-size: 8px; }
  .evo-index { font-size: 6px; }
  .evo-arrow { font-size: 12px; }
  .architecture-tabs { gap: 7px; }
  .architecture-tab { padding: 9px; }
  .mini-diagram { height: 53px; gap: 3px; padding: 5px; }
  .mini-diagram i { padding: 0 3px; font-size: 5px; }
  .architecture-tab > strong { font-size: 10px; }
  .architecture-tab > small { font-size: 7px; }
  .diagram-stage { min-height: 190px; }
  .architecture-visual { padding: 12px 10px; }
  .visual-legend { gap: 8px; font-size: 6px; }
  .async-card { padding: 12px 10px; }
  .async-flow { gap: 3px; }
  .async-flow span { min-height: 31px; padding: 0 3px; font-size: 6px; }
  .async-flow b { font-size: 8px; }
  .exercise-section { padding: 47px 17px; }
  .exercise-heading h2 { font-size: 36px; }
  .exercise-number { width: 56px; height: 56px; }
  .online-tip { display: block; }
  .online-tip b { display: block; margin-bottom: 3px; }
  .closing-section { padding-right: 17px; padding-left: 17px; }
  .footer { display: grid; gap: 6px; padding: 13px 17px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
@media print {
  .topbar, .present-button, .exercise-options, .back-top, .speaker-note { display: none !important; }
  .hero { min-height: 0; background: #fff !important; color: var(--ink) !important; }
  .hero-copy > p, .hero-note { color: #555 !important; }
  .hero-art { display: none; }
  .hero h1 em, .exercise-heading h2 em { color: #333 !important; }
  .section-block, .evolution-section, .compare-section, .async-section, .exercise-section { break-inside: avoid; padding: 24px; background: #fff !important; color: var(--ink) !important; }
}

/* Aprofundamento técnico */
.micro-label { color: #929bad; font-family: var(--mono); font-size: 7px; letter-spacing: .09em; }
.requirement-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.requirement-compare article { padding: 17px 19px; border: 1px solid #e4e8ef; border-radius: 8px; background: #fff; }
.requirement-compare .quality-req { border-color: #dedaf7; background: #f8f7ff; }
.req-type { color: #939daf; font-family: var(--mono); font-size: 7px; letter-spacing: .08em; }
.quality-req .req-type { color: #8175ca; }
.requirement-compare h3 { margin: 5px 0 4px; font-family: var(--display); font-size: 14px; letter-spacing: -.03em; }
.requirement-compare p { margin: 0; color: #7c879a; font-size: 9px; line-height: 1.6; }
.quality-scenario { margin-top: 13px; padding: 18px; border: 1px solid #e5e8ef; border-radius: 9px; background: #fff; }
.scenario-title { display: flex; align-items: center; gap: 11px; }
.scenario-icon { display: grid; width: 31px; height: 31px; flex: 0 0 auto; place-items: center; border-radius: 7px; background: #f0effc; color: var(--purple); font-size: 17px; }
.scenario-title h3 { margin: 3px 0 0; font-family: var(--display); font-size: 13px; letter-spacing: -.025em; }
.scenario-steps { display: grid; grid-template-columns: 1fr 14px 1fr 14px 1fr 14px 1fr 14px 1fr 14px 1fr; align-items: center; gap: 5px; margin-top: 17px; }
.scenario-steps article { min-height: 76px; padding: 10px; border: 1px solid #e8eaf0; border-radius: 6px; background: #fafbfc; }
.scenario-steps article > span { display: block; color: #959eae; font-family: var(--mono); font-size: 6px; letter-spacing: .05em; }
.scenario-steps article b { display: block; margin-top: 8px; color: #4c5870; font-family: var(--display); font-size: 10px; line-height: 1.25; }
.scenario-steps article small { color: #8b95a6; font-size: 7px; }
.scenario-steps .measure { border-color: #d7d1f2; background: #f6f4ff; }
.scenario-steps .measure > span, .scenario-steps .measure b { color: #6c5fc1; }
.scenario-arrow { color: #b8bfcb; font-size: 12px; text-align: center; }
.scenario-caveat { margin: 12px 0 0; color: #8b95a6; font-size: 8px; }
.quality-examples-title { margin: 14px 0 8px; }
.quality-examples-title h3 { margin: 3px 0 0; color: #4b566c; font-family: var(--display); font-size: 11px; }
.quality-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin-top: 12px; }
.quality-grid article { min-height: 123px; padding: 13px; border: 1px solid #e6e9ef; border-radius: 7px; background: #fff; }
.quality-mark { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 6px; background: #eef6fc; color: #609bc3; font-size: 14px; }
.quality-grid article:nth-child(2) .quality-mark { background: #edf8f0; color: #60a27a; }
.quality-grid article:nth-child(3) .quality-mark { background: #fff3e9; color: #cb8751; }
.quality-grid article:nth-child(4) .quality-mark { background: #f1effd; color: #7768d1; }
.quality-grid h3 { margin: 8px 0 3px; font-family: var(--display); font-size: 11px; }
.quality-grid p { margin: 0; color: #7d8799; font-size: 8px; line-height: 1.55; }
.quality-guide { margin: 12px 0 7px; color: #69758a; font-size: 8px; line-height: 1.5; }
.tradeoff-board { margin-top: 12px; overflow: hidden; border: 1px solid #e5e8ef; border-radius: 7px; background: #fff; }
.tradeoff-heading, .tradeoff-line { display: grid; grid-template-columns: .75fr 1fr 24px 1.15fr; align-items: center; gap: 9px; padding: 10px 13px; }
.tradeoff-heading { background: #f4f5f8; color: #939bac; font-family: var(--mono); font-size: 6px; letter-spacing: .05em; }
.tradeoff-heading span:last-child { grid-column: 2 / 5; text-align: right; }
.tradeoff-heading b { color: #7c70cc; font-size: 10px; }
.tradeoff-line { border-top: 1px solid #eff0f4; color: #7b8699; font-size: 8px; }
.tradeoff-line > b { color: #526078; font-size: 8px; }
.tradeoff-line > i { color: #9c92db; font-size: 12px; font-style: normal; text-align: center; }
.source-note { margin: 12px 0 0; color: #8a94a5; font-size: 8px; }
.source-note a { color: #6b60ba; font-weight: 600; text-decoration-color: #c4bee9; text-underline-offset: 2px; }

.boundary-section { max-width: none; padding-right: max(6vw, calc((100vw - 1280px) / 2)); padding-left: max(6vw, calc((100vw - 1280px) / 2)); background: #fff; }
.concept-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.concept-pair article { display: flex; align-items: center; gap: 11px; padding: 12px 14px; border: 1px solid #e7e9ef; border-radius: 7px; background: #fafbfc; }
.concept-symbol { display: grid; width: 30px; height: 30px; flex: 0 0 auto; place-items: center; border-radius: 7px; background: #eff8f1; color: #5d9c74; font-size: 15px; }
.concept-coupling { background: #f2f0fd; color: #7768d1; }
.concept-pair b { color: #4e5a71; font-family: var(--display); font-size: 10px; }
.concept-pair p { margin: 1px 0 0; color: #818b9c; font-size: 8px; }
.boundary-demo { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin-top: 12px; }
.boundary-side { padding: 15px; border: 1px solid #dfeadf; border-radius: 8px; background: #fbfefb; }
.boundary-side.bad-boundary { border-color: #f0e2db; background: #fffdfb; }
.boundary-label { display: flex; align-items: center; gap: 7px; color: #6a9e78; font-family: var(--mono); font-size: 7px; letter-spacing: .07em; }
.bad-boundary .boundary-label { color: #bd806c; }
.boundary-label span { display: grid; width: 17px; height: 17px; place-items: center; border-radius: 50%; background: #eaf6ec; font-size: 10px; }
.bad-boundary .boundary-label span { background: #fff0e9; }
.module-row { display: flex; min-height: 96px; align-items: center; justify-content: center; gap: 8px; margin: 7px 0; }
.module-card { display: grid; min-width: 0; min-height: 58px; align-content: center; gap: 3px; padding: 8px; border: 1px solid #d9e7dc; border-radius: 5px; background: #fff; }
.module-card b { color: #526c59; font-family: var(--mono); font-size: 7px; }
.module-card small { color: #84958a; font-size: 7px; }
.module-card > span { color: #5e966d; font-size: 7px; }
.orders-module { border-color: #dcd7f4; }
.orders-module b { color: #6e65a7; }
.orders-module small { color: #8981b3; }
.module-connector { color: #71a57c; font-size: 16px; }
.module-connector.broken { color: #c17460; }
.boundary-side > p { margin: 0; color: #7d8990; font-size: 8px; line-height: 1.6; }
.boundary-rule { display: flex; align-items: center; gap: 12px; margin-top: 11px; padding: 12px 14px; border-radius: 6px; background: #f2f1fc; }
.boundary-rule > span { color: #7c70c6; font-family: var(--mono); font-size: 7px; white-space: nowrap; }
.boundary-rule p { margin: 0; color: #657087; font-size: 8px; }
.boundary-section .source-note { margin-top: 10px; }

.failure-story { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 15px; margin-top: 14px; padding: 16px; border: 1px solid #e9e6f7; border-radius: 8px; background: #f8f7ff; }
.failure-copy h3 { margin: 4px 0; font-family: var(--display); font-size: 15px; letter-spacing: -.03em; }
.failure-copy > p { margin: 0; color: #7b8698; font-size: 8px; line-height: 1.6; }
.http-example { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 9px; }
.http-example code { padding: 4px 6px; border-radius: 4px; background: #262b47; color: #d8d2fb; font-family: var(--mono); font-size: 7px; }
.http-example > span { color: #858ca0; font-family: var(--mono); font-size: 6px; }
.http-example b { color: #6e63c4; }
.retry-visual { display: grid; grid-template-columns: 1fr 45px 1fr; align-items: center; gap: 6px; }
.retry-attempt { display: grid; min-height: 66px; align-content: center; gap: 3px; padding: 9px; border: 1px solid #f0ddcd; border-radius: 5px; background: #fff; }
.retry-attempt > span { color: #b18768; font-family: var(--mono); font-size: 6px; }
.retry-attempt b { color: #606b7e; font-size: 8px; }
.retry-attempt small { color: #9a8c82; font-size: 7px; }
.retry-attempt.retry-safe { border-color: #d7eadb; background: #f5fbf6; }
.retry-attempt.retry-safe > span, .retry-attempt.retry-safe small { color: #649476; }
.retry-dash { display: grid; justify-items: center; gap: 4px; color: #be8760; font-family: var(--mono); font-size: 6px; }
.retry-dash i { width: 100%; border-top: 1px dashed #dfb28f; }
.resilience-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
.resilience-grid article { min-height: 100px; padding: 12px; border: 1px solid #e6e8ef; border-radius: 6px; background: #fff; }
.resilience-index { color: #9c91d8; font-family: var(--mono); font-size: 7px; }
.resilience-grid h3 { margin: 5px 0 3px; font-family: var(--display); font-size: 10px; }
.resilience-grid p { margin: 0; color: #808b9c; font-size: 8px; line-height: 1.55; }
.distributed-data { margin-top: 10px; padding: 12px 14px; border-left: 3px solid #86bd94; border-radius: 0 6px 6px 0; background: #f1f8f2; }
.data-badge { color: #639372; font-family: var(--mono); font-size: 7px; letter-spacing: .07em; }
.distributed-data p { margin: 4px 0; color: #727f77; font-size: 8px; line-height: 1.6; }
.distributed-data p b { color: #4c7256; }
.distributed-data a, .signals-heading a { color: #5b956c; font-size: 8px; font-weight: 700; text-decoration: none; }
.outbox-detail { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 15px; margin-top: 10px; padding: 13px 15px; border: 1px solid #e3e0f6; border-radius: 7px; background: #fff; }
.outbox-detail h3 { margin: 3px 0; font-family: var(--display); font-size: 11px; }
.outbox-detail p { margin: 0; color: #828da0; font-size: 8px; line-height: 1.6; }
.outbox-flow { display: flex; align-items: center; justify-content: center; gap: 6px; }
.outbox-flow span { padding: 6px 7px; border: 1px solid #e5e3f2; border-radius: 4px; background: #f7f6fc; color: #625ab0; font-family: var(--mono); font-size: 6px; }
.outbox-flow b { color: #9c93d7; font-size: 9px; }
.signals-panel { margin-top: 10px; padding: 13px 15px; border: 1px solid #e5e8ef; border-radius: 7px; background: #fff; }
.signals-heading { display: flex; align-items: end; justify-content: space-between; }
.signals-heading h3 { margin: 3px 0 0; font-family: var(--display); font-size: 11px; }
.signals-heading a { color: #6c61bb; }
.signal-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin-top: 10px; }
.signal-list div { padding: 8px 9px; border-radius: 5px; background: #f7f8fb; }
.signal-list b, .signal-list span { display: block; }
.signal-list b { color: #57637a; font-size: 8px; }
.signal-list span { color: #8993a3; font-size: 7px; }
.async-section .source-note { margin-top: 10px; }

.architecture-docs { max-width: none; padding-right: max(6vw, calc((100vw - 1280px) / 2)); padding-left: max(6vw, calc((100vw - 1280px) / 2)); background: #fff; }
.c4-panel { padding: 17px; border: 1px solid #e4e7ef; border-radius: 8px; background: #fafbfc; }
.c4-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.c4-heading h3 { margin: 4px 0 0; font-family: var(--display); font-size: 13px; }
.c4-heading > a, .adr-link, .fitness-note > a { color: #6b60ba; font-size: 8px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.c4-zoom { display: grid; grid-template-columns: 1fr 28px 1fr 28px 1fr 28px 1fr; align-items: center; gap: 7px; margin-top: 14px; }
.c4-zoom-short { grid-template-columns: 1fr 28px 1fr; max-width: 620px; }
.c4-zoom article { position: relative; display: grid; min-height: 100px; justify-items: center; align-content: center; gap: 3px; border: 1px solid #e7e9ef; border-radius: 6px; background: #fff; }
.c4-zoom article > span { position: absolute; top: 7px; left: 8px; color: #aaa4d7; font-family: var(--mono); font-size: 7px; }
.c4-zoom article > b { color: #546078; font-family: var(--display); font-size: 9px; }
.c4-zoom article > small { color: #8993a4; font-size: 7px; }
.zoom-icon { display: flex; height: 37px; align-items: center; justify-content: center; gap: 3px; }
.zoom-icon i { display: block; width: 13px; height: 13px; border: 1px solid #aaa0e4; border-radius: 3px; background: #f2f0fc; }
.zoom-context i:first-child { width: 19px; height: 19px; border-color: #a6cde2; background: #eff8fd; }
.zoom-context i:last-child { border-color: #e8bd9a; background: #fff5ec; }
.zoom-container i { width: 21px; height: 24px; border-color: #aaa0e4; background: #f2f0fc; }
.zoom-container i:last-child { border-color: #95c39f; background: #f0f8f1; }
.zoom-components i { width: 11px; height: 19px; }
.zoom-components i:nth-child(2) { height: 27px; border-color: #e5bc98; background: #fff4e9; }
.zoom-components i:nth-child(3) { border-color: #93c09b; background: #f0f8f1; }
.zoom-code { gap: 2px; }
.zoom-code i { width: 24px; height: 4px; border: 0; border-radius: 2px; background: #aa9fe2; }
.zoom-code i:nth-child(2) { width: 18px; background: #9acaa4; }
.zoom-code i:nth-child(3) { width: 21px; background: #edba91; }
.zoom-arrow { color: #9c93d6; text-align: center; }
.c4-note { margin: 11px 0 0; color: #7f8a9c; font-size: 8px; line-height: 1.6; }
.adr-panel { display: grid; grid-template-columns: .72fr 1.28fr; gap: 18px; margin-top: 12px; padding: 16px; border: 1px solid #e2e5ec; border-radius: 8px; background: #fff; }
.adr-heading h3 { margin: 5px 0 3px; font-family: var(--display); font-size: 13px; }
.adr-heading > p { margin: 0; color: #7f899a; font-size: 8px; line-height: 1.55; }
.adr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.adr-grid article { padding: 9px; border: 1px solid #eceef2; border-radius: 5px; background: #fafbfc; }
.adr-grid article > span { color: #8d83cb; font-family: var(--mono); font-size: 6px; letter-spacing: .07em; }
.adr-grid p { margin: 4px 0 0; color: #758196; font-size: 8px; line-height: 1.5; }
.adr-link { grid-column: 2; justify-self: start; }
.fitness-note { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 11px 13px; border-radius: 6px; background: #f3f1fd; }
.fitness-note > span { color: #786bc9; font-family: var(--mono); font-size: 6px; letter-spacing: .06em; white-space: nowrap; }
.fitness-note p { flex: 1; margin: 0; color: #737c90; font-size: 8px; line-height: 1.6; }
.fitness-note p b { color: #574e9e; }
.references-section { max-width: 1280px; }
.reading-level { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; color: #9ba3b1; font-family: var(--mono); font-size: 7px; letter-spacing: .06em; }
.reading-level i { height: 1px; flex: 1; background: #dfe2e9; }
.reading-level b { color: #7c72c2; font-weight: 500; }
.book-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.book-card { display: grid; min-height: 139px; grid-template-columns: 77px 1fr; align-items: center; gap: 14px; padding: 12px; border: 1px solid #e6e8ee; border-radius: 7px; background: #fff; text-decoration: none; transition: transform .18s, border-color .18s, box-shadow .18s; }
.book-card:hover { transform: translateY(-2px); border-color: #c8c1eb; box-shadow: 0 8px 20px rgba(35,45,73,.06); }
.book-card.book-primary { border-color: #d8d3f1; background: #fbfaff; }
.book-cover { position: relative; display: flex; width: 70px; height: 106px; flex-direction: column; justify-content: end; overflow: hidden; gap: 4px; padding: 8px 6px; border-radius: 3px; background: #29284a; box-shadow: 2px 3px 8px rgba(35,40,65,.14); color: #fff; }
.book-cover i { position: absolute; top: -5px; left: -5px; width: 48px; height: 48px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; }
.book-cover i:nth-child(2) { top: 8px; left: 14px; width: 58px; height: 58px; border-color: rgba(215,251,104,.55); }
.book-cover i:nth-child(3) { top: 21px; left: 33px; width: 39px; height: 39px; border-color: rgba(255,255,255,.2); }
.book-cover b { position: relative; z-index: 1; font-family: var(--display); font-size: 8px; line-height: 1.2; }
.book-cover small { position: relative; z-index: 1; color: #c5c9d8; font-family: var(--mono); font-size: 5px; letter-spacing: .04em; }
.cover-practice { background: #1d4551; }
.cover-practice i { border-color: rgba(143,200,239,.6); }
.cover-practice i:nth-child(2) { border-color: rgba(215,251,104,.5); }
.cover-hardparts { background: #353051; }
.cover-micro { background: #244337; }
.book-info { display: block; min-width: 0; }
.book-info > small { display: block; margin-bottom: 4px; color: #8a82c3; font-family: var(--mono); font-size: 6px; letter-spacing: .05em; }
.book-info > strong { display: block; color: #313b53; font-family: var(--display); font-size: 11px; line-height: 1.35; }
.book-info > span { display: block; margin-top: 3px; color: #7f899b; font-size: 8px; }
.book-info > em { display: block; margin-top: 7px; color: #8a94a4; font-size: 8px; font-style: normal; line-height: 1.5; }
.article-list { margin-top: 12px; border: 1px solid #e5e8ef; border-radius: 7px; background: #fff; }
.article-list summary { padding: 12px 14px; color: #4e5a72; cursor: pointer; font-family: var(--display); font-size: 10px; font-weight: 700; list-style: none; }
.article-list summary::-webkit-details-marker { display: none; }
.article-list summary::after { float: right; color: #978fd1; content: '+'; font-size: 15px; line-height: 1; }
.article-list[open] summary::after { content: '−'; }
.article-list summary span { float: right; margin-right: 12px; color: #9b93d1; font-family: var(--mono); font-size: 6px; font-weight: 400; letter-spacing: .06em; line-height: 1.8; }
.article-links { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; padding: 0 12px 12px; }
.article-links a { display: grid; gap: 2px; padding: 9px; border: 1px solid #eceef2; border-radius: 5px; background: #fbfcfd; text-decoration: none; }
.article-links a:hover { border-color: #d0caef; background: #faf9ff; }
.article-links b { color: #7c70c6; font-family: var(--mono); font-size: 6px; font-weight: 500; }
.article-links span { color: #546078; font-size: 8px; font-weight: 700; }
.article-links small { color: #8791a1; font-size: 7px; }
.references-note { margin: 11px 0 0; color: #828d9e; font-size: 8px; line-height: 1.6; }

.http-contract { display: grid; grid-template-columns: minmax(145px, .75fr) 2fr auto; align-items: center; gap: 14px; margin-top: 12px; padding: 13px 15px; border: 1px solid #e7e9f0; border-radius: 7px; background: rgba(255,255,255,.8); }
.http-contract-intro h3 { margin: 4px 0 6px; color: #343e55; font-family: var(--display); font-size: 11px; }
.http-contract-intro code { color: #7971b0; font-family: var(--mono); font-size: 7px; }
.http-statuses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.http-statuses article { display: grid; gap: 4px; min-height: 43px; align-content: center; padding: 7px 9px; border-left: 2px solid #988ce0; background: #f7f6fc; }
.http-statuses article:nth-child(2) { border-color: #85bd91; background: #f3f8f3; }
.http-statuses article:nth-child(3) { border-color: #e4ad69; background: #fcf7f0; }
.http-statuses b { color: #4c5570; font-family: var(--mono); font-size: 7px; }
.http-statuses span { color: #7c8697; font-size: 7px; line-height: 1.4; }
.http-contract > a { color: #746ab6; font-size: 7px; font-weight: 700; text-decoration-color: #c9c4e7; text-underline-offset: 2px; white-space: nowrap; }

@media (max-width: 900px) {
  .http-contract { grid-template-columns: 1fr; gap: 9px; }
  .http-contract > a { justify-self: start; }
  .scenario-steps { grid-template-columns: 1fr 9px 1fr 9px 1fr 9px 1fr 9px 1fr 9px 1fr; gap: 3px; }
  .scenario-steps article { padding: 8px 6px; }
  .tradeoff-heading, .tradeoff-line { grid-template-columns: .65fr 1fr 18px 1.15fr; gap: 6px; }
  .failure-story { grid-template-columns: 1fr; }
  .retry-visual { max-width: 620px; }
  .adr-panel { grid-template-columns: 1fr; }
  .adr-link { grid-column: 1; }
}
@media (max-width: 760px) {
  .top-nav { overflow-x: auto; }
  .quality-grid { grid-template-columns: 1fr 1fr; }
  .scenario-steps { grid-template-columns: 1fr; }
  .scenario-arrow { transform: rotate(90deg); }
  .scenario-steps article { min-height: 63px; }
  .tradeoff-board { overflow-x: auto; }
  .tradeoff-heading, .tradeoff-line { min-width: 570px; }
  .boundary-demo { grid-template-columns: 1fr; }
  .resilience-grid { grid-template-columns: 1fr 1fr; }
  .c4-zoom { grid-template-columns: 1fr 17px 1fr; }
  .c4-zoom-short { grid-template-columns: 1fr 17px 1fr; }
  .c4-zoom article:nth-of-type(1) { grid-column: 1; grid-row: 1; }
  .c4-zoom article:nth-of-type(2) { grid-column: 3; grid-row: 1; }
  .c4-zoom article:nth-of-type(3) { grid-column: 1; grid-row: 2; }
  .c4-zoom article:nth-of-type(4) { grid-column: 3; grid-row: 2; }
  .c4-zoom .zoom-arrow { display: none; }
  .book-grid { grid-template-columns: 1fr; }
  .references-section { padding-right: 23px; padding-left: 23px; }
}
@media (max-width: 500px) {
  .requirement-compare, .concept-pair { grid-template-columns: 1fr; }
  .quality-grid { gap: 6px; }
  .quality-grid article { min-height: 113px; padding: 10px; }
  .tradeoff-heading, .tradeoff-line { min-width: 535px; }
  .boundary-rule { align-items: start; flex-direction: column; gap: 4px; }
  .module-row { gap: 4px; }
  .module-card { padding: 6px; }
  .retry-visual { grid-template-columns: 1fr 34px 1fr; gap: 3px; }
  .retry-attempt { padding: 7px 5px; }
  .retry-attempt > span { font-size: 5px; }
  .retry-attempt b { font-size: 7px; }
  .outbox-detail { grid-template-columns: 1fr; }
  .outbox-flow { justify-content: flex-start; gap: 5px; }
  .outbox-flow span { padding: 5px 4px; font-size: 5px; }
  .signal-list { grid-template-columns: 1fr 1fr; }
  .fitness-note { align-items: start; flex-direction: column; gap: 5px; }
  .c4-panel { padding: 12px; }
  .c4-zoom { grid-template-columns: 1fr 13px 1fr; gap: 4px; }
  .c4-zoom article { min-height: 86px; }
  .c4-zoom article > small { max-width: 105px; text-align: center; }
  .c4-heading h3 { font-size: 11px; }
  .c4-heading > a { font-size: 7px; }
  .adr-panel { padding: 12px; }
  .adr-grid { grid-template-columns: 1fr; }
  .article-links { grid-template-columns: 1fr; }
  .article-list summary span { display: none; }
  .book-card { grid-template-columns: 67px 1fr; gap: 10px; padding: 9px; }
  .book-cover { width: 62px; height: 95px; }
  .book-info > strong { font-size: 10px; }
  .reading-level { font-size: 6px; }
  .reading-level b { font-size: 6px; }
}
@media print {
  .top-nav, .present-button, .article-list summary span { display: none !important; }
  .architecture-tabs { break-inside: avoid; }
  .book-card { break-inside: avoid; }
}

/* Aula refeita para leitura em apresentação */
body { font-size: 16px; line-height: 1.65; }
.brand { font-size: 12px; }
.brand small { font-size: 9px; }
.top-nav a { font-size: 14px; }
.present-button { min-height: 42px; font-size: 13px; }
.eyebrow { font-size: 10px; }
.hero { min-height: 630px; }
.hero h1 { font-size: clamp(48px, 5.2vw, 76px); }
.hero-copy > p { font-size: 19px; line-height: 1.65; }
.hero-note { font-size: 14px; }
.hero-points { font-size: 10px; }
.hero-art svg text[font-size="8"] { font-size: 10px; }
.hero-art svg text[font-size="10"], .hero-art svg text[font-size="11"] { font-size: 12px; }
.art-label, .art-footer, .hero-bottom { font-size: 9px; }
.lesson-meta { min-height: 58px; font-size: 13px; }
.lesson-meta b { font-size: 11px; }
.section-block { padding-top: 88px; padding-bottom: 88px; }
.section-heading { gap: 42px; margin-bottom: 38px; }
.section-no { width: 25px; height: 25px; font-size: 11px; }
.section-heading h2 { font-size: clamp(36px, 4vw, 54px); }
.section-heading > p { max-width: 420px; font-size: 16px; line-height: 1.65; }
.responsibility-strip article { min-height: 185px; padding: 21px; }
.responsibility-strip h3 { font-size: 19px; }
.responsibility-strip p { font-size: 15px; line-height: 1.55; }
.responsibility-strip small, .strip-no { font-size: 10px; }
.key-sentence { padding: 17px 20px; }
.key-sentence > span:first-child { font-size: 10px; }
.key-sentence p { font-size: 17px; }
.speaker-note summary { padding: 13px 15px; font-size: 14px; }
.speaker-note p { padding: 0 16px 15px; font-size: 14px; }
.http-contract { gap: 18px; padding: 18px; }
.http-contract-intro h3 { font-size: 16px; }
.http-contract-intro code, .http-contract > a { font-size: 11px; }
.http-statuses b { font-size: 12px; }
.http-statuses span { font-size: 12px; }
.concept-breakdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.concept-breakdown article { min-height: 152px; padding: 20px; border: 1px solid #e3e7ef; border-radius: 9px; background: #fff; }
.concept-breakdown article > span { display: block; color: #8175ca; font-family: var(--mono); font-size: 11px; letter-spacing: .07em; }
.concept-breakdown article > b { display: block; margin-top: 13px; color: #354158; font-family: var(--display); font-size: 18px; }
.concept-breakdown article > p { margin: 5px 0 0; color: #6f7b90; font-size: 14px; }
.concept-problem { display: flex; align-items: start; gap: 18px; margin-top: 14px; padding: 18px 20px; border-left: 4px solid #786bd2; border-radius: 0 8px 8px 0; background: #f0eefb; }
.concept-problem > span { flex: 0 0 auto; color: #6b5fc1; font-family: var(--mono); font-size: 11px; font-weight: 700; }
.concept-problem > p { margin: 0; color: #48546b; font-size: 16px; }
.evolution-track h3 { font-size: 18px; }
.evolution-track p { font-size: 14px; }
.evo-index { font-size: 10px; }
.not-a-ladder p { font-size: 14px; }
.architecture-tab { padding: 17px; }
.tab-top { font-size: 11px; }
.tab-kind { font-size: 9px; }
.mini-diagram { height: 72px; }
.mini-diagram i { font-size: 10px; }
.mini-diagram b { font-size: 14px; }
.architecture-tab > strong { font-size: 16px; }
.architecture-tab > small { font-size: 12px; }
.visual-caption { font-size: 11px; }
.visual-legend { gap: 16px; font-size: 11px; }
.arch-svg .svg-small { font-size: 10px; }
.arch-svg .svg-label { font-size: 13px; }
.arch-svg .svg-foot { font-size: 9px; }
.detail-tag { font-size: 10px; }
.architecture-explanation > p { font-size: 15px; }
.detail-row b { font-size: 13px; }
.detail-row span { font-size: 13px; }
.detail-callout { font-size: 13px; }
.comparison-table th, .comparison-table td { padding: 13px 15px; font-size: 13px; }
.comparison-table thead th { font-size: 11px; }
.comparison-table tbody th { font-size: 13px; }
.table-title { font-size: 10px; }
.quality-grid article { min-height: 145px; padding: 18px; }
.quality-grid h3 { font-size: 17px; }
.quality-grid p { font-size: 14px; line-height: 1.55; }
.quality-examples-title h3 { font-size: 17px; }
.quality-guide { font-size: 14px; line-height: 1.55; }
.scenario-title h3 { font-size: 18px; }
.scenario-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.scenario-steps article { min-height: 106px; padding: 14px; }
.scenario-steps article > span { font-size: 10px; }
.scenario-steps article b { margin-top: 10px; font-size: 16px; }
.scenario-steps article small { font-size: 12px; }
.scenario-caveat { font-size: 13px; line-height: 1.55; }
.tradeoff-heading { font-size: 10px; }
.tradeoff-line, .tradeoff-line > b { font-size: 12px; }
.source-note { font-size: 12px; line-height: 1.6; }
.concept-pair b { font-size: 15px; }
.concept-pair p, .boundary-side > p, .boundary-rule p { font-size: 14px; line-height: 1.55; }
.boundary-label { font-size: 10px; }
.module-card b { font-size: 10px; }
.module-card small, .module-card > span { font-size: 11px; }
.boundary-rule > span { font-size: 10px; }
.failure-copy h3 { font-size: 21px; }
.failure-copy > p { font-size: 14px; }
.http-example code, .http-example > span { font-size: 11px; }
.retry-attempt > span, .retry-dash { font-size: 9px; }
.retry-attempt b { font-size: 13px; }
.retry-attempt small { font-size: 11px; }
.resilience-grid article { min-height: 138px; padding: 16px; }
.resilience-index { font-size: 10px; }
.resilience-grid h3 { font-size: 16px; }
.resilience-grid p, .distributed-data p { font-size: 14px; line-height: 1.55; }
.data-badge { font-size: 10px; }
.distributed-data a, .signals-heading a { font-size: 12px; }
.outbox-detail h3, .signals-heading h3 { font-size: 18px; }
.outbox-detail p { font-size: 14px; }
.outbox-flow span { font-size: 10px; }
.signal-list b { font-size: 13px; }
.signal-list span { font-size: 11px; }
.micro-label { font-size: 10px; }
.c4-heading h3 { font-size: 18px; }
.c4-heading > a, .adr-link, .fitness-note > a { font-size: 12px; }
.c4-zoom article > span { font-size: 10px; }
.c4-zoom article > b { font-size: 14px; }
.c4-zoom article > small, .c4-note { font-size: 12px; }
.adr-heading h3 { font-size: 18px; }
.adr-heading > p, .adr-grid p { font-size: 13px; }
.adr-grid article > span, .fitness-note > span { font-size: 10px; }
.fitness-note p { font-size: 14px; }
.exercise-heading h2 { font-size: clamp(38px, 4vw, 54px); }
.exercise-heading > div:first-child > p { font-size: 17px; }
.exercise-option { min-height: 92px; padding: 18px; }
.exercise-option > span { font-size: 15px; }
.exercise-option b { font-size: 16px; }
.exercise-option small { font-size: 13px; }
.exercise-feedback p { font-size: 15px; }
.online-tip { font-size: 14px; }
.book-info > small, .article-links b { font-size: 9px; }
.book-info > strong { font-size: 15px; }
.book-info > span, .book-info > em { font-size: 13px; line-height: 1.55; }
.article-list summary { font-size: 15px; }
.article-list summary span { font-size: 9px; }
.article-links span { font-size: 13px; }
.article-links small { font-size: 12px; }
.references-note { font-size: 13px; }
.closing-section .eyebrow, .back-top, .footer { font-size: 10px; }
.closing-section h2 { font-size: 30px; }
.closing-section > p { max-width: 430px; font-size: 15px; }

.scale-section { max-width: none; padding-right: max(6vw, calc((100vw - 1280px) / 2)); padding-left: max(6vw, calc((100vw - 1280px) / 2)); background: #f1f3f8; }
.load-estimate { padding: 20px; border: 1px solid #dfe3ec; border-radius: 10px; background: #fff; }
.load-formula { display: grid; gap: 6px; padding-bottom: 16px; border-bottom: 1px solid #edf0f4; }
.load-formula > span, .scale-architecture-title > span { color: #766bc2; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; }
.load-formula > b { color: #344057; font-family: var(--display); font-size: 19px; }
.load-formula > small { color: #758197; font-size: 14px; }
.load-examples { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 15px; }
.load-examples article { display: grid; gap: 5px; padding: 16px; border: 1px solid #e7e9ef; border-radius: 7px; background: #fafbfc; }
.load-examples article > span { color: #8b95a7; font-family: var(--mono); font-size: 10px; }
.load-examples article > b { color: #5e6a80; font-size: 14px; font-weight: 600; }
.load-examples article > strong { color: #564baf; font-family: var(--display); font-size: 23px; }
.load-examples article > small { color: #8993a4; font-size: 12px; }
.scale-caveat { margin: 10px 0 0; color: #747f93; font-size: 13px; line-height: 1.6; }
.scale-architecture { margin-top: 17px; padding: 20px; border: 1px solid #28344b; border-radius: 10px; background: #131d32; color: #fff; }
.scale-architecture-title { display: flex; justify-content: space-between; gap: 20px; }
.scale-architecture-title > span { color: #f2a36b; }
.scale-architecture-title > b { color: #9eabc0; font-family: var(--mono); font-size: 10px; font-weight: 400; }
.scale-route { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 15px; }
.scale-route > i { color: #d7fb68; font-size: 21px; font-style: normal; }
.scale-node, .api-pool b { display: grid; min-height: 64px; flex: 1; place-items: center; padding: 10px; border: 1px solid #42506a; border-radius: 7px; background: #1d2942; color: #e4eaf3; font-family: var(--mono); font-size: 13px; text-align: center; }
.single-node { border-color: #e99b66; color: #ffd2ad; }
.balancer-node { border-color: #8fc8ef; color: #b7e3ff; }
.api-pool { display: grid; flex: 2; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.api-pool b { min-height: 54px; border-color: #8b80d7; color: #d1cafd; font-size: 12px; }
.scale-architecture > p { margin: 13px 0 0; color: #aeb8c9; font-size: 14px; }
.scale-stage-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 15px; }
.scale-stage-grid article { min-height: 190px; padding: 19px; border: 1px solid #e1e5ed; border-radius: 8px; background: #fff; }
.scale-stage-grid article > span { color: #8175ca; font-family: var(--mono); font-size: 10px; letter-spacing: .05em; }
.scale-stage-grid h3 { margin: 10px 0 6px; color: #354158; font-family: var(--display); font-size: 19px; line-height: 1.3; }
.scale-stage-grid p { margin: 0; color: #6e7a90; font-size: 14px; line-height: 1.6; }

.events-section { max-width: 1280px; }
.event-flow { display: grid; grid-template-columns: minmax(150px, 1fr) 30px minmax(185px, 1.15fr) 30px minmax(210px, 1.4fr); align-items: center; gap: 9px; padding: 18px; border: 1px solid #e4e7ef; border-radius: 10px; background: #f8f9fc; }
.event-node { display: grid; min-height: 104px; align-content: center; gap: 6px; padding: 15px; border: 1px solid #e3e6ed; border-radius: 8px; background: #fff; }
.event-node > span, .event-basics article > span { color: #8175ca; font-family: var(--mono); font-size: 10px; letter-spacing: .06em; }
.event-node > b { color: #354158; font-family: var(--display); font-size: 17px; }
.event-node > small { color: #7c879a; font-size: 13px; }
.event-channel { border-color: #d9d3f5; background: #f3f1fc; }
.event-channel > b { color: #6257b6; }
.event-arrow { color: #8278c9; font-size: 22px; text-align: center; }
.event-consumers { display: grid; gap: 8px; }
.event-consumers .event-node { min-height: 76px; padding: 11px 14px; }
.event-consumers .event-node > b { font-size: 15px; }
.event-basics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.event-basics article { padding: 15px; border: 1px solid #e6e9ef; border-radius: 8px; background: #fff; }
.event-basics article > b { display: block; margin-top: 7px; color: #354158; font-family: var(--display); font-size: 16px; }
.event-basics article > p { margin: 5px 0 0; color: #748096; font-size: 13px; line-height: 1.55; }
.event-tradeoffs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.event-tradeoffs > div { padding: 15px 17px; border: 1px solid #e6e9ef; border-radius: 8px; background: #fff; }
.event-tradeoffs p { margin: 6px 0 0; color: #66738a; font-size: 14px; line-height: 1.55; }
.event-good, .event-cost { font-family: var(--mono); font-size: 10px; letter-spacing: .06em; }
.event-good { color: #4f9872; }
.event-cost { color: #bf7950; }
.events-section .source-note { margin-top: 11px; }

.aws-section { max-width: none; padding-right: max(6vw, calc((100vw - 1280px) / 2)); padding-left: max(6vw, calc((100vw - 1280px) / 2)); background: #f1f3f8; }
.aws-architecture, .aws-entry-choices { padding: 18px; border: 1px solid #dfe3ec; border-radius: 10px; background: #fff; }
.aws-architecture-heading, .aws-choice-heading { display: flex; justify-content: space-between; gap: 12px; color: #7a70c1; font-family: var(--mono); font-size: 10px; letter-spacing: .06em; }
.aws-architecture-heading > span:last-child, .aws-choice-heading > span:last-child { color: #939daf; }
.aws-request-flow { display: flex; align-items: stretch; gap: 8px; margin-top: 15px; }
.aws-request-flow > i { align-self: center; color: #8175ca; font-size: 19px; font-style: normal; }
.aws-node { display: grid; min-width: 0; flex: 1; align-content: center; gap: 6px; padding: 14px; border: 1px solid #e4e7ed; border-radius: 7px; background: #fafbfc; }
.aws-node > small, .aws-targets small { color: #7d72c5; font-family: var(--mono); font-size: 9px; letter-spacing: .04em; }
.aws-node > b { color: #39455c; font-family: var(--display); font-size: 15px; line-height: 1.3; }
.aws-node > span { color: #748096; font-size: 11px; line-height: 1.4; }
.aws-optional { border-style: dashed; }
.aws-load-balancer { border-color: #cec9ef; background: #f6f5fc; }
.aws-load-balancer > b { color: #5f55b0; }
.aws-backend-flow { max-width: 710px; margin: 12px 0 0 auto; padding: 14px; border: 1px solid #e3e6ed; border-radius: 7px; background: #f9fafc; }
.aws-flow-label { display: block; color: #8993a5; font-family: var(--mono); font-size: 9px; letter-spacing: .04em; text-align: center; }
.aws-targets { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 9px; }
.aws-targets article { display: grid; gap: 5px; padding: 11px; border: 1px solid #dfe3ed; border-radius: 6px; background: #fff; text-align: center; }
.aws-targets b { color: #46536c; font-size: 12px; }
.aws-backend-flow > p { margin: 8px 0 0; color: #748096; font-size: 11px; text-align: center; }
.aws-data-flow { display: flex; max-width: 710px; flex-direction: column; align-items: center; margin: 0 0 0 auto; }
.aws-data-flow > i { color: #8175ca; font-size: 18px; font-style: normal; line-height: 1.4; }
.aws-database { width: min(100%, 340px); flex: none; border-color: #ead8c8; background: #fffaf5; text-align: center; }
.aws-database > small { color: #bd8158; }
.aws-entry-choices { margin-top: 12px; }
.aws-choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.aws-choice-grid article { padding: 14px 16px; border: 1px solid #e5e8ef; border-radius: 7px; }
.aws-label { color: #7166bf; font-family: var(--mono); font-size: 9px; letter-spacing: .05em; }
.aws-label.alb { color: #b3734e; }
.aws-choice-grid h3 { margin: 6px 0 4px; color: #39455c; font-family: var(--display); font-size: 16px; }
.aws-choice-grid p, .aws-choice-grid small { margin: 0; color: #718096; font-size: 12px; line-height: 1.5; }
.aws-choice-grid small { display: block; margin-top: 5px; color: #999faf; }
.aws-serverless-flow { margin-top: 11px; padding: 12px 14px; border: 1px dashed #dcd9ef; border-radius: 7px; background: #faf9fe; }
.aws-serverless-flow > span { color: #7a70c1; font-family: var(--mono); font-size: 9px; letter-spacing: .05em; }
.aws-serverless-flow > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 9px; }
.aws-serverless-flow b { color: #56627a; font-size: 11px; text-align: center; }
.aws-serverless-flow i { color: #8175ca; font-size: 15px; font-style: normal; }
.aws-key-point { margin: 10px 0 0; padding: 10px 12px; border-left: 3px solid #d7b35f; background: #fcf8ed; color: #657086; font-size: 12px; line-height: 1.5; }
.aws-key-point b { color: #4b566d; }
.aws-scale-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin-top: 12px; }
.aws-scale-grid article { min-height: 145px; padding: 14px; border: 1px solid #dfe3ec; border-radius: 7px; background: #fff; }
.aws-scale-grid article > span { color: #8075c7; font-family: var(--mono); font-size: 9px; }
.aws-scale-grid h3 { margin: 8px 0 4px; color: #39455c; font-family: var(--display); font-size: 15px; }
.aws-scale-grid p { margin: 0; color: #748096; font-size: 11px; line-height: 1.5; }
.aws-decision { display: flex; align-items: flex-start; gap: 14px; margin-top: 12px; padding: 14px 16px; border-left: 3px solid #786bd2; border-radius: 0 7px 7px 0; background: #fff; }
.aws-decision > span { flex: none; color: #6c61b8; font-family: var(--mono); font-size: 9px; letter-spacing: .05em; }
.aws-decision > p { margin: 0; color: #5d6980; font-size: 12px; line-height: 1.55; }
.aws-sources { margin-top: 10px; }

@media (max-width: 900px) {
  .concept-breakdown { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scale-stage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .event-flow { grid-template-columns: minmax(130px, 1fr) 22px minmax(160px, 1.1fr) 22px minmax(180px, 1.25fr); gap: 6px; padding: 12px; }
  .event-node { padding: 12px; }
  .aws-section { padding-right: 4vw; padding-left: 4vw; }
  .aws-scale-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .top-nav a { font-size: 12px; }
  .section-block { padding-top: 64px; padding-bottom: 64px; }
  .section-heading > p { font-size: 15px; }
  .concept-breakdown { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .load-examples { grid-template-columns: 1fr; }
  .scale-section { padding-right: 23px; padding-left: 23px; }
  .aws-section { padding-right: 23px; padding-left: 23px; }
  .scale-architecture-title { flex-direction: column; gap: 6px; }
  .scale-route { flex-direction: column; gap: 6px; }
  .scale-route > i { font-size: 16px; transform: rotate(90deg); }
  .scale-node { width: 100%; min-height: 57px; flex: none; padding: 8px; font-size: 12px; }
  .api-pool { width: 100%; flex: none; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .api-pool b { min-height: 48px; padding: 7px 4px; font-size: 12px; }
  .scale-stage-grid { grid-template-columns: 1fr; }
  .scale-stage-grid article { min-height: 0; }
  .event-flow { grid-template-columns: 1fr; justify-items: stretch; }
  .event-node, .event-consumers .event-node { min-height: 0; }
  .event-arrow { transform: rotate(90deg); }
  .event-consumers { grid-template-columns: 1fr 1fr; }
  .event-basics { grid-template-columns: 1fr; }
  .event-tradeoffs { grid-template-columns: 1fr; }
  .aws-section { padding-right: 17px; padding-left: 17px; }
  .aws-request-flow { flex-direction: column; }
  .aws-request-flow > i { transform: rotate(90deg); }
  .aws-backend-flow, .aws-data-flow { margin-left: 0; }
  .aws-choice-grid, .aws-scale-grid { grid-template-columns: 1fr; }
  .aws-architecture-heading, .aws-choice-heading { flex-direction: column; gap: 4px; }
  .aws-serverless-flow > div { flex-direction: column; }
  .aws-serverless-flow i { transform: rotate(90deg); }
  .aws-decision { flex-direction: column; gap: 6px; }
  .scenario-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .comparison-table { min-width: 760px; }
}
@media (max-width: 500px) {
  body { font-size: 15px; }
  .top-nav a { font-size: 10px; }
  .hero-copy > p { font-size: 17px; }
  .lesson-meta { font-size: 10px; }
  .section-heading h2 { font-size: 36px; }
  .concept-breakdown { grid-template-columns: 1fr; }
  .concept-breakdown article { min-height: 0; padding: 16px; }
  .concept-problem { display: block; }
  .concept-problem > p { margin-top: 5px; font-size: 15px; }
  .scale-section { padding-right: 17px; padding-left: 17px; }
  .events-section { padding-right: 17px; padding-left: 17px; }
  .load-formula > b { font-size: 17px; }
  .scale-route { gap: 6px; }
  .scale-node { min-height: 48px; font-size: 12px; }
  .api-pool { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .api-pool b { min-height: 42px; font-size: 12px; }
  .scenario-steps { grid-template-columns: 1fr; }
  .scenario-steps article { min-height: 0; }
  .event-consumers { grid-template-columns: 1fr; }
  .exercise-heading h2 { font-size: 38px; }
  .closing-section h2 { font-size: 26px; }
}
