/* =========================================================================
   職夢 AI - Marketing site design system
   Brand tokens extended from the extension (tokens.css / dashboard.css):
   橘金 #ff9911 / navy #010011 / 分數綠 #76b900 / cyan glow #47ffff /
   metallic gold + silver. Dark theme locked, one accent (橘金) locked.
   Radius lock: buttons + chips = pill, cards = 14px, inputs = 10px.
   Zero em-dashes anywhere in user-visible copy.
   ========================================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Surfaces */
  --c-bg:        #010011;
  --c-bg-2:      #06031f;
  --c-bg-3:      #0a0726;

  /* Brand accent (locked) */
  --c-primary:       #ff9911;
  --c-primary-light: #ffb84d;
  --c-primary-dim:   #cc7a0e;
  --c-primary-glow:  rgba(255, 153, 17, 0.16);

  /* Secondary semantics */
  --c-green:      #76b900;
  --c-green-soft: rgba(34, 197, 94, 0.06);
  --c-green-mid:  rgba(34, 197, 94, 0.14);
  --c-green-line: rgba(34, 197, 94, 0.28);
  --c-cyan:       #47ffff;

  /* Score semantics (mirror extension label colours) */
  --c-direct:   #76b900;
  --c-indirect: #e9c44a;
  --c-weak:     #f0883e;
  --c-reject:   #e25555;

  /* Text */
  --c-text:      #e9edf3;
  --c-text-dim:  #c3ccd8;
  --c-text-mute: #6a7686;

  /* Glass panel */
  --c-surface:    rgba(34, 197, 94, 0.06);
  --c-surface-2:  rgba(8, 12, 24, 0.55);
  --c-border:     rgba(34, 197, 94, 0.28);
  --c-border-mut: rgba(34, 197, 94, 0.16);
  --glow-cyan:    0 0 16px rgba(71, 255, 255, 0.18);

  /* Metallic gradients (convex: brightest in the middle) */
  --grad-gold:   linear-gradient(180deg, #c47e10 0%, #ffe7a8 42%, #fff6dc 50%, #e6a52b 58%, #c47e10 100%);
  --grad-silver: linear-gradient(180deg, #8f95a0 0%, #e9edf3 44%, #ffffff 50%, #c4cad4 58%, #8f95a0 100%);
  --grad-chrome: linear-gradient(180deg, #bcc2cb 0%, #f3f5f8 48%, #ffffff 50%, #d6dae1 56%, #bcc2cb 100%);

  /* Type */
  --f-display: "Space Grotesk", "Noto Sans TC", system-ui, sans-serif;
  --f-body:    "Sora", "Noto Sans TC", system-ui, sans-serif;
  --f-mono:    "Space Grotesk", ui-monospace, monospace;

  /* Radius lock */
  --r-card: 14px;
  --r-input: 10px;
  --r-pill: 999px;

  /* Layout */
  --maxw: 1200px;
  --nav-h: 68px;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--f-body);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.65;
  font-size: 16px;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--c-cyan); outline-offset: 3px; border-radius: 4px; }

/* ---------- Bilingual visibility ---------- */
html[data-lang="zh"] [data-lang="en"] { display: none !important; }
html[data-lang="en"] [data-lang="zh"] { display: none !important; }

/* ---------- Background field (circuit tile + radial glow) ---------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background-color: var(--c-bg);
  background-image:
    radial-gradient(900px 600px at 78% -8%, rgba(255, 153, 17, 0.10), transparent 60%),
    radial-gradient(1100px 720px at 8% 4%, rgba(34, 197, 94, 0.10), transparent 60%),
    radial-gradient(900px 900px at 50% 120%, rgba(71, 255, 255, 0.06), transparent 60%);
}
/* faint static circuit traces, 45deg, cyan + gold nodes */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260' viewBox='0 0 260 260'%3E%3Cg fill='none' stroke='%2347ffff' stroke-width='1' stroke-opacity='0.05'%3E%3Cpath d='M10 60 L80 60 L110 90 L200 90'/%3E%3Cpath d='M40 10 L40 70 L70 100 L70 200'/%3E%3Cpath d='M250 40 L180 40 L150 70 L150 160 L120 190'/%3E%3Cpath d='M200 250 L200 180 L230 150'/%3E%3C/g%3E%3Cg fill='%23ff9911' fill-opacity='0.07'%3E%3Ccircle cx='80' cy='60' r='2.4'/%3E%3Ccircle cx='70' cy='100' r='2.4'/%3E%3Ccircle cx='150' cy='70' r='2.4'/%3E%3Ccircle cx='200' cy='180' r='2.4'/%3E%3C/g%3E%3Cg fill='%2347ffff' fill-opacity='0.06'%3E%3Ccircle cx='110' cy='90' r='2'/%3E%3Ccircle cx='150' cy='160' r='2'/%3E%3C/g%3E%3C/svg%3E");
}

