:root {
  --bg: #fffefd;
  --paper: #ffffff;
  --ink: #171b24;
  --muted: #646b78;
  --quiet: #8b93a0;
  --line: #e9edf2;
  --line-strong: #d8dee7;
  --accent: #5f6fea;
  --accent-deep: #4759cc;
  --accent-soft: rgba(95, 111, 234, 0.12);
  --shadow: 0 24px 70px rgba(34, 43, 67, 0.08);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 80% 18%, rgba(95, 111, 234, 0.08), transparent 28rem),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
  font-family: "Manrope", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  content: "";
  background-image: linear-gradient(rgba(23, 27, 36, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 27, 36, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(90deg, transparent 0%, #000 26%, #000 76%, transparent 100%);
}

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

button,
input {
  font: inherit;
}

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

.grid-plane {
  position: absolute;
  top: 15%;
  right: -6rem;
  width: min(48vw, 38rem);
  aspect-ratio: 1.18;
  border: 1px solid rgba(216, 222, 231, 0.72);
  border-radius: 4px;
  opacity: 0.68;
  transform: perspective(780px) rotateY(-18deg) rotateX(8deg);
  background:
    linear-gradient(90deg, rgba(95, 111, 234, 0.12) 1px, transparent 1px),
    linear-gradient(rgba(23, 27, 36, 0.045) 1px, transparent 1px);
  background-size: 58px 58px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72), var(--shadow);
  animation: floatPlane 14s var(--ease) infinite alternate, planeReveal 1100ms 160ms var(--ease) both;
}

.grid-plane::before,
.grid-plane::after {
  position: absolute;
  content: "";
  background: var(--accent);
  opacity: 0.48;
  transform-origin: left center;
  animation: traceDraw 2600ms 900ms var(--ease) both;
}

.grid-plane::before {
  top: 32%;
  left: 18%;
  width: 42%;
  height: 1px;
}

.grid-plane::after {
  right: 25%;
  bottom: 16%;
  width: 1px;
  height: 40%;
}

.soft-field {
  position: absolute;
  border-radius: 999px;
  filter: blur(30px);
  opacity: 0.34;
  animation: drift 16s var(--ease) infinite alternate;
}

.soft-field-one {
  top: 18%;
  right: 10%;
  width: 16rem;
  height: 16rem;
  background: rgba(95, 111, 234, 0.17);
}

.soft-field-two {
  right: 30%;
  bottom: 12%;
  width: 11rem;
  height: 11rem;
  background: rgba(112, 124, 148, 0.12);
  animation-delay: -5s;
}

.interface-outline {
  position: absolute;
  right: clamp(1rem, 8vw, 8rem);
  bottom: 17%;
  width: min(35vw, 26rem);
  min-width: 19rem;
  height: 15rem;
  border: 1px solid rgba(216, 222, 231, 0.86);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 26px 80px rgba(34, 43, 67, 0.07);
  backdrop-filter: blur(12px);
  animation: floatInterface 12s var(--ease) infinite alternate, interfaceReveal 1000ms 320ms var(--ease) both;
}

.interface-outline::before {
  position: absolute;
  top: 2.75rem;
  left: 0;
  right: 0;
  height: 1px;
  content: "";
  background: var(--line);
}

.interface-outline span {
  position: relative;
  display: inline-block;
  width: 0.42rem;
  height: 0.42rem;
  margin-top: 1.12rem;
  margin-left: 0.34rem;
  border-radius: 999px;
  background: #c9d0dc;
}

.interface-outline span:first-child {
  margin-left: 1.2rem;
  background: var(--accent);
}

.interface-row {
  position: absolute;
  left: 1.5rem;
  height: 1px;
  background: linear-gradient(90deg, rgba(95, 111, 234, 0.34), rgba(216, 222, 231, 0.16));
  transform-origin: left center;
  animation: traceDraw 1800ms var(--ease) both;
}

.row-a {
  top: 5.2rem;
  width: 68%;
  animation-delay: 820ms;
}

.row-b {
  top: 7.4rem;
  width: 48%;
  animation-delay: 980ms;
}

.row-c {
  top: 10.8rem;
  width: 78%;
  animation-delay: 1140ms;
}

.code-trace {
  position: absolute;
  width: 9.5rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(95, 111, 234, 0.32), transparent);
  animation: scanTrace 5200ms ease-in-out infinite;
}

.trace-a {
  top: 31%;
  right: 28%;
  transform: rotate(90deg);
}

.trace-b {
  right: 6%;
  bottom: 35%;
  animation-delay: -2200ms;
}

