:root {
  --blue: #012456;
  --blue-2: #0a3a7a;
  --ink: #0d1b2e;
  --paper: #f2f4f7;
  --white: #ffffff;
  --steel: #5a6b82;
  --line: #d9dfe7;
  --yellow: #ffe36e;
  --yellow-2: #ffd633;
  --ok: #1d7a4f;
  --warn: #a35c00;
  --sans: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", Consolas, "Cascadia Mono", monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { font: 400 1.0625rem/1.6 var(--sans); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input { font: inherit; }
:focus-visible { outline: 3px solid var(--yellow-2); outline-offset: 2px; border-radius: 4px; }
.wrap { width: min(1160px, 100% - 3rem); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--yellow); padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }
.muted { color: var(--steel); }

h1, h2, h3 { font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .78rem 1.25rem; border-radius: 6px; font-weight: 600; font-size: 1rem; text-decoration: none; line-height: 1.2; transition: background-color .15s, color .15s, border-color .15s; }
.btn-solid { background: var(--blue); color: var(--white); }
.btn-solid:hover { background: var(--blue-2); }
.btn-yellow { background: var(--yellow); color: var(--blue); }
.btn-yellow:hover { background: var(--yellow-2); }
.btn-line { border: 1.5px solid rgba(255,255,255,.45); color: var(--white); }
.btn-line:hover { border-color: var(--white); background: rgba(255,255,255,.06); }
.btn-line-light { border: 1.5px solid rgba(255,255,255,.35); color: var(--white); }
.btn-ghost { border: 1.5px solid var(--line); color: var(--ink); background: var(--white); }
.btn-ghost:hover { border-color: var(--blue); }
.full { width: 100%; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(242,244,247,.94); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 2rem; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; font-size: 1.2rem; text-decoration: none; letter-spacing: -0.02em; color: var(--blue); }
.brand-light { color: var(--white); }
.nav { display: flex; gap: 1.8rem; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 500; color: var(--steel); }
.nav a:hover { color: var(--ink); }
.header-cta { padding: .6rem 1rem; font-size: .95rem; }
.menu { display: none; width: 40px; height: 40px; position: relative; margin-left: auto; }
.menu span { position: absolute; left: 9px; right: 9px; height: 2px; background: var(--ink); transition: transform .2s; }
.menu span:first-child { top: 15px; } .menu span:last-child { top: 23px; }
.menu[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Hero */
.hero { background: var(--blue); color: var(--white); padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(4rem, 8vw, 6.5rem); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 32px 32px; mask-image: linear-gradient(180deg, #000 20%, transparent 95%); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1fr 1.08fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.55rem); font-weight: 600; max-width: 15ch; letter-spacing: -0.03em; }
.hero-sub { margin-top: 1.4rem; font-size: 1.15rem; color: rgba(255,255,255,.8); max-width: 46ch; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 2rem; }
.hero-note { margin-top: 1.6rem; font-size: .92rem; color: rgba(255,255,255,.6); max-width: 46ch; }

/* Console */
.console { background: #012456; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.55), 0 0 0 6px rgba(255,255,255,.03); overflow: hidden; min-width: 0; }
.console-bar { display: flex; justify-content: space-between; align-items: center; background: #f3f3f3; color: #1f1f1f; padding: .45rem .8rem; font-size: .8rem; }
.console-ctrls { display: flex; gap: .9rem; }
.console-ctrls i { width: 10px; height: 10px; border: 1.5px solid #555; display: block; }
.console-ctrls i:first-child { height: 0; border-width: 0 0 1.5px; align-self: center; }
.console-body { font: 400 .86rem/1.55 var(--mono); color: #eeedf0; padding: 1rem 1.1rem 1.2rem; height: 430px; overflow: hidden; white-space: pre-wrap; word-break: break-word; }
.console-body .p { color: #eeedf0; }
.console-body .cmd { color: #ffff60; }
.console-body .par { color: #a0a0a0; }
.console-body .str { color: #50e3e3; }
.console-body .ok { color: #7cf29a; }
.console-body .warn { color: #ffe36e; }
.console-body .dim { color: #8fa6c8; }
.cursor { display: inline-block; width: .55em; height: 1.05em; background: #eeedf0; vertical-align: -0.15em; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Sections */
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section-head { display: grid; grid-template-columns: 1fr 1.2fr; gap: 2rem; align-items: end; margin-bottom: 2.5rem; }
.section-head p { color: var(--steel); max-width: 52ch; }

/* Catalog */
.catalog { background: var(--white); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.catalog-row { display: grid; grid-template-columns: 1.7fr 1fr auto; gap: 1.5rem; align-items: center; padding: 1.35rem 1.6rem; border-top: 1px solid var(--line); }
.catalog-head { border-top: 0; background: #f7f8fa; padding-block: .75rem; font-size: .88rem; font-weight: 500; color: var(--steel); }
.tool-name { font-weight: 600; font-size: 1.1rem; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.tool-sum { color: var(--steel); margin-top: .2rem; max-width: 60ch; }
.tool-needs { font-size: .92rem; color: var(--ink); }
.tag { font-size: .75rem; font-weight: 600; padding: .15rem .5rem; border-radius: 4px; background: #e7f4ec; color: var(--ok); }
.tag.soon { background: #eef1f5; color: var(--steel); }
.catalog-row .btn { min-width: 150px; }

/* LaptopDoctor */
.ld { background: var(--white); border-block: 1px solid var(--line); }
.ld-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.ld-lead { font-size: 1.2rem; margin-top: 1rem; max-width: 40ch; }
.ld-list { list-style: none; margin: 1.8rem 0 2.2rem; display: grid; gap: .8rem; }
.ld-list li { padding-left: 1.6rem; position: relative; color: var(--steel); max-width: 52ch; }
.ld-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 9px; height: 9px; border-radius: 2px; background: var(--blue); }
.ld-list strong { color: var(--ink); font-weight: 600; }
.ld-actions { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }

.app { border-radius: 10px; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 24px 48px -24px rgba(1,36,86,.35); overflow: hidden; }
.app-bar { display: flex; justify-content: space-between; align-items: center; padding: .6rem 1rem; background: var(--white); border-bottom: 1px solid var(--line); font-size: .85rem; font-weight: 600; color: var(--blue); }
.app-ctrls { display: flex; gap: .8rem; }
.app-ctrls i { width: 10px; height: 10px; border: 1.5px solid #9aa6b5; display: block; }
.app-ctrls i:first-child { height: 0; border-width: 0 0 1.5px; align-self: center; }
.app-body { padding: 1.6rem; display: grid; grid-template-columns: 150px 1fr; gap: 1.6rem; align-items: center; }
.score { position: relative; width: 150px; height: 150px; }
.ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 10; }
.ring-bg { stroke: #dfe4ec; }
.ring-fg { stroke: var(--blue); stroke-dasharray: 82 100; stroke-linecap: round; }
.score-num { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.score-num b { font-size: 2.4rem; font-weight: 700; color: var(--blue); line-height: 1; }
.score-num span { font-size: .78rem; color: var(--steel); margin-top: .3rem; }
.checks { list-style: none; display: grid; gap: .55rem; }
.checks li { display: grid; grid-template-columns: 14px 110px 1fr; gap: .6rem; align-items: center; font-size: .9rem; background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: .55rem .75rem; }
.checks li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; }
.checks li.ok::before { background: var(--ok); }
.checks li.warn::before { background: #e39b17; }
.checks span { font-weight: 600; }
.checks em { font-style: normal; color: var(--steel); font-size: .85rem; }
.app-fix { grid-column: 1 / -1; background: var(--blue); color: var(--white); text-align: center; border-radius: 6px; padding: .7rem; font-weight: 600; }

/* Guides */
.guides { display: grid; grid-template-columns: 1.6fr 1fr; grid-template-rows: auto auto; gap: 1.2rem; }
.guide { display: block; padding: 1.8rem; border-radius: 10px; text-decoration: none; border: 1px solid var(--line); background: var(--white); }
.guide-feature { grid-row: span 2; background: var(--blue); color: var(--white); border-color: var(--blue); display: flex; flex-direction: column; padding: 2.4rem; }
.guide-feature h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin: .8rem 0 1rem; max-width: 22ch; }
.guide-feature p { color: rgba(255,255,255,.78); max-width: 52ch; }
.guide-feature .guide-meta { color: rgba(255,255,255,.65); }
.guide-link { margin-top: auto; padding-top: 2rem; font-weight: 600; color: var(--yellow); text-decoration: underline; text-underline-offset: 4px; }
.guide-feature:hover .guide-link { text-decoration-thickness: 2px; }
.guide-meta { font-size: .88rem; color: var(--steel); }
.guide-soon h3 { margin-top: .5rem; color: var(--steel); font-weight: 500; }

/* About */
.about { border-top: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 3rem; }
.about h2 { max-width: 12ch; }
.about-copy p { color: var(--steel); margin-bottom: 1rem; max-width: 60ch; font-size: 1.1rem; }
.facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 2.5rem; margin-top: 2rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.facts dt { font-weight: 600; font-size: 1.15rem; color: var(--blue); }
.facts dd { color: var(--steel); font-size: .92rem; }

/* Signup */
.signup { background: var(--blue); color: var(--white); padding: 3.5rem 0; }
.signup-grid { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.signup p { color: rgba(255,255,255,.75); margin-top: .4rem; }
.signup h2 { font-size: clamp(1.6rem, 2.6vw, 2rem); }
.signup-form { display: flex; gap: .6rem; flex: 0 1 460px; }
.signup-form input { flex: 1; min-width: 0; padding: .78rem 1rem; border-radius: 6px; border: 1.5px solid transparent; }

/* Footer */
.footer { background: #001833; color: rgba(255,255,255,.72); padding: 3.5rem 0 1.6rem; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr; gap: 2.5rem; }
.footer-grid p { margin-top: .6rem; max-width: 36ch; }
.footer nav { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem 1.5rem; align-content: start; }
.footer nav a { text-decoration: none; }
.footer nav a:hover { color: var(--white); }
.support p { margin: 0 0 1rem; }
.fine { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 3rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .82rem; color: rgba(255,255,255,.5); }

/* Dialog */
.dlg { margin: auto; border: 0; border-radius: 12px; padding: 2rem; width: min(440px, calc(100% - 2rem)); color: var(--ink); box-shadow: 0 40px 80px -20px rgba(1,36,86,.5); }
.dlg::backdrop { background: rgba(1,24,51,.6); }
.dlg[open] { animation: pop .18s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } }
.dlg h3 { font-size: 1.45rem; padding-right: 2rem; }
.dlg .muted { margin-top: .4rem; }
.dlg-x { position: absolute; top: .8rem; right: .8rem; }
.dlg-x button { width: 36px; height: 36px; border-radius: 6px; }
.dlg-x button:hover { background: var(--paper); }
.lead { display: grid; gap: 1rem; margin-top: 1.4rem; }
.lead label { display: grid; gap: .35rem; font-size: .92rem; font-weight: 500; }
.lead input:not([type="checkbox"]) { padding: .72rem .9rem; border: 1.5px solid var(--line); border-radius: 6px; }
.lead input:focus { border-color: var(--blue); outline: none; }
.lead .check { display: flex; gap: .55rem; align-items: center; font-weight: 400; color: var(--steel); }
.lead .check input { width: 17px; height: 17px; accent-color: var(--blue); }
.error { color: #b42318; font-size: .9rem; }
#dlgDone .btn { margin-top: 1.4rem; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translate(-50%, 1rem); background: var(--ink); color: var(--white); padding: .75rem 1.2rem; border-radius: 8px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 90; font-size: .95rem; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .ld-grid, .about-grid, .section-head { grid-template-columns: 1fr; }
  .hero h1 { max-width: 20ch; }
  .guides { grid-template-columns: 1fr; }
  .guide-feature { grid-row: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .menu { display: block; }
  .header-cta { display: none; }
  .nav { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 1rem 1.5rem; border-top: 1px solid var(--line); }
  .catalog-head { display: none; }
  .catalog-row { grid-template-columns: 1fr; gap: .8rem; }
  .catalog-row .btn { width: 100%; }
  .console-body { height: 330px; font-size: .76rem; }
  .app-body { grid-template-columns: 1fr; justify-items: center; }
  .checks { width: 100%; }
  .checks li { grid-template-columns: 14px 90px 1fr; }
  .facts { grid-template-columns: 1fr; gap: 1rem; }
  .signup-form { flex-basis: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