/* Animated electron-flow layer (mounted by JS) */
.circuit-flow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.circuit-flow.is-on { opacity: 1; }
html.fx-off .circuit-flow { display: none; }
@media (prefers-reduced-motion: reduce) { .circuit-flow { display: none; } }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
section { position: relative; }
.section { padding-block: clamp(64px, 9vw, 128px); }
.section-sm { padding-block: clamp(48px, 6vw, 80px); }
.stack-center { display: flex; flex-direction: column; align-items: center; text-align: center; }

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono);
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--c-text-dim);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--c-green); box-shadow: 0 0 8px var(--c-green); }
.hero .eyebrow { font-size: 18px; letter-spacing: 0.12em; color: var(--c-text); }
.hero .eyebrow .dot { width: 8px; height: 8px; }
.sec-head .eyebrow, .legend .eyebrow, .about-hero .eyebrow { font-size: 17px; letter-spacing: 0.14em; color: var(--c-text); }

h1, h2, h3 { font-family: var(--f-display); font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; }
.h-display { font-size: clamp(2.4rem, 6vw, 4.2rem); }
.h-section { font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.12; }
.h-card { font-size: 1.18rem; font-family: var(--f-display); font-weight: 700; letter-spacing: -0.01em; }

.lead { font-size: clamp(1.02rem, 1.4vw, 1.18rem); color: var(--c-text-dim); max-width: 56ch; }
.muted { color: var(--c-text-dim); }
.measure { max-width: 65ch; }

/* Metallic text (convex gold / silver), emoji-safe by wrapping text only */
.metallic-gold, .metallic-silver {
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  filter: drop-shadow(0 1px 0 rgba(0,0,0,0.4)) drop-shadow(0 2px 6px rgba(0,0,0,0.35));
}
.metallic-gold   { background-image: var(--grad-gold); }
.metallic-silver { background-image: var(--grad-silver); }
.accent { color: var(--c-primary); }
.accent-c { color: var(--c-cyan); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 26px; border-radius: var(--r-pill);
  font-family: var(--f-display); font-weight: 700; font-size: 0.98rem; letter-spacing: 0.01em;
  white-space: nowrap; border: 1px solid transparent;
  transition: transform 0.15s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), color 0.2s ease;
}
.btn i { font-size: 1.15em; }
.btn:active { transform: translateY(1px) scale(0.99); }

/* Primary = brand 橘金 fill, near-black label (AA contrast), warm glow */
.btn-primary {
  background: linear-gradient(180deg, var(--c-primary-light), var(--c-primary) 55%, var(--c-primary-dim));
  color: #1a0f00;
  box-shadow: 0 8px 26px rgba(255, 153, 17, 0.32), inset 0 1px 0 rgba(255,255,255,0.45);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(255, 153, 17, 0.46), inset 0 1px 0 rgba(255,255,255,0.5); }

/* Secondary = glass with cyan edge */
.btn-ghost {
  background: var(--c-surface-2);
  color: var(--c-text);
  border-color: rgba(71, 255, 255, 0.4);
  backdrop-filter: blur(6px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}
.btn-ghost:hover { border-color: var(--c-cyan); box-shadow: var(--glow-cyan); transform: translateY(-2px); }

/* Silver chrome (metallic, like extension action buttons) */
.btn-silver {
  background: var(--grad-chrome); color: #16181d; border-color: rgba(255,255,255,0.5);
  box-shadow: 0 6px 20px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.7);
}
.btn-silver:hover { transform: translateY(-2px); filter: brightness(1.04); }

