:root {
  --ink: #111017;
  --muted: #4e5270;
  --lavender: #7a5af8;
  --lavender-soft: #eeeaff;
  --paper: #fcfbff;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.page {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  overflow: clip;
  background: linear-gradient(118deg, #fff 0%, #fcfbff 49%, #f4f0ff 100%);
}

.hero {
  width: min(100% - 48px, 1360px);
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(28px, 4vw, 64px) 0;
  display: grid;
  grid-template-rows: auto 1fr;
}

.brand {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  width: fit-content;
  color: var(--ink);
  text-decoration: none;
}

.brand__mark { font-size: 56px; font-weight: 900; line-height: .75; letter-spacing: -.11em; }
.brand__name { font-size: 22px; font-weight: 800; letter-spacing: .15em; }

.hero__content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(430px, 1.12fr);
  align-items: center;
  gap: clamp(20px, 5vw, 88px);
}

.hero__copy { max-width: 650px; padding: 32px 0 52px; animation: rise-in .9s both; }

h1 {
  max-width: 650px;
  margin: 0;
  font-size: clamp(54px, 6vw, 94px);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.065em;
}

h1 span {
  display: block;
  margin-top: .12em;
  color: var(--lavender);
  background: linear-gradient(105deg, #7255ee 16%, #ab8cff 47%, #7658f1 76%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: lavender-shimmer 8s ease-in-out infinite;
}

.intro {
  max-width: 540px;
  margin: clamp(32px, 4vw, 52px) 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.6;
  letter-spacing: -.02em;
}

.closing {
  margin: 42px 0 0;
  color: var(--lavender);
  font-size: 18px;
  font-weight: 500;
}

.closing::before {
  display: block;
  width: 100px;
  height: 2px;
  margin-bottom: 30px;
  background: var(--lavender);
  content: "";
}

.robot {
  position: relative;
  width: min(100%, 720px);
  justify-self: end;
  margin: 0 -4% -6% 0;
  animation: image-in 1.15s .1s both, float 9s 1.3s ease-in-out infinite;
}

.robot::after {
  position: absolute;
  z-index: 3;
  top: 29%;
  right: 15%;
  width: 9px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 60%), 0 0 18px 7px rgb(151 115 255 / 55%);
  content: "";
  animation: sparkle 4.6s 1.2s ease-in-out infinite;
}

.robot img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 22px 30px rgb(80 56 150 / 13%));
  mask-image: linear-gradient(to right, transparent 0, #000 15%, #000 100%);
}

.robot__glow {
  position: absolute;
  z-index: 0;
  top: 18%; right: 8%; bottom: 13%; left: 8%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgb(147 114 255 / 31%) 0%, rgb(187 169 255 / 12%) 41%, transparent 70%);
  filter: blur(19px);
  animation: breathe 5.8s ease-in-out infinite;
}

.particle { position: absolute; z-index: 2; width: 6px; aspect-ratio: 1; border-radius: 50%; background: #fff; box-shadow: 0 0 13px 4px rgb(152 120 255 / 68%); animation: drift 5.8s ease-in-out infinite; }
.particle--one { top: 20%; right: 14%; }
.particle--two { top: 40%; left: 14%; width: 4px; animation-delay: -2.6s; }
.particle--three { right: 35%; bottom: 18%; width: 5px; animation-delay: -4.3s; }

.ambient { position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; filter: blur(60px); opacity: .48; animation: ambient-shift 15s ease-in-out infinite alternate; }
.ambient--top { top: -25vw; right: -8vw; width: 48vw; height: 48vw; background: #dcd1ff; }
.ambient--bottom { bottom: -29vw; left: -20vw; width: 45vw; height: 45vw; background: #efe7ff; animation-delay: -5s; }

@keyframes rise-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes image-in { from { opacity: 0; transform: translate(26px, 12px); } to { opacity: 1; transform: translate(0); } }
@keyframes breathe { 50% { transform: scale(1.1); opacity: .82; } }
@keyframes drift { 50% { transform: translate(10px, -18px) scale(1.25); opacity: .28; } }
@keyframes ambient-shift { to { transform: translate3d(-3%, 4%, 0) scale(1.08); } }
@keyframes float { 50% { transform: translateY(-11px); } }
@keyframes sparkle { 45%, 55% { transform: scale(1.45); opacity: 1; } 0%, 100% { transform: scale(.45); opacity: .15; } }
@keyframes lavender-shimmer { 50% { background-position: 100% 50%; } }

@media (max-width: 900px) {
  .hero__content { grid-template-columns: .95fr 1.05fr; gap: 16px; }
  .robot { width: min(100%, 560px); margin-right: -10%; }
  h1 { font-size: clamp(48px, 7vw, 70px); }
}

@media (max-width: 680px) {
  .page { background: linear-gradient(155deg, #fff 0%, #fbf9ff 70%, #f4efff 100%); }
  .hero { width: min(100% - 40px, 600px); padding-top: 28px; }
  .brand__mark { font-size: 46px; }
  .brand__name { font-size: 16px; letter-spacing: .13em; }
  .hero__content { display: flex; flex-direction: column; align-items: stretch; justify-content: center; padding-top: 40px; }
  .hero__copy { padding: 0; }
  h1 { font-size: clamp(50px, 14vw, 68px); }
  .intro { margin-top: 28px; font-size: 17px; line-height: 1.55; }
  .closing { margin-top: 34px; font-size: 16px; }
  .closing::before { margin-bottom: 24px; }
  .robot { width: min(100%, 430px); align-self: center; margin: 10px -7% -10px auto; }
  .ambient--top { top: -40vw; width: 80vw; height: 80vw; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
