.mobile-hero {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 0;
  border-right: 0;
  background:
    radial-gradient(circle at 90% 14%, rgba(139, 92, 246, 0.2), transparent 42%),
    radial-gradient(circle at 8% 76%, rgba(37, 208, 208, 0.16), transparent 34%),
    linear-gradient(165deg, rgba(18, 24, 43, 0.7), rgba(24, 31, 56, 0.24));
  padding: 2.2rem 1.65rem 2.05rem;
  border-radius: var(--radius-section);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.04), 0 20px 38px rgba(5, 7, 15, 0.22);
}

.mobile-hero h1 {
  font-size: clamp(1.98rem, 4.33vw, 3.67rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 0.85rem;
  max-width: 18ch;
}

.mobile-hero .hero-lead {
  max-width: 66ch;
  font-size: 1.06rem;
  line-height: 1.72;
}

.text-cyan {
  color: var(--accent-cyan);
}

.text-warn {
  color: #f2c26f;
}

.text-emphasis {
  color: var(--text);
  font-weight: 600;
}

.mobile-demo {
  margin-top: 2.05rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.55rem 1rem 1.4rem;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-section);
  background: linear-gradient(165deg, rgba(18, 24, 43, 0.52), rgba(24, 31, 56, 0.2));
}

.mobile-demo::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.07;
  pointer-events: none;
}

.demo-head,
.demo-panels {
  position: relative;
  z-index: 1;
}

.demo-head {
  margin-bottom: 1.25rem;
}

.demo-head p {
  max-width: 76ch;
  font-size: 1rem;
}

.demo-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.phone-panel {
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(17, 23, 42, 0.9), rgba(21, 29, 52, 0.56));
  padding: 0.92rem;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.06), 0 22px 38px rgba(3, 5, 11, 0.32);
  border-radius: var(--radius-card);
}

.problem-view {
  border-color: rgba(255, 123, 123, 0.4);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.03), 0 18px 36px rgba(47, 17, 17, 0.28);
}

.optimized-view {
  border-color: rgba(37, 208, 208, 0.4);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.05), 0 18px 36px rgba(8, 30, 40, 0.28);
}

.phone-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.72rem;
}

.phone-top span {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.24);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.14);
}

.problem-view .phone-top span {
  background: rgba(255, 123, 123, 0.78);
  border-color: rgba(255, 123, 123, 0.9);
  box-shadow: 0 0 12px rgba(255, 123, 123, 0.42);
}

.optimized-view .phone-top span {
  background: rgba(37, 208, 208, 0.78);
  border-color: rgba(37, 208, 208, 0.9);
  box-shadow: 0 0 12px rgba(37, 208, 208, 0.4);
}

.phone-top p {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.phone-screen {
  width: min(100%, 300px);
  margin-inline: auto;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-media);
  background: linear-gradient(180deg, rgba(5, 9, 21, 0.97), rgba(3, 7, 17, 0.99));
  min-height: 560px;
  padding: 0.9rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.72rem;
}

.problem-view .phone-screen {
  border-color: rgba(255, 123, 123, 0.3);
}

.optimized-view .phone-screen {
  border-color: rgba(37, 208, 208, 0.3);
}

.ui-status-band {
  margin: 0;
  width: 100%;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.45rem 0.62rem;
  border-radius: 0.62rem;
  border: 1px solid transparent;
}

.ui-status-band.warn {
  color: #ffd1a0;
  border-color: rgba(255, 147, 96, 0.54);
  background: linear-gradient(90deg, rgba(255, 147, 96, 0.2), rgba(255, 107, 107, 0.16));
}

.ui-status-band.good {
  color: rgba(217, 248, 248, 0.96);
  border-color: rgba(37, 208, 208, 0.5);
  background: linear-gradient(90deg, rgba(37, 208, 208, 0.22), rgba(89, 146, 255, 0.16));
}

.ui-hero {
  width: 100%;
  border-radius: 0.86rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.76rem;
  position: relative;
}

.ui-hero-problem {
  background: linear-gradient(165deg, rgba(255, 123, 123, 0.12), rgba(255, 107, 107, 0.05));
}

.ui-hero-clean {
  background: linear-gradient(165deg, rgba(37, 208, 208, 0.16), rgba(37, 208, 208, 0.06));
  border-color: rgba(37, 208, 208, 0.24);
}

.ui-floating-chip {
  position: absolute;
  top: 0.46rem;
  right: 0.35rem;
  font-size: 0.67rem;
  line-height: 1;
  padding: 0.28rem 0.42rem;
  border-radius: 999px;
  color: #fbe0c0;
  border: 1px solid rgba(255, 147, 96, 0.52);
  background: rgba(255, 147, 96, 0.2);
  transform: rotate(-8deg);
}