.btn-lg { padding: 16px 32px; font-size: 1.05rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Glass panel ---------- */
.panel {
  position: relative;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-card);
  backdrop-filter: blur(7px);
  box-shadow: var(--glow-cyan), inset 0 1px 0 rgba(255,255,255,0.05);
}
.panel--plain { box-shadow: inset 0 1px 0 rgba(255,255,255,0.04); }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(3, 2, 18, 0.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-border-mut);
}
.nav .wrap { display: flex; align-items: center; gap: 24px; width: 100%; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--f-display); font-weight: 700; font-size: 1.12rem; white-space: nowrap; flex-shrink: 0; }
.brand img { width: 30px; height: 30px; }
.brand .brand-sub { display: none; } /* "JOBAI" sub-label removed per brand */
.nav-links { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav-links a { font-size: 0.95rem; color: var(--c-text-dim); transition: color 0.2s; }
.nav-links a:hover { color: var(--c-text); }
.nav-tools { display: flex; align-items: center; gap: 12px; }

.lang-toggle, .fx-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  height: 38px; padding: 0 13px; border-radius: var(--r-pill);
  background: var(--c-surface-2); border: 1px solid var(--c-border-mut);
  color: var(--c-text-dim); font-size: 0.85rem; font-family: var(--f-mono);
  transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.lang-toggle:hover, .fx-toggle:hover { color: var(--c-text); border-color: rgba(71,255,255,0.45); box-shadow: var(--glow-cyan); }
.fx-toggle { width: 38px; justify-content: center; padding: 0; }
.fx-toggle i { font-size: 1.15rem; }
html.fx-off .fx-toggle { color: var(--c-text-mute); }

.nav-burger { display: none; width: 40px; height: 40px; border-radius: 10px; background: var(--c-surface-2); border: 1px solid var(--c-border-mut); color: var(--c-text); align-items: center; justify-content: center; }
.nav-burger i { font-size: 1.4rem; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(48px, 7vw, 92px); padding-bottom: clamp(56px, 8vw, 110px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin-top: 18px; }
.hero .lead { margin-top: 22px; }
.hero .btn-row { margin-top: 32px; }
.hero-trust { margin-top: 30px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; color: var(--c-text-mute); font-size: 0.86rem; }
.hero-trust .pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px; border-radius: var(--r-pill); border: 1px solid var(--c-border-mut); background: var(--c-green-soft); color: var(--c-text-dim); }
.hero-trust .pill i { color: var(--c-green); }

/* Hero score visual (abstract data-viz, not a product screenshot) */
.hero-viz { position: relative; display: grid; place-items: center; min-height: 380px; }

/* ---------- Score ring (animated) ---------- */
.score-ring { position: relative; width: min(340px, 78vw); aspect-ratio: 1; }
.score-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.score-ring .track { fill: none; stroke: rgba(255,255,255,0.07); stroke-width: 10; }
.score-ring .prog { fill: none; stroke: url(#scoreGrad); stroke-width: 10; stroke-linecap: round;
  stroke-dasharray: var(--circ); stroke-dashoffset: var(--circ);
  filter: drop-shadow(0 0 6px rgba(118,185,0,0.55)); }
.score-ring .glyph { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.score-ring .num { font-family: var(--f-display); font-weight: 700; font-size: 3.4rem; line-height: 1; }
.score-ring .num small { font-size: 1.2rem; color: var(--c-text-mute); font-weight: 500; }
.score-ring .tag { margin-top: 6px; font-size: 0.82rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--c-green); font-family: var(--f-mono); }

/* floating mini job chips around the ring */
.viz-chip {
  position: absolute; display: flex; align-items: center; gap: 10px;
  padding: 11px 16px; border-radius: var(--r-pill);
  background: var(--c-surface-2); border: 1px solid var(--c-border-mut);
  backdrop-filter: blur(6px); font-size: 0.98rem; color: var(--c-text-dim); white-space: nowrap;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}
.viz-chip b { color: var(--c-text); font-weight: 600; font-family: var(--f-display); font-size: 1.06rem; }
.viz-chip .badge { font-family: var(--f-mono); font-weight: 700; padding: 2px 10px; border-radius: var(--r-pill); font-size: 0.94rem; }
.badge.direct   { color: var(--c-direct);   background: rgba(118,185,0,0.16); }
.badge.indirect { color: var(--c-indirect); background: rgba(233,196,74,0.16); }
.badge.weak     { color: var(--c-weak);     background: rgba(240,136,62,0.16); }
.viz-chip.c1 { top: 6%; left: -4%; }
.viz-chip.c2 { top: 38%; right: -8%; }
.viz-chip.c3 { bottom: 8%; left: 2%; }

/* Featured top-match chip: joint-highest score, brought to focus (bigger + shine) */
.viz-chip.is-top {
  font-size: 1.12rem; padding: 14px 20px; z-index: 2;
  border-color: rgba(118, 185, 0, 0.6);
  background: linear-gradient(135deg, rgba(118,185,0,0.18), rgba(8,12,24,0.6));
  animation: topGlow 2.6s ease-in-out infinite;
}
.viz-chip.is-top b { font-size: 1.24rem; color: #fff; }
.viz-chip.is-top .badge { font-size: 1.02rem; color: var(--c-direct); background: rgba(118,185,0,0.26); padding: 3px 12px; }
.viz-chip.is-top::after { /* shine sweep */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; overflow: hidden;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.35) 50%, transparent 70%);
  background-size: 220% 100%; background-repeat: no-repeat;
  animation: topShine 3.4s ease-in-out infinite; mix-blend-mode: screen;
}
@keyframes topGlow {
  0%, 100% { box-shadow: 0 0 0 1px rgba(118,185,0,0.25), 0 0 18px rgba(118,185,0,0.35), 0 12px 30px rgba(0,0,0,0.42); }
  50%      { box-shadow: 0 0 0 1px rgba(118,185,0,0.5),  0 0 32px rgba(118,185,0,0.62), 0 12px 30px rgba(0,0,0,0.42); }
}
@keyframes topShine {
  0%   { background-position: 130% 0; opacity: 0; }
  18%  { opacity: 1; }
  45%  { background-position: -30% 0; opacity: 0; }
  100% { background-position: -30% 0; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .viz-chip.is-top { animation: none; }
  .viz-chip.is-top::after { animation: none; opacity: 0; }
}
.float { animation: floaty 7s var(--ease) infinite; }
.float.d1 { animation-delay: -2.2s; }
.float.d2 { animation-delay: -4.4s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@media (prefers-reduced-motion: reduce) { .float { animation: none; } }

/* ---------- Trust strip ---------- */
.trust-strip { border-block: 1px solid var(--c-border-mut); background: rgba(255,255,255,0.012); }
.trust-strip .wrap { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; justify-content: center; padding-block: 22px; }
.trust-strip .label { font-family: var(--f-mono); font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--c-text-mute); }
.trust-logos { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.trust-logos .lg { display: flex; align-items: center; gap: 9px; color: var(--c-text-dim); font-weight: 600; font-family: var(--f-display); font-size: 0.96rem; }
.trust-logos .lg i { font-size: 1.3rem; color: var(--c-text-mute); }

/* ---------- Section header ---------- */
.sec-head { max-width: 60ch; }
.sec-head .h-section { margin-top: 14px; }
.sec-head p { margin-top: 16px; }
.sec-head.center { margin-inline: auto; text-align: center; }

/* ---------- Bento features ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; margin-top: 52px; }
.bento .cell { padding: 26px; border-radius: var(--r-card); position: relative; overflow: hidden; }
.cell .ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 16px; border: 1px solid var(--c-border-mut); }
.cell h3 { margin-bottom: 8px; }
.cell p { color: var(--c-text-dim); font-size: 0.96rem; }
.cell .ic.cyan  { color: var(--c-cyan);    background: rgba(71,255,255,0.08); }
.cell .ic.gold  { color: var(--c-primary); background: var(--c-primary-glow); }
.cell .ic.green { color: var(--c-green);   background: var(--c-green-mid); }

/* 3-block layout: two on top (span 3 each) + one full-width below (span 6) */
.bento-3 .cell { grid-column: span 3; border: 1px solid var(--c-border-mut); }
.bento-3 .feat-3 { grid-column: span 6; border-color: var(--c-border); }
.feat-1 { background: linear-gradient(150deg, rgba(34,197,94,0.12), rgba(8,12,24,0.52)); }
.feat-2 { background: linear-gradient(150deg, rgba(255,153,17,0.12), rgba(8,12,24,0.52)); }
.feat-3 { background: linear-gradient(150deg, rgba(34,197,94,0.14), rgba(255,153,17,0.10) 55%, rgba(8,12,24,0.55)); }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 52px; counter-reset: step; }
.step { padding: 24px; border-radius: var(--r-card); position: relative; }
.step .kicker { font-family: var(--f-mono); color: var(--c-cyan); font-size: 0.82rem; letter-spacing: 0.18em; }
.step .knum { font-family: var(--f-display); font-weight: 700; font-size: 2.4rem; line-height: 1; position: absolute; top: 18px; right: 20px;
  background: linear-gradient(135deg, var(--c-green), var(--c-primary));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.4)); }