.page-shell {
  display: grid;
  min-height: 100vh;
  grid-template-rows: auto 1fr auto;
  width: min(100% - 2.5rem, 1180px);
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(0.8rem, 1.7vw, 1.25rem) 0 0;
  animation: revealDown 900ms var(--ease) both;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: clamp(8.8rem, 12vw, 10.6rem);
  height: clamp(2.35rem, 3.2vw, 2.9rem);
  transition: transform 220ms ease, opacity 220ms ease;
}

.brand:hover {
  transform: translateY(-1px);
}

.brand img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
  animation: logoResolve 900ms 120ms var(--ease) both;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.25rem;
  padding: 0 0.9rem;
  border: 1px solid rgba(216, 222, 231, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: #596172;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 30px rgba(34, 43, 67, 0.04);
  backdrop-filter: blur(14px);
}

.status span {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-soft);
  animation: statusPulse 2600ms ease-in-out infinite;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(18rem, 28rem);
  align-items: center;
  justify-content: space-between;
  gap: clamp(2rem, 6vw, 5rem);
  padding: clamp(2.2rem, 5.8vw, 4.7rem) 0 clamp(2.4rem, 5vw, 4.4rem);
}

.hero-copy {
  width: min(100%, 760px);
  animation: heroRise 1000ms 140ms var(--ease) both;
}

.reveal-item {
  opacity: 0;
  transform: translateY(16px);
  animation: revealItem 900ms var(--ease) both;
}

.reveal-item:nth-child(1) {
  animation-delay: 260ms;
}

.reveal-item:nth-child(2) {
  animation-delay: 380ms;
}

.reveal-item:nth-child(3) {
  animation-delay: 500ms;
}

.reveal-item:nth-child(4) {
  animation-delay: 640ms;
}

.reveal-item:nth-child(5) {
  animation-delay: 760ms;
}

.studio-panel {
  position: relative;
  align-self: center;
  padding: clamp(1.35rem, 2vw, 1.75rem);
  border: 1px solid rgba(216, 222, 231, 0.86);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 24px 70px rgba(34, 43, 67, 0.07);
  backdrop-filter: blur(16px);
  animation: heroRise 1000ms 220ms var(--ease) both;
}

.studio-panel::before {
  position: absolute;
  top: -1px;
  left: 1.5rem;
  width: 4.4rem;
  height: 1px;
  content: "";
  background: var(--accent);
}

.panel-kicker {
  margin: 0 0 1rem;
  color: var(--accent-deep);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.studio-panel h2 {
  max-width: 18ch;
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.55rem, 2.4vw, 2.2rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: 0;
}

.panel-lines {
  display: grid;
  gap: 0;
  margin-top: clamp(1.4rem, 3vw, 2rem);
  border-top: 1px solid var(--line);
}

.panel-lines span {
  display: block;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.62;
}

.launch-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0 0 1.2rem;
  color: var(--accent-deep);
  font-size: clamp(0.8rem, 1vw, 0.9rem);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.launch-meta span:first-child {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0 0.78rem;
  border: 1px solid rgba(95, 111, 234, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--accent-deep);
  box-shadow: 0 12px 30px rgba(34, 43, 67, 0.045);
}

.launch-meta span:last-child {
  color: #667083;
  font-weight: 700;
}

h1 {
  max-width: 13.6ch;
  margin: 0;
  color: var(--ink);
  font-size: clamp(3rem, 7vw, 5.85rem);
  font-weight: 800;
  line-height: 0.99;
  letter-spacing: 0;
}

.intro {
  max-width: 640px;
  margin: clamp(1.35rem, 3vw, 2rem) 0 0;
  color: #5b6371;
  font-size: clamp(1.02rem, 1.35vw, 1.12rem);
  font-weight: 500;
  line-height: 1.86;
}

.notify-form {
  display: grid;
  grid-template-columns: minmax(15rem, 24rem) auto auto;
  align-items: stretch;
  gap: 0.7rem;
  max-width: 720px;
  margin-top: clamp(1.8rem, 3vw, 2.45rem);
}

.field-group {
  position: relative;
}

.field-group label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

input {
  width: 100%;
  height: 3.55rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  outline: none;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  padding: 0 1.25rem;
  box-shadow: 0 14px 34px rgba(34, 43, 67, 0.045);
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

input::placeholder {
  color: var(--quiet);
}

input:focus {
  border-color: rgba(95, 111, 234, 0.72);
  background: #fff;
  box-shadow: 0 0 0 4px var(--accent-soft), 0 18px 40px rgba(34, 43, 67, 0.055);
}

input:hover {
  border-color: #c9d1dc;
  background: #fff;
}

button,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 9.25rem;
  height: 3.55rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 800;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

button {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 18px 42px rgba(23, 27, 36, 0.16);
}

button:hover,
button:focus-visible {
  border-color: var(--accent-deep);
  background: var(--accent-deep);
  transform: translateY(-2px);
  box-shadow: 0 22px 50px rgba(95, 111, 234, 0.2);
}

.secondary-action {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.64);
  color: var(--ink);
}

.secondary-action:hover,
.secondary-action:focus-visible {
  border-color: rgba(95, 111, 234, 0.42);
  color: var(--accent-deep);
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(34, 43, 67, 0.06);
}

.form-note {
  min-height: 1.7rem;
  margin: 0.9rem 0 0;
  color: var(--quiet);
  font-size: 0.9rem;
  font-weight: 600;
}

.form-note.success {
  color: var(--accent-deep);
}

.form-note.error {
  color: #b14545;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.45rem 0 1.8rem;
  border-top: 1px solid rgba(233, 237, 242, 0.84);
  color: #707785;
  font-size: 0.88rem;
  animation: heroRise 1000ms 240ms var(--ease) both;
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  gap: clamp(0.9rem, 2vw, 1.35rem);
}

.site-footer a {
  font-weight: 800;
  color: #555d6c;
  transition: color 180ms ease;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--accent-deep);
}