.ui-row {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.65rem;
  background: rgba(172, 185, 211, 0.18);
}

.ui-row-title {
  height: 1.7rem;
  width: 84%;
}

.ui-row-sub {
  margin-top: 0.52rem;
  height: 1.12rem;
  width: 68%;
}

.ui-row.good {
  border-color: rgba(37, 208, 208, 0.32);
  background: rgba(37, 208, 208, 0.16);
}

.ui-button {
  width: 100%;
  height: 3rem;
  border-radius: var(--radius-control);
  border: 1px solid transparent;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 1.04rem;
  letter-spacing: 0.01em;
  padding: 0 1rem;
}

.ui-button.is-cut {
  width: 109%;
  margin-left: -3%;
  background: linear-gradient(90deg, #f2c26f, #ff7b7b);
  color: #2b1010;
  border-color: rgba(255, 147, 96, 0.5);
  clip-path: polygon(0 0, 84% 0, 96% 100%, 0 100%);
}

.ui-button.is-clean {
  background: linear-gradient(180deg, rgba(225, 255, 255, 0.94), rgba(191, 247, 247, 0.86));
  border-color: rgba(37, 208, 208, 0.4);
  color: #0f1b24;
  box-shadow: 0 0 0 1px rgba(37, 208, 208, 0.14), 0 12px 22px rgba(15, 74, 88, 0.2);
}

.ui-card-grid {
  width: 100%;
}

.ui-card-grid-chaotic {
  position: relative;
  height: 8rem;
}

.ui-card {
  position: absolute;
  border-radius: 0.78rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.ui-card-a {
  inset: 0.9rem 1.65rem 1.75rem 0;
  background: rgba(170, 179, 197, 0.18);
}

.ui-card-b {
  inset: 0 0.2rem 2.2rem 1.2rem;
  background: rgba(255, 123, 123, 0.2);
  border-color: rgba(255, 123, 123, 0.5);
}

.ui-card-c {
  inset: 3.9rem -1.1rem 0.2rem 2.4rem;
  background: rgba(255, 147, 96, 0.18);
  border-color: rgba(255, 147, 96, 0.44);
}

.ui-card-c.is-clipped {
  right: -14%;
}

.ui-overlap-note {
  position: absolute;
  right: 0;
  bottom: 0;
  font-size: 0.78rem;
  color: #ffbea7;
  letter-spacing: 0.01em;
}

.ui-jump-area {
  width: 100%;
}

.ui-jump-area p {
  font-size: 0.84rem;
  color: #ffd098;
  margin: 0 0 0.38rem;
}

.ui-jump-track {
  height: 0.58rem;
  border: 1px solid rgba(242, 194, 111, 0.5);
  background: rgba(242, 194, 111, 0.12);
  position: relative;
  border-radius: var(--radius-pill);
}

.ui-jump-dot {
  position: absolute;
  top: 50%;
  left: 36%;
  width: 0.54rem;
  height: 0.54rem;
  border-radius: 50%;
  transform: translate(0, -50%);
  background: #f2c26f;
  box-shadow: 0 0 0 0 rgba(242, 194, 111, 0.5);
  animation: pulseJump 1.6s ease-in-out infinite;
}

.ui-card-grid-clean {
  display: grid;
  gap: 0.58rem;
}

.ui-stable-card {
  height: 1.56rem;
  border-radius: 0.74rem;
  border: 1px solid rgba(37, 208, 208, 0.34);
  background: linear-gradient(180deg, rgba(37, 208, 208, 0.17), rgba(37, 208, 208, 0.12));
}

.ui-stability-note {
  max-width: 94%;
}

.ui-stability-note p {
  margin: 0;
  font-size: 0.84rem;
  color: rgba(215, 243, 247, 0.94);
}

.ui-form {
  width: 100%;
  display: grid;
  gap: 0.48rem;
}

.ui-input {
  height: 0.96rem;
  border-radius: 999px;
}

.ui-form-noisy .ui-input {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(170, 179, 197, 0.2);
}

.ui-form-noisy .ui-input.short {
  width: 72%;
}

.ui-form-noisy .ui-input.staggered {
  width: 88%;
  margin-left: 0.62rem;
}

.ui-form-noisy .ui-input.tiny {
  width: 46%;
}

.ui-form-noisy .ui-input.overrun {
  width: 112%;
  margin-left: -0.1rem;
  border-color: rgba(255, 147, 96, 0.52);
  background: rgba(255, 123, 123, 0.18);
}

.ui-form-clean .ui-input {
  border: 1px solid rgba(37, 208, 208, 0.28);
  background: rgba(37, 208, 208, 0.14);
}

.ui-form-clean .ui-input.lead {
  width: 92%;
}

.ui-form-clean .ui-input.action {
  width: 78%;
  background: linear-gradient(90deg, rgba(37, 208, 208, 0.22), rgba(37, 208, 208, 0.12));
}

.ui-phone-frame {
  margin-top: 0.9rem;
  border: 1px solid rgba(37, 208, 208, 0.2);
  border-radius: 0.85rem;
  padding: 0.7rem;
  background: rgba(37, 208, 208, 0.06);
}

.ui-list {
  display: grid;
  gap: 0.52rem;
}

.ui-list-item {
  height: 0.95rem;
  border-radius: 999px;
  background: rgba(37, 208, 208, 0.18);
}

.ui-list-item.short {
  width: 70%;
}

.ui-list-item.mid {
  width: 84%;
}

.ui-list-item.long {
  width: 100%;
}

.mobile-content {
  margin-top: 1.8rem;
  display: grid;
  grid-template-columns: 1.16fr 0.84fr;
  grid-template-areas:
    "main causes"
    "free free"
    "impact impact";
  gap: 1.08rem;
  align-items: start;
}

.content-main {
  grid-area: main;
  border: 1px solid var(--line);
  background: linear-gradient(162deg, rgba(18, 24, 43, 0.78), rgba(24, 31, 56, 0.42));
  padding: 1.12rem;
  border-radius: var(--radius-card);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.04);
}

.content-main p {
  margin-bottom: 0.64rem;
}

.content-cause-panel {
  grid-area: causes;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(120deg, rgba(242, 194, 111, 0.1), rgba(255, 123, 123, 0.07));
  padding: 0.95rem;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-card);
}

