:root {
  --ink: #0b0d12;
  --muted: #656b76;
  --line: rgba(12, 18, 30, 0.1);
  --surface: #f4f6f9;
  --blue: #1666e8;
  --blue-soft: #e8f0ff;
  --radius: 30px;
  --shadow: 0 30px 80px rgba(14, 22, 39, 0.1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.topbar {
  position: sticky;
  top: 14px;
  z-index: 50;
  width: min(1080px, calc(100% - 32px));
  height: 62px;
  margin: 14px auto -76px;
  padding: 0 12px 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 20px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 12px 40px rgba(17,24,39,.08);
  backdrop-filter: blur(24px) saturate(160%);
}
.brand { font-weight: 750; letter-spacing: -.04em; font-size: 20px; }
.nav { display: flex; gap: 28px; color: #5c6470; font-size: 13px; }
.nav a, footer nav a { transition: color .2s ease; }
.nav a:hover, footer nav a:hover { color: var(--blue); }
.nav-cta { padding: 12px 18px; color: white; background: var(--ink); border-radius: 13px; font-size: 13px; font-weight: 650; }

.section { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 140px 0; }
.section.compact { padding: 100px 0; }
.eyebrow { margin: 0 0 22px; color: var(--blue); font-size: 11px; font-weight: 750; letter-spacing: .18em; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { letter-spacing: -.055em; }
h2 { margin-bottom: 28px; font-size: clamp(46px, 6vw, 82px); line-height: .98; }

.hero {
  position: relative;
  min-height: 900px;
  width: 100%;
  max-width: none;
  padding: 220px max(24px, calc((100vw - 1180px) / 2)) 100px;
  overflow: hidden;
  background: radial-gradient(circle at 70% 20%, #e8f0ff 0, rgba(232,240,255,0) 35%), linear-gradient(180deg, #f8f9fb, #fff);
}
.hero .eyebrow, .hero h1, .hero-lead, .hero-copy, .hero-actions, .hero-score { position: relative; z-index: 2; }
.hero h1 { max-width: 950px; margin-bottom: 35px; font-size: clamp(74px, 11vw, 154px); line-height: .83; }
.hero h1 span { color: transparent; background: linear-gradient(110deg, #6f7785 10%, #d3d8e0 50%, #717887 80%); -webkit-background-clip: text; background-clip: text; }
.hero-lead { max-width: 800px; margin-bottom: 18px; font-size: clamp(26px, 3vw, 42px); font-weight: 650; line-height: 1.2; letter-spacing: -.035em; }
.hero-copy { max-width: 760px; color: var(--muted); font-size: 17px; line-height: 1.85; }
.hero-actions { display: flex; gap: 12px; margin-top: 38px; }
.button { display: inline-flex; align-items: center; gap: 30px; padding: 17px 23px; border-radius: 15px; font-weight: 650; transition: transform .25s ease, box-shadow .25s ease; }
.button:hover { transform: translateY(-2px); }
.button.primary { color: #fff; background: var(--blue); box-shadow: 0 12px 34px rgba(22,102,232,.26); }
.button.secondary { border: 1px solid var(--line); background: rgba(255,255,255,.75); }
.hero-score { max-width: 760px; margin-top: 80px; padding: 22px 0; display: flex; gap: 42px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hero-score span { color: var(--muted); font-size: 13px; }
.hero-score strong { font-size: 18px; }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(4px); opacity: .6; }
.orb-one { width: 420px; height: 420px; right: -80px; top: 160px; background: radial-gradient(circle at 35% 30%, #fff, #c9d8f6 52%, #f4f6fb 70%); box-shadow: inset -30px -30px 70px rgba(53,86,145,.12), 0 40px 100px rgba(48,78,130,.15); }
.orb-two { width: 140px; height: 140px; right: 26%; top: 570px; background: radial-gradient(circle at 30% 30%, #fff, #dbe6fa); }
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }

.section-heading { margin-bottom: 60px; }
.section-heading h2 { max-width: 920px; }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card { min-height: 430px; padding: 34px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: #f7f8fa; overflow: hidden; transition: transform .35s ease, box-shadow .35s ease; }
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card-index { color: #89909b; font-size: 11px; }
.card-icon { margin: 64px 0 auto; font-size: 68px; font-weight: 200; }
.feature-card h3 { margin: 34px 0 14px; font-size: 25px; letter-spacing: -.035em; }
.feature-card p { margin: 0; color: #747a85; line-height: 1.65; }
.dark-card { color: #fff; background: #111318; }
.dark-card p, .dark-card .card-index { color: #9da3ae; }
.blue-card { background: linear-gradient(145deg, #eff5ff, #dce9ff); }
.blue-card .card-icon { color: var(--blue); }

.flow-section { color: #fff; background: #0d1015; }
.flow-section h2 { max-width: 800px; }
.workflow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto 1fr auto 1fr; align-items: center; margin-top: 75px; }
.workflow div { min-height: 130px; padding: 22px 16px; display: flex; flex-direction: column; justify-content: space-between; border-top: 1px solid #333842; }
.workflow span { color: #6f7886; font-size: 11px; }
.workflow b { font-size: 16px; }
.workflow i { color: #555e6b; font-style: normal; }

.demo-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; align-items: center; }
.demo-copy h2 { font-size: clamp(50px, 6vw, 78px); }
.demo-copy > p:last-child { color: var(--muted); line-height: 1.8; }
.glass { border: 1px solid rgba(255,255,255,.9); background: linear-gradient(135deg, rgba(244,247,252,.9), rgba(231,237,246,.66)); box-shadow: var(--shadow); backdrop-filter: blur(20px); }
.score-demo { padding: 45px; border-radius: 36px; }
.score-top { display: flex; align-items: center; justify-content: space-between; }
.score-top span { color: var(--muted); font-size: 13px; }
.score-top strong { display: block; margin-top: 10px; font-size: 76px; letter-spacing: -.06em; }
.score-top small { color: #89909a; font-size: 22px; }
.score-ring { width: 96px; height: 96px; display: grid; place-content: center; text-align: center; border: 7px solid #cedcf3; border-top-color: var(--blue); border-right-color: var(--blue); border-radius: 50%; transform: rotate(12deg); }
.score-ring b, .score-ring small { transform: rotate(-12deg); }
.score-ring b { font-size: 23px; }
.score-ring small { color: var(--muted); font-size: 9px; }
.meter, .dimension-bar { height: 5px; overflow: hidden; border-radius: 99px; background: #dce1e8; }
.meter { margin: 30px 0; }
.meter span, .dimension-bar span { display: block; height: 100%; background: linear-gradient(90deg, #7ba9ef, var(--blue)); border-radius: inherit; }
.score-demo dl { margin: 0; }
.score-demo dl div { padding: 20px 0; display: grid; grid-template-columns: 120px 1fr; border-top: 1px solid var(--line); }
.score-demo dt { color: var(--muted); font-size: 13px; }
.score-demo dd { margin: 0; font-weight: 600; }
.positive { color: #0c8b62; }

.capabilities { padding-top: 80px; }
.capability-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.capability-grid article { min-height: 220px; padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.capability-grid span { color: #9ba0aa; font-size: 10px; }
.capability-grid h3 { margin: 58px 0 10px; font-size: 19px; }
.capability-grid p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }

.tool-wrap { background: #f2f4f7; }
.tool-section { padding-bottom: 120px; }
.tool-heading { margin-bottom: 70px; }
.tool-heading h2 { max-width: 900px; }
.tool-heading > p:last-child { color: var(--muted); }
.form-panel { margin-bottom: 22px; padding: 42px; border: 1px solid rgba(255,255,255,.9); border-radius: 30px; background: rgba(255,255,255,.78); box-shadow: 0 20px 60px rgba(17,24,39,.06); }
.panel-title { display: flex; gap: 20px; margin-bottom: 36px; }
.panel-title > span { width: 36px; height: 36px; display: grid; place-items: center; color: var(--blue); background: var(--blue-soft); border-radius: 50%; font-size: 11px; font-weight: 750; }
.panel-title h3 { margin: 0 0 4px; font-size: 22px; }
.panel-title p { margin: 0; color: var(--muted); font-size: 13px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.form-grid label { display: grid; gap: 9px; color: #4c525e; font-size: 12px; font-weight: 650; }
.form-grid .wide { grid-column: 1 / -1; }
input, textarea, select { width: 100%; padding: 15px 17px; color: var(--ink); border: 1px solid #dfe3e9; border-radius: 13px; outline: none; background: #fff; transition: border .2s ease, box-shadow .2s ease; }
textarea { resize: vertical; line-height: 1.65; }
input:focus, textarea:focus, select:focus { border-color: #87acf0; box-shadow: 0 0 0 4px rgba(22,102,232,.09); }
.error-message { min-height: 24px; margin: 8px 4px; color: #bb2536; font-size: 13px; }
.evaluate-button { width: 100%; min-height: 66px; padding: 0 26px; display: flex; align-items: center; justify-content: space-between; color: #fff; border: 0; border-radius: 17px; background: var(--blue); box-shadow: 0 14px 35px rgba(22,102,232,.22); cursor: pointer; font-weight: 700; }
.evaluate-button b { font-size: 20px; }
.evaluate-button:disabled { cursor: wait; opacity: .8; }
.spinner { display: none; width: 20px; height: 20px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
.loading .spinner { display: block; }
.loading .button-label, .loading b { opacity: .4; }
@keyframes spin { to { transform: rotate(360deg); } }

.result-panel { margin-top: 60px; padding: 44px; border-radius: 34px; background: #fff; box-shadow: var(--shadow); scroll-margin-top: 100px; }
.result-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.result-head h2 { margin: 0; font-size: clamp(34px, 4vw, 52px); }
.result-score { white-space: nowrap; }
.result-score strong { font-size: 72px; letter-spacing: -.07em; }
.result-score span { color: var(--muted); }
.result-verdict { padding: 34px 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; align-items: center; }
.result-verdict > span { padding: 7px 11px; border-radius: 99px; font-size: 11px; font-weight: 750; }
.result-verdict .apply { color: #067351; background: #dff8ef; }
.result-verdict .hold { color: #9c5b00; background: #fff0d8; }
.result-verdict strong { font-size: 26px; }
.result-verdict p { grid-column: 2; margin: 0; color: var(--muted); line-height: 1.6; }
.dimension-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.dimension { padding: 17px; border-radius: 15px; background: #f5f6f8; }
.dimension > div:first-child { display: flex; justify-content: space-between; margin-bottom: 14px; font-size: 12px; }
.dimension b { font-size: 16px; }
.insight-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 36px; }
.insight-grid article { padding: 25px; border: 1px solid var(--line); border-radius: 18px; }
.insight-grid h3 { margin-bottom: 17px; font-size: 15px; }
.insight-grid ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 14px; line-height: 1.75; }
.dot { width: 7px; height: 7px; display: inline-block; margin-right: 8px; border-radius: 50%; }
.green { background: #10a776; } .amber { background: #e79b22; } .red { background: #df4c59; } .blue { background: var(--blue); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { padding: 8px 11px; color: #465162; background: #eef1f5; border-radius: 9px; font-size: 12px; }
.next-action { margin-top: 14px; padding: 24px; display: flex; align-items: center; gap: 30px; color: white; border-radius: 18px; background: #11141a; }
.next-action span { color: #8d96a5; font-size: 9px; letter-spacing: .16em; }

.row-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.row-heading h2 { max-width: 800px; margin-bottom: 0; font-size: clamp(44px, 6vw, 72px); }
.truth-note { padding: 10px 14px; color: #875b00; background: #fff5d9; border-radius: 10px; font-size: 12px; }
.empty-state { padding: 70px 24px; text-align: center; border: 1px dashed #ccd1da; border-radius: 24px; background: #fafbfc; }
.empty-state > span { display: block; margin-bottom: 20px; color: #9ba4b2; font-size: 38px; }
.empty-state h3 { margin-bottom: 10px; font-size: 20px; }
.empty-state p { color: var(--muted); }
.empty-state a { display: inline-block; margin-top: 10px; padding: 11px 16px; color: white; border-radius: 10px; background: var(--ink); font-size: 13px; }
.resume-editor-wrap { overflow: hidden; border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 22px 60px rgba(20,28,43,.08); }
.editor-toolbar { padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); background: #f7f8fa; font-size: 12px; color: var(--muted); }
.editor-toolbar div { display: flex; gap: 8px; }
.editor-toolbar button { padding: 9px 12px; border: 1px solid #d7dbe1; border-radius: 9px; background: white; cursor: pointer; }
#resume-draft { min-height: 650px; padding: 48px; border: 0; border-radius: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; line-height: 1.85; }

.board-wrap { background: #0d1015; color: white; }
.storage-note { display: flex; align-items: center; gap: 8px; color: #8f98a6; font-size: 12px; }
.storage-note span { width: 7px; height: 7px; background: #4ed49e; border-radius: 50%; box-shadow: 0 0 12px #4ed49e; }
.board-empty { color: var(--ink); }
.table-wrap { overflow-x: auto; border: 1px solid #292d35; border-radius: 20px; }
table { width: 100%; border-collapse: collapse; min-width: 900px; }
th, td { padding: 19px; text-align: left; border-bottom: 1px solid #292d35; font-size: 13px; }
th { color: #7e8795; font-size: 10px; letter-spacing: .08em; }
tbody tr:last-child td { border-bottom: 0; }
td strong, td span { display: block; }
td span { margin-top: 5px; color: #8d96a4; }
.table-score { color: #e4ae47; font-size: 18px; }
.table-score.high { color: #4ed49e; }
td select { min-width: 110px; padding: 9px; color: white; border-color: #343943; background: #1b1f26; }
.delete-button { color: #9098a5; border: 0; background: transparent; cursor: pointer; }
.delete-button:hover { color: #ff6b79; }

.compliance h2 { max-width: 800px; }
.compliance-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.compliance-grid p { margin: 0; padding: 30px; background: white; line-height: 1.65; }
.compliance-grid p::before { content: "✓"; margin-right: 12px; color: var(--blue); }
footer { min-height: 110px; padding: 30px max(24px, calc((100vw - 1180px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 30px; border-top: 1px solid var(--line); }
footer p { margin: 0; color: var(--muted); font-size: 12px; }
footer nav { display: flex; gap: 22px; font-size: 12px; }
.toast { position: fixed; z-index: 100; left: 50%; bottom: 28px; padding: 13px 18px; color: #fff; border-radius: 12px; background: rgba(12,15,20,.92); box-shadow: 0 14px 40px rgba(0,0,0,.2); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: .25s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.legal-page { min-height: 100vh; background: #f5f6f8; }
.legal-main { width: min(880px, calc(100% - 40px)); margin: 0 auto; padding: 170px 0 100px; }
.legal-hero { margin-bottom: 55px; }
.legal-hero h1 { margin-bottom: 20px; font-size: clamp(54px, 9vw, 100px); line-height: .9; }
.legal-hero p { color: var(--muted); }
.legal-card { padding: 50px; border: 1px solid white; border-radius: 28px; background: white; box-shadow: 0 25px 70px rgba(18,25,38,.07); }
.legal-card section { padding: 30px 0; border-bottom: 1px solid var(--line); }
.legal-card section:first-child { padding-top: 0; }
.legal-card section:last-child { padding-bottom: 0; border-bottom: 0; }
.legal-card h2 { margin-bottom: 14px; font-size: 23px; letter-spacing: -.03em; }
.legal-card p, .legal-card li { color: #59606b; line-height: 1.8; }
.legal-card ul { padding-left: 20px; }

@media (max-width: 900px) {
  .nav { display: none; }
  .section { width: min(100% - 32px, 680px); padding: 100px 0; }
  .hero { min-height: auto; padding: 180px 24px 90px; }
  .orb-one { right: -230px; }
  .value-grid, .capability-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-card:first-child { grid-column: 1 / -1; }
  .workflow { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .workflow i { display: none; }
  .demo-section { grid-template-columns: 1fr; gap: 50px; }
  .dimension-grid { grid-template-columns: repeat(2, 1fr); }
  .row-heading { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 600px) {
  .topbar { width: calc(100% - 20px); height: 56px; top: 10px; margin-top: 10px; padding-left: 16px; }
  .nav-cta { padding: 10px 13px; }
  .hero h1 { font-size: 72px; }
  .hero-actions { flex-direction: column; }
  .button { justify-content: space-between; }
  .hero-score { flex-direction: column; gap: 9px; margin-top: 55px; }
  h2 { font-size: 46px; }
  .value-grid, .capability-grid, .form-grid, .insight-grid, .compliance-grid { grid-template-columns: 1fr; }
  .feature-card:first-child { grid-column: auto; }
  .feature-card { min-height: 370px; }
  .workflow { grid-template-columns: repeat(2, 1fr); }
  .score-demo, .form-panel, .result-panel, .legal-card { padding: 26px; border-radius: 22px; }
  .score-top strong, .result-score strong { font-size: 56px; }
  .result-head { align-items: flex-start; flex-direction: column; }
  .result-verdict { grid-template-columns: 1fr; }
  .result-verdict p { grid-column: 1; }
  .dimension-grid { grid-template-columns: 1fr; }
  .next-action { align-items: flex-start; flex-direction: column; gap: 10px; }
  .editor-toolbar { align-items: flex-start; flex-direction: column; gap: 12px; }
  .editor-toolbar div { width: 100%; }
  .editor-toolbar button { flex: 1; }
  #resume-draft { min-height: 600px; padding: 24px; }
  footer { align-items: flex-start; flex-direction: column; }
  footer nav { flex-wrap: wrap; }
  .legal-main { padding-top: 140px; }
}

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

@media print {
  body.printing-resume > * { display: none !important; }
  body.printing-resume .resume-section { display: block !important; width: 100%; padding: 0; }
  body.printing-resume .resume-section > * { display: none !important; }
  body.printing-resume .resume-editor-wrap { display: block !important; border: 0; box-shadow: none; }
  body.printing-resume .editor-toolbar { display: none !important; }
  body.printing-resume #resume-draft { display: block !important; min-height: 0; padding: 0; white-space: pre-wrap; border: 0; }
}
