:root {
  color-scheme: dark;
  --ink: #f4faff;
  --muted: #e2f0fc;
  --accent: #a7e4ff;
  --line: rgba(190, 226, 255, 0.2);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

.sr-only,
.form-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html {
  background: #103b70;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(88, 194, 246, 0.2), transparent 58%),
    radial-gradient(ellipse at 100% 65%, rgba(27, 121, 185, 0.25), transparent 65%),
    linear-gradient(145deg, #173d78 0%, #103e70 48%, #0c294f 100%);
}

.page-shell {
  width: min(100% - 3rem, 68rem);
  min-height: calc(100vh - 5rem);
  min-height: calc(100dvh - 5rem);
  margin-inline: auto;
  display: grid;
  place-items: center;
  padding-block: clamp(3rem, 7vw, 6rem) 2.5rem;
}

.hero {
  width: 100%;
  text-align: center;
}

.app-mark {
  display: block;
  width: 7rem;
  height: 7rem;
  margin: 0 auto 1.25rem;
  filter: drop-shadow(0 1rem 1.5rem rgba(1, 22, 55, 0.3));
}

.app-name {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: -0.025em;
}

.eyebrow {
  margin: 0.55rem 0 2.75rem;
  color: var(--muted);
  font-size: 0.875rem;
  letter-spacing: 0.04em;
}

h1 {
  margin: 0;
  font-size: clamp(2.5rem, 6.5vw, 4.75rem);
  font-weight: 650;
  letter-spacing: -0.05em;
  line-height: 1.1;
  text-wrap: balance;
}

h1 span {
  color: var(--accent);
}

.intro {
  max-width: 34rem;
  margin: 1.5rem auto 0;
  color: var(--muted);
  font-size: clamp(1.0625rem, 2vw, 1.1875rem);
  line-height: 1.7;
  text-wrap: pretty;
}

.early-access-form {
  width: min(100%, 35rem);
  margin: 1.75rem auto 0;
}

.early-access-fields {
  display: flex;
  gap: 0.625rem;
}

.early-access-fields input,
.early-access-fields button {
  min-height: 3.25rem;
  border-radius: 0.875rem;
  font: inherit;
}

.early-access-fields input {
  min-width: 0;
  flex: 1 1 13rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #102d51;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 0.75rem 2rem rgba(2, 14, 33, 0.15);
  font-size: 1rem;
}

.early-access-fields input::placeholder {
  color: #5a6b7f;
}

.early-access-fields input:focus-visible,
.early-access-fields button:focus-visible,
.thank-you-card a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.early-access-fields button {
  flex: 0 0 auto;
  padding: 0.75rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #0b315c;
  background: var(--accent);
  box-shadow: 0 0.75rem 2rem rgba(2, 14, 33, 0.2);
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.early-access-fields button:hover {
  background: #d3f2ff;
  box-shadow: 0 0.9rem 2.25rem rgba(2, 14, 33, 0.28);
  transform: translateY(-1px);
}

.early-access-fields button:active {
  transform: translateY(0);
}

.early-access-note {
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.notification-preview {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  width: min(100%, 27rem);
  margin: 2rem auto 0;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 1.75rem;
  background: linear-gradient(145deg, rgba(24, 33, 43, 0.94), rgba(10, 18, 28, 0.96));
  box-shadow: 0 1rem 2.5rem rgba(2, 14, 33, 0.25);
  text-align: left;
}

.notification-preview > img {
  flex: none;
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
}

.notification-content {
  flex: 1;
  min-width: 0;
}

.notification-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}

.notification-app {
  font-size: 0.9375rem;
  font-weight: 650;
}

.notification-time {
  margin-left: auto;
  color: #b5bec9;
  font-size: 0.8125rem;
}

.notification-content p {
  margin: 0.25rem 0 0;
  font-size: 1.0625rem;
  line-height: 1.4;
}

.notification-message {
  display: grid;
}

/* Shared grid cells reserve the tallest phrase to avoid layout shifts. */
.notification-message > span {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transition: opacity 350ms ease, visibility 350ms;
}

.notification-message > .is-visible {
  opacity: 1;
  visibility: visible;
}

@media (prefers-reduced-motion: reduce) {
  .notification-message > span {
    transition: none;
  }
}

.features {
  max-width: 57rem;
  margin: clamp(2.5rem, 5vw, 4rem) auto 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  list-style: none;
  text-align: left;
}

.features li {
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: linear-gradient(145deg, rgba(209, 239, 255, 0.06), rgba(209, 239, 255, 0.025));
}

.features svg {
  width: 1.5rem;
  height: 1.5rem;
  margin-bottom: 1rem;
  color: var(--accent);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.features h2 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.features p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.showcase {
  padding: clamp(3rem, 8vw, 6rem) 1.5rem clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
}

.showcase-inner {
  width: min(100%, 62rem);
  margin-inline: auto;
  text-align: center;
}

.showcase-eyebrow {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.875rem;
  letter-spacing: 0.04em;
}

.showcase h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1.1;
  text-wrap: balance;
}

.showcase h2 span {
  color: var(--accent);
}

.showcase-lead {
  max-width: 34rem;
  margin: 1.25rem auto 0;
  color: var(--muted);
  font-size: clamp(1.0625rem, 2vw, 1.1875rem);
  line-height: 1.7;
  text-wrap: pretty;
}

.devices {
  margin: clamp(2.75rem, 6vw, 4.5rem) auto 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 0;
}

/* MacBook */
.laptop {
  flex: 0 1 42rem;
  margin: 0;
  min-width: 0;
}

.laptop-lid {
  width: 90%;
  margin-inline: auto;
  padding: 1.3%;
  border-radius: clamp(0.4rem, 1vw, 0.85rem);
  background: linear-gradient(160deg, #23272d, #0c1013);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 1.75rem 3.5rem rgba(2, 14, 33, 0.55);
}

.laptop-screen {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 0.3rem;
  background:
    radial-gradient(ellipse at 50% -8%, rgba(196, 229, 255, 0.5), transparent 60%),
    linear-gradient(158deg, #6aa1da 0%, #4880bd 48%, #325f97 100%);
}

.laptop-screen img {
  position: absolute;
  top: 4%;
  left: 4%;
  display: block;
  width: 92%;
  height: 92%;
  object-fit: contain;
}

.laptop-base {
  position: relative;
  width: 100%;
  height: clamp(0.55rem, 1.4vw, 0.85rem);
  margin-inline: auto;
  background: linear-gradient(#d6dde4, #aab3bd 45%, #7c8791);
  border-radius: 0 0 0.4rem 0.4rem / 0 0 1rem 1rem;
  box-shadow: 0 1rem 2rem rgba(2, 14, 33, 0.4);
}

.laptop-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 12%;
  height: 40%;
  background: linear-gradient(#9098a1, #c2cad2);
  border-radius: 0 0 0.5rem 0.5rem / 0 0 0.9rem 0.9rem;
}

/* iPhone */
.phone {
  position: relative;
  flex: 0 0 auto;
  width: clamp(8rem, 20vw, 12rem);
  margin: 0 0 -0.75rem clamp(-4rem, -5vw, -2rem);
}

.phone-screen {
  aspect-ratio: 1206 / 2622;
  padding: 3.1%;
  border-radius: 15% / 6.9%;
  background: linear-gradient(155deg, #2a2e33, #080b0e);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 1.75rem 3rem rgba(2, 14, 33, 0.55);
}

.phone-screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 11.5% / 5.2%;
}

@media (max-width: 42rem) {
  .devices {
    flex-direction: column;
    align-items: center;
    max-width: 20rem;
  }

  .laptop {
    flex: none;
    width: 100%;
  }

  .phone {
    width: 55%;
    align-self: flex-end;
    margin: -1rem 1rem 0 0;
  }
}

footer {
  min-height: 5rem;
  padding: 1.5rem;
  display: grid;
  place-items: center;
  gap: 0.875rem;
  color: var(--muted);
  font-size: 0.875rem;
}

footer p {
  margin: 0;
}

.github-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.875rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.github-link:hover {
  border-color: var(--accent);
  background: rgba(190, 226, 255, 0.08);
}

.github-link svg {
  width: 1.125rem;
  height: 1.125rem;
}

.thank-you-page {
  display: grid;
  place-items: center;
}

.thank-you-shell {
  width: min(100% - 3rem, 38rem);
  padding-block: 3rem;
}

.thank-you-card {
  padding: clamp(2rem, 7vw, 4rem);
  border: 1px solid var(--line);
  border-radius: 2rem;
  background: linear-gradient(145deg, rgba(209, 239, 255, 0.09), rgba(209, 239, 255, 0.035));
  box-shadow: 0 1.5rem 4rem rgba(2, 14, 33, 0.3);
  text-align: center;
}

.thank-you-card .app-mark {
  width: 5.5rem;
  height: 5.5rem;
}

.thank-you-card h1 {
  margin-top: 2rem;
  font-size: clamp(2.25rem, 8vw, 3.75rem);
}

.thank-you-card > p:not(.app-name) {
  margin: 1.25rem auto 0;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.65;
}

.thank-you-card a {
  display: inline-block;
  margin-top: 2rem;
  color: var(--accent);
  font-weight: 650;
  text-underline-offset: 0.25rem;
}

@media (max-width: 42rem) {
  .page-shell {
    width: min(100% - 2.5rem, 32rem);
  }

  .eyebrow {
    margin-bottom: 2.25rem;
  }

  .features {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .features li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
  }

  .features svg {
    flex-shrink: 0;
    margin: 0.125rem 0 0;
  }

  .early-access-fields {
    flex-direction: column;
  }

  .early-access-fields input {
    flex-basis: auto;
  }

  .early-access-fields button {
    width: 100%;
  }
}
