/* ─────────────────────────────────────────────────────────────────────────
   Another Launcher / Swiss × Ive
   Base unit: 8px. Nothing arbitrary.
   ───────────────────────────────────────────────────────────────────────── */

:root {
  color-scheme: light;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 64px;
  font-size: 16px;
}

body {
  background: #fff;
  color: #000;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue",
    Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, picture {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ── Accessibility: Skip Link ─────────────────────────────────────────────── */

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: #000;
  color: #fff;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 4px;
  z-index: 9999;
  text-decoration: none;
  transition: top 180ms ease;
}

.skip-link:focus {
  top: 16px;
  outline: 2px solid #000;
  outline-offset: 3px;
  text-decoration: none;
}

/* ── Layout ───────────────────────────────────────────────────────────────── */

.wrap {
  width: min(1120px, calc(100% - 80px));
  margin-inline: auto;
}

/* ── Typography ───────────────────────────────────────────────────────────── */

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: #000;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-thickness 120ms ease;
}

a:hover,
a:focus-visible {
  text-decoration-thickness: 3px;
}

a:focus-visible {
  outline: 2px solid #000;
  outline-offset: 3px;
  border-radius: 2px;
}

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #000;
  margin-bottom: 20px;
}

h1 {
  font-size: clamp(52px, 6vw, 80px);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.04em;
  color: #000;
  margin-bottom: 28px;
}

h1 em {
  font-style: normal;
}

h2 {
  font-size: clamp(32px, 3.8vw, 48px);
  font-weight: 760;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #000;
  margin-bottom: 16px;
}

h3 {
  font-size: 18px;
  font-weight: 680;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: #000;
  margin-bottom: 8px;
}

p {
  color: #000;
  line-height: 1.65;
}

/* ── Header ───────────────────────────────────────────────────────────────── */

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #000;
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 7px;
}

.nav-link {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #000;
  border: 1px solid #000;
  border-radius: 40px;
  padding: 8px 18px;
  background: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 120ms ease;
}

.nav-link:hover {
  background: #f2f2f2;
  text-decoration: none;
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.01em;
  border-radius: 40px;
  border: 1px solid #000;
  background: #fff;
  color: #000;
  text-decoration: none;
  cursor: pointer;
  transition: background 120ms ease;
  min-height: 44px;
}

.button:hover {
  background: #f2f2f2;
  text-decoration: none;
}

.button:focus-visible {
  outline: 2px solid #000;
  outline-offset: 3px;
  text-decoration: none;
}

.button.primary {
  background: #000;
  color: #fff;
  border-color: #000;
}

.button.primary:hover {
  background: #222;
}

.button.secondary {
  background: #fff;
  color: #000;
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 72px;
  padding: 88px 0 96px;
}

.hero .intro {
  max-width: 520px;
}

.lede {
  font-size: 20px;
  line-height: 1.55;
  font-weight: 450;
  color: #111;
  max-width: 460px;
  margin-bottom: 32px;
}

.small {
  font-size: 12px;
  color: #505050;
  margin-top: 14px;
  letter-spacing: 0.01em;
}

.hero-shot {
  width: 100%;
  max-width: 380px;
  margin-inline: auto;
  position: relative;
  overflow: visible;
}

/* ── Orbit layers (3-D split: back → behind phone, front → in front) ──────── */

.orbit-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
  perspective: 700px;
}

.orbit-back  { z-index: 1; }   /* behind phone */
.orbit-front { z-index: 3; }   /* in front of phone */

.hero-shot .device {
  position: relative;
  z-index: 2;
}

.orbit-layer span {
  position: absolute;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: 22px;
  font-weight: 850;
  letter-spacing: 0.04em;
  color: #000;
  white-space: nowrap;
  line-height: 1;
  transform-origin: center center;
  backface-visibility: visible;
  will-change: transform, opacity;
  user-select: none;
}

/* ── Section base ─────────────────────────────────────────────────────────── */

.section-heading {
  max-width: 600px;
  margin-bottom: 48px;
}

.section-heading > p {
  font-size: 17px;
  line-height: 1.65;
  color: #000;
  margin-top: 12px;
}

/* ── Join / Steps ─────────────────────────────────────────────────────────── */

.join {
  padding: 88px 0 96px;
}

.join h2 {
  font-size: clamp(28px, 3vw, 40px);
  margin-bottom: 8px;
}

.account-note {
  font-size: 14px;
  color: #505050;
  margin-bottom: 48px;
  letter-spacing: 0.01em;
}

.signup-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid #000;
  border-radius: 12px;
  overflow: hidden;
}

.signup-steps li {
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  border-right: 1px solid #000;
  background: #fff;
}

.signup-steps li:last-child {
  border-right: none;
}

