:root {
  --color-bg-primary: #ffffff;
  --color-bg-secondary: #f4f7fb;
  --color-text-primary: #172033;
  --color-text-secondary: #697386;
  --color-accent: #1267e5;
  --color-accent-dark: #0b4fb6;
  --color-accent-soft: #eaf2ff;
  --color-success: #16835c;
  --color-success-soft: #e9f8f2;
  --color-border: #e2e8f0;
  --font-family-primary: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-md: 1.25rem;
  --font-size-lg: 1.5rem;
  --font-size-xl: clamp(2.2rem, 6vw, 4.25rem);
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 750;
  --spacing-2xs: 4px;
  --spacing-xs: 8px;
  --spacing-sm: 12px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 50%;
  --radius-pill: 9999px;
  --shadow-sm: 0 1px 3px rgba(23, 32, 51, 0.08);
  --shadow-md: 0 18px 50px rgba(23, 48, 91, 0.12);
  --content-max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--color-text-primary);
  background: var(--color-bg-primary);
  font-family: var(--font-family-primary);
  -webkit-font-smoothing: antialiased;
}

a,
button {
  font: inherit;
}

svg {
  display: block;
}

.site-header,
main,
footer {
  width: min(calc(100% - 40px), var(--content-max-width));
  margin-inline: auto;
}

.site-header {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text-primary);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: var(--font-weight-bold);
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: white;
  background: var(--color-accent);
  font-size: 0.82rem;
  letter-spacing: -0.04em;
  box-shadow: 0 8px 20px rgba(18, 103, 229, 0.25);
}

.secure-label,
.compatibility {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
}

.secure-label svg,
.compatibility svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.hero {
  min-height: 610px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: clamp(40px, 8vw, 100px);
  padding: 54px 7%;
  overflow: hidden;
  border: 1px solid #e9eef6;
  border-radius: 32px;
  background:
    radial-gradient(circle at 15% 25%, rgba(92, 164, 255, 0.2), transparent 34%),
    linear-gradient(135deg, #f8fbff 0%, #eef5ff 55%, #f8faff 100%);
}

.device-visual {
  min-height: 450px;
  position: relative;
  display: grid;
  place-items: center;
}

.phone {
  width: 226px;
  height: 450px;
  z-index: 2;
  position: relative;
  padding: 10px;
  border: 5px solid #16243a;
  border-radius: 48px;
  background: #111b2b;
  box-shadow:
    0 35px 70px rgba(20, 42, 78, 0.25),
    inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  transform: rotate(-4deg);
}

.phone-island {
  width: 76px;
  height: 23px;
  position: absolute;
  z-index: 3;
  top: 18px;
  left: 50%;
  border-radius: var(--radius-pill);
  background: #101827;
  transform: translateX(-50%);
}

.phone-screen {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 11px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 70% 10%, rgba(255, 255, 255, 0.75), transparent 25%),
    linear-gradient(145deg, #d8eaff, #f4f8ff 56%, #dce9fb);
}

.check,
.success-icon {
  display: grid;
  place-items: center;
  border-radius: var(--radius-full);
  color: white;
  background: var(--color-success);
  box-shadow: 0 12px 25px rgba(22, 131, 92, 0.25);
}

.check {
  width: 62px;
  height: 62px;
}

.check svg,
.success-icon svg {
  width: 60%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mini-label {
  margin-top: 8px;
  font-size: 0.7rem;
  font-weight: var(--font-weight-semibold);
}

.mini-code {
  color: var(--color-text-secondary);
  font: 0.64rem ui-monospace, SFMono-Regular, Menlo, monospace;
}

.orbit {
  position: absolute;
  border: 1px solid rgba(18, 103, 229, 0.14);
  border-radius: var(--radius-full);
}

.orbit-one {
  width: 360px;
  height: 360px;
}

.orbit-two {
  width: 480px;
  height: 480px;
}

.eyebrow,
.progress-kicker,
.result-kicker {
  margin: 0 0 16px;
  color: var(--color-accent);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.14em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 660px;
  margin-bottom: 24px;
  font-size: var(--font-size-xl);
  line-height: 1.03;
  letter-spacing: -0.052em;
}

.intro {
  max-width: 600px;
  margin-bottom: 24px;
  color: var(--color-text-secondary);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.7;
}

.privacy-note {
  max-width: 590px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 26px;
  padding: 14px 16px;
  border: 1px solid #d8e7ff;
  border-radius: var(--radius-md);
  color: #42506a;
  background: rgba(255, 255, 255, 0.7);
  font-size: var(--font-size-sm);
  line-height: 1.5;
}

.privacy-note svg {
  width: 22px;
  min-width: 22px;
  fill: var(--color-accent);
}

.primary-button {
  width: fit-content;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0 23px;
  border-radius: var(--radius-md);
  color: white;
  background: var(--color-accent);
  box-shadow: 0 12px 24px rgba(18, 103, 229, 0.25);
  text-decoration: none;
  font-weight: var(--font-weight-bold);
  transition:
    transform 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.primary-button:hover {
  background: var(--color-accent-dark);
  box-shadow: 0 15px 28px rgba(18, 103, 229, 0.3);
  transform: translateY(-2px);
}

.primary-button:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(18, 103, 229, 0.3);
  outline-offset: 3px;
}

.primary-button svg {
  width: 21px;
  fill: currentColor;
}

.primary-button.is-loading {
  pointer-events: none;
  opacity: 0.65;
}

.compatibility {
  margin: 15px 0 0;
}

.progress-card,
.result-card {
  max-width: 760px;
  margin: 40px auto 0;
  padding: 28px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: white;
  box-shadow: var(--shadow-md);
}

.progress-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
}

[hidden] {
  display: none !important;
}

.progress-card h2,
.result-card h2 {
  margin-bottom: 9px;
  font-size: var(--font-size-lg);
}

.progress-card p,
.result-card p {
  margin-bottom: 0;
  color: var(--color-text-secondary);
  line-height: 1.55;
}

.progress-kicker {
  margin-bottom: 7px !important;
}

.progress-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-full);
  background: var(--color-accent-soft);
}

