:root {
  --ink: #071b45;
  --paper: #f5f7fc;
  --white: #ffffff;
  --lime: #dce7ff;
  --green: #0033a0;
  --orange: #2f6fed;
  --lavender: #aac3ff;
  --line: rgba(0, 51, 160, 0.16);
  --muted: #5f6f8f;
  --shadow: 0 20px 60px rgba(0, 51, 160, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans TC", sans-serif;
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 100; padding: 10px 16px; background: var(--lime); border: 2px solid var(--ink); font-weight: 700; }
.skip-link:focus { top: 16px; }

.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 20; }
.nav-wrap { width: min(1180px, calc(100% - 48px)); height: 94px; margin: auto; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: -0.02em; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--lime); font-family: "Space Grotesk", sans-serif; font-size: 14px; }
.desktop-nav { display: flex; align-items: center; gap: 30px; font-size: 14px; font-weight: 600; }
.desktop-nav a { position: relative; }
.desktop-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 2px; background: var(--ink); transition: right .25s ease; }
.desktop-nav a:hover::after { right: 0; }
.desktop-nav a.active { color: var(--green); }
.desktop-nav a.active::after { right: 0; background: var(--green); }
.nav-cta { display: inline-flex; gap: 16px; align-items: center; padding: 10px 16px 10px 20px; border: 1px solid var(--ink); border-radius: 999px; font-size: 13px; font-weight: 700; transition: .25s ease; }
.nav-cta:hover { background: var(--ink); color: white; }