.content-free {
  grid-area: free;
  padding: 0.35rem 0 0.15rem;
  width: min(100%, 49rem);
  justify-self: start;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.content-free p {
  margin-bottom: 0.65rem;
}

.content-free p:last-child {
  margin-bottom: 0;
}

.content-impact {
  grid-area: impact;
  width: min(100%, 49rem);
  justify-self: start;
  padding: 0.9rem 1rem 0.95rem;
  border-left: 3px solid rgba(37, 208, 208, 0.7);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-right: 0;
  border-bottom: 0;
  border-radius: 0 16px 16px 0;
  background: linear-gradient(90deg, rgba(37, 208, 208, 0.08), rgba(24, 31, 56, 0.14));
  box-shadow: none;
}

.mobile-content ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.mobile-content li + li {
  margin-top: 0.34rem;
}

.mobile-highlight {
  margin-top: 1.7rem;
  max-width: 52rem;
  border: 1px solid rgba(37, 208, 208, 0.26);
  background: linear-gradient(160deg, rgba(18, 24, 43, 0.74), rgba(24, 31, 56, 0.46));
  position: relative;
  padding: 1.08rem 1.06rem;
  border-radius: 18px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.mobile-highlight::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8rem;
  bottom: 0.8rem;
  width: 3px;
  background: linear-gradient(180deg, var(--accent-cyan), var(--accent-violet));
  border-radius: 999px;
}

.mobile-highlight p {
  font-size: 1.01rem;
  max-width: 70ch;
}

@media (max-width: 980px) {
  .demo-panels,
  .mobile-content {
    grid-template-columns: 1fr;
  }

  .mobile-content {
    grid-template-areas:
      "main"
      "causes"
      "free"
      "impact";
  }

  .content-free,
  .content-impact {
    width: 100%;
  }
}

@media (max-width: 900px) {
  .mobile-hero {
    padding: 1.72rem 1.1rem 1.58rem;
  }

  .mobile-hero h1 {
    max-width: 100%;
  }

  .mobile-demo {
    padding: 1.18rem 0.85rem 1.08rem;
  }

  .demo-panels {
    gap: 0.95rem;
  }

  .phone-panel {
    padding: 0.72rem;
  }

  .content-main,
  .content-cause-panel {
    padding: 0.9rem;
  }

  .content-impact {
    padding: 0.85rem 0.9rem 0.9rem;
  }
}

@media (max-width: 640px) {
  .mobile-demo,
  .mobile-content,
  .mobile-highlight {
    margin-top: 1.55rem;
  }

  .phone-screen {
    min-height: 500px;
    padding: 0.72rem;
  }

  .ui-button {
    height: 2.6rem;
  }
}

@keyframes pulseJump {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(242, 194, 111, 0.42);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(242, 194, 111, 0);
  }
}