.step h3 { margin: 14px 0 8px; font-size: 1.08rem; }
.step p { color: var(--c-text-dim); font-size: 0.92rem; }

/* ---------- Score legend section ---------- */
.legend { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(30px, 5vw, 64px); align-items: center; margin-top: 48px; }
.legend-list { display: grid; gap: 14px; }
.legend-row { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 16px 20px; border-radius: var(--r-card); background: var(--c-surface-2); border: 1px solid var(--c-border-mut); }
.legend-row .swatch { width: 12px; height: 40px; border-radius: 6px; }
.legend-row .meta b { display: block; font-family: var(--f-display); font-size: 1.02rem; }
.legend-row .meta span { font-size: 0.86rem; color: var(--c-text-dim); }
.legend-row .pct { font-family: var(--f-mono); font-weight: 700; font-size: 1.1rem; }
.sw-direct { background: var(--c-direct); box-shadow: 0 0 12px rgba(118,185,0,0.5); } .t-direct { color: var(--c-direct); }
.sw-indirect { background: var(--c-indirect); } .t-indirect { color: var(--c-indirect); }
.sw-weak { background: var(--c-weak); } .t-weak { color: var(--c-weak); }
.sw-reject { background: var(--c-reject); } .t-reject { color: var(--c-reject); }

