:root {
  --bg: #07090f;
  --bg-soft: #0e121b;
  --panel: rgba(12, 17, 27, 0.76);
  --panel-strong: rgba(17, 24, 38, 0.94);
  --text: #f6f8fb;
  --muted: #9aa7b7;
  --line: rgba(255, 255, 255, 0.12);
  --cyan: #26d9ff;
  --lime: #b7ff4f;
  --coral: #ff6b6b;
  --ink: #05070c;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
  --radius: 8px;
  --radius-pill: 999px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  font-family: "Instrument Sans", sans-serif;
  color: var(--text);
  background:
    linear-gradient(180deg, #07090f 0%, #0b1019 48%, #f4f7fb 48%, #f4f7fb 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.88), transparent 50%);
}

a {
  color: inherit;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 36px;
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(7, 9, 15, 0.72);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(22px);
}

.brand,
.site-nav a,
.button,
.footer-links a {
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.brand-mark {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background:
    linear-gradient(135deg, var(--cyan), var(--lime) 58%, #ffffff);
  box-shadow: 0 0 28px rgba(38, 217, 255, 0.5);
}

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  padding: 9px 12px;
  border-radius: var(--radius);
  color: rgba(246, 248, 251, 0.74);
  font-size: 0.94rem;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.hero {
  position: relative;
  width: 100vw;
  min-height: 690px;
  margin: 18px calc(50% - 50vw) 0;
  padding: 92px max(24px, calc((100vw - 1180px) / 2)) 54px;
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(380px, 0.78fr);
  gap: 42px;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(7, 9, 15, 0.96) 0%, rgba(7, 9, 15, 0.82) 37%, rgba(7, 9, 15, 0.34) 100%),
    linear-gradient(180deg, rgba(7, 9, 15, 0.1), #07090f 98%),
    url("assets/hero-mobile-lab.png") center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  left: max(24px, calc((100vw - 1180px) / 2));
  right: max(24px, calc((100vw - 1180px) / 2));
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(38, 217, 255, 0.7), transparent);
}

.hero-copy,
.hero-visual {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.hero-copy {
  animation: rise-in 820ms ease both;
}

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

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
}

h1,
h2 {
  font-family: "Space Grotesk", sans-serif;
}

h1 {
  max-width: 11ch;
  font-size: 5.5rem;
  line-height: 0.94;
}

.hero-text {
  max-width: 650px;
  margin: 24px 0 0;
  color: rgba(246, 248, 251, 0.78);
  font-size: 1.18rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 700;
  overflow: hidden;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.button::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-120%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.36), transparent);
  transition: transform 480ms ease;
}

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

.button:hover::after,
.button:focus-visible::after {
  transform: translateX(120%);
}

.button-primary {
  color: #051015;
  background: linear-gradient(135deg, var(--lime), var(--cyan));
  box-shadow: 0 18px 42px rgba(38, 217, 255, 0.26);
}

.button-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

.hero-points {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-points li {
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-pill);
  color: rgba(246, 248, 251, 0.78);
  background: rgba(7, 9, 15, 0.38);
  backdrop-filter: blur(16px);
  font-size: 0.92rem;
}

.hero-visual {
  min-height: 590px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: float-in 980ms ease 120ms both;
}

.phone-frame {
  position: relative;
  width: min(380px, 100%);
  padding: 10px;
  border-radius: 34px;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.04)),
    #080b12;
  box-shadow:
    0 32px 90px rgba(0, 0, 0, 0.46),
    inset 0 0 0 1px rgba(255, 255, 255, 0.15);
  animation: hover-device 6s ease-in-out infinite;
}

.phone-notch {
  position: absolute;
  top: 18px;
  left: 50%;
  z-index: 2;
  width: 118px;
  height: 24px;
  border-radius: 0 0 16px 16px;
  background: #05070c;
  transform: translateX(-50%);
}

.phone-screen {
  position: relative;
  min-height: 612px;
  overflow: hidden;
  padding: 56px 18px 18px;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(23, 32, 51, 0.98), rgba(5, 7, 12, 0.98)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 48px);
}

.phone-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 14%, rgba(38, 217, 255, 0.16) 34%, transparent 54%);
  transform: translateX(-100%);
  animation: scanline 5.5s ease-in-out infinite;
}

.scene-card,
.chat-bubble,
.floating-card,
.feature-card,
.world-card,
.pricing-note,
.pricing-form,
.legal-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.scene-card {
  position: relative;
  padding: 18px;
  background: rgba(255, 255, 255, 0.08);
}

.scene-chip,
.world-tag,
.feature-number,
.floating-card span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.scene-chip {
  padding: 7px 10px;
  color: #081016;
  background: var(--lime);
}

