:root {
  --black: #050608;
  --ink: #111318;
  --white: #ffffff;
  --paper: #f5f6f7;
  --muted: #636872;
  --line: #d8dbe0;
  --blue: #1769ff;
  --blue-dark: #0d3fb8;
  --cyan: #00b8d9;
  --green: #00a651;
  --red: #d62732;
  font-family: "Inter", "Google Sans", "Roboto", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--white); }
a { color: inherit; }
svg { width: 19px; height: 19px; flex: 0 0 auto; }
h1, h2, h3, p { margin-top: 0; }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; padding: 10px 14px; color: var(--white); background: var(--blue); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.scoreline { display: flex; justify-content: flex-end; gap: 28px; min-height: 34px; padding: 7px clamp(18px, 4vw, 64px); color: #d9e5ff; background: var(--blue-dark); font-size: 11px; font-weight: 800; }
.scoreline strong { color: var(--white); text-transform: uppercase; }
.site-header { position: sticky; z-index: 30; top: 0; display: grid; grid-template-columns: minmax(230px, 1fr) auto minmax(230px, 1fr); align-items: center; min-height: 82px; padding: 10px clamp(18px, 4vw, 64px); border-bottom: 1px solid var(--line); background: rgba(255,255,255,0.96); backdrop-filter: blur(16px); }
.brand { display: inline-flex; align-items: center; width: fit-content; text-decoration: none; }
.brand img { display: block; object-fit: contain; }
.brand-primary { width: 150px; height: 72px; object-position: left center; }
.brand-partner { width: 64px; height: 28px; margin-left: 18px; }
.site-header nav { display: flex; gap: 28px; }
.site-header nav a { color: #4e535d; font-size: 13px; font-weight: 800; text-decoration: none; }
.site-header nav a:hover, .site-header nav a:focus-visible { color: var(--blue-dark); }
.header-return { justify-self: end; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 4px; color: var(--blue-dark); background: var(--white); font-size: 12px; font-weight: 850; text-decoration: none; }
.header-return:hover { border-color: var(--blue); background: #f2f6ff; }

.restore-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, 0.78fr); align-items: center; gap: clamp(40px, 7vw, 110px); min-height: min(720px, calc(100svh - 116px)); padding: 58px clamp(24px, 8vw, 128px) 64px; overflow: hidden; color: var(--white); background: var(--black); }
.hero-copy { position: relative; z-index: 2; }
.eyebrow { margin-bottom: 17px; color: var(--cyan); font-size: 11px; font-weight: 900; letter-spacing: 0.12em; }
.restore-hero h1 { max-width: 760px; margin-bottom: 24px; font-size: clamp(54px, 6vw, 84px); line-height: 0.96; letter-spacing: 0; }
.hero-lede { max-width: 680px; margin-bottom: 32px; color: #d7dbe3; font-size: 20px; line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px; border: 1px solid transparent; border-radius: 4px; font-weight: 850; text-decoration: none; transition: transform 150ms ease, background-color 150ms ease, border-color 150ms ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: var(--white); background: var(--blue); }
.button-primary:hover { background: #3a81ff; }
.button-secondary { border-color: #555b65; color: var(--white); background: transparent; }
.button-secondary:hover { border-color: #91b0fa; }
.package-facts { display: grid; grid-template-columns: repeat(4, minmax(105px, 1fr)); max-width: 760px; margin: 0; border-top: 1px solid #343841; border-bottom: 1px solid #343841; }
.package-facts div { min-width: 0; padding: 18px 16px 18px 0; }
.package-facts div + div { padding-left: 16px; border-left: 1px solid #343841; }
.package-facts dt { margin-bottom: 7px; color: #8e949f; font-size: 9px; font-weight: 900; text-transform: uppercase; }
.package-facts dd { margin: 0; color: var(--white); font-size: 13px; font-weight: 850; overflow-wrap: anywhere; }

.device-stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: min(620px, calc(100svh - 180px)); }
.galaxy-device { position: relative; width: min(390px, 31vw); padding: 10px; border: 2px solid #8c9199; border-radius: 56px; aspect-ratio: 9 / 19.8; background: #050608; box-shadow: 0 44px 110px rgba(0,0,0,0.75); transform: rotate(2deg); }
.galaxy-screen { width: 100%; height: 100%; overflow: hidden; border-radius: 46px; background: var(--white); }
.galaxy-screen img { display: block; width: 100%; height: 100%; object-fit: cover; }
.camera { position: absolute; z-index: 2; top: 22px; left: 50%; width: 15px; height: 15px; border: 2px solid #30333a; border-radius: 50%; background: #030303; transform: translateX(-50%); }
.side-key { position: absolute; right: -7px; width: 5px; border-radius: 0 4px 4px 0; background: #656a73; }
.side-key-one { top: 175px; height: 86px; }
.side-key-two { top: 286px; height: 126px; }
.usb-drive { position: absolute; z-index: 3; top: 54%; right: -2%; width: min(320px, 25vw); height: auto; filter: drop-shadow(0 28px 36px rgba(0,0,0,0.55)); transform: rotate(-5deg); }

.restore-notice { display: flex; align-items: flex-start; gap: 20px; padding: 26px clamp(24px, 8vw, 128px); border-bottom: 1px solid #f0cc46; color: #261e00; background: #ffd951; }
.restore-notice > svg { width: 27px; height: 27px; margin-top: 2px; }
.restore-notice strong { display: block; margin-bottom: 5px; font-size: 18px; }
.restore-notice p { max-width: 1000px; margin-bottom: 0; line-height: 1.55; }

.guide-section { padding: 92px clamp(24px, 10vw, 160px) 100px; }
.section-heading { display: grid; grid-template-columns: minmax(360px, 0.8fr) minmax(300px, 0.5fr); column-gap: 80px; align-items: end; max-width: 1150px; margin-bottom: 48px; }
.section-heading .eyebrow { grid-column: 1 / -1; color: var(--blue); }
.section-heading h2 { margin-bottom: 0; font-size: clamp(40px, 4.5vw, 62px); line-height: 1.03; }
.section-heading > p:last-child { margin-bottom: 4px; color: var(--muted); font-size: 17px; line-height: 1.55; }
.steps { margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.steps li { display: grid; grid-template-columns: 90px 1fr; gap: 28px; padding: 34px 0; border-bottom: 1px solid var(--line); }
.steps li > span { color: var(--blue); font-size: 13px; font-weight: 900; }
.steps h3 { margin-bottom: 10px; font-size: 24px; }
.steps p { max-width: 880px; margin-bottom: 0; color: #5c616a; line-height: 1.65; }

.transfer-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 0; color: var(--white); background: var(--blue-dark); }
.transfer-grid > * { padding: 58px clamp(24px, 4vw, 62px); }
.transfer-grid > * + * { border-left: 1px solid rgba(255,255,255,0.24); }
.transfer-intro .eyebrow { color: #91ddff; }
.transfer-intro h2 { max-width: 430px; margin-bottom: 18px; font-size: 46px; line-height: 1.05; }
.transfer-intro p:last-child, .transfer-grid article p { margin-bottom: 0; color: #d5e2ff; line-height: 1.65; }
.transfer-grid article > svg { width: 28px; height: 28px; margin-bottom: 24px; color: #8df1c3; }
.transfer-grid article:last-child > svg { color: #ff9ca4; }
.transfer-grid article h3 { margin-bottom: 12px; font-size: 22px; }

.official-links { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 34px; padding: 58px clamp(24px, 8vw, 128px); background: var(--paper); }
.official-links .eyebrow { margin-bottom: 10px; color: var(--blue); }
.official-links h2 { margin-bottom: 0; font-size: 34px; }
.official-links > a { display: inline-flex; align-items: center; gap: 8px; color: var(--blue-dark); font-size: 13px; font-weight: 850; text-underline-offset: 5px; }
.official-links > a svg { width: 16px; height: 16px; }

footer { display: grid; grid-template-columns: 1fr minmax(300px, 720px); align-items: center; gap: 40px; padding: 34px clamp(24px, 6vw, 92px); border-top: 6px solid var(--blue); color: #b7bbc4; background: var(--black); }
.footer-brand { display: flex; align-items: center; gap: 12px; color: var(--white); }
.footer-brand img { width: 40px; height: 40px; padding: 4px; object-fit: contain; border-radius: 4px; background: var(--white); }
.footer-brand span { display: grid; gap: 2px; }
.footer-brand strong { font-size: 15px; }
.footer-brand small { color: #9ca0aa; font-size: 10px; font-weight: 800; text-transform: uppercase; }
footer p { margin: 0; font-size: 12px; line-height: 1.6; text-align: right; }

.button:focus-visible, .site-header a:focus-visible, .official-links a:focus-visible { outline: 3px solid rgba(23,105,255,0.38); outline-offset: 3px; }

@media (max-width: 1100px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-header nav { grid-row: 2; grid-column: 1 / -1; justify-content: center; min-height: 40px; padding-top: 10px; border-top: 1px solid var(--line); }
  .restore-hero { grid-template-columns: minmax(0, 1fr) minmax(320px, 0.7fr); }
  .galaxy-device { width: min(340px, 35vw); }
  .usb-drive { right: -14%; width: min(280px, 29vw); }
  .section-heading { grid-template-columns: 1fr; row-gap: 20px; }
  .transfer-grid { grid-template-columns: 1fr 1fr; }
  .transfer-intro { grid-column: 1 / -1; }
  .transfer-grid > article { border-top: 1px solid rgba(255,255,255,0.24); }
  .transfer-grid > article:nth-child(2) { border-left: 0; }
  .official-links { grid-template-columns: 1fr 1fr; }
  .official-links > div { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .scoreline { justify-content: space-between; gap: 10px; padding: 7px 14px; }
  .scoreline span:nth-child(2) { display: none; }
  .site-header { padding: 10px 16px 0; }
  .brand-primary { width: 112px; height: 64px; }
  .brand-partner { width: 48px; height: 21px; margin-left: 12px; }
  .header-return { min-width: 42px; min-height: 40px; justify-content: center; padding: 0 11px; font-size: 0; }
  .header-return svg { width: 19px; height: 19px; }
  .site-header nav { justify-content: flex-start; gap: 22px; overflow-x: auto; }
  .site-header nav a { flex: 0 0 auto; min-height: 38px; }
  .restore-hero { grid-template-columns: 1fr; min-height: auto; padding: 44px 20px 64px; }
  .restore-hero h1 { font-size: 48px; }
  .hero-lede { font-size: 17px; }
  .hero-actions .button { flex: 1 1 100%; }
  .package-facts { grid-template-columns: repeat(2, 1fr); }
  .package-facts div:nth-child(3) { border-top: 1px solid #343841; border-left: 0; }
  .package-facts div:nth-child(4) { border-top: 1px solid #343841; }
  .device-stage { min-height: 590px; }
  .galaxy-device { width: 280px; }
  .usb-drive { top: auto; right: -4%; bottom: 3%; width: 240px; }
  .restore-notice { padding: 24px 20px; }
  .guide-section { padding: 64px 20px 72px; }
  .section-heading { margin-bottom: 34px; }
  .section-heading h2 { font-size: 40px; }
  .steps li { grid-template-columns: 52px 1fr; gap: 14px; padding: 28px 0; }
  .steps h3 { font-size: 21px; }
  .transfer-grid { grid-template-columns: 1fr; }
  .transfer-grid > * { padding: 42px 20px; }
  .transfer-grid > * + * { border-left: 0; border-top: 1px solid rgba(255,255,255,0.24); }
  .transfer-intro { grid-column: auto; }
  .transfer-intro h2 { font-size: 38px; }
  .official-links { grid-template-columns: 1fr; gap: 22px; padding: 46px 20px; }
  .official-links > div { grid-column: auto; }
  footer { grid-template-columns: 1fr; gap: 18px; padding: 28px 20px; }
  footer p { text-align: left; }
}
