body[data-page="app"] {
  background: #020304;
}

body[data-page="app"] main {
  overflow: clip;
}

.app-hero {
  position: relative;
  width: min(100%, 1600px);
  min-height: calc(100svh - 108px);
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(520px, 1.1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 88px);
  margin: 0 auto;
  padding: clamp(54px, 7vw, 108px) clamp(24px, 6vw, 96px);
  isolation: isolate;
}

.app-hero::before {
  position: absolute;
  inset: 8% -10% 0 38%;
  z-index: -2;
  background: radial-gradient(circle at 50% 42%, rgba(158, 215, 202, .09), transparent 52%);
  content: "";
}

.app-hero-copy {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: start;
  gap: 22px;
}

.app-hero-copy h1 {
  max-width: 11ch;
  margin: 0;
  font-size: clamp(3rem, 5.2vw, 5.8rem);
  line-height: .88;
  text-align: left;
}

.app-hero-copy .lead {
  max-width: 58ch;
  text-align: left;
}

.app-availability {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.app-availability span {
  border: 1px solid rgba(229, 235, 239, .17);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(11, 14, 18, .72);
  color: #aeb8bd;
  font-family: var(--font-mono);
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.app-device-stage {
  position: relative;
  min-height: clamp(590px, 48vw, 760px);
}

.app-sovereign-halo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(76%, 620px);
  aspect-ratio: 1;
  opacity: .15;
  filter: contrast(1.04) brightness(.72);
  transform: translate(-50%, -50%);
}

.app-sovereign-halo::before,
.app-sovereign-halo::after {
  position: absolute;
  inset: -8%;
  border: 1px solid rgba(229, 235, 239, .13);
  border-radius: 50%;
  content: "";
}

.app-sovereign-halo::after {
  inset: -18%;
  border-color: rgba(158, 215, 202, .08);
}

.app-sovereign-halo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.app-phone {
  position: absolute;
  z-index: 2;
  width: clamp(238px, 20vw, 308px);
  min-height: clamp(500px, 40vw, 620px);
  display: flex;
  flex-direction: column;
  gap: 13px;
  overflow: hidden;
  border: 1px solid rgba(229, 235, 239, .28);
  border-radius: 38px;
  padding: 20px 18px 72px;
  background: radial-gradient(circle at 14% 5%, rgba(245, 248, 249, .09), transparent 35%), linear-gradient(150deg, rgba(17, 22, 27, .98), rgba(3, 5, 7, .99));
  box-shadow: 0 40px 100px rgba(0, 0, 0, .58), inset 0 1px rgba(255, 255, 255, .14);
}

.app-phone-today {
  top: 6%;
  left: 5%;
  transform: rotate(-4deg);
}

.app-phone-elita {
  right: 3%;
  bottom: 2%;
  transform: rotate(4deg);
}

.app-phone-bar,
.app-phone-brand,
.app-phone-nav,
.app-signal-row,
.app-composer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.app-phone-bar {
  color: #9ca7ad;
  font-family: var(--font-mono);
  font-size: .55rem;
  letter-spacing: .08em;
}

.app-phone-brand {
  justify-content: flex-start;
  gap: 8px;
  color: #e8ecef;
  font-family: var(--font-display);
  font-size: .78rem;
  letter-spacing: .16em;
}

.app-mini-form {
  width: 30px;
  height: 30px;
}

.app-mini-form img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.app-screen-kicker {
  margin-top: 8px;
  color: #9ed7ca;
  font-family: var(--font-mono);
  font-size: .59rem;
  font-weight: 800;
  letter-spacing: .12em;
}

.app-phone h2 {
  margin: 0;
  font-size: clamp(1.25rem, 1.6vw, 1.75rem);
  line-height: 1;
  text-transform: none;
}

.app-screen-copy {
  color: #9ca7ad;
  font-size: .83rem;
  line-height: 1.4;
}

.app-state-orbit {
  width: 164px;
  height: 164px;
  display: grid;
  place-content: center;
  gap: 5px;
  align-self: center;
  border: 1px solid rgba(158, 215, 202, .33);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(158, 215, 202, .15), rgba(2, 3, 4, .2) 60%, transparent 61%), repeating-radial-gradient(circle, transparent 0 18px, rgba(229, 235, 239, .06) 19px 20px);
  box-shadow: inset 0 1px rgba(255, 255, 255, .13), 0 0 50px rgba(158, 215, 202, .08);
  text-align: center;
}