/* ---------- Privacy/values cards ---------- */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 48px; }
.value { padding: 26px; border-radius: var(--r-card); background: var(--c-surface-2); border: 1px solid var(--c-border-mut); }
.value i { font-size: 1.7rem; color: var(--c-cyan); margin-bottom: 14px; display: block; }
.value h3 { font-size: 1.05rem; margin-bottom: 8px; }
.value p { color: var(--c-text-dim); font-size: 0.93rem; }

/* ---------- FAQ ---------- */
.faq { margin-top: 44px; display: grid; gap: 12px; max-width: 820px; }
.faq details { border: 1px solid var(--c-border-mut); border-radius: var(--r-card); background: var(--c-surface-2); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-family: var(--f-display); font-weight: 600; font-size: 1.04rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { color: var(--c-cyan); transition: transform 0.25s var(--ease); flex-shrink: 0; }
.faq details[open] summary i { transform: rotate(45deg); }
.faq .faq-body { padding: 0 24px 22px; color: var(--c-text-dim); font-size: 0.96rem; }
.faq .faq-body a { color: var(--c-cyan); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- CTA band ---------- */
.cta-band { margin-block: clamp(40px, 6vw, 80px); }
.cta-card { padding: clamp(36px, 6vw, 72px); border-radius: 22px; text-align: center; position: relative; overflow: hidden;
  background: linear-gradient(150deg, rgba(255,153,17,0.12), rgba(34,197,94,0.08) 60%, rgba(8,12,24,0.6));
  border: 1px solid var(--c-border); box-shadow: var(--glow-cyan); }
.cta-card .h-section { max-width: 22ch; margin-inline: auto; }
.cta-card p { margin: 16px auto 0; max-width: 50ch; }
.cta-card .btn-row { justify-content: center; margin-top: 32px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--c-border-mut); padding-block: 52px 36px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.footer .brand { margin-bottom: 14px; }
.footer .f-about { color: var(--c-text-dim); font-size: 0.92rem; max-width: 38ch; }
.footer h4 { font-family: var(--f-display); font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-text-mute); margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.footer ul a { color: var(--c-text-dim); font-size: 0.93rem; transition: color 0.2s; }
.footer ul a:hover { color: var(--c-text); }
.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--c-border-mut); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--c-text); font-size: 1rem; }

