/* Home page of UltimateFIXDP (0.9 redesign). The analysis page keeps styles.css. */
:root {
  --bg: #0d0c0b;
  --bg-tint: #131210;
  --bg-deep: #0a0908;
  --box: #1a1816;
  --line: #262422;
  --line-2: #34312e;
  --line-3: #45413c;
  --text: #ecebe6;
  --text-2: #cfcbc3;
  --muted: #b3afa7;
  --faint: #8f8b84;
  --accent: #c9362f;
  --accent-text: #f0766d;
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--text); }
a:hover { color: #fff; }
p { margin: 0; }
h1, h2, h3 { margin: 0; }
h1, h2, .h-feature, .h-cta, .ver, .num-value, .step-n { font-family: var(--serif); font-weight: 500; }
h1 { font-size: clamp(40px, 6vw, 76px); line-height: 1.04; letter-spacing: -0.02em; }
h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.1; letter-spacing: -0.015em; }
.h-feature { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; letter-spacing: -0.015em; }
.h-cta { font-size: clamp(36px, 5vw, 60px); line-height: 1.08; letter-spacing: -0.02em; }
h3 { font-weight: 600; font-size: 20px; line-height: 1.3; }
code { font-family: var(--mono); font-size: 0.86em; background: var(--box); border: 1px solid var(--line-2); border-radius: 6px; padding: 1px 6px; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.block { padding-top: 104px; padding-bottom: 104px; }
.rule { border-top: 1px solid var(--line); }
.tint { background: var(--bg-tint); }
.band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stack { display: flex; flex-direction: column; gap: 56px; }
.stack.wide-gap { gap: 88px; }
.stack-s { display: flex; flex-direction: column; gap: 24px; }
.split { display: flex; flex-wrap: wrap; gap: 48px 72px; }
.split-head { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.split-body { flex: 2 1 480px; min-width: 0; }
.intro { display: flex; flex-direction: column; gap: 18px; max-width: 760px; }
.head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.head-row > a { font-size: 16px; padding: 12px 0; }

.eyebrow, .mono { font-family: var(--mono); font-size: 13px; }
.eyebrow { letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text); }
.eyebrow.muted { color: var(--muted); }
.mono { color: var(--muted); }
.mono.up { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
.lead { font-size: 20px; line-height: 1.55; color: var(--text-2); max-width: 34em; }
.lead-s { font-size: 18px; color: var(--text-2); }
.note { font-size: 15px; color: var(--muted); border-top: 1px solid var(--line-2); padding-top: 18px; }
.small { font-size: 15px; color: var(--muted); }
.dim { color: var(--muted); }
.prose { display: flex; flex-direction: column; gap: 22px; font-size: 19px; line-height: 1.65; color: var(--text-2); }
.prose .strong { color: var(--text); }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 600; font-size: 17px; padding: 15px 24px; border-radius: 10px; border: 1px solid transparent; transition: background .15s, border-color .15s; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #b52d27; color: #fff; }
.btn-line { border-color: var(--line-3); font-weight: 500; }
.btn-line:hover { border-color: var(--muted); }
.btn-big { font-size: 18px; padding: 18px 28px; }
.btn-small { font-size: 15px; padding: 11px 20px; border-radius: 8px; }

/* top bar */
.top { position: sticky; top: 0; z-index: 30; background: rgba(13, 12, 11, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; flex-wrap: nowrap; align-items: center; gap: 8px 24px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 600; font-size: 18px; letter-spacing: -0.01em; color: var(--text); }
.brand img { width: 34px; height: 34px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.top .wrap { max-width: 1400px; }
.brand-sub { white-space: nowrap; font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: 0.06em; color: var(--muted); }
.nav { display: flex; flex-wrap: nowrap; white-space: nowrap; gap: 0 18px; font-size: 14.5px; flex: 1 1 auto; min-width: 0; }
.nav a { text-decoration: none; color: var(--muted); padding: 10px 0; }
.nav a:hover, .nav a.active { color: var(--text); }
.top-right { display: flex; align-items: center; gap: 14px; }
.lang { display: flex; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; }
.lang-btn { border: 0; cursor: pointer; min-width: 46px; min-height: 40px; padding: 0 12px; font-family: var(--mono); font-size: 13px; background: transparent; color: var(--muted); }
.lang-btn.active { background: var(--text); color: var(--bg); }

/* hero */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 88px; padding-bottom: 72px; }
.hero-text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.code-link { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 500; color: var(--text-2); text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 5px; padding: 6px 0; margin-top: -8px; }
.code-link:hover { color: #fff; text-decoration-color: var(--muted); }
.meta { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.origin { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--text-2); padding-top: 20px; border-top: 1px solid var(--line); }
.origin.big { font-size: 17px; color: var(--text); padding-top: 0; border-top: 0; }
.flag { flex: none; border-radius: 2px; }
.hero-shot { flex: 1 1 360px; min-width: 0; max-width: 460px; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.hero-shot img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px; }

/* numbers */
.nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 36px 48px; padding-top: 44px; padding-bottom: 44px; }
.num { display: flex; flex-direction: column; gap: 8px; }
.num-value { display: flex; align-items: center; gap: 14px; font-size: 44px; line-height: 1; letter-spacing: -0.02em; }
.num-value svg, .num-from { color: var(--faint); flex: none; }
.num p { font-size: 15px; line-height: 1.5; color: var(--muted); }

/* what we fixed */
.groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 56px; }
.group { border-top: 1px solid var(--line-2); padding: 28px 0 40px; display: flex; flex-direction: column; gap: 14px; }
.group-head { display: flex; align-items: baseline; gap: 14px; }
.group-head h3 { font-family: var(--serif); font-weight: 500; font-size: 26px; line-height: 1.2; }
.was { font-size: 16px; color: var(--muted); }
.dots { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 16px; line-height: 1.5; }
.dots li { display: flex; gap: 12px; }
.dots li::before { content: ''; flex: none; width: 6px; height: 6px; margin-top: 10px; border-radius: 50%; background: var(--accent); }
.dim-dots { color: var(--muted); gap: 12px; }
.dim-dots li::before { width: 5px; height: 5px; background: #6f6b64; }

/* screenshots */
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px; padding-bottom: 104px; }
.shots figure, .feature-shot { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.shots img, .feature-shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; }
.shots figcaption { font-size: 15px; line-height: 1.5; color: var(--muted); }
.shots figcaption strong { color: var(--text); font-weight: 600; }
a.zoom { display: block; cursor: zoom-in; }

/* more than a fix */
.feature { display: flex; flex-wrap: wrap; align-items: center; gap: 44px 72px; }
.feature.flip { flex-wrap: wrap-reverse; }
.feature-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.feature-shot, .panel { flex: 1 1 380px; min-width: 0; }
.tag { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--text-2); border: 1px solid var(--line-3); border-radius: 6px; padding: 4px 10px; }
.panel { background: var(--bg-tint); border: 1px solid #2c2926; border-radius: 14px; padding: 26px; display: flex; flex-direction: column; gap: 18px; font-size: 15px; }
.panel-status { display: flex; align-items: center; gap: 10px; }
.live { width: 8px; height: 8px; border-radius: 50%; background: #5fb878; flex: none; }
.panel-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.box { background: var(--box); border: 1px solid var(--line-2); border-radius: 8px; padding: 10px 12px; }
.row { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line-2); padding: 10px 0; }
.chat { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--line-2); padding-top: 14px; color: var(--text-2); }
#quests .panel { gap: 0; }
.qb { display: flex; flex-direction: column; }
.qb-card { background: var(--box); border: 1px solid var(--line-2); border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.qb-text { font-size: 16px; }
.qb-sub { color: var(--muted); }
.qb-link { width: 1px; height: 18px; background: var(--line-3); margin-left: 26px; }

/* how */
.steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.steps li { display: flex; gap: 24px; padding: 26px 0; border-top: 1px solid var(--line-2); }
.steps li > .mono { flex: none; width: 34px; padding-top: 6px; }
.steps li > div { display: flex; flex-direction: column; gap: 8px; }
.steps p { font-size: 16px; color: var(--muted); }

/* releases */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.card { background: var(--bg-tint); border: 1px solid #2c2926; border-radius: 14px; padding: 30px 30px 34px; display: flex; flex-direction: column; gap: 18px; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ver { font-size: 34px; line-height: 1; letter-spacing: -0.01em; }
.pill { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; background: var(--accent); color: #fff; border-radius: 999px; padding: 5px 12px; }
.card h3 { font-size: 19px; line-height: 1.4; }

/* install */
.install { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.install li { display: flex; gap: 24px; padding: 20px 0; border-top: 1px solid var(--line-2); align-items: baseline; }
.step-n { flex: none; width: 34px; font-size: 26px; line-height: 1.1; color: var(--muted); }
.proton { background: var(--bg-tint); border: 1px solid var(--line-2); border-radius: 12px; padding: 24px 26px; display: flex; flex-direction: column; gap: 14px; }
.proton h3 { font-size: 18px; }
.proton p { font-size: 16px; color: var(--text-2); }
.proton p.small { font-size: 15px; color: var(--muted); }
.proton code { display: block; overflow-x: auto; white-space: nowrap; font-size: 14px; border-radius: 8px; padding: 12px 14px; }

/* keys and questions */
.keys-list { align-self: stretch; margin-top: 18px; display: flex; flex-direction: column; }
.key-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line-2); font-size: 15px; }
.key-row .keys { display: flex; align-items: center; gap: 6px; flex: none; }
.key-what { color: var(--muted); text-align: right; }
kbd { font-family: var(--mono); font-size: 13px; background: var(--box); border: 1px solid var(--line-3); border-bottom-width: 2px; border-radius: 6px; padding: 3px 8px; }
.plus { color: var(--faint); }
.faq-list { display: flex; flex-direction: column; }
.faq { border-top: 1px solid var(--line-2); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-weight: 600; font-size: 19px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--mono); font-weight: 400; font-size: 22px; color: var(--muted); flex: none; }
.faq[open] summary::after { content: '−'; }
.faq p { padding: 0 0 24px; font-size: 16px; color: var(--muted); max-width: 44em; }

/* reports, credits, closing call */
.report { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 56px; padding-top: 72px; padding-bottom: 72px; }
.report > div { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.report .h-feature { font-size: 34px; }
.credits { display: flex; flex-direction: column; }
.credit { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 24px; padding: 18px 0; border-top: 1px solid var(--line-2); text-decoration: none; }
.credit-name { flex: 0 0 240px; font-weight: 600; font-size: 18px; }
.credit .mono { flex: 0 0 190px; }
.credit-what { flex: 1 1 240px; min-width: 0; font-size: 16px; color: var(--muted); }
.credits .note { font-size: 16px; padding-top: 22px; }
.cta-logo { width: min(560px, 100%); height: auto; margin-bottom: 14px; }
.cta { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 26px; padding-top: 112px; padding-bottom: 112px; }

/* footer */
.foot { border-top: 1px solid var(--line); background: var(--bg-deep); font-size: 15px; color: var(--muted); }
.foot-row { display: flex; flex-wrap: wrap; gap: 36px 72px; padding-top: 56px; padding-bottom: 28px; }
.foot-main { flex: 2 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.foot-main p { max-width: 36em; }
.foot-main .brand { font-size: 17px; }
.foot-main .brand img { width: 30px; height: 30px; }
.foot-links { flex: 1 1 160px; display: flex; flex-direction: column; gap: 2px; }
.foot-links a { padding: 10px 0; }
.legal { border-top: 1px solid #1f1d1b; padding-top: 20px; padding-bottom: 40px; font-size: 13px; color: var(--faint); }

/* shared with the old page: reveal, lightbox, scroll to top */
.reveal { opacity: 0; transform: translateY(10px); transition: opacity .5s ease, transform .5s ease; }
.reveal.shown { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
.lightbox { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px; background: rgba(5, 5, 6, 0.94); cursor: zoom-out; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 10px; }
.lightbox-close { position: absolute; top: 16px; right: 18px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--bg-tint); color: var(--text); font-size: 22px; cursor: pointer; }
.scroll-top { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg-tint); color: var(--text); display: grid; place-items: center; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .2s; }
.scroll-top.visible { opacity: 1; pointer-events: auto; }

@media (max-width: 1280px) { .brand-sub { display: none; } .nav { gap: 0 14px; font-size: 14px; } }
@media (max-width: 1100px) { .top-row { flex-wrap: wrap; } .nav { order: 3; flex-basis: 100%; overflow-x: auto; } .top-right { margin-left: auto; } }
@media (max-width: 900px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .block { padding-top: 72px; padding-bottom: 72px; }
  .top-row { flex-wrap: wrap; }
  .nav { order: 3; flex-basis: 100%; overflow-x: auto; flex-wrap: nowrap; white-space: nowrap; gap: 0 20px; }
  .top-right { margin-left: auto; }
  .brand-sub { display: none; }
  .hero { padding-top: 48px; padding-bottom: 48px; gap: 36px; }
  .hero-shot { max-width: none; }
  .hero-shot img { aspect-ratio: 4 / 3; object-position: center 38%; }
  .btn-big { width: 100%; justify-content: center; }
  .shots { padding-bottom: 72px; }
  .credit-name, .credit .mono { flex-basis: auto; }
  .num-value { font-size: 38px; }
}