.app-state-orbit span {
  color: #e8ecef;
  font-family: var(--font-display);
  font-size: 1.4rem;
}

.app-state-orbit small {
  color: #9ed7ca;
  font-family: var(--font-mono);
  font-size: .52rem;
  text-transform: uppercase;
}

.app-signal-row {
  gap: 8px;
}

.app-signal-row span {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 6px;
  border: 1px solid rgba(229, 235, 239, .12);
  border-radius: 12px;
  padding: 10px;
  background: rgba(229, 235, 239, .025);
  color: #9ca7ad;
  font-size: .62rem;
}

.app-signal-row strong {
  color: #e8ecef;
  font-size: .72rem;
}

.app-phone > button {
  min-height: 44px;
  border: 1px solid rgba(229, 235, 239, .28);
  border-radius: 999px;
  background: #9ed7ca;
  color: #020304;
  font-family: var(--font-mono);
  font-size: .65rem;
  font-weight: 900;
  text-transform: uppercase;
}

.app-phone-nav {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  min-height: 48px;
  border: 1px solid rgba(229, 235, 239, .12);
  border-radius: 16px;
  padding: 0 12px;
  background: rgba(2, 3, 4, .88);
}

.app-phone-nav span {
  color: #7f8a91;
  font-family: var(--font-mono);
  font-size: .51rem;
  text-transform: uppercase;
}

.app-phone-nav .active {
  color: #e8ecef;
}

.app-message {
  display: grid;
  gap: 5px;
  border: 1px solid rgba(229, 235, 239, .12);
  border-radius: 14px;
  padding: 12px;
}

.app-message.member {
  margin-left: 24px;
  background: rgba(229, 235, 239, .06);
}

.app-message.elita {
  margin-right: 12px;
  border-color: rgba(158, 215, 202, .2);
  background: rgba(158, 215, 202, .055);
}

.app-message small {
  color: #9ed7ca;
  font-family: var(--font-mono);
  font-size: .51rem;
  font-weight: 900;
}

.app-message p {
  color: #dce3e7;
  font-size: .72rem;
  line-height: 1.4;
}

.app-composer {
  min-height: 48px;
  margin-top: auto;
  border: 1px solid rgba(229, 235, 239, .15);
  border-radius: 14px;
  padding: 0 12px;
  color: #778188;
  font-size: .68rem;
}

.app-composer b {
  width: 28px;
  height: 28px;
  display: grid;
  place-content: center;
  border-radius: 50%;
  background: #9ed7ca;
  color: #020304;
}

.app-section {
  width: min(100% - 40px, 1320px);
  margin: 0 auto;
  padding: clamp(72px, 9vw, 132px) 0;
}

.app-section-head {
  max-width: 850px;
  display: grid;
  gap: 18px;
  margin-bottom: clamp(36px, 5vw, 70px);
}

.app-section-head h2,
.elita-copy h2,
.app-future h2,
.app-final h2 {
  max-width: 13ch;
  font-size: clamp(2.2rem, 5vw, 5rem);
  line-height: .94;
}

.app-section-head > p:last-child,
.elita-copy > p,
.app-future > p {
  max-width: 65ch;
  color: #9ca7ad;
  font-size: clamp(1rem, 1.45vw, 1.2rem);
  line-height: 1.6;
}

.app-module-grid,
.app-access-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.app-module-grid article,
.app-access-grid article {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 14px;
  border: 1px solid rgba(229, 235, 239, .14);
  border-radius: 18px;
  padding: clamp(22px, 3vw, 34px);
  background: radial-gradient(circle at 12% 5%, rgba(244, 247, 248, .07), transparent 36%), linear-gradient(145deg, rgba(14, 18, 22, .88), rgba(3, 5, 7, .94));
  box-shadow: 0 24px 60px rgba(0, 0, 0, .24), inset 0 1px rgba(255, 255, 255, .07);
}

.app-module-grid article > span,
.app-access-grid article > span {
  color: #9ed7ca;
  font-family: var(--font-mono);
  font-size: .65rem;
  font-weight: 900;
  letter-spacing: .1em;
}

.app-module-grid h3,
.app-access-grid h3 {
  font-size: clamp(1rem, 1.4vw, 1.35rem);
}

.app-module-grid p,
.app-access-grid p {
  color: #9ca7ad;
  line-height: 1.52;
}

