:root {
  color-scheme: dark;
  --page: #11110f;
  --surface: #181816;
  --surface-strong: #22221e;
  --ink: #f3f2e9;
  --muted: #b3b2a8;
  --line: #35352f;
  --accent: #f5d800;
  --accent-ink: #171600;
  --dark: #0d0d0c;
  --dark-ink: #f3f2e9;
  --radius: 18px;
  --shell: min(1240px, calc(100% - 48px));
}

:root[data-theme="light"] {
  color-scheme: light;
  --page: #f3f3ef;
  --surface: #fafaf7;
  --surface-strong: #e8e8e1;
  --ink: #171715;
  --muted: #5d5d57;
  --line: #d4d4cc;
  --dark: #171715;
  --dark-ink: #f4f3e9;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #11110f;
  --surface: #181816;
  --surface-strong: #22221e;
  --ink: #f3f2e9;
  --muted: #b3b2a8;
  --line: #35352f;
  --dark: #0d0d0c;
  --dark-ink: #f3f2e9;
}

* { box-sizing: border-box; }
.account-page { min-height: 100dvh; display: flex; flex-direction: column; }
.account-header { padding-block: 28px; }
.account-main { width: min(520px, calc(100% - 40px)); margin: auto; padding-block: 60px; }
.account-main h1 { font-size: clamp(2.4rem, 5vw, 3.3rem); line-height: 1.06; }
.account-main h2 { margin-top: 28px; font-size: 1.15rem; }
.account-main p { color: var(--muted); }
.account-main form { display: grid; gap: 14px; margin-block: 24px; }
.account-main label { font-size: 14px; font-weight: 650; }
.account-main input:not([type="hidden"]) { width: 100%; padding: 15px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; }
.account-main button { font-family: inherit; font-size: 15px; cursor: pointer; }
.account-main button:disabled { opacity: .45; cursor: default; }
.account-main input:focus-visible, .account-main button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.account-note, .account-footer { font-size: 13px; }
.account-footer { text-align: center; padding: 24px; color: var(--muted); }
.account-link { background: none; border: 0; color: var(--ink); padding: 0; text-decoration: underline; text-underline-offset: 4px; }
.account-status, .account-device { padding: 24px; margin-block: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.account-status h2 { margin-top: 0; }
.account-status p { margin-bottom: 0; }
.account-device { display: grid; gap: 8px; }
.account-device span, .account-device-row span { color: var(--muted); font-size: 13px; }
.account-device code { color: var(--accent); font-size: 30px; letter-spacing: .12em; margin-top: 16px; }
.account-device-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.account-device-row > div { display: grid; gap: 6px; min-width: 0; overflow-wrap: anywhere; }
.account-device strong, .account-main p { overflow-wrap: anywhere; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "Avenir Next", Avenir, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.shell { width: var(--shell); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: 12px; z-index: 10; padding: 10px 14px; background: var(--accent); color: var(--accent-ink); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: relative; border-bottom: 1px solid var(--line); background: var(--page); }
.nav { min-height: 72px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; width: max-content; font-weight: 700; letter-spacing: -0.02em; }
.brand img, .footer-brand img { border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 30px; color: var(--muted); font-size: 14px; }
.nav-links a { transition: color 160ms ease; }
.nav-links a:hover { color: var(--ink); }
.nav > .button { justify-self: end; }

.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 0 22px; border: 1px solid var(--accent); border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 700; white-space: nowrap; transition: transform 160ms ease, background 160ms ease; }
.button:hover { background: #e6cb00; }
.button:active { transform: translateY(1px); }
.button-small { min-height: 42px; padding-inline: 18px; font-size: 14px; }
.text-link { display: inline-flex; align-items: center; gap: 9px; min-height: 48px; border-bottom: 1px solid var(--ink); font-weight: 650; }

.hero { position: relative; min-height: calc(100dvh - 73px); display: grid; align-items: end; overflow: hidden; background: var(--dark); color: var(--dark-ink); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 10, 9, 0.9) 0%, rgba(10, 10, 9, 0.64) 46%, rgba(10, 10, 9, 0.14) 76%), linear-gradient(0deg, rgba(10, 10, 9, 0.5) 0%, transparent 55%); pointer-events: none; }
.hero-copy { position: relative; z-index: 2; max-width: none; padding-block: clamp(92px, 14vh, 146px); }
.hero-copy > * { max-width: 650px; }
.eyebrow { margin: 0 0 22px; color: var(--muted); font-size: 12px; font-weight: 750; letter-spacing: 0.14em; text-transform: uppercase; }
.hero .eyebrow { color: #d7d6ce; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 24px; font-size: clamp(2.85rem, 3.45vw, 3.15rem); line-height: 0.98; letter-spacing: -0.062em; font-weight: 650; }
h1 span { white-space: nowrap; }
.hero-summary { max-width: 590px; margin-bottom: 30px; color: #e0ded4; font-size: clamp(1.05rem, 1.35vw, 1.25rem); line-height: 1.5; }
.hero-actions { display: flex; align-items: center; gap: 25px; }
.hero .text-link { border-bottom-color: var(--dark-ink); }
.hero-media { position: absolute; inset: 0; margin: 0; background: var(--dark); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% center; animation: hero-image 1.4s cubic-bezier(.2,.8,.2,1) both; }
.hero-copy .eyebrow, .hero-copy h1, .hero-copy .hero-summary, .hero-copy .hero-actions { animation: hero-rise 760ms cubic-bezier(.2,.8,.2,1) both; }
.hero-copy h1 { animation-delay: 70ms; }
.hero-copy .hero-summary { animation-delay: 140ms; }
.hero-copy .hero-actions { animation-delay: 210ms; }

.proof { border-block: 1px solid var(--line); background: var(--surface); }
.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.proof-grid > div { min-height: 118px; display: flex; flex-direction: column; justify-content: center; padding: 26px 36px; border-left: 1px solid var(--line); }
.proof-grid > div:last-child { border-right: 1px solid var(--line); }
.proof-grid strong { margin-bottom: 5px; font-size: 15px; }
.proof-grid span { color: var(--muted); font-size: 13px; }

.section { padding-block: clamp(88px, 10vw, 138px); }
.section-heading { max-width: 790px; margin-bottom: 54px; }
.section-heading-narrow { max-width: 700px; }
.section-heading h2, .editorial-copy h2, .restore-statement h2, .final-section h2 { margin-bottom: 22px; font-size: clamp(2.4rem, 4.5vw, 4.7rem); line-height: 1.03; letter-spacing: -0.052em; font-weight: 620; }
.section-heading > p:last-child, .editorial-copy > p:not(.eyebrow), .restore-statement > p:last-child, .final-section p { max-width: 650px; margin-bottom: 0; color: var(--muted); font-size: 1.05rem; }

.editorial-section { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(460px, 0.95fr); min-height: min(880px, 92vh); border-bottom: 1px solid var(--line); background: var(--surface); }
.editorial-media { min-height: 720px; margin: 0; overflow: hidden; }
.editorial-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.editorial-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(54px, 8vw, 124px); }
.editorial-copy h2 { max-width: 620px; }
.fact-line { display: flex; flex-wrap: wrap; gap: 0; margin-top: 38px; border-block: 1px solid var(--line); }
.fact-line span { padding: 14px 18px 14px 0; margin-right: 18px; color: var(--ink); font-size: 12px; font-weight: 700; }

.feature-section .section-heading { margin-bottom: 64px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.feature-cell { min-height: 310px; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(28px, 3.4vw, 46px); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--page); }
.feature-cell > span { margin-bottom: auto; color: var(--muted); font-size: 12px; font-weight: 750; letter-spacing: 0.12em; }
.feature-cell h3 { margin-bottom: 14px; font-size: clamp(1.45rem, 2.1vw, 2.25rem); line-height: 1.08; letter-spacing: -0.036em; }
.feature-cell p { margin-bottom: 0; color: var(--muted); }
.feature-cell-primary { background: var(--accent); color: var(--accent-ink); }
.feature-cell-primary p, .feature-cell-primary > span { color: #474000; }
.feature-cell-strong { background: var(--surface-strong); }

.process-section { background: var(--surface); border-block: 1px solid var(--line); }
.process-list { border-top: 1px solid var(--line); }
.process-list article { display: grid; grid-template-columns: 72px 0.78fr 1.15fr; align-items: center; gap: 42px; min-height: 158px; border-bottom: 1px solid var(--line); }
.process-list h3 { margin: 0; font-size: clamp(1.8rem, 3vw, 3.2rem); letter-spacing: -0.04em; font-weight: 590; }
.process-list p { max-width: 520px; margin: 0; color: var(--muted); }
.process-list span { color: var(--accent); font-size: 12px; font-weight: 750; letter-spacing: 0.12em; }

.restore-section { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(52px, 9vw, 126px); align-items: start; }
.restore-statement { position: sticky; top: 42px; }
.restore-detail { display: grid; gap: 14px; }
.restore-column { padding: clamp(30px, 4vw, 48px); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.restore-column:last-child { background: var(--surface-strong); }
.restore-column h3 { margin-bottom: 34px; font-size: 1.35rem; letter-spacing: -0.025em; }
.restore-column ul { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.restore-column li { position: relative; padding-left: 24px; color: var(--muted); }
.restore-column li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 9px; height: 3px; background: var(--accent); }

.final-section { display: flex; align-items: flex-end; justify-content: space-between; gap: 50px; border-top: 1px solid var(--line); }
.final-section h2 { margin-bottom: 12px; }
.final-section .button { flex: 0 0 auto; }
.site-footer { border-top: 1px solid var(--line); padding-block: 34px; }
.footer-grid { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; color: var(--muted); font-size: 13px; }
.footer-grid p { margin: 0; text-align: center; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; }
.footer-links { display: flex; justify-content: flex-end; gap: 22px; }
.footer-links a:hover { color: var(--ink); }

.not-found-page { min-height: 100dvh; display: grid; place-items: center; }
.not-found { max-width: 680px; padding-block: 80px; text-align: center; }
.not-found > img { margin: 0 auto 38px; border-radius: 10px; }
.not-found .eyebrow { margin-bottom: 16px; }
.not-found h1 { margin-bottom: 20px; }
.not-found > p:not(.eyebrow) { margin-bottom: 30px; color: var(--muted); }

@keyframes hero-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes hero-image { from { opacity: 0.72; transform: scale(1.035); } to { opacity: 1; transform: scale(1); } }
@keyframes section-reveal { from { opacity: 0.08; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes editorial-image { from { transform: scale(1.08); } to { transform: scale(1); } }

@supports (animation-timeline: view()) {
  .editorial-copy > *, .section-heading > *, .feature-cell, .process-list article, .restore-statement > *, .restore-column, .final-section > * {
    animation: section-reveal linear both;
    animation-timeline: view();
    animation-range: entry 5% cover 31%;
  }
  .editorial-media img { animation: editorial-image linear both; animation-timeline: view(); animation-range: entry 0% cover 58%; }
}

@media (max-width: 980px) {
  .hero { min-height: 760px; }
  .hero-copy > * { max-width: 670px; }
  .editorial-section { grid-template-columns: 1fr; min-height: 0; }
  .editorial-media { min-height: 680px; }
  .editorial-copy { min-height: 620px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .restore-section { grid-template-columns: 1fr; }
  .restore-statement { position: static; max-width: 760px; }
}

@media (max-width: 760px) {
  :root { --shell: min(100% - 32px, 680px); --radius: 14px; }
  html { scroll-behavior: auto; }
  .nav { min-height: 66px; grid-template-columns: 1fr auto; }
  .nav-links { display: none; }
  .brand { font-size: 14px; }
  .brand img { width: 30px; height: 30px; }
  .button-small { min-height: 38px; padding-inline: 14px; }
  .hero { display: grid; min-height: calc(100dvh - 67px); }
  .hero::after { background: linear-gradient(0deg, rgba(10, 10, 9, 0.96) 0%, rgba(10, 10, 9, 0.78) 58%, rgba(10, 10, 9, 0.18) 100%); }
  .hero-copy { align-self: end; padding-block: 72px 54px; }
  h1 { font-size: clamp(3rem, 13.4vw, 4.6rem); }
  h1 span { white-space: normal; }
  .hero-media img { object-position: 61% center; }
  .proof-grid { grid-template-columns: 1fr; }
  .proof-grid > div { min-height: 95px; padding-inline: 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .proof-grid > div:last-child { border-right: 0; border-bottom: 0; }
  .section { padding-block: 82px; }
  .section-heading { margin-bottom: 38px; }
  .editorial-media { min-height: 570px; }
  .editorial-copy { min-height: 0; padding: 82px 16px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-cell { min-height: 290px; }
  .process-list article { grid-template-columns: 42px 1fr; gap: 8px 16px; padding-block: 32px; }
  .process-list p { grid-column: 2; }
  .restore-detail { grid-template-columns: 1fr; }
  .final-section { align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; justify-items: start; }
  .footer-grid p { text-align: left; }
  .footer-links { justify-content: flex-start; flex-wrap: wrap; }
}

@media (max-width: 430px) {
  .brand span { max-width: 78px; line-height: 1.05; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 12px; }
  .text-link { min-height: 42px; }
}

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

@media (forced-colors: active) {
  .button { border: 2px solid ButtonText; }
  .editorial-copy { background: Canvas; color: CanvasText; }
}
