:root {
  --bg: #eef4ff;
  --bg-deep: #dbe8ff;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --text: #0f1f47;
  --muted: #617198;
  --line: rgba(42, 85, 199, 0.12);
  --blue: #2563eb;
  --blue-deep: #153eaf;
  --blue-soft: #dce7ff;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(28, 70, 170, 0.14);
  --shadow-strong: 0 42px 120px rgba(28, 70, 170, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Segoe UI", Arial, sans-serif;
  background: linear-gradient(180deg, #f9fbff 0%, var(--bg) 100%);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.bg-layer {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.7;
}

.bg-orb-a {
  top: -12rem;
  right: -8rem;
  width: 34rem;
  height: 34rem;
  background: rgba(37, 99, 235, 0.18);
  animation: drift 12s ease-in-out infinite;
}

.bg-orb-b {
  bottom: -14rem;
  left: -10rem;
  width: 36rem;
  height: 36rem;
  background: rgba(147, 197, 253, 0.42);
  animation: drift 14s ease-in-out infinite reverse;
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.32) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.32) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.35;
  mask-image: radial-gradient(circle at center, black 24%, transparent 70%);
}

.page {
  position: relative;
  z-index: 1;
  max-width: 1220px;
  margin: 0 auto;
  padding: 24px;
}

.nav {
  padding: 8px 0 26px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  color: var(--white);
  font-weight: 800;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  box-shadow: var(--shadow);
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy span,
.lead,
.micro-copy,
.screen-welcome p,
.screen-item span,
.screen-footer p {
  color: var(--muted);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 460px);
  gap: 42px;
  align-items: center;
  min-height: calc(100vh - 110px);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 800;
}

.hero-copy h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 6vw, 6rem);
  line-height: 0.96;
  letter-spacing: -0.045em;
}

.typed-prefix,
.typed-line {
  display: block;
}

.typed-line {
  color: var(--blue-deep);
  min-height: 1.15em;
}

.caret {
  display: inline-block;
  width: 2px;
  height: 0.95em;
  margin-left: 6px;
  vertical-align: -0.08em;
  background: var(--blue);
  animation: blink 1s step-end infinite;
}

.lead {
  margin: 24px 0 0;
  font-size: 1.12rem;
  line-height: 1.8;
  max-width: 32ch;
}

.hero-actions {
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  box-shadow: var(--shadow);
}

.micro-copy {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
  font-weight: 600;
}

.hero-visual {
  position: relative;
  min-height: 640px;
}

.phone,
.floating-pill {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.phone {
  position: absolute;
  inset: 0 26px 0 0;
  width: min(100%, 390px);
  margin-left: auto;
  padding: 14px;
  border-radius: 42px;
  background: linear-gradient(180deg, #12327f, #0f255b);
  box-shadow: var(--shadow-strong);
}

.phone-notch {
  width: 140px;
  height: 28px;
  margin: 0 auto 12px;
  border-radius: 0 0 18px 18px;
  background: #081532;
}

.phone-screen {
  height: calc(100% - 40px);
  min-height: 520px;
  padding: 22px;
  border-radius: 30px;
  background: linear-gradient(180deg, #fdfefe 0%, #f3f7ff 100%);
}

.screen-welcome p {
  margin: 0 0 6px;
}

.screen-welcome strong,
.screen-item strong,
.screen-footer strong,
.floating-pill strong {
  display: block;
}

.screen-list {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.screen-item {
  padding: 18px;
  border-radius: 20px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
}

.screen-item-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
}

.screen-item-primary span {
  color: rgba(255, 255, 255, 0.74);
}

.screen-footer {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  align-items: center;
  margin-top: 18px;
  padding: 16px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--blue-soft), #f8fbff);
}

.screen-footer p {
  margin: 4px 0 0;
}

.screen-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  color: var(--white);
  font-weight: 800;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
}

.floating-pill {
  position: absolute;
  padding: 14px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
}

.floating-pill-a {
  top: 80px;
  left: 0;
}

.floating-pill-b {
  right: 0;
  bottom: 72px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 620ms ease, transform 620ms ease;
}

.reveal-delay {
  transition-delay: 140ms;
}

.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

.phone-float {
  animation: phoneFloat 7s ease-in-out infinite;
}

.float-soft {
  animation: pillFloat 6s ease-in-out infinite;
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  50.01%,
  100% {
    opacity: 0;
  }
}

@keyframes phoneFloat {
  0%,
  100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes pillFloat {
  0%,
  100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes drift {
  0%,
  100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(18px, 22px, 0); }
}

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

  .reveal,
  .phone-float,
  .float-soft,
  .bg-orb-a,
  .bg-orb-b,
  .caret,
  .button {
    animation: none;
    transition: none;
  }
}

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: auto;
    display: grid;
    gap: 16px;
  }

  .phone,
  .floating-pill {
    position: relative;
    inset: auto;
    width: 100%;
  }
}

@media (max-width: 720px) {
  .page {
    padding: 18px;
  }

  .hero-copy h1 {
    font-size: clamp(2.6rem, 14vw, 4.1rem);
  }

  .micro-copy {
    flex-direction: column;
    gap: 8px;
  }

  .phone-screen {
    min-height: 460px;
    padding: 18px;
  }
}