.app-flow-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.app-flow-rail li {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-rows: 46px 1fr;
  gap: 18px;
  padding-right: clamp(18px, 3vw, 38px);
}

.app-flow-rail li::before {
  position: absolute;
  top: 22px;
  right: 0;
  left: 46px;
  height: 1px;
  background: linear-gradient(90deg, rgba(158, 215, 202, .45), rgba(229, 235, 239, .08));
  content: "";
}

.app-flow-rail li:last-child::before {
  display: none;
}

.app-flow-rail > li > span {
  width: 46px;
  height: 46px;
  display: grid;
  place-content: center;
  border: 1px solid rgba(229, 235, 239, .25);
  border-radius: 50%;
  background: #07090c;
  color: #9ed7ca;
  font-family: var(--font-mono);
  font-size: .66rem;
  font-weight: 900;
}

.app-flow-rail li div {
  display: grid;
  align-content: start;
  gap: 10px;
}

.app-flow-rail p {
  color: #9ca7ad;
  line-height: 1.5;
}

.elita-guardian {
  display: grid;
  grid-template-columns: minmax(420px, .85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(42px, 7vw, 100px);
}

.elita-visual {
  position: relative;
  min-height: 590px;
}

.elita-core {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  width: 190px;
  height: 190px;
  display: grid;
  place-content: center;
  gap: 7px;
  border: 1px solid rgba(229, 235, 239, .32);
  border-radius: 50%;
  background: radial-gradient(circle at 27% 18%, rgba(244, 247, 248, .15), transparent 40%), #070a0d;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .45), inset 0 1px rgba(255, 255, 255, .12);
  color: #e8ecef;
  text-align: center;
  transform: translate(-50%, -50%);
}

.elita-core span {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: .12em;
}

.elita-core small {
  color: #9ed7ca;
  font-family: var(--font-mono);
  font-size: .5rem;
  letter-spacing: .09em;
}

.elita-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(229, 235, 239, .13);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.orbit-one { width: 290px; height: 290px; }
.orbit-two { width: 420px; height: 420px; border-style: dashed; }
.orbit-three { width: 560px; height: 560px; border-color: rgba(158, 215, 202, .11); }

.elita-node {
  position: absolute;
  z-index: 4;
  border: 1px solid rgba(229, 235, 239, .18);
  border-radius: 999px;
  padding: 9px 12px;
  background: rgba(7, 10, 13, .9);
  color: #cbd3d7;
  font-family: var(--font-mono);
  font-size: .61rem;
  font-weight: 800;
  text-transform: uppercase;
}

.node-research { top: 8%; left: 46%; }
.node-pathways { top: 35%; right: 0; }
.node-signals { bottom: 12%; left: 56%; }
.node-vault { top: 49%; left: 0; }

.elita-copy {
  display: grid;
  gap: 22px;
}

.elita-capabilities {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.elita-capabilities div {
  min-width: 0;
  display: grid;
  gap: 7px;
  border-top: 1px solid rgba(229, 235, 239, .15);
  padding: 16px 4px 10px 0;
}

.elita-capabilities strong {
  color: #e8ecef;
}

.elita-capabilities span {
  color: #9ca7ad;
  line-height: 1.45;
}

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

.app-access-grid article {
  min-height: 330px;
}

.app-access-grid .featured {
  border-color: rgba(158, 215, 202, .34);
  background: radial-gradient(circle at 14% 7%, rgba(158, 215, 202, .13), transparent 40%), linear-gradient(145deg, rgba(16, 22, 25, .96), rgba(3, 5, 7, .96));
}

.app-access-grid .tr4-button {
  align-self: end;
  justify-self: start;
  margin-top: auto;
}

.app-future {
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(360px, 1.1fr);
  gap: clamp(30px, 6vw, 88px);
  align-items: start;
}

.app-future-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.app-future-list span {
  border: 1px solid rgba(229, 235, 239, .16);
  border-radius: 999px;
  padding: 12px 15px;
  background: rgba(229, 235, 239, .035);
  color: #d7dee2;
}

.app-future > p {
  grid-column: 2;
}

.app-final {
  position: relative;
  min-height: 620px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 24px;
  overflow: hidden;
  padding: 80px 24px;
  text-align: center;
}

.app-final::before {
  position: absolute;
  inset: 12% 5% 0;
  z-index: -2;
  background: radial-gradient(circle, rgba(158, 215, 202, .1), transparent 62%);
  content: "";
}

.app-final img {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -1;
  width: min(620px, 75vw);
  opacity: .12;
  filter: brightness(.65);
  transform: translate(-50%, -50%);
}

.app-final h2 {
  max-width: 14ch;
}

@media (prefers-reduced-motion: no-preference) {
  .app-phone-today { animation: app-float-left 8s ease-in-out infinite; }
  .app-phone-elita { animation: app-float-right 9s ease-in-out infinite; }
  .orbit-two { animation: app-orbit 34s linear infinite; }
}

@keyframes app-float-left {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-10px) rotate(-3deg); }
}