.hero { min-height: 780px; padding: 150px 24px 80px; overflow: hidden; background: radial-gradient(circle at 78% 42%, rgba(47,111,237,.20), transparent 29%), linear-gradient(180deg, #f8faff 0%, #edf3ff 100%); }
.hero-grid { width: min(1180px, 100%); margin: auto; display: grid; grid-template-columns: 1.05fr .95fr; gap: 74px; align-items: center; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; font-size: 12px; font-weight: 800; letter-spacing: .14em; }
.eyebrow span { width: 36px; height: 2px; background: var(--orange); }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 28px; font-size: clamp(56px, 6.2vw, 92px); line-height: 1.02; letter-spacing: -.065em; font-weight: 800; }
h1 em, .safety-header em { position: relative; font-style: normal; z-index: 1; }
h1 em::after { content: ""; position: absolute; left: -4px; right: -6px; bottom: 4px; height: 20px; z-index: -1; background: var(--lime); transform: rotate(-1deg); }
.hero-lead { max-width: 560px; color: #53615b; font-size: 19px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 36px 0 44px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 22px; min-height: 54px; padding: 0 24px; border: 1px solid var(--ink); border-radius: 3px; font-size: 14px; font-weight: 700; transition: transform .2s, box-shadow .2s; }
.button:hover { transform: translateY(-3px); box-shadow: 0 8px 0 rgba(20,35,30,.13); }
.button-primary { background: var(--ink); color: white; }
.button-primary span { color: var(--lime); }
.button-secondary { background: rgba(255,255,255,.5); }
.hero-stats { display: flex; gap: 36px; padding-top: 26px; border-top: 1px solid var(--line); }
.hero-stats div { display: flex; align-items: baseline; gap: 8px; }
.hero-stats strong { font-family: "Space Grotesk", sans-serif; font-size: 27px; }
.hero-stats span { color: var(--muted); font-size: 12px; }

.hero-visual { position: relative; height: 550px; }
.orbit { position: absolute; border: 1px solid rgba(20,35,30,.14); border-radius: 50%; }
.orbit-one { inset: 28px -20px 30px 20px; animation: slowSpin 20s linear infinite; }
.orbit-one::after { content: ""; position: absolute; width: 12px; height: 12px; top: 33px; left: 72px; border-radius: 50%; background: var(--orange); }
.orbit-two { inset: 80px 24px 78px 70px; }
.hero-card { position: absolute; z-index: 2; background: var(--green); color: white; box-shadow: var(--shadow); }
.card-main { width: 330px; height: 410px; top: 62px; left: 50%; padding: 42px 34px; transform: translateX(-50%) rotate(3deg); border-radius: 7px; }
.card-main::before { content: "✦"; position: absolute; top: 24px; right: 26px; color: var(--lime); font-size: 28px; }
.mini-label { color: var(--lime); font-family: "Space Grotesk", sans-serif; font-size: 10px; letter-spacing: .18em; }
.card-main h2 { margin: 64px 0 84px; font-size: 37px; line-height: 1.25; letter-spacing: -.04em; }
.lesson-progress { height: 3px; background: rgba(255,255,255,.2); }
.lesson-progress span { display: block; width: 72%; height: 100%; background: var(--lime); }
.lesson-meta { display: flex; justify-content: space-between; margin-top: 12px; font-size: 11px; color: rgba(255,255,255,.72); }
.lesson-meta strong { color: var(--lime); }
.float-card { position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px; width: 190px; padding: 13px; background: white; border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 16px 40px rgba(20,35,30,.14); animation: float 4s ease-in-out infinite; }
.float-card img { width: 46px; height: 46px; border-radius: 5px; object-fit: cover; }
.float-card small, .float-card strong { display: block; line-height: 1.35; }
.float-card small { color: var(--muted); font-size: 10px; }
.float-card strong { font-family: "Space Grotesk", sans-serif; font-size: 14px; }
.card-chat { top: 65px; left: 0; transform: rotate(-5deg); }
.card-code { right: -20px; bottom: 64px; animation-delay: -2s; }
.spark { position: absolute; z-index: 4; color: var(--orange); font-size: 32px; }
.spark-one { right: 44px; top: 65px; }
.spark-two { left: 34px; bottom: 88px; color: var(--lavender); }
@keyframes float { 0%,100% { margin-top: 0; } 50% { margin-top: -12px; } }
@keyframes slowSpin { to { transform: rotate(360deg); } }

.quick-strip { overflow: hidden; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); background: var(--lime); }
.strip-track { width: max-content; display: flex; align-items: center; gap: 34px; padding: 14px 0; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; animation: ticker 28s linear infinite; }
.strip-track b { color: var(--orange); font-size: 17px; }
@keyframes ticker { to { transform: translateX(-18%); } }

.section { padding: 112px 24px; }
.section-heading { width: min(1180px, 100%); margin: 0 auto 58px; display: grid; grid-template-columns: 1fr 390px; gap: 70px; align-items: end; }
.section-kicker { display: block; margin-bottom: 18px; color: var(--orange); font-family: "Space Grotesk", sans-serif; font-size: 11px; font-weight: 700; letter-spacing: .16em; }
.section-heading h2, .guide-intro h2, .safety-header h2 { margin-bottom: 0; font-size: clamp(40px, 5vw, 65px); line-height: 1.12; letter-spacing: -.055em; }
.section-heading > p, .guide-intro > p, .safety-header > p { margin-bottom: 6px; color: var(--muted); font-size: 16px; }
.tools-section { background: #f9fbff; }
.tool-controls { width: min(1180px, 100%); margin: 0 auto 28px; display: flex; gap: 24px; justify-content: space-between; align-items: center; }
.filter-group { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-button { padding: 9px 15px; border: 1px solid var(--line); border-radius: 999px; background: transparent; cursor: pointer; font-size: 12px; font-weight: 700; transition: .2s; }
.filter-button:hover, .filter-button.active { color: white; background: var(--ink); border-color: var(--ink); }
.search-box { min-width: 235px; display: flex; align-items: center; gap: 8px; padding: 9px 14px; background: white; border: 1px solid var(--line); border-radius: 999px; }
.search-box svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 2; }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; font-size: 12px; }
.tools-grid { width: min(1180px, 100%); margin: auto; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.tool-card { position: relative; min-height: 470px; padding: 28px 25px 24px; display: flex; flex-direction: column; background: white; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: transform .3s, box-shadow .3s; }
.tool-card:hover { z-index: 2; transform: translateY(-8px); box-shadow: var(--shadow); }
.tool-card.featured { background: var(--green); color: white; }
.tool-card[hidden] { display: none; }
.card-number { position: absolute; top: 18px; right: 20px; color: #a5aca8; font-family: "Space Grotesk", sans-serif; font-size: 11px; }
.tool-logo { width: 58px; height: 58px; margin-bottom: 26px; display: grid; place-items: center; border-radius: 9px; color: white; font-family: "Space Grotesk", sans-serif; font-size: 22px; font-weight: 700; }
.image-logo { overflow: hidden; background: white; }
.image-logo img { width: 100%; height: 100%; object-fit: cover; }
.logo-blue { background: #1671e8; }.logo-violet { background: linear-gradient(135deg,#4775ee,#a85ef0); }.logo-yellow { color: var(--ink); background: #f8c945; }.logo-orange { background: #d76b3c; }.logo-mint { color: var(--ink); background: #7ce6d4; }.logo-pink { background: linear-gradient(135deg,#7f51f4,#ed4ec9); }
.tool-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 14px; }
.tool-tags span { padding: 4px 8px; color: var(--muted); background: #f1f0eb; border-radius: 2px; font-size: 9px; font-weight: 700; }
.featured .tool-tags span { color: var(--lime); background: rgba(255,255,255,.12); }
.tool-card h3 { margin-bottom: 10px; font-size: 25px; letter-spacing: -.035em; }
.tool-card > p { color: var(--muted); font-size: 13px; }
.featured > p { color: rgba(255,255,255,.7); }
.use-case { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.featured .use-case { border-color: rgba(255,255,255,.16); }
.use-case strong, .use-case span { display: block; }
.use-case strong { margin-bottom: 5px; color: var(--orange); font-size: 10px; }
.use-case span { color: var(--muted); font-size: 12px; }
.featured .use-case span { color: rgba(255,255,255,.72); }
.tool-card > a { display: flex; justify-content: space-between; margin-top: 20px; font-size: 12px; font-weight: 800; }
.tool-card > a span { color: var(--orange); }
.no-results { text-align: center; margin: 40px auto 0; color: var(--muted); }

.guide-section { color: white; background: var(--green); }
.guide-layout { width: min(1180px, 100%); margin: auto; display: grid; grid-template-columns: .85fr 1.15fr; gap: 100px; }
.section-kicker.light { color: var(--lime); }
.guide-intro { position: sticky; top: 30px; align-self: start; }
.guide-intro > p { margin-top: 28px; color: rgba(255,255,255,.65); }
.guide-note { display: flex; gap: 12px; margin-top: 40px; padding: 18px; border: 1px solid rgba(255,255,255,.16); color: rgba(255,255,255,.72); font-size: 12px; }
.guide-note > span { flex: 0 0 22px; height: 22px; display: grid; place-items: center; border: 1px solid var(--lime); border-radius: 50%; color: var(--lime); font-family: serif; }
.task-list { border-top: 1px solid rgba(255,255,255,.25); }
.task-row { width: 100%; display: grid; grid-template-columns: 56px 1fr auto; gap: 16px; align-items: center; padding: 23px 12px; border: 0; border-bottom: 1px solid rgba(255,255,255,.25); background: transparent; text-align: left; cursor: pointer; transition: .25s; }
.task-row:hover, .task-row.active { color: var(--ink); background: var(--lime); padding-left: 20px; padding-right: 20px; }
.task-icon { font-family: "Space Grotesk", sans-serif; font-size: 11px; color: var(--orange); }
.task-row strong, .task-row small { display: block; }
.task-row strong { font-size: 17px; }
.task-row small { margin-top: 2px; color: rgba(255,255,255,.5); font-size: 11px; }
.task-row:hover small, .task-row.active small { color: #516158; }
.task-row b { font-size: 23px; }
.recommendation { margin-top: 24px; padding: 28px; color: var(--ink); background: white; border-left: 6px solid var(--orange); }
.recommendation span { color: var(--orange); font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.recommendation strong { display: block; margin: 5px 0 4px; font-size: 23px; }
.recommendation p { margin: 0; color: var(--muted); font-size: 12px; }

.prompt-section { background: #edf3ff; }
.prompt-layout { width: min(1180px, 100%); margin: auto; display: grid; grid-template-columns: .8fr 1.2fr; gap: 58px; align-items: stretch; }
.prompt-formula { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.formula-card { min-height: 155px; padding: 22px; display: flex; gap: 16px; align-items: flex-start; background: rgba(255,255,255,.55); border: 1px solid rgba(20,35,30,.12); }
.formula-card > span { flex: 0 0 36px; height: 36px; display: grid; place-items: center; background: var(--ink); color: var(--lime); border-radius: 50%; font-family: "Space Grotesk", sans-serif; font-weight: 700; }
.formula-card strong { font-size: 14px; }
.formula-card p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.prompt-demo { padding: 32px; background: var(--ink); color: white; box-shadow: 12px 12px 0 var(--lavender); }
.demo-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.demo-top span { color: var(--lime); font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.demo-top button { padding: 7px 12px; border: 1px solid rgba(255,255,255,.3); background: transparent; color: white; cursor: pointer; font-size: 11px; }
.prompt-demo > p { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; line-height: 1.9; }
.demo-tip { display: flex; gap: 12px; margin-top: 28px; padding: 16px; background: rgba(255,255,255,.08); }
.demo-tip span { color: var(--orange); }
.demo-tip p { margin: 0; color: rgba(255,255,255,.65); font-size: 11px; }
.demo-tip strong { color: white; }

.safety-section { background: var(--orange); }
.safety-header { width: min(1180px, 100%); margin: 0 auto 55px; display: grid; grid-template-columns: 1fr 1fr; gap: 15px 80px; }
.safety-header .section-kicker { grid-column: 1 / -1; color: var(--ink); }
.safety-header > p { align-self: end; color: rgba(20,35,30,.72); }
.safety-header em::after { content: ""; position: absolute; left: -2px; right: -3px; bottom: 0; height: 15px; z-index: -1; background: var(--lime); }
.safety-grid { width: min(1180px, 100%); margin: auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.safety-card { position: relative; min-height: 315px; padding: 28px; background: var(--paper); }
.safety-card > span { position: absolute; right: 22px; top: 18px; color: #999f9b; font-family: "Space Grotesk", sans-serif; font-size: 10px; }
.safety-icon { width: 46px; height: 46px; margin-bottom: 52px; display: grid; place-items: center; color: var(--lime); background: var(--green); border-radius: 50%; font-size: 22px; }
.safety-card h3 { margin-bottom: 12px; font-size: 20px; }
.safety-card p { color: var(--muted); font-size: 12px; }

footer { padding: 60px 24px 20px; color: white; background: var(--ink); }
.footer-main { width: min(1180px,100%); margin: auto; display: grid; grid-template-columns: 1fr auto 50px; gap: 80px; align-items: center; }
.footer-brand .brand-mark { background: var(--lime); color: var(--ink); }
.footer-main p { margin: 14px 0 0; color: rgba(255,255,255,.5); font-size: 12px; }
.footer-links { display: flex; gap: 26px; font-size: 12px; }
.footer-links a:hover { color: var(--lime); }
.back-top { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.3); }
.footer-bottom { width: min(1180px,100%); margin: 48px auto 0; padding-top: 18px; display: flex; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.4); font-size: 10px; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 50; padding: 10px 18px; background: var(--ink); color: white; border: 1px solid var(--lime); transform: translate(-50%, 120px); transition: transform .3s; font-size: 12px; }
.toast.show { transform: translate(-50%, 0); }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

.page-toolkit .guide-section,
.page-toolkit .prompt-section,
.page-toolkit .safety-section { display: none; }

.responsibility-section { color: white; background: var(--green); }
.responsibility-section .section-heading > p { color: rgba(255,255,255,.68); }
.responsibility-section .section-kicker { color: #a9c4ff; }
.responsibility-grid { width: min(1180px,100%); margin: auto; display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.responsibility-card { position: relative; min-height: 300px; padding: 30px; color: var(--ink); background: white; }
.responsibility-card > span { position: absolute; top: 22px; right: 24px; color: #8290aa; font-family: "Space Grotesk", sans-serif; font-size: 10px; }
.responsibility-icon { width: 46px; height: 46px; margin-bottom: 52px; display: grid; place-items: center; color: white; background: var(--green); border-radius: 50%; font-size: 20px; }
.responsibility-card h3 { margin-bottom: 12px; font-size: 21px; }
.responsibility-card p { color: var(--muted); font-size: 13px; }
.reference-note { width: min(1180px,100%); margin: 28px auto 0; color: rgba(255,255,255,.58); font-size: 11px; }
.reference-note a { color: white; font-weight: 700; }

.subpage .site-header { position: absolute; }
.subpage-hero { position: relative; min-height: 610px; padding: 165px 24px 90px; display: flex; align-items: center; overflow: hidden; color: white; background: var(--green); }
.subpage-hero::before { content: ""; position: absolute; width: 520px; height: 520px; right: -110px; top: 80px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; }
.subpage-hero::after { content: ""; position: absolute; width: 330px; height: 330px; right: -15px; top: 175px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; }
.subpage .site-header, .subpage .site-header a { color: white; }
.subpage .brand-mark { color: var(--green); background: white; }
.subpage .desktop-nav a.active { color: white; }
.subpage .desktop-nav a::after { background: white; }
.subpage .nav-cta { border-color: rgba(255,255,255,.65); }
.subpage .nav-cta:hover { color: var(--green); background: white; }
.subpage-hero-inner { position: relative; z-index: 2; width: min(1180px, 100%); margin: auto; }
.subpage-hero .section-kicker { color: #a9c4ff; }
.subpage-hero h1 { margin-bottom: 26px; max-width: 760px; }
.subpage-hero h1 em::after { background: #7da5ff; }
.subpage-hero p { max-width: 620px; margin-bottom: 0; color: rgba(255,255,255,.72); font-size: 18px; }
.page-index { position: absolute; right: 0; top: -80px; color: rgba(255,255,255,.08); font-family: "Space Grotesk", sans-serif; font-size: 260px; font-weight: 700; line-height: 1; }
.prompt-hero { background: #082d7d; }
.safety-hero { background: linear-gradient(135deg, #001f68 0%, #0033a0 62%, #1455d4 100%); }
.safety-page-section { background: #2f6fed; }
.prompt-checklist { background: white; }
.checklist-inner { width: min(1180px,100%); margin: auto; }
.checklist-inner h2 { margin-bottom: 45px; font-size: clamp(38px,5vw,62px); letter-spacing: -.05em; }
.checklist-grid { display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.checklist-grid > div { min-height: 240px; padding: 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.checklist-grid span { color: var(--orange); font-family: "Space Grotesk", sans-serif; font-size: 11px; }
.checklist-grid strong { display: block; margin: 46px 0 10px; font-size: 18px; }
.checklist-grid p { color: var(--muted); font-size: 12px; }
.risk-section { background: #f9fbff; }
.risk-grid { width: min(1180px,100%); margin: auto; display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.risk-card { min-height: 300px; padding: 30px; display: flex; flex-direction: column; background: white; border: 1px solid var(--line); }
.risk-card > span { align-self: flex-start; padding: 5px 9px; border-radius: 999px; font-size: 10px; font-weight: 800; }
.risk-card h3 { margin: 55px 0 12px; font-size: 23px; letter-spacing: -.03em; }
.risk-card p { color: var(--muted); font-size: 13px; }
.risk-card strong { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); color: var(--green); font-size: 11px; }
.risk-card.low > span { color: #075c39; background: #d8f5e7; }
.risk-card.medium > span { color: #745700; background: #fff0b7; }
.risk-card.high { color: white; background: var(--ink); }
.risk-card.high > span { color: white; background: #d9364f; }
.risk-card.high p { color: rgba(255,255,255,.65); }
.risk-card.high strong { color: #a9c4ff; border-color: rgba(255,255,255,.16); }
.preflight-section { color: white; background: var(--green); }
.preflight-inner { width: min(1180px,100%); margin: auto; display: grid; grid-template-columns: .7fr 1.3fr; gap: 90px; align-items: start; }
.preflight-inner h2 { margin: 0; font-size: clamp(42px,5vw,66px); letter-spacing: -.05em; }
.preflight-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(255,255,255,.25); }
.preflight-list li { display: grid; grid-template-columns: 50px 1fr; gap: 18px; padding: 24px 8px; border-bottom: 1px solid rgba(255,255,255,.25); }
.preflight-list span { color: #a9c4ff; font-family: "Space Grotesk", sans-serif; font-size: 11px; }
.preflight-list p { margin: 0; color: rgba(255,255,255,.65); font-size: 13px; }
.preflight-list strong { display: block; margin-bottom: 3px; color: white; font-size: 17px; }

@media (max-width: 980px) {
  .desktop-nav { display: none; }
  .hero { min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 680px; }
  .hero-visual { width: min(580px,100%); margin: auto; }
  .section-heading { grid-template-columns: 1fr; gap: 20px; }
  .section-heading > p { max-width: 600px; }
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
  .guide-layout { grid-template-columns: 1fr; gap: 55px; }
  .guide-intro { position: static; }
  .prompt-layout { grid-template-columns: 1fr; }
  .safety-header { grid-template-columns: 1fr; }
  .safety-grid { grid-template-columns: repeat(2,1fr); }
  .checklist-grid { grid-template-columns: repeat(2,1fr); }
  .responsibility-grid { grid-template-columns: 1fr; }
  .responsibility-card { min-height: 250px; }
  .risk-grid { grid-template-columns: 1fr; }
  .risk-card { min-height: 250px; }
  .preflight-inner { grid-template-columns: 1fr; gap: 45px; }
}

@media (max-width: 640px) {
  .nav-wrap { width: calc(100% - 32px); height: 76px; }
  .nav-cta { display: none; }
  .hero { padding: 115px 18px 50px; }
  h1 { font-size: 52px; }
  .hero-stats { gap: 16px; justify-content: space-between; }
  .hero-stats div { flex-direction: column; gap: 0; }
  .hero-visual { height: 460px; }
  .card-main { width: 270px; height: 350px; padding: 34px 26px; }
  .card-main h2 { margin: 55px 0 62px; font-size: 31px; }
  .float-card { width: 155px; padding: 9px; }
  .float-card img { width: 37px; height: 37px; }
  .card-chat { left: -5px; }
  .card-code { right: -5px; }
  .section { padding: 78px 18px; }
  .section-heading h2, .guide-intro h2, .safety-header h2 { font-size: 43px; }
  .tool-controls { align-items: stretch; flex-direction: column; }
  .search-box { min-width: 0; }
  .filter-group { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 5px; }
  .filter-button { white-space: nowrap; }
  .tools-grid { grid-template-columns: 1fr; }
  .tool-card { min-height: 430px; }
  .prompt-formula { grid-template-columns: 1fr; }
  .formula-card { min-height: 110px; }
  .prompt-demo { padding: 24px; box-shadow: 7px 7px 0 var(--lavender); }
  .safety-grid { grid-template-columns: 1fr; }
  .subpage-hero { min-height: 540px; padding: 135px 18px 70px; }
  .subpage-hero h1 { font-size: 50px; }
  .subpage-hero p { font-size: 15px; }
  .page-index { right: -20px; top: -30px; font-size: 150px; }
  .checklist-grid { grid-template-columns: 1fr; }
  .safety-card { min-height: 260px; }
  .safety-icon { margin-bottom: 35px; }
  .footer-main { grid-template-columns: 1fr auto; gap: 35px; }
  .footer-links { grid-column: 1 / -1; grid-row: 2; flex-wrap: wrap; }
  .footer-bottom { flex-direction: column; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