.site-footer a {
  position: relative;
}

.site-footer a::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.22rem;
  height: 1px;
  content: "";
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 220ms ease;
}

.site-footer a:hover::after,
.site-footer a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left center;
}

@keyframes revealDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroRise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes revealItem {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes logoResolve {
  from {
    opacity: 0;
    filter: blur(8px);
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

@keyframes statusPulse {
  0%,
  100% {
    box-shadow: 0 0 0 5px var(--accent-soft);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(95, 111, 234, 0.07);
  }
}

@keyframes planeReveal {
  from {
    opacity: 0;
    filter: blur(10px);
  }
  to {
    opacity: 0.68;
    filter: blur(0);
  }
}

@keyframes interfaceReveal {
  from {
    opacity: 0;
    filter: blur(10px);
  }
  to {
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes traceDraw {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes scanTrace {
  0%,
  100% {
    opacity: 0.18;
    transform: translateX(-0.4rem);
  }
  50% {
    opacity: 0.62;
    transform: translateX(0.55rem);
  }
}

@keyframes floatPlane {
  from {
    transform: perspective(780px) rotateY(-18deg) rotateX(8deg) translate3d(0, 0, 0);
  }
  to {
    transform: perspective(780px) rotateY(-18deg) rotateX(8deg) translate3d(-0.9rem, 1.1rem, 0);
  }
}

@keyframes floatInterface {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(0.7rem, -0.8rem, 0);
  }
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-1.1rem, 1rem, 0) scale(1.04);
  }
}

@media (max-width: 920px) {
  .grid-plane {
    right: -13rem;
    width: 34rem;
    opacity: 0.48;
  }

  .interface-outline {
    right: -7rem;
    opacity: 0.48;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .studio-panel {
    width: min(100%, 36rem);
  }

  .notify-form {
    grid-template-columns: 1fr 1fr;
    max-width: 560px;
  }

  .field-group {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 1.5rem, 1180px);
  }

  .site-header {
    padding-top: 0.75rem;
  }

  .brand {
    width: 8.25rem;
    height: 2.3rem;
  }

  .status {
    min-height: 2rem;
    padding: 0 0.72rem;
    font-size: 0.72rem;
  }

  .hero {
    align-items: start;
    padding-top: clamp(2.1rem, 9vw, 3.4rem);
  }

  .studio-panel {
    padding: 1.2rem;
  }

  .launch-meta {
    gap: 0.6rem;
  }

  h1 {
    max-width: 12.5ch;
    font-size: clamp(2.6rem, 14vw, 4.3rem);
  }

  .intro {
    line-height: 1.68;
  }

  .notify-form {
    grid-template-columns: 1fr;
  }

  button,
  .secondary-action,
  input {
    min-width: 0;
    width: 100%;
  }

  .interface-outline {
    bottom: 10%;
    right: -13rem;
    opacity: 0.28;
  }

  .grid-plane {
    top: 19%;
    right: -18rem;
    opacity: 0.28;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding-bottom: 1.2rem;
  }
}

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