@keyframes app-float-right {
  0%, 100% { transform: translateY(0) rotate(4deg); }
  50% { transform: translateY(10px) rotate(3deg); }
}

@keyframes app-orbit {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

body.motion-paused[data-page="app"] .app-phone,
body.motion-paused[data-page="app"] .elita-orbit {
  animation-play-state: paused !important;
}

@media (max-width: 1100px) {
  .app-hero { grid-template-columns: minmax(0, .86fr) minmax(460px, 1.14fr); }
  .app-phone { width: 250px; }
  .app-module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .elita-guardian { grid-template-columns: minmax(370px, .85fr) minmax(0, 1.15fr); }
  .orbit-three { width: 500px; height: 500px; }
}

@media (max-width: 860px) {
  body[data-page="app"] main { padding-top: 130px; }
  .app-hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 36px 14px 72px;
  }
  .app-hero-copy { justify-items: center; text-align: center; }
  .app-hero-copy h1 { max-width: 10ch; font-size: clamp(2.65rem, 13vw, 5rem); text-align: center; }
  .app-hero-copy .lead { max-width: 46ch; text-align: center; }
  .app-availability, .app-hero-copy .cta-row { justify-content: center; }
  .app-device-stage { min-height: 650px; }
  .app-phone { width: min(64vw, 270px); min-height: 520px; }
  .app-phone-today { top: 2%; left: 5%; }
  .app-phone-elita { right: 5%; bottom: 0; }
  .app-section { width: min(100% - 28px, 720px); padding: 72px 0; }
  .app-section-head { margin-bottom: 34px; }
  .app-flow-rail { grid-template-columns: 1fr; gap: 14px; }
  .app-flow-rail li { grid-template-columns: 46px minmax(0, 1fr); grid-template-rows: auto; padding: 0 0 18px; }
  .app-flow-rail li::before { top: 46px; bottom: 0; left: 22px; width: 1px; height: auto; background: linear-gradient(rgba(158, 215, 202, .4), rgba(229, 235, 239, .06)); }
  .elita-guardian { grid-template-columns: 1fr; gap: 30px; }
  .elita-visual { min-height: 520px; }
  .elita-copy { text-align: left; }
  .app-access-grid { grid-template-columns: 1fr; }
  .app-access-grid article { min-height: 260px; }
  .app-future { grid-template-columns: 1fr; gap: 28px; }
  .app-future > p { grid-column: auto; }
}

@media (max-width: 560px) {
  body[data-page="app"] main { padding-top: 112px; }
  .app-hero { padding-top: 24px; }
  .app-hero-copy { gap: 17px; }
  .app-hero-copy .cta-row { display: grid; width: 100%; grid-template-columns: 1fr; }
  .app-hero-copy .tr4-button { width: 100%; }
  .app-availability span { font-size: .58rem; }
  .app-device-stage { min-height: 610px; }
  .app-phone { width: 224px; min-height: 470px; border-radius: 30px; padding: 16px 14px 66px; }
  .app-phone-today { left: -6px; }
  .app-phone-elita { right: -6px; }
  .app-phone-elita .app-message { padding: 9px; }
  .app-state-orbit { width: 138px; height: 138px; }
  .app-module-grid { grid-template-columns: 1fr; }
  .elita-visual { min-height: 390px; transform: scale(.76); margin: -50px -60px; }
  .elita-capabilities { grid-template-columns: 1fr; }
  .app-section-head h2, .elita-copy h2, .app-future h2, .app-final h2 { font-size: clamp(2.1rem, 10.5vw, 3.3rem); }
  .app-final { min-height: 520px; }
}

@media (prefers-reduced-motion: reduce) {
  .app-phone,
  .elita-orbit {
    animation: none !important;
  }
}
