/* CONTENT MAKER | Corporate digital design system */
:root {
  --cm-ink: #10263b;
  --cm-navy: #081e32;
  --cm-blue: #286bd9;
  --cm-blue-hover: #1a58bf;
  --cm-teal: #19baa6;
  --cm-muted: #617286;
  --cm-line: #dde6ef;
  --cm-canvas: #f5f8fc;
  --cm-white: #ffffff;
}
html { scroll-behavior: smooth; }
body { font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif; -webkit-font-smoothing: antialiased; }
body, button, input, textarea, select { font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid #4abbd6; outline-offset: 3px; }
.cm-shell { max-width: 1200px; width: calc(100% - 48px); margin-inline: auto; }
.cm-header { position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.96); border-bottom: 1px solid #e3eaf2; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.cm-header-inner { display: flex; height: 76px; align-items: center; justify-content: space-between; gap: 24px; }
.cm-brand { display: inline-flex; align-items: center; gap: 12px; color: #10263b; text-decoration: none; }
.cm-brand:hover { opacity: .86; }
.cm-brand-logo { display: block; width: 48px; height: 48px; flex: 0 0 48px; object-fit: contain; }
.cm-brand-name { display: block; font-size: 15px; font-weight: 800; letter-spacing: .01em; line-height: 1.4; }
.cm-brand-caption { display: block; margin-top: 2px; color: #66798b; font-size: 10px; letter-spacing: .12em; font-weight: 700; }
.cm-nav { display: flex; align-items: center; gap: 30px; }
.cm-nav a { color: #395066; font-size: 13px; font-weight: 700; text-decoration: none; transition: color .2s; }
.cm-nav a:hover { color: var(--cm-blue); }
.cm-nav .cm-nav-contact { color: #fff; background: #102c47; padding: 13px 18px; border-radius: 8px; transition: background .2s; }
.cm-nav .cm-nav-contact:hover { color: #fff; background: var(--cm-blue); }
.cm-menu-trigger { display: none; color: var(--cm-ink); background: none; border: 0; width: 44px; height: 44px; font-size: 20px; }
.cm-mobile-menu { border-top: 1px solid var(--cm-line); background: #fff; padding: 12px 24px 20px; }
.cm-mobile-menu a { display: block; padding: 13px 0; color: #193750; text-decoration: none; font-weight: 700; font-size: 14px; border-bottom: 1px solid #edf1f6; }
.cm-header .cm-mode-toggle { border: 0; background: transparent; color: #617286; padding: 8px; border-radius: 8px; }
.cm-header .cm-mode-toggle:hover { background: #edf4fa; }
.cm-hero { position: relative; overflow: hidden; isolation: isolate; min-height: 610px; color: #14304a; background: #fff; }
.cm-hero::before { content: ''; position: absolute; inset: 0; opacity: .75; pointer-events: none; background-image: linear-gradient(#c8deef26 1px,transparent 1px),linear-gradient(90deg,#c8deef26 1px,transparent 1px); background-size: 64px 64px; mask-image: linear-gradient(90deg,transparent 5%,#000 100%); }
.cm-hero::after { content: ''; position: absolute; left: 0; bottom: 0; right: 0; height: 1px; background: linear-gradient(90deg,transparent,#b9d8ea,transparent); }
.cm-hero-inner { position: relative; display: grid; grid-template-columns: minmax(0,1.02fr) minmax(0,1fr); align-items: center; gap: 12px; min-height: 610px; padding-top: 52px; padding-bottom: 100px; }
.cm-hero-copy { position: relative; z-index: 2; max-width: 585px; }
.cm-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 28px; color: #1a6ea9; text-transform: uppercase; font: 700 11px/1.5 'Manrope',sans-serif; letter-spacing: .24em; }
.cm-eyebrow::before { content: ''; height: 7px; width: 7px; background: #158eb3; border-radius: 50%; box-shadow: 0 0 10px #2ca4c163; }
.cm-hero-title { color: #0e2c45; margin: 0 0 22px; font-size: clamp(35px,4.1vw,60px); font-weight: 800; letter-spacing: -.055em; line-height: 1.4; }
.cm-hero-title em { font-style: normal; color: #256cc2; }
.cm-hero-desc { color: #536b7e; font-size: 15px; line-height: 2.05; max-width: 490px; }
.cm-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 33px; }
.cm-button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 50px; padding: 13px 22px; border-radius: 8px; font-size: 13px; font-weight: 800; text-decoration: none; transition: transform .2s,background .2s,box-shadow .2s; }
.cm-button:hover { transform: translateY(-2px); }
.cm-button-primary { color: #fff; background: #226bd0; box-shadow: 0 12px 24px #226bd02b; }
.cm-button-primary:hover { color: #fff; background: #1656ae; box-shadow: 0 15px 30px #226bd03d; }
.cm-button-outline { color: #1b466c; border: 1px solid #b7c9dc; background: #fff; }
.cm-button-outline:hover { color: #125da6; background: #f1f7fd; border-color: #6fa4d4; }
.cm-hero-notes { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 34px; color: #607589; font-size: 12px; font-weight: 700; }
.cm-hero-notes i { color: #159f8c; margin-right: 6px; }
/* Full-bleed art sits behind the hero copy, not inside the right grid column. */
.cm-hero-art { position: absolute; z-index: 0; top: 0; left: 50%; width: 100vw; height: 100%; margin: 0; min-width: 0; transform: translate3d(-50%,var(--cm-art-y,0px),0); will-change: transform; pointer-events: none; }
.cm-hero-halo { position: absolute; inset: 8% -8% 2% -5%; border-radius: 50%; background: radial-gradient(ellipse,#d2ecffb0 0%,#eaf5ff9c 34%,transparent 68%); filter: blur(24px); animation: cm-halo 9s ease-in-out infinite alternate; }
.cm-hero-orbit { width: 100%; height: 100%; position: absolute; inset: 0; overflow: hidden; filter: drop-shadow(0 0 6px #166bb436); transform-origin: 50% 50%; will-change: transform; }
/* Make strands span the full canvas; soften them behind the left-side text. */
.cm-wave-svg { -webkit-mask-image: linear-gradient(90deg,rgba(0,0,0,.40) 0%,rgba(0,0,0,.62) 34%,#000 70%); mask-image: linear-gradient(90deg,rgba(0,0,0,.40) 0%,rgba(0,0,0,.62) 34%,#000 70%); }
.cm-wave-path,.cm-wave-tracer { vector-effect: non-scaling-stroke; }
.cm-wave-tracer { stroke-linecap: round; }
.cm-wave-pulse { transform-box: fill-box; transform-origin: center; animation: cm-wave-pulse 3.5s ease-in-out infinite; }
.cm-wave-node { filter: drop-shadow(0 0 6px #348cc25c); }
@keyframes cm-wave-pulse {
  0%,100% { opacity: .38; stroke-width: .8; }
  50% { opacity: .88; stroke-width: 1.8; }
}
.cm-hero-orbit path { fill: none; stroke-linecap: round; }
/* Functional hero panels sit above the animated artwork and remain accessible. */
.cm-hero-panels { position: absolute; z-index: 1; inset: 0; pointer-events: none; }
.cm-art-panel { position: absolute; display: flex; flex-direction: column; border: 1px solid #cbddeb; border-radius: 12px; background: #ffffffed; box-shadow: 0 18px 45px #204a7220; backdrop-filter: blur(14px); color: #173854; padding: 18px 20px; }
.cm-art-panel--upper { top: 70px; right: 0; width: 218px; animation: cm-float 7s ease-in-out infinite alternate; }
.cm-art-panel--lower { bottom: 66px; right: clamp(100px,10vw,180px); width: 268px; min-height: 154px; animation: cm-float 8s ease-in-out -3s infinite alternate-reverse; }
.cm-art-label { color: #507796; font-size: 11px; line-height: 1.5; font-weight: 800; letter-spacing: .04em; }
.cm-art-value { display: block; margin-top: 8px; font: 800 28px/1.2 'Manrope',sans-serif; letter-spacing: -.04em; }
.cm-art-count { font-size: 40px; font-variant-numeric: tabular-nums; }
.cm-art-count small { margin-left: 5px; font: 800 14px/1 'Noto Sans JP',sans-serif; letter-spacing: 0; }
.cm-art-mini { color: #577b95; font-size: 11px; margin-top: 7px; line-height: 1.5; }
.cm-art-panel--link { pointer-events: auto; text-decoration: none; transition: border-color .2s ease,box-shadow .2s ease; }
.cm-art-panel--link:hover { color: #173854; border-color: #83abd3; box-shadow: 0 20px 50px #204a7233; }
.cm-art-feature-title { display: block; margin-top: 10px; color: #173854; font-size: 16px; line-height: 1.55; font-weight: 800; overflow-wrap: anywhere; }
.cm-art-feature-action { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 12px; color: #226bd0; font-size: 11px; font-weight: 800; }
.cm-art-feature-action i { transition: transform .2s ease; }
.cm-art-panel--link:hover .cm-art-feature-action i { transform: translateX(3px); }
[id='tools'], [id='about'] { scroll-margin-top: 92px; }
.cm-tool-zone { position: relative; z-index: 2; background: var(--cm-canvas); padding: 0 0 90px; }
.cm-search-surface { position: relative; top: -47px; margin-bottom: -18px; background: #fff; border: 1px solid #e4eaf0; box-shadow: 0 22px 55px #0e2a4720; border-radius: 16px; padding: 21px 28px; display: grid; grid-template-columns: 225px minmax(0,1fr); align-items: center; gap: 22px; }
.cm-search-caption { display: block; color: #2475c4; font: 800 10px 'Manrope',sans-serif; letter-spacing: .13em; }
.cm-search-label { display: block; margin-top: 6px; color: #162f47; font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.cm-search-control { display: flex; align-items: center; gap: 14px; background: #f5f8fb; border: 1px solid #dce5ee; border-radius: 9px; min-height: 55px; padding: 0 18px; }
.cm-search-control:focus-within { background: #fff; border-color: #377bdf; box-shadow: 0 0 0 3px #377bdf1d; }
.cm-search-control > i { color: #477eaa; font-size: 18px; }
.cm-search-control input { flex: 1; min-width: 0; color: #142d46; border: 0; outline: none; background: transparent; font-size: 15px; }
.cm-search-control input::placeholder { color: #8a9aaa; }
.cm-section-heading { margin: 31px 0 23px; display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.cm-kicker { color: #2479b1; margin: 0 0 9px; font: 800 10px/1.5 'Manrope',sans-serif; letter-spacing: .19em; text-transform: uppercase; }
.cm-section-title { color: #122e46; font-size: clamp(23px,2.3vw,31px); font-weight: 800; letter-spacing: -.045em; line-height: 1.5; margin: 0; }
.cm-section-lead { color: var(--cm-muted); font-size: 13px; line-height: 1.9; }
.cm-filter-bar { display: flex; flex-wrap: wrap; gap: 9px; margin: 0 0 27px; }
.cm-category { border-radius: 7px; border: 1px solid #d8e3ed; background: #fff; color: #52677b; font-weight: 700; padding: 11px 16px; font-size: 12px; line-height: 1.2; transition: background .2s,color .2s,border-color .2s,transform .2s; }
.cm-category:hover { color: #1d66bb; border-color: #90b9e4; transform: translateY(-1px); }
.cm-category[aria-pressed="true"] { background: #0d3657; border-color: #0d3657; color: #fff; box-shadow: 0 6px 16px #133d6021; }
.cm-tool-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.cm-tool-card { position: relative; display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; padding: 27px; background: #fff; border: 1px solid #dfe8f0; border-radius: 12px; box-shadow: 0 5px 20px #13395506; transition: transform .25s,box-shadow .25s,border-color .25s; overflow: hidden; }
/* Animate a 2px outline clockwise around the entire card, beginning at the top.
   Registered property gives smooth interpolation; unsupported engines still show
   the full border on hover rather than hiding the card or affecting its content. */
@property --cm-card-trace {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 0%;
}
.cm-tool-card::before {
  --cm-card-trace: 0%;
  content: '';
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
  background: conic-gradient(from 0deg, #2877d5 0%, #31c6ad var(--cm-card-trace), transparent var(--cm-card-trace) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  transition: --cm-card-trace .72s cubic-bezier(.22,.72,.19,1);
}
.cm-tool-card:hover { transform: translateY(-5px); box-shadow: 0 16px 40px #173c5e17; border-color: #b5cde1; }
.cm-tool-card:hover::before,
.cm-tool-card:focus-visible::before { --cm-card-trace: 100%; }

/* Phone: the outline's completion is tied to the card's entry position,
   not to elapsed time. --cm-scroll-trace is set directly on the <a> element
   and inherited by its ::before pseudo-element. Desktop hover is unchanged. */
@media (max-width: 760px) {
  .cm-tool-card::before,
  .cm-tool-card:hover::before {
    --cm-card-trace: var(--cm-scroll-trace, 0%);
    opacity: 0;
    transition: none;
  }
  .cm-tool-card.is-scroll-active::before,
  .cm-tool-card.is-scroll-active:hover::before {
    opacity: 1;
  }
  .cm-tool-card.is-scroll-active {
    border-color: #b5cde1;
    box-shadow: 0 10px 28px #173c5e17;
  }
  /* Keyboard focus still gets a complete outline, regardless of scroll. */
  .cm-tool-card:focus-visible::before,
  .cm-tool-card:focus-visible:hover::before {
    --cm-card-trace: 100%;
    opacity: 1;
  }
}

.cm-tool-top { display: flex; align-items: start; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.cm-tool-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 10px; color: #1c68b2; background: #ecf4fb; font-size: 20px; }
.cm-tool-new { color: #147967; background: #e8f7f2; font: 800 10px 'Manrope',sans-serif; letter-spacing: .05em; padding: 6px 9px; border-radius: 5px; }
.cm-tool-card h3 { color: #17314a; font-size: 17px; font-weight: 800; line-height: 1.6; margin: 0 0 9px; }
.cm-tool-card p { color: #627589; font-size: 12px; line-height: 1.95; flex-grow: 1; margin: 0 0 21px; }
.cm-tool-link { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #226ebd; font-size: 12px; font-weight: 800; }
.cm-tool-link i { transition: transform .2s; }
.cm-tool-card:hover .cm-tool-link i { transform: translateX(4px); }
.cm-empty-state { display: none; padding: 72px 20px; text-align: center; color: #687f91; }
.cm-feature-band { background: #fff; padding: 92px 0; }
.cm-features { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 34px; margin-top: 36px; }
.cm-feature { padding-top: 24px; border-top: 2px solid #d8e8f5; }
.cm-feature i { color: #2d76ce; font-size: 24px; margin-bottom: 16px; }
.cm-feature h3 { color: #14304a; font-weight: 800; font-size: 17px; margin: 0 0 10px; }
.cm-feature p { color: #6c7c8a; font-size: 13px; line-height: 2; }
.cm-news { background: #f5f8fc; padding: 83px 0 90px; }
.cm-news-list { margin-top: 28px; border-top: 1px solid #dce6ef; }
.cm-news-entry { display: grid; grid-template-columns: 120px minmax(0,1fr) 22px; align-items: center; gap: 24px; padding: 23px 3px; border-bottom: 1px solid #dce6ef; text-decoration: none; }
.cm-news-date { color: #7b8a97; font: 700 12px 'Manrope',sans-serif; }
.cm-news-entry-title { color: #193950; font-size: 14px; font-weight: 700; line-height: 1.8; }
.cm-news-entry:hover .cm-news-entry-title { color: #2376d3; }
.cm-news-entry i { color: #2879c4; }
.cm-news-more { display: inline-flex; gap: 9px; color: #246dbb; font-size: 13px; font-weight: 800; margin-top: 25px; text-decoration: none; }
.cm-footer { color: #c2d1df; background: #091e31; padding: 68px 0 28px; }
.cm-footer-main { display: grid; grid-template-columns: minmax(230px,1.7fr) repeat(3,minmax(130px,1fr)); gap: 40px; padding-bottom: 48px; }
.cm-footer .cm-brand { color: #fff; }
.cm-footer .cm-brand-name { color: #fff; }
.cm-footer .cm-brand-caption { color: #a1b9cc; }
.cm-footer-summary { font-size: 12px; line-height: 2; color: #a2b7c9; margin-top: 19px; max-width: 320px; }
.cm-footer-heading { color: #fff; font-size: 12px; font-weight: 800; margin-bottom: 18px; }
.cm-footer ul { list-style: none; padding: 0; margin: 0; }
.cm-footer li { margin: 0 0 11px; }
.cm-footer a:not(.cm-brand) { color: #b1c3d3; font-size: 12px; text-decoration: none; line-height: 1.8; }
.cm-footer a:hover { color: #fff; }
.cm-footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; border-top: 1px solid #29435a; padding-top: 25px; color: #8ea5b9; font-size: 11px; }
.cm-footer-bottom a { font-size: 11px !important; }
.cm-share-strip { padding: 25px 0; background: #fff; border-top: 1px solid #e4ebf2; }
.cm-share-strip .cm-share-links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cm-share-strip a { color: #33546e; border: 1px solid #d9e4ed; background: #f7fafc; padding: 10px 16px; border-radius: 7px; font-size: 12px; font-weight: 700; text-decoration: none; }
.cm-share-strip a:hover { border-color: #75a4d7; color: #215f9c; }
.cm-reveal { opacity: 1; transform: none; }
.cm-motion-ready .cm-reveal { opacity: 0; transform: translateY(23px); transition: opacity .7s ease, transform .7s cubic-bezier(.22,1,.36,1); }
.cm-motion-ready .cm-reveal.is-visible { opacity: 1; transform: translateY(0); }
@keyframes cm-orbit { from { transform: translate3d(-8px,8px,0) scale(.98); } to { transform: translate3d(12px,-8px,0) scale(1.04); } }
@keyframes cm-halo { from { opacity: .75; transform: scale(.94); } to { opacity: 1; transform: scale(1.06); } }
@keyframes cm-float { from { transform: translateY(-7px); } to { transform: translateY(10px); } }
@media (max-width: 1100px) {
  .cm-nav { gap: 18px; }
  .cm-hero-inner { grid-template-columns: 1.08fr .92fr; }
  .cm-hero-art { height: 100%; }
  .cm-art-panel--upper { right: 0; }
  .cm-tool-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .cm-shell { width: calc(100% - 36px); }
  .cm-header-inner { height: 66px; }
  .cm-brand-logo { width: 42px; height: 42px; flex-basis: 42px; }
  .cm-brand-name { font-size: 13px; }
  .cm-nav { display: none; }
  .cm-menu-trigger { display: block; }
  .cm-hero { min-height: 0; }
  .cm-hero-inner { display: flex; flex-direction: column; align-items: stretch; gap: 0; min-height: 0; padding-top: 63px; padding-bottom: 100px; }
  .cm-hero-copy { max-width: none; }
  .cm-eyebrow { margin-bottom: 18px; font-size: 10px; }
  .cm-hero-title { font-size: clamp(32px,7.7vw,46px); line-height: 1.45; }
  .cm-hero-desc { font-size: 13px; line-height: 2; }
  .cm-hero-actions { margin-top: 26px; }
  .cm-button { font-size: 12px; }
  .cm-hero-notes { margin-top: 25px; gap: 13px; font-size: 11px; }
  .cm-hero-art { top: 0; width: 100vw; height: 100%; margin: 0; }
  .cm-wave-svg { -webkit-mask-image: linear-gradient(180deg,rgba(0,0,0,.35),rgba(0,0,0,.45) 48%,#000 100%); mask-image: linear-gradient(180deg,rgba(0,0,0,.35),rgba(0,0,0,.45) 48%,#000 100%); }
  .cm-hero-panels { position: relative; inset: auto; width: 100%; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-top: 32px; pointer-events: auto; }
  .cm-art-panel { position: static; min-width: 0; padding: 15px 14px; animation: none; }
  .cm-art-panel--upper,.cm-art-panel--lower { width: auto; min-height: 145px; }
  .cm-art-count { font-size: 33px; }
  .cm-art-feature-title { font-size: 12px; }
  .cm-art-feature-action { font-size: 10px; }
  .cm-search-surface { grid-template-columns: 1fr; gap: 13px; padding: 20px; top: -35px; margin-bottom: -10px; }
  .cm-section-heading { margin-top: 25px; }
  .cm-filter-bar { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 9px; scrollbar-width: thin; }
  .cm-category { flex: 0 0 auto; white-space: nowrap; }
  .cm-feature-band { padding: 65px 0; }
  .cm-features { grid-template-columns: 1fr; gap: 22px; }
  .cm-tool-grid { grid-template-columns: 1fr; gap: 13px; }
  .cm-tool-card { padding: 22px; }
  .cm-news { padding: 60px 0; }
  .cm-news-entry { grid-template-columns: 1fr 20px; gap: 9px; }
  .cm-news-date { grid-column: 1 / -1; }
  .cm-footer-main { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 31px 21px; }
  .cm-footer-main > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 380px) {
  .cm-shell { width: calc(100% - 28px); }
  .cm-hero-actions .cm-button { width: 100%; }
  .cm-hero-art { height: 100%; }
  .cm-hero-panels { grid-template-columns: 1fr; }
  .cm-art-panel--upper,.cm-art-panel--lower { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cm-hero-orbit,.cm-hero-halo,.cm-art-panel,.cm-wave-pulse { animation: none !important; }
  .cm-hero-art { transform: translateX(-50%) !important; will-change: auto; }
  .cm-hero-orbit { transform: none !important; will-change: auto; }
  .cm-motion-ready .cm-reveal { opacity: 1; transform: none; transition: none; }
  .cm-tool-card,.cm-button,.cm-category { transition: none; }
  .cm-tool-card::before { transition: none; }
}
.dark .cm-header { background: rgba(11,29,47,.97); border-color: #28445c; }
.dark .cm-brand,.dark .cm-nav a,.dark .cm-menu-trigger { color: #e9f3fb; }
.dark .cm-nav .cm-nav-contact { background: #2068ba; color: #fff; }
.dark .cm-brand-caption { color: #a1b9cc; }
.dark .cm-mobile-menu { background: #102c47; border-color: #28445c; }
.dark .cm-mobile-menu a { color: #ebf2fa; border-color: #36516a; }
.dark .cm-tool-zone,.dark .cm-news { background: #10243a; }
.dark .cm-search-surface,.dark .cm-tool-card { background: #172f48; border-color: #35516a; }
.dark .cm-search-label,.dark .cm-section-title,.dark .cm-tool-card h3,.dark .cm-news-entry-title { color: #e9f3fb; }
.dark .cm-section-lead,.dark .cm-tool-card p { color: #b6c6d5; }
.dark .cm-search-control { background: #10243a; border-color: #38516a; }
.dark .cm-search-control input { color: #f4f8fc; }
.dark .cm-category { color: #c3d4e3; background: #1b3954; border-color: #42607b; }
.dark .cm-category[aria-pressed="true"] { color: #092a40; background: #8dc9ee; border-color: #8dc9ee; }
.dark .cm-feature-band { background: #0e2338; }
.dark .cm-feature h3 { color: #eef6ff; }
.dark .cm-feature p { color: #aabfd2; }
.dark .cm-news-entry { border-color: #37516a; }
.dark .cm-news-entry-title { color: #f0f7fd; }

/* Mode switch: the entire hero and surrounding tool sections follow the
   existing .dark class toggled by both desktop and mobile controls. */
.cm-hero,.cm-hero::before,.cm-hero::after,.cm-hero-halo,.cm-art-panel,
.cm-hero-title,.cm-hero-title em,.cm-hero-desc,.cm-eyebrow,
.cm-hero-notes,.cm-button-outline {
  transition: background-color .3s ease, color .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.dark body { background: #0b1018; color: #e8eef6; }
.dark .cm-header { background: rgba(10,15,23,.96); }
.dark .cm-hero {
  background: radial-gradient(ellipse at 76% 53%,#103456 0%,transparent 47%),#080e17;
  color: #f4f8fc;
}
.dark .cm-hero::before {
  opacity: .40;
  background-image: linear-gradient(#75c7fa1b 1px,transparent 1px),linear-gradient(90deg,#75c7fa1b 1px,transparent 1px);
}
.dark .cm-hero::after { background: linear-gradient(90deg,transparent,#299ac6,transparent); }
.dark .cm-eyebrow { color: #85d7ed; }
.dark .cm-eyebrow::before { background: #43d6ca; box-shadow: 0 0 15px #32c8c394; }
.dark .cm-hero-title { color: #f6faff; }
.dark .cm-hero-title em { color: #8dd9f4; }
.dark .cm-hero-desc { color: #c1d1df; }
.dark .cm-hero-notes { color: #b0c5d5; }
.dark .cm-hero-notes i { color: #5dd9c3; }
.dark .cm-button-outline { color: #f2f8ff; border-color: #65819a; background: #ffffff12; }
.dark .cm-button-outline:hover { color: #fff; border-color: #86b5db; background: #ffffff25; }
.dark .cm-hero-halo {
  background: radial-gradient(ellipse,#1b78bd7a 0%,#145b9870 35%,transparent 68%);
}
.dark .cm-hero-orbit { filter: drop-shadow(0 0 13px #3aadea70); }
.dark .cm-wave-svg { -webkit-mask-image: linear-gradient(90deg,rgba(0,0,0,.52),rgba(0,0,0,.72) 34%,#000 70%); mask-image: linear-gradient(90deg,rgba(0,0,0,.52),rgba(0,0,0,.72) 34%,#000 70%); }
.dark .cm-wave-strands { filter: brightness(1.28) saturate(1.12); }
.dark .cm-art-panel { background: #101e30dc; border-color: #5281a67d; box-shadow: 0 18px 45px #0009; color: #f1f7fd; }
.dark .cm-art-label { color: #a2c8de; }
.dark .cm-art-mini { color: #bad4e3; }
.dark .cm-art-feature-title { color: #f1f7fd; }
.dark .cm-art-feature-action { color: #93c5fd; }
.dark .cm-art-panel--link:hover { color: #f1f7fd; border-color: #8bc1eb; box-shadow: 0 20px 50px #000a; }
.dark .cm-tool-zone,.dark .cm-news { background: #0b111b; }
.dark .cm-feature-band { background: #0f1722; }
.dark .cm-search-surface,.dark .cm-tool-card { background: #16202e; border-color: #354457; }
.dark .cm-search-control { background: #0e1723; border-color: #394b60; }
.dark .cm-category { background: #152334; border-color: #3b5065; }
.dark .cm-footer { background: #080e17; }
@media (prefers-reduced-motion: reduce) {
  .cm-hero,.cm-hero::before,.cm-hero::after,.cm-hero-halo,.cm-art-panel,
  .cm-hero-title,.cm-hero-title em,.cm-hero-desc,.cm-eyebrow,
  .cm-hero-notes,.cm-button-outline { transition: none !important; }
}
