:root {
  --ink: #121823;
  --ink-soft: #526070;
  --paper: #f6f7fa;
  --white: #ffffff;
  --line: #dfe4ea;
  --blue: #275fe8;
  --blue-dark: #1747bf;
  --blue-soft: #e8eeff;
  --mint: #bdf6d2;
  --mint-ink: #13633c;
  --coral: #ff806f;
  --yellow: #ffd86b;
  --lavender: #d9d4ff;
  --orange-soft: #fff0de;
  --shadow: 0 24px 70px rgba(31, 48, 80, .12);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "DM Sans", sans-serif; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }

.site-shell { min-height: 100vh; overflow: hidden; }
.site-header { height: 76px; padding: 0 clamp(20px, 5vw, 76px); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 34px; background: rgba(246, 247, 250, .92); backdrop-filter: blur(18px); border-bottom: 1px solid rgba(223, 228, 234, .8); position: relative; z-index: 30; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: Manrope, sans-serif; font-weight: 700; letter-spacing: -.035em; }
.brand-mark { width: 31px; height: 31px; border-radius: 10px; background: var(--blue); display: grid; place-items: center; transform: rotate(-5deg); box-shadow: 5px 5px 0 var(--lavender); }
.brand-mark span { width: 11px; height: 11px; border-right: 3px solid white; border-top: 3px solid white; transform: rotate(-2deg); }
.main-nav { display: flex; justify-content: center; gap: 7px; }
.main-nav a { padding: 9px 12px; border-radius: 10px; color: var(--ink-soft); font-size: 14px; }
.main-nav a:hover, .main-nav a.active { color: var(--ink); background: var(--white); }
.header-cta, .button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; border-radius: 13px; border: 1px solid var(--line); padding: 0 18px; background: var(--white); font-weight: 600; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.header-cta { background: var(--ink); border-color: var(--ink); color: white; font-size: 14px; }
.header-cta:hover, .button:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(31, 48, 80, .13); }
.button-primary { background: var(--blue); color: white; border-color: var(--blue); }
.button-primary:hover { background: var(--blue-dark); }
.button-dark { background: var(--ink); color: white; border-color: var(--ink); }
.button-ghost { background: transparent; }
.button-block { width: 100%; }
.menu-toggle { display: none; }

main { min-height: calc(100vh - 150px); }
.page { min-height: calc(100vh - 76px); animation: pageIn .35s ease both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } }
.page-inner { max-width: 1180px; margin: 0 auto; padding: clamp(50px, 8vw, 106px) clamp(20px, 5vw, 56px); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 17px; color: var(--blue); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }
h1, h2, h3 { margin: 0; font-family: Manrope, sans-serif; letter-spacing: -.04em; }
h1 { font-size: clamp(45px, 7vw, 87px); line-height: .99; max-width: 820px; }
h2 { font-size: clamp(34px, 5vw, 58px); line-height: 1.04; }
h3 { font-size: 20px; line-height: 1.22; }
p { color: var(--ink-soft); line-height: 1.65; }
.lead { font-size: clamp(17px, 2vw, 20px); max-width: 650px; }
.actions { display: flex; flex-wrap: wrap; gap: 11px; }