.scene-card h2 {
  margin-top: 16px;
  color: var(--text);
  font-size: 2rem;
}

.scene-card p {
  margin: 12px 0 0;
  color: rgba(246, 248, 251, 0.68);
  line-height: 1.6;
}

.chat-stack {
  position: relative;
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.chat-bubble {
  max-width: 86%;
  padding: 14px 16px;
  color: rgba(246, 248, 251, 0.74);
  background: rgba(255, 255, 255, 0.07);
  font-size: 0.95rem;
  line-height: 1.5;
}

.chat-bubble-accent {
  justify-self: end;
  color: #041014;
  background: linear-gradient(135deg, var(--cyan), var(--lime));
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.mini-stats div {
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.mini-stats strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.35rem;
  color: var(--text);
}

.mini-stats span {
  color: rgba(246, 248, 251, 0.58);
}

.floating-card {
  position: absolute;
  z-index: 2;
  width: 210px;
  padding: 15px;
  color: var(--text);
  background: rgba(8, 12, 20, 0.72);
  backdrop-filter: blur(20px);
}

.floating-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1.02rem;
}

.floating-card p {
  margin: 8px 0 0;
  color: rgba(246, 248, 251, 0.64);
  line-height: 1.45;
  font-size: 0.9rem;
}

.floating-card-left {
  left: 0;
  bottom: 98px;
  animation: hover-panel 5.5s ease-in-out infinite;
}

.floating-card-right {
  right: -26px;
  top: 126px;
  animation: hover-panel 5.5s ease-in-out 800ms infinite;
}

.logo-strip {
  width: 100vw;
  margin: 0 calc(50% - 50vw);
  padding: 16px max(24px, calc((100vw - 1180px) / 2));
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: #07090f;
}

.logo-strip p {
  margin: 0;
  color: rgba(246, 248, 251, 0.7);
  text-align: center;
  font-size: 0.98rem;
}

.features,
.worlds,
.pricing {
  width: 100vw;
  margin: 0 calc(50% - 50vw);
  padding: 84px max(24px, calc((100vw - 1180px) / 2));
}

.features,
.pricing {
  background: #f4f7fb;
  color: #111827;
}

.worlds {
  background:
    linear-gradient(180deg, #111827, #07090f);
  color: var(--text);
}

.section-heading {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
}

.section-heading h2 {
  max-width: 720px;
  font-size: 3.25rem;
  line-height: 1.02;
}

.features .eyebrow,
.pricing .eyebrow {
  color: #087f9f;
}

.feature-grid,
.world-grid {
  display: grid;
  gap: 16px;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.world-card {
  padding: 24px;
  transform: translateY(20px);
  animation: reveal-up 700ms ease both;
  animation-timeline: view();
  animation-range: entry 5% cover 32%;
}

.feature-card {
  background: #ffffff;
  border-color: rgba(17, 24, 39, 0.1);
}

.feature-card:nth-child(2),
.world-card:nth-child(2) {
  animation-delay: 120ms;
}

.feature-card:nth-child(3),
.world-card:nth-child(3) {
  animation-delay: 240ms;
}

.feature-number,
.world-tag {
  padding: 7px 10px;
}

.feature-number {
  color: #062c35;
  background: rgba(38, 217, 255, 0.18);
}

.feature-card h3,
.world-card h3 {
  margin-top: 34px;
  font-size: 1.36rem;
}

.feature-card p,
.world-card p {
  margin: 14px 0 0;
  line-height: 1.68;
}

.feature-card p {
  color: #536071;
}

.world-grid {
  grid-template-columns: 1.15fr 0.92fr 0.92fr;
}

.world-card {
  min-height: 300px;
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.12);
}

.world-card p {
  color: rgba(246, 248, 251, 0.68);
}

.world-card-large {
  background:
    linear-gradient(135deg, rgba(38, 217, 255, 0.22), rgba(183, 255, 79, 0.12)),
    rgba(255, 255, 255, 0.08);
}

.world-tag {
  color: #071018;
  background: var(--lime);
}

.pricing-layout {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 18px;
}

.pricing-note,
.pricing-form {
  background: #ffffff;
  border-color: rgba(17, 24, 39, 0.1);
}

.pricing-note {
  padding: 24px;
}

.pricing-note h3 {
  margin: 0;
  font-size: 1.35rem;
}

.pricing-note p,
.pricing-note li {
  color: #536071;
  line-height: 1.68;
}

.pricing-note p {
  margin: 14px 0 0;
}

.pricing-note ul {
  margin: 18px 0 0;
  padding-left: 20px;
}

.pricing-contact a,
.footer-links a,
.legal-card a {
  color: #087f9f;
  text-decoration: none;
}

.pricing-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 24px;
}

.pricing-form label {
  display: grid;
  gap: 8px;
  color: #182233;
  font-weight: 700;
  font-size: 0.92rem;
}

.pricing-form input,
.pricing-form select,
.pricing-form textarea {
  width: 100%;
  border: 1px solid rgba(17, 24, 39, 0.14);
  border-radius: var(--radius);
  background: #f8fafc;
  color: #111827;
  font: inherit;
  padding: 12px 13px;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

.pricing-form textarea {
  resize: vertical;
}

.pricing-form input:focus,
.pricing-form select:focus,
.pricing-form textarea:focus {
  outline: none;
  border-color: #18bde1;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(38, 217, 255, 0.16);
}

.form-hidden {
  display: none;
}

.field-full,
.pricing-form button {
  grid-column: 1 / -1;
}

.site-footer {
  margin: 0 calc(50% - 50vw);
  padding: 28px max(24px, calc((100vw - 1180px) / 2));
  color: rgba(246, 248, 251, 0.66);
  background: #07090f;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 20px;
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(246, 248, 251, 0.78);
  font-size: 0.95rem;
}

.site-footer p {
  margin: 0;
  text-align: center;
  font-size: 0.94rem;
}

.legal-page {
  background: #f4f7fb;
  color: #111827;
}

.legal-page::before {
  background-image:
    linear-gradient(rgba(17, 24, 39, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 24, 39, 0.05) 1px, transparent 1px);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.35), transparent 70%);
}

