:root {
  --bezel-radius: 48px;
  --bezel-width: 14px;
  --bezel-color: #0a0d12;
  --bezel-highlight: #1f242c;
  --screen-radius: 34px;
  --screen-width: 390px;
  --screen-height: 844px;
  --notch-width: 130px;
  --notch-height: 26px;
  --notch-radius: 16px;
  --page-bg-from: #1d2330;
  --page-bg-to: #0a0d12;
  --text: #e9edf3;
  --muted: #98a3b3;
  --accent: #7fb1ff;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica,
    Arial, sans-serif;
  background: radial-gradient(
      ellipse at top,
      var(--page-bg-from) 0%,
      var(--page-bg-to) 80%
    )
    no-repeat fixed;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

.stage {
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 32px 80px;
}

.lead {
  text-align: center;
  margin-bottom: 48px;
}
.lead h1 {
  font-size: 32px;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
}
.lead .subtitle {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.presentation {
  display: grid;
  grid-template-columns: auto minmax(0, 360px);
  gap: 64px;
  align-items: center;
  justify-content: center;
}

/* ---- phone bezel ---------------------------------------------------- */

.phone {
  display: flex;
  justify-content: center;
}
.phone__bezel {
  position: relative;
  width: calc(var(--screen-width) + 2 * var(--bezel-width));
  height: calc(var(--screen-height) + 2 * var(--bezel-width));
  background: linear-gradient(160deg, var(--bezel-highlight), var(--bezel-color) 60%);
  border-radius: var(--bezel-radius);
  padding: var(--bezel-width);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.55),
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.05);
}
.phone__notch {
  position: absolute;
  top: calc(var(--bezel-width) - 1px);
  left: 50%;
  transform: translateX(-50%);
  width: var(--notch-width);
  height: var(--notch-height);
  background: var(--bezel-color);
  border-bottom-left-radius: var(--notch-radius);
  border-bottom-right-radius: var(--notch-radius);
  z-index: 2;
}
.phone__screen {
  width: 100%;
  height: 100%;
  border-radius: var(--screen-radius);
  overflow: hidden;
  background: #000;
}
.phone__screen iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ---- install column ------------------------------------------------- */

.install h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 12px;
}
.install p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.55;
  font-size: 14px;
}
.install a {
  color: var(--accent);
  text-decoration: none;
}
.install a:hover {
  text-decoration: underline;
}
.install em {
  color: var(--text);
  font-style: normal;
  font-weight: 500;
}
.qr {
  margin: 16px 0;
  padding: 16px;
  background: #fff;
  border-radius: 12px;
  display: inline-block;
  text-align: center;
}
.qr img {
  display: block;
}
.qr figcaption {
  margin-top: 8px;
  font-size: 12px;
  color: #333;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.install .footnote {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 8px;
}

/* ---- responsive fallback -------------------------------------------- */

/* On a real phone the bezel-inside-a-phone would look absurd. Drop the
   frame and let the iframe span the viewport. */
@media (max-width: 720px) {
  .stage {
    padding: 0;
    max-width: none;
  }
  .lead,
  .install {
    display: none;
  }
  .presentation {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .phone__bezel {
    width: 100vw;
    height: 100vh;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    background: #000;
  }
  .phone__notch {
    display: none;
  }
  .phone__screen {
    border-radius: 0;
  }
}

/* Slightly tighter spacing on medium screens so the phone + QR fit. */
@media (max-width: 1100px) {
  .presentation {
    gap: 32px;
  }
}