.home { position: relative; background: radial-gradient(circle at 82% 22%, rgba(217,212,255,.65), transparent 26%), radial-gradient(circle at 8% 88%, rgba(189,246,210,.55), transparent 25%), var(--paper); }
.home::after { content: ""; position: absolute; width: 170px; height: 170px; border: 1px solid rgba(39,95,232,.22); border-radius: 50%; left: -85px; top: 125px; }
.hero-layout { min-height: calc(100vh - 76px); display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 60px; max-width: 1280px; margin: 0 auto; padding: 55px clamp(20px, 5vw, 76px); }
.hero-copy .lead { margin: 25px 0 31px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 30px; color: var(--ink-soft); font-size: 13px; }
.hero-proof span { display: inline-flex; align-items: center; gap: 7px; }
.mini-check { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: var(--mint); color: var(--mint-ink); font-size: 11px; font-weight: 700; }
.hero-visual { position: relative; min-height: 570px; }
.visual-orbit { position: absolute; inset: 7% 2% 5%; border: 1px dashed rgba(39,95,232,.24); border-radius: 50%; transform: rotate(-9deg); }
.system-card { position: absolute; width: min(390px, 88%); top: 14%; left: 5%; background: var(--white); border: 1px solid var(--line); border-radius: 28px; padding: 24px; box-shadow: var(--shadow); transform: rotate(-3deg); }
.system-card::before { content: ""; position: absolute; inset: 10px -12px -12px 12px; border-radius: 28px; background: var(--blue); z-index: -1; }
.system-head { display: flex; justify-content: space-between; gap: 14px; align-items: center; margin-bottom: 21px; }
.system-head small { color: var(--ink-soft); }
.health-ring { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--coral) 0 70%, var(--line) 70%); position: relative; font-weight: 700; font-size: 13px; }
.health-ring::before { content: ""; position: absolute; inset: 5px; background: white; border-radius: 50%; }
.health-ring span { position: relative; }
.part-row { display: grid; grid-template-columns: 35px 1fr auto; align-items: center; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line); }
.part-icon { width: 34px; height: 34px; border-radius: 9px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.part-row strong { display: block; font-size: 14px; }
.part-row small { color: var(--ink-soft); }
.part-state { font-size: 11px; padding: 5px 8px; border-radius: 99px; background: var(--mint); color: var(--mint-ink); }
.part-state.warn { background: #ffe1dc; color: #a13d31; }
.gain-card { position: absolute; right: 0; bottom: 10%; width: 218px; background: var(--mint); border: 1px solid #8de9b0; border-radius: 20px; padding: 19px; transform: rotate(4deg); box-shadow: var(--shadow); }
.gain-card small { color: var(--mint-ink); }
.gain-card strong { display: block; margin: 4px 0; font: 700 32px/1 Manrope; letter-spacing: -.04em; color: var(--mint-ink); }
.price-card { position: absolute; left: 0; bottom: 1%; background: var(--yellow); border-radius: 16px; padding: 14px 18px; transform: rotate(-5deg); font-weight: 600; box-shadow: var(--shadow); }

.flow-page { background: linear-gradient(180deg, #f2f5ff 0, var(--paper) 55%); }
.flow-shell { max-width: 780px; margin: 0 auto; padding: clamp(42px, 7vw, 82px) 20px 70px; }
.flow-top { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 45px; }
.back-link { border: 0; background: transparent; color: var(--ink-soft); cursor: pointer; padding: 8px 0; }
.progress { display: flex; gap: 7px; }
.progress span { width: 42px; height: 5px; border-radius: 99px; background: var(--line); }
.progress span.done { background: var(--blue); }
.flow-heading { margin-bottom: 29px; }
.flow-heading h2 { max-width: 650px; }
.flow-heading p { font-size: 17px; max-width: 610px; }
.choice-stack { display: grid; gap: 12px; }
.choice-card { width: 100%; padding: 19px; background: var(--white); border: 1px solid var(--line); border-radius: 18px; display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 15px; text-align: left; cursor: pointer; transition: .2s ease; }
.choice-card:hover { border-color: var(--blue); transform: translateX(4px); box-shadow: 0 13px 35px rgba(39,95,232,.1); }
.choice-card .choice-icon { width: 48px; height: 48px; border-radius: 13px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; font-weight: 700; }
.choice-card strong { display: block; font-size: 16px; }
.choice-card small { color: var(--ink-soft); line-height: 1.4; }
.choice-arrow { color: var(--blue); font-size: 22px; }
.privacy-note { margin-top: 20px; padding: 15px 17px; border-radius: 14px; background: rgba(189,246,210,.55); color: var(--mint-ink); font-size: 13px; }

.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 4vw, 30px); box-shadow: 0 18px 50px rgba(31,48,80,.08); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field:last-child { margin-bottom: 0; }
.field label, .range-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 8px; font-weight: 600; font-size: 14px; }
.input, .select { width: 100%; min-height: 50px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); padding: 0 14px; outline: none; }
.input:focus, .select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.range { width: 100%; accent-color: var(--blue); }
.range-scale { display: flex; justify-content: space-between; margin-top: 6px; color: var(--ink-soft); font-size: 11px; }
.inline-search { display: grid; grid-template-columns: 1fr auto; gap: 9px; }
.search-combobox { position: relative; }
.suggestions { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 7px); max-height: 330px; overflow-y: auto; background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 6px; }
.suggestions[hidden] { display: none; }
.suggestion { width: 100%; display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; padding: 10px; border: 0; border-radius: 10px; background: transparent; text-align: left; cursor: pointer; }
.suggestion:hover, .suggestion.active { background: var(--blue-soft); }
.suggestion strong { display: block; font-size: 13px; }
.suggestion small { color: var(--ink-soft); }
.suggestion-type { color: var(--blue); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.suggestion-empty { padding: 13px; color: var(--ink-soft); font-size: 13px; }
.component-list { display: grid; gap: 8px; margin: 20px 0; }
.system-scan-summary { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 12px; margin: 20px 0 10px; padding: 14px; border-radius: 15px; background: var(--orange-soft); border: 1px solid #f3d6b4; }
.system-scan-summary .summary-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--yellow); font-weight: 700; }
.system-scan-summary strong { display: block; font-size: 14px; }
.system-scan-summary small { color: #80501c; }
.system-scan-summary > span:last-child { padding: 6px 9px; border-radius: 99px; background: white; color: #92520d; font-size: 11px; font-weight: 600; }
.system-scan-summary.ready { background: var(--blue-soft); border-color: #cbd7fb; }
.system-scan-summary.ready small, .system-scan-summary.ready > span:last-child { color: var(--blue-dark); }
.system-scan-summary.ready .summary-icon { background: white; color: var(--blue); }
.component-item { display: grid; grid-template-columns: 38px 1fr auto auto; align-items: center; gap: 11px; padding: 11px; border-radius: 13px; background: var(--paper); }
.component-item strong { display: block; font-size: 14px; }
.component-item small { color: var(--ink-soft); }
.component-health { padding: 5px 8px; border-radius: 99px; background: var(--mint); color: var(--mint-ink); font-size: 11px; font-weight: 600; white-space: nowrap; }
.component-health.warning { background: #ffe1dc; color: #a13d31; }
.component-health.neutral { background: var(--blue-soft); color: var(--blue-dark); }
.remove { border: 0; background: transparent; color: var(--ink-soft); cursor: pointer; }
.tip-box { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 18px; }
.tip-box summary { cursor: pointer; font-weight: 600; }
.tutorial-list { padding-left: 19px; color: var(--ink-soft); line-height: 1.6; }
.tutorial-list li { margin: 8px 0; }

.result-page { background: var(--paper); }
.result-wrap { max-width: 1180px; margin: 0 auto; padding: 54px clamp(20px, 5vw, 60px) 80px; }
.result-header { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 20px; margin-bottom: 28px; }
.result-summary { background: var(--ink); color: white; border-radius: 24px; padding: 26px; display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; margin-bottom: 26px; overflow: hidden; position: relative; }
.result-summary::after { content: ""; width: 180px; height: 180px; position: absolute; right: -70px; top: -90px; border: 35px solid rgba(189,246,210,.16); border-radius: 50%; }
.result-summary p { color: #bfc7d3; margin-bottom: 0; }
.term { color: var(--mint); text-decoration: underline dotted; text-underline-offset: 4px; cursor: help; position: relative; }
.term:hover::after, .term:focus::after { content: attr(data-tip); position: absolute; width: 245px; left: 0; bottom: calc(100% + 10px); padding: 11px 13px; color: var(--ink); background: white; border-radius: 10px; font-size: 12px; line-height: 1.45; box-shadow: var(--shadow); z-index: 5; }
.summary-gain { min-width: 126px; padding: 14px; border-radius: 16px; background: var(--mint); color: var(--mint-ink); text-align: center; position: relative; z-index: 1; }
.summary-gain strong { display: block; font: 700 30px/1 Manrope; }
.result-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; margin-bottom: 17px; }
.result-toolbar p { margin: 0; font-size: 14px; }
.result-toolbar .select { width: auto; min-width: 160px; min-height: 42px; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.product-card { background: var(--white); border: 1px solid var(--line); border-radius: 21px; padding: 19px; display: flex; flex-direction: column; min-height: 475px; position: relative; }
.product-card.featured { border-color: var(--blue); box-shadow: 0 18px 50px rgba(39,95,232,.12); }
.product-card.hidden { display: none; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; min-height: 29px; }
.tag { display: inline-flex; align-items: center; border-radius: 99px; padding: 6px 9px; background: var(--blue-soft); color: var(--blue-dark); font-size: 11px; font-weight: 600; }
.tag.green { background: var(--mint); color: var(--mint-ink); }
.tag.orange { background: var(--orange-soft); color: #92520d; }
.product-art { height: 125px; margin: 15px 0 18px; border-radius: 15px; background: linear-gradient(145deg, #eef2f7, #dfe5ee); display: grid; place-items: center; overflow: hidden; }
.cpu-art { width: 76px; height: 76px; border: 9px solid #223047; border-radius: 7px; background: linear-gradient(135deg, var(--blue), #7f9df1); box-shadow: 0 12px 24px rgba(31,48,80,.2); position: relative; }
.cpu-art::after { content: "CPU"; position: absolute; inset: 9px; display: grid; place-items: center; color: white; border: 1px solid rgba(255,255,255,.55); font: 700 11px Manrope; }
.product-card h3 { margin-bottom: 7px; }
.improvement { color: var(--mint-ink); font-weight: 600; font-size: 14px; margin-bottom: 9px; }
.product-copy { font-size: 13px; margin: 0 0 12px; }
.requirement { padding: 9px 10px; border-radius: 10px; background: var(--orange-soft); color: #855117; font-size: 11px; margin-bottom: 14px; }
.price { margin-top: auto; font: 700 25px Manrope; letter-spacing: -.03em; }
.store { color: var(--ink-soft); font-size: 12px; margin: 2px 0 14px; }

.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }
.category-card { min-height: 210px; border-radius: 22px; padding: 20px; border: 1px solid var(--line); background: var(--white); text-align: left; cursor: pointer; overflow: hidden; position: relative; }
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.category-card:nth-child(1) { background: var(--blue-soft); }
.category-card:nth-child(2) { background: #e8f8ef; }
.category-card:nth-child(3) { background: #fff3d3; }
.category-card:nth-child(4) { background: #f0edff; }
.category-icon { font: 700 40px Manrope; opacity: .2; position: absolute; right: 16px; bottom: 10px; }
.category-card span { display: block; color: var(--ink-soft); margin-top: 8px; font-size: 13px; }

.diagnose-grid, .learn-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.symptom-card, .article-card { min-height: 150px; border: 1px solid var(--line); background: var(--white); border-radius: 18px; padding: 18px; text-align: left; cursor: pointer; }
.symptom-card:hover, .article-card:hover { border-color: var(--blue); transform: translateY(-2px); }
.symptom-icon, .article-icon { width: 40px; height: 40px; border-radius: 11px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; margin-bottom: 25px; font-weight: 700; }
.fix-list { display: grid; gap: 10px; margin-top: 22px; }
.fix-item { display: grid; grid-template-columns: 34px 1fr; gap: 13px; background: var(--white); border: 1px solid var(--line); border-radius: 15px; padding: 15px; }
.fix-number { width: 30px; height: 30px; border-radius: 50%; background: var(--mint); color: var(--mint-ink); display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.fix-item p { margin: 3px 0 0; font-size: 13px; }
.learn-search { max-width: 530px; margin: 25px 0; }
.article-card { cursor: default; }
.article-card p { font-size: 13px; margin-bottom: 0; }

.empty-page { text-align: center; max-width: 600px; }
.empty-page .eyebrow { justify-content: center; }

.site-footer { min-height: 78px; padding: 20px clamp(20px, 5vw, 76px); display: flex; align-items: center; justify-content: space-between; gap: 24px; background: var(--ink); color: white; }
.site-footer p { color: #aeb7c5; font-size: 13px; margin: 0; }
.site-footer > div { display: flex; gap: 18px; color: #aeb7c5; font-size: 12px; }
.brand-footer .brand-mark { box-shadow: 4px 4px 0 rgba(217,212,255,.5); }

.toast { position: fixed; right: 22px; bottom: 22px; z-index: 50; max-width: 330px; padding: 14px 17px; border-radius: 13px; color: white; background: var(--ink); box-shadow: var(--shadow); animation: toastIn .25s ease; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } }

@media (max-width: 900px) {
  .site-header { grid-template-columns: auto auto; justify-content: space-between; }
  .header-cta { display: none; }
  .menu-toggle { display: grid; width: 42px; height: 42px; place-content: center; gap: 5px; background: white; border: 1px solid var(--line); border-radius: 11px; }
  .menu-toggle span { width: 18px; height: 2px; background: var(--ink); }
  .main-nav { display: none; position: absolute; left: 16px; right: 16px; top: 68px; padding: 10px; background: white; border: 1px solid var(--line); border-radius: 15px; box-shadow: var(--shadow); flex-direction: column; }
  .main-nav.open { display: flex; }
  .hero-layout { grid-template-columns: 1fr; padding-top: 70px; }
  .hero-visual { min-height: 500px; max-width: 580px; width: 100%; margin: 0 auto; }
  .product-grid { grid-template-columns: 1fr 1fr; }
  .product-card:last-child { grid-column: span 2; }
  .category-grid, .diagnose-grid, .learn-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .hero-layout { padding-top: 50px; gap: 30px; }
  .hero-visual { min-height: 430px; }
  .system-card { width: 93%; left: 0; }
  .gain-card { right: 0; bottom: 7%; width: 180px; }
  .price-card { bottom: -1%; }
  .form-grid, .product-grid { grid-template-columns: 1fr; }
  .product-card:last-child { grid-column: auto; }
  .result-header, .result-summary { grid-template-columns: 1fr; }
  .summary-gain { text-align: left; width: max-content; }
  .category-grid, .diagnose-grid, .learn-grid { grid-template-columns: 1fr 1fr; }
  .category-card { min-height: 165px; }
  .choice-card { grid-template-columns: 43px 1fr auto; padding: 15px; }
  .choice-card .choice-icon { width: 43px; height: 43px; }
  .component-item { grid-template-columns: 38px 1fr auto; }
  .component-health { grid-column: 2; justify-self: start; }
  .component-item .remove { grid-column: 3; grid-row: 1; }
  .system-scan-summary { grid-template-columns: 42px 1fr; }
  .system-scan-summary > span:last-child { grid-column: 2; justify-self: start; }
  .site-footer { align-items: flex-start; flex-direction: column; }
  .site-footer p { display: none; }
}

@media (max-width: 390px) {
  .category-grid, .diagnose-grid, .learn-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 400px; }
  .gain-card { bottom: 4%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