.legal-page .page-shell {
  width: min(900px, calc(100% - 24px));
}

.legal-page .site-header {
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(17, 24, 39, 0.1);
}

.legal-page .brand,
.legal-page .site-nav a {
  color: #111827;
}

.legal-main {
  margin-top: 28px;
}

.legal-card {
  padding: 34px;
  color: #111827;
  background: #ffffff;
  border-color: rgba(17, 24, 39, 0.1);
}

.legal-card h1 {
  max-width: 100%;
  margin-bottom: 20px;
  font-size: 3.25rem;
  line-height: 1.02;
}

.legal-card h2 {
  margin-top: 28px;
  font-size: 1.28rem;
}

.legal-card p,
.legal-card li {
  color: #536071;
  line-height: 1.76;
}

.legal-card ul {
  padding-left: 20px;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float-in {
  from {
    opacity: 0;
    transform: translateY(26px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes hover-device {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }
  50% {
    transform: translateY(-14px) rotate(1deg);
  }
}

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

@keyframes scanline {
  0%,
  28% {
    transform: translateX(-120%);
  }
  62%,
  100% {
    transform: translateX(120%);
  }
}

@keyframes reveal-up {
  from {
    opacity: 0.2;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 76px;
  }

  h1 {
    font-size: 4.35rem;
  }

  .hero-visual {
    min-height: 550px;
    justify-content: flex-start;
  }

  .feature-grid,
  .world-grid,
  .pricing-layout {
    grid-template-columns: 1fr;
  }

  .section-heading h2 {
    font-size: 2.7rem;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 20px, 100%);
    padding-top: 10px;
  }

  .site-header {
    top: 10px;
  }

  .site-nav {
    display: none;
  }

  .hero {
    display: block;
    margin-top: 12px;
    padding: 64px max(16px, calc((100vw - 1180px) / 2)) 34px;
    background-position: 64% center;
  }

  h1 {
    font-size: 3.35rem;
  }

  .hero-text {
    font-size: 1rem;
  }

  .hero-visual {
    min-height: 500px;
    margin-top: 34px;
  }

  .phone-frame {
    width: min(360px, 100%);
  }

  .phone-screen {
    min-height: 548px;
  }

  .floating-card {
    width: 182px;
    padding: 13px;
  }

  .floating-card-left {
    bottom: 48px;
  }

  .floating-card-right {
    top: 48px;
    right: 0;
  }

  .features,
  .worlds,
  .pricing {
    padding-top: 62px;
    padding-bottom: 62px;
  }

  .section-heading h2,
  .legal-card h1 {
    font-size: 2.2rem;
  }

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

@media (max-width: 520px) {
  .site-header {
    justify-content: center;
  }

  .hero-copy {
    max-width: 358px;
  }

  h1 {
    font-size: 2.75rem;
  }

  .hero-actions,
  .hero-points {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 430px;
  }

  .phone-frame {
    transform-origin: left center;
  }

  .phone-screen {
    min-height: 500px;
    padding: 50px 14px 14px;
  }

  .scene-card h2 {
    font-size: 1.55rem;
  }

  .chat-bubble {
    max-width: 94%;
  }

  .mini-stats {
    grid-template-columns: 1fr;
  }

  .floating-card {
    display: none;
  }

  .legal-card {
    padding: 24px;
  }
}