/* ---------- Legal / article pages ---------- */
.page-head { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(24px, 3vw, 40px); border-bottom: 1px solid var(--c-border-mut); }
.page-head .h-display { font-size: clamp(2rem, 4.5vw, 3.2rem); }
.page-head .updated { margin-top: 16px; font-family: var(--f-mono); font-size: 0.86rem; color: var(--c-text-mute); }
.legal { display: grid; grid-template-columns: 240px 1fr; gap: 48px; padding-top: 48px; align-items: start; }
.legal-toc { position: sticky; top: calc(var(--nav-h) + 24px); }
.legal-toc ul { list-style: none; padding: 0; display: grid; gap: 4px; border-left: 1px solid var(--c-border-mut); }
.legal-toc a { display: block; padding: 7px 16px; color: var(--c-text-dim); font-size: 0.9rem; border-left: 2px solid transparent; margin-left: -1px; transition: color 0.2s, border-color 0.2s; }
.legal-toc a:hover, .legal-toc a.active { color: var(--c-text); border-left-color: var(--c-primary); }
.legal-body { max-width: 760px; }
.legal-body h2 { font-size: 1.5rem; margin-top: 44px; padding-top: 12px; scroll-margin-top: calc(var(--nav-h) + 20px); }
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 { font-size: 1.12rem; margin-top: 26px; color: var(--c-text); }
.legal-body p, .legal-body li { color: var(--c-text-dim); font-size: 0.98rem; line-height: 1.75; }
.legal-body p { margin-top: 14px; }
.legal-body ul, .legal-body ol { margin-top: 14px; padding-left: 22px; display: grid; gap: 8px; }
.legal-body strong { color: var(--c-text); font-weight: 600; }
.legal-body a { color: var(--c-cyan); text-decoration: underline; text-underline-offset: 3px; }
.note { margin-top: 24px; padding: 18px 22px; border-radius: var(--r-card); background: var(--c-primary-glow); border: 1px solid rgba(255,153,17,0.32); }
.note p { color: var(--c-text) !important; margin-top: 0; font-size: 0.93rem; }
.note b { color: var(--c-primary); }
.placeholder { color: var(--c-primary); font-family: var(--f-mono); font-style: normal; background: rgba(255,153,17,0.1); padding: 1px 6px; border-radius: 5px; }

/* ---------- About page ---------- */
.about-hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.stat { padding: 24px; border-radius: var(--r-card); background: var(--c-surface-2); border: 1px solid var(--c-border-mut); text-align: center; }
.stat .n { font-family: var(--f-display); font-weight: 700; font-size: 2.2rem; }
.stat .l { color: var(--c-text-dim); font-size: 0.9rem; margin-top: 4px; }
.pillar-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 48px; }
.pillar { padding: 28px; border-radius: var(--r-card); background: var(--c-surface-2); border: 1px solid var(--c-border-mut); }
.pillar i { font-size: 1.8rem; color: var(--c-primary); margin-bottom: 14px; display: block; }
.pillar h3 { font-size: 1.15rem; margin-bottom: 10px; }
.pillar p { color: var(--c-text-dim); font-size: 0.95rem; }