.step-number {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #545454;
  display: block;
  margin-bottom: 16px;
}

.signup-steps h3 {
  font-size: 17px;
  margin-bottom: 10px;
}

.signup-steps p {
  font-size: 14px;
  color: #333;
  line-height: 1.6;
  margin-bottom: 28px;
  flex: 1;
}

.signup-steps .button {
  margin-top: auto;
  align-self: flex-start;
  font-size: 13px;
  padding: 9px 18px;
  min-height: 38px;
}

/* ── Unfolded showcase ────────────────────────────────────────────────────── */

.unfolded {
  padding: 88px 0 96px;
}

.unfolded figure {
  margin: 0;
  max-width: 980px;
  margin-inline: auto;
}

.unfolded img {
  width: 100%;
  border: none;
  border-radius: 0;
}

/* ── Screen cards ─────────────────────────────────────────────────────────── */

.showcase {
  padding: 88px 0 96px;
}

.screens {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.glass {
  border: 1px solid #e0e0e0;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}

.screens figure {
  display: flex;
  flex-direction: column;
  padding: 28px 24px 24px;
  height: 100%;
}

.caption {
  margin-bottom: 24px;
}

.caption span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #545454;
  display: block;
  margin-bottom: 10px;
}

.caption h3 {
  font-size: 16px;
  font-weight: 680;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.caption p {
  font-size: 13px;
  color: #383838;
  line-height: 1.55;
}

.screens picture {
  display: block;
  width: 100%;
  margin-top: auto;
}

.screens picture img,
.screens img {
  width: 100%;
  border-radius: 10px;
  margin-top: auto;
  border: none;
}

/* ── Devices ──────────────────────────────────────────────────────────────── */

.device {
  position: relative;
  width: 100%;
  container-type: inline-size;
  filter: drop-shadow(0 8px 32px rgba(0, 0, 0, 0.10));
}

.device-stage {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: top left;
}

.device .device-hardware,
.device picture.device-hardware {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
}

.device .device-hardware img,
.device picture.device-hardware img {
  width: 100%;
  height: 100%;
  max-width: none;
}

.device .device-screen,
.device picture.device-screen {
  position: absolute;
  top: 0;
  left: 0;
  max-width: none;
  transform-origin: 0 0;
  backface-visibility: hidden;
}

.device .device-screen img,
.device picture.device-screen img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: fill;
  border-radius: 5px;
}

/* ── Footer ───────────────────────────────────────────────────────────────── */

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 36px 0 44px;
  border-top: none;
}

footer .brand {
  font-size: 14px;
}

footer p {
  font-size: 13px;
  color: #545454;
  letter-spacing: 0.01em;
}

/* ── Reduced Motion Accessibility ─────────────────────────────────────────── */

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

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

/* ── Responsive: Tablet ───────────────────────────────────────────────────── */

@media (max-width: 960px) {
  .hero {
    gap: 56px;
  }

  .screens {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .screens figure {
    flex-direction: row;
    align-items: flex-end;
    gap: 20px;
  }

  .caption {
    flex: 1;
    margin-bottom: 0;
  }

  .screens picture,
  .screens img {
    width: 40%;
    flex-shrink: 0;
    margin-top: 0;
  }

  .signup-steps {
    grid-template-columns: 1fr;
    border-radius: 12px;
  }

  .signup-steps li {
    border-right: none;
    border-bottom: 1px solid #000;
  }

  .signup-steps li:last-child {
    border-bottom: none;
  }
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 64px 0 72px;
  }

  .hero .intro {
    max-width: 100%;
  }

  .hero-shot {
    max-width: 320px;
    margin-inline: auto;
  }
}

/* ── Responsive: Mobile ───────────────────────────────────────────────────── */

@media (max-width: 640px) {
  .wrap {
    width: calc(100% - 40px);
  }

  header {
    height: 60px;
  }

  .brand {
    font-size: 14px;
    gap: 10px;
  }

  .brand img {
    width: 28px;
    height: 28px;
  }

  .nav-link {
    font-size: 12px;
    padding: 7px 14px;
  }

  .hero {
    padding: 52px 0 60px;
    gap: 40px;
  }

  h1 {
    font-size: 44px;
    letter-spacing: -0.035em;
  }

  .lede {
    font-size: 17px;
  }

  .hero-shot {
    max-width: 280px;
  }

  .screens figure {
    flex-direction: column;
  }

  .screens picture,
  .screens img {
    width: 100%;
  }

  .section-heading {
    margin-bottom: 32px;
  }

  .join {
    padding: 56px 0 64px;
  }

  .unfolded,
  .showcase {
    padding: 56px 0 64px;
  }

  footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 28px 0 36px;
  }
}