.spinner {
  width: 23px;
  height: 23px;
  border: 3px solid #c8dbfa;
  border-top-color: var(--color-accent);
  border-radius: var(--radius-full);
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.result-card {
  text-align: center;
  background: linear-gradient(180deg, var(--color-success-soft), white 45%);
}

.success-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 17px;
}

.result-kicker {
  margin-bottom: 8px !important;
  color: var(--color-success) !important;
}

.udid-box {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 13px;
  padding: 14px 14px 14px 18px;
  border: 1px solid #cfe6dd;
  border-radius: var(--radius-md);
  background: white;
}

.udid-box code {
  min-width: 0;
  flex: 1;
  overflow-wrap: anywhere;
  color: #184d3b;
  font: 0.95rem/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
  text-align: left;
}

.udid-box button {
  min-width: 98px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-radius: var(--radius-sm);
  color: white;
  background: var(--color-success);
  cursor: pointer;
  font-weight: var(--font-weight-semibold);
}

.udid-box button svg {
  width: 17px;
  fill: currentColor;
}

.device-detail {
  font-size: var(--font-size-sm);
}

.steps {
  padding: 110px 0 90px;
  text-align: center;
}

.steps h2 {
  margin-bottom: 50px;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: -0.035em;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  text-align: left;
}

.step-grid article {
  min-height: 250px;
  position: relative;
  padding: 30px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: white;
  box-shadow: var(--shadow-sm);
}

.step-number {
  position: absolute;
  top: 24px;
  right: 26px;
  color: #d5deeb;
  font-size: 2.4rem;
  font-weight: var(--font-weight-bold);
  line-height: 1;
}

.step-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 27px;
  border-radius: 14px;
  color: var(--color-accent);
  background: var(--color-accent-soft);
}

.step-icon svg {
  width: 24px;
  fill: currentColor;
}

.step-grid h3 {
  margin-bottom: 12px;
  font-size: var(--font-size-md);
}

.step-grid p {
  margin: 0;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

footer {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
}

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 50px 30px;
  }

  .device-visual {
    min-height: 315px;
  }

  .phone {
    width: 145px;
    height: 290px;
    border-width: 4px;
    border-radius: 34px;
  }

  .phone-screen {
    border-radius: 23px;
  }

  .phone-island {
    width: 52px;
    height: 16px;
    top: 13px;
  }

  .orbit-one {
    width: 250px;
    height: 250px;
  }

  .orbit-two {
    width: 330px;
    height: 330px;
  }

  .step-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-header,
  main,
  footer {
    width: min(calc(100% - 24px), var(--content-max-width));
  }

  .site-header {
    min-height: 70px;
  }

  .secure-label span {
    display: none;
  }

  .hero {
    padding: 38px 22px 42px;
    border-radius: 24px;
  }

  .device-visual {
    min-height: 275px;
  }

  .primary-button {
    width: 100%;
  }

  .progress-card {
    grid-template-columns: 1fr;
  }

  .udid-box {
    flex-direction: column;
    align-items: stretch;
  }

  .udid-box button {
    width: 100%;
  }

  .steps {
    padding: 80px 0 65px;
  }

  footer {
    min-height: 120px;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