/* ---------- Modal (Web Store under-review notice) ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px;
  background: rgba(1, 0, 17, 0.74); backdrop-filter: blur(7px); animation: modalFade 0.2s ease;
}
.modal-overlay[hidden] { display: none; }
.modal-box {
  max-width: 430px; width: 100%; padding: 38px 32px 32px; text-align: center; position: relative;
  animation: modalPop 0.3s var(--ease);
}
.modal-close {
  position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%;
  background: var(--c-surface-2); border: 1px solid var(--c-border-mut); color: var(--c-text-dim);
  display: grid; place-items: center; transition: color 0.2s, border-color 0.2s;
}
.modal-close:hover { color: var(--c-text); border-color: var(--c-cyan); box-shadow: var(--glow-cyan); }
.modal-ic {
  width: 66px; height: 66px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center;
  font-size: 2rem; color: var(--c-primary); background: var(--c-primary-glow);
  border: 1px solid rgba(255, 153, 17, 0.34); box-shadow: 0 0 22px rgba(255, 153, 17, 0.22);
}
.modal-box h3 { font-size: 1.45rem; margin-bottom: 12px; }
.modal-box p { color: var(--c-text-dim); font-size: 0.98rem; line-height: 1.7; margin-bottom: 26px; }
.modal-box .btn { width: 100%; justify-content: center; }
@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalPop { from { opacity: 0; transform: translateY(14px) scale(0.96); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .modal-overlay, .modal-box { animation: none; } }

/* ---------- Scroll reveal (gated on .js so no-JS shows everything) ---------- */
.reveal { transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
html.js .reveal { opacity: 0; transform: translateY(26px); }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html.js .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-viz { min-height: 320px; order: -1; }
  .legend, .about-hero { grid-template-columns: 1fr; }
  .bento-3 { grid-template-columns: 1fr; }
  .bento-3 .cell, .bento-3 .feat-3 { grid-column: span 1; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .legal { grid-template-columns: 1fr; }
  .legal-toc { display: none; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; }
  .brand-sub { display: none; }
  .nav-tools > .btn-primary { display: none; } /* hero CTA sits right below, no need to crowd the bar */
  .nav-tools { gap: 8px; }
  .nav .wrap { gap: 12px; }
  /* keep floating job chips at the corners so they never cover the score number */
  .hero-viz { min-height: 380px; }
  .score-ring { width: min(264px, 62vw); }
  .viz-chip { font-size: 0.82rem; padding: 7px 11px; gap: 7px; max-width: 60vw; }
  /* 長英文職缺名（隨機抽）過長 → 省略號截斷、不換行不溢出、badge 不被壓縮 */
  .viz-chip b { font-size: 0.88rem; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .viz-chip .badge { font-size: 0.8rem; padding: 1px 8px; flex: none; }
  .viz-chip.c1 { top: -1%; left: -2%; }
  /* c2：放在「c1(頂) 與中央分數(~50%)之間」的上半空檔（top:18%）。
     原 top:7% 與 c1 互擋；top:44% 又壓到中央分數 → 18% 兩者都避開。right:0 留畫面內、badge 不被切。*/
  .viz-chip.c2 { top: 18%; right: 0; bottom: auto; }
  .viz-chip.c3 { bottom: 0; left: 0; }
  .viz-chip.is-top { font-size: 0.94rem; padding: 9px 13px; max-width: 74vw; }
  .viz-chip.is-top b { font-size: 1.02rem; }
  .viz-chip.is-top .badge { font-size: 0.88rem; padding: 2px 9px; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
    position: absolute; top: var(--nav-h); left: 0; right: 0; padding: 16px 24px 22px;
    background: rgba(3,2,18,0.96); border-bottom: 1px solid var(--c-border); backdrop-filter: blur(14px);
  }
  .nav.open .nav-links a { padding: 10px 0; width: 100%; }
  .bento, .value-grid, .stat-grid, .pillar-grid, .footer-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { gap: 28px; }
  .hero-trust { gap: 10px; }
}
