:root {
  --bg: #06020b;
  --bg-elevated: rgba(13, 10, 20, 0.84);
  --bg-panel: rgba(14, 10, 24, 0.9);
  --bg-panel-soft: rgba(20, 14, 32, 0.78);
  --surface: rgba(255, 255, 255, 0.03);
  --surface-strong: rgba(255, 255, 255, 0.06);
  --line: rgba(174, 94, 255, 0.18);
  --line-strong: rgba(202, 140, 255, 0.34);
  --text: #f8f3ff;
  --muted: #a79ab7;
  --muted-strong: #cbc1d7;
  --purple: #7b1fff;
  --purple-bright: #b22cff;
  --magenta: #ee3dff;
  --teal: #26ffca;
  --gold: #ffcb70;
  --shadow: 0 32px 120px rgba(0, 0, 0, 0.5);
  --purple-glow: 0 0 0 1px rgba(162, 76, 255, 0.35), 0 0 28px rgba(145, 54, 255, 0.36);
  --teal-glow: 0 0 0 1px rgba(38, 255, 202, 0.22), 0 0 24px rgba(38, 255, 202, 0.18);
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 20px;
  --radius-sm: 16px;
  --font-body: "Sora", "Avenir Next", sans-serif;
  --font-script: "Caveat", cursive;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  height: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  font-family: var(--font-body);
  background:
    radial-gradient(circle at 18% 10%, rgba(122, 31, 255, 0.18), transparent 24%),
    radial-gradient(circle at 82% 14%, rgba(187, 56, 255, 0.16), transparent 24%),
    linear-gradient(180deg, #020105 0%, #06020b 42%, #05010a 100%);
}

body:not(.gate-page):has(.status-card.empty):has(#result-card.hidden) {
  overflow-y: hidden;
}

a,
button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.ambient {
  position: fixed;
  inset: auto;
  border-radius: 999px;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}

.ambient-left {
  top: 56px;
  left: -120px;
  width: 320px;
  height: 320px;
  background: rgba(114, 33, 255, 0.28);
}

.ambient-right {
  top: 120px;
  right: -120px;
  width: 380px;
  height: 380px;
  background: rgba(183, 58, 255, 0.32);
}

.ambient-bottom {
  bottom: -120px;
  left: 20%;
  width: 540px;
  height: 240px;
  background: rgba(39, 16, 92, 0.56);
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1160px, calc(100% - clamp(24px, 3vw, 44px)));
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: clamp(6px, 0.8vw, 8px) 0 8px;
}

.topbar,
.tool-surface,
.trust-strip,
.result-card {
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 14px;
  border-radius: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.brand-ring {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 4px solid var(--purple-bright);
  box-shadow: 0 0 18px rgba(162, 76, 255, 0.36);
}

.brand-word {
  font-size: 1.03rem;
}

.topnav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 24px);
}

.topnav a,
.footer-group a {
  color: var(--muted);
  text-decoration: none;
  transition: color 180ms ease;
}

.topnav a:hover,
.footer-group a:hover,
.nav-button:hover {
  color: var(--text);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 98px;
  padding: 9px 14px;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

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

.nav-button-ghost {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
}

.nav-button-primary {
  border: 1px solid rgba(200, 128, 255, 0.4);
  background: linear-gradient(90deg, #4b0dff 0%, #8b1cff 52%, #b72cff 100%);
  color: white;
  box-shadow: 0 16px 34px rgba(107, 27, 255, 0.28);
}

.app-stage {
  min-height: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(228px, 284px);
  gap: 10px;
  align-items: stretch;
  flex: 1 1 auto;
  min-height: 0;
}

.hero-stack {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 8px;
}

.hero-copy {
  padding: 0 6px;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(177, 94, 255, 0.26);
  background: rgba(105, 20, 181, 0.22);
  color: #f7eaff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.eyebrow-bolt {
  color: #ff8cff;
}

h1,
h2,
h3,
h4,
p,
blockquote {
  margin-top: 0;
}

h1 {
  margin-bottom: 10px;
  font-size: clamp(2.05rem, 3.85vw, 3.7rem);
  line-height: 0.9;
  letter-spacing: -0.07em;
}

.hero-line {
  display: block;
}

.hero-line-solid {
  color: #fffaf4;
}

.hero-line-glow {
  background: linear-gradient(90deg, #ff5dfb 0%, #a037ff 38%, #7e2cff 62%, #d73eff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 34px rgba(168, 52, 255, 0.26);
}

.hero-question {
  margin-bottom: 4px;
  color: var(--muted-strong);
  font-size: clamp(0.88rem, 0.92vw, 1rem);
}

.hero-support {
  max-width: 560px;
  margin-bottom: 6px;
  color: #e6dff0;
  font-size: clamp(0.82rem, 0.86vw, 0.94rem);
  line-height: 1.28;
}

.hero-script {
  display: inline-block;
  margin-bottom: 0;
  color: #ff45f5;
  font-size: clamp(1.08rem, 1.28vw, 1.34rem);
  font-family: var(--font-script);
  line-height: 1;
  text-shadow: 0 0 20px rgba(255, 69, 245, 0.18);
}

.phone-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 0;
  padding: 4px 0;
}

.phone-halo {
  position: absolute;
  inset: 24px 12px 34px;
  border-radius: 42px;
  background: radial-gradient(circle, rgba(123, 31, 255, 0.36) 0%, rgba(123, 31, 255, 0.18) 42%, transparent 76%);
  filter: blur(16px);
}

.phone-shell {
  position: relative;
  width: min(clamp(214px, 17vw, 262px), 100%);
}

.phone-frame {
  position: relative;
  padding: 10px 8px 10px;
  border-radius: 30px;
  border: 1px solid rgba(182, 112, 255, 0.44);
  background: linear-gradient(180deg, rgba(17, 10, 31, 0.98), rgba(9, 5, 18, 0.98));
  box-shadow:
    0 0 0 3px rgba(120, 26, 255, 0.16),
    0 0 48px rgba(135, 36, 255, 0.42),
    0 28px 90px rgba(0, 0, 0, 0.5);
}

.phone-screen {
  position: relative;
  overflow: hidden;
  aspect-ratio: 0.58;
  border-radius: 22px;
  background: #06020d;
}

.preview-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(21, 12, 30, 0.72);
  color: white;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.phone-poster,
.phone-video {
  width: 100%;
  height: 100%;
}

.phone-poster {
  position: relative;
}

.phone-poster img,
.phone-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 2, 8, 0.1), rgba(4, 2, 8, 0.52) 65%, rgba(4, 2, 8, 0.74) 100%);
}

.phone-copy {
  position: absolute;
  inset: auto 14px 14px;
  z-index: 2;
}

.phone-title {
  margin-bottom: 8px;
  font-size: clamp(1.08rem, 1.3vw, 1.34rem);
  font-weight: 800;
  letter-spacing: -0.05em;
}

.phone-player {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.72rem;
}

.phone-play {
  font-size: 1rem;
}

.phone-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding-top: 8px;
}

.phone-tags span {
  padding: 5px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted-strong);
  font-size: 0.68rem;
}

.hidden,
.phone-video.hidden,
.phone-poster.hidden,
.result-card.hidden {
  display: none;
}

.tool-surface {
  position: relative;
  min-height: 0;
  padding: 14px;
  border-radius: 28px;
}

.tool-surface::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(143, 56, 255, 0.16);
  pointer-events: none;
}

.tool-form {
  display: grid;
  gap: 10px;
}

.hidden-controls {
  display: none;
}

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

.upload-card {
  padding: 14px 14px 12px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(17, 9, 30, 0.96), rgba(10, 7, 18, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.upload-card-visual {
  box-shadow: var(--purple-glow);
}

.upload-card-audio {
  box-shadow: var(--teal-glow);
}

.card-top {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.card-top h2,
.section-heading h2 {
  margin-bottom: 4px;
  font-size: clamp(1rem, 1.05vw, 1.12rem);
  letter-spacing: -0.04em;
}

.card-top p:last-child,
.section-heading p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.card-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 13px;
  font-size: 1.1rem;
  font-weight: 700;
}

.card-mark-visual {
  background: rgba(122, 31, 255, 0.18);
  color: #c17eff;
}

.card-mark-audio {
  background: rgba(38, 255, 202, 0.1);
  color: var(--teal);
}

.step-tag {
  display: inline-flex;
  margin-bottom: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #f3eafd;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.drop-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: clamp(88px, 10vh, 104px);
  margin-bottom: 8px;
  padding: 12px;
  border-radius: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.02);
  text-align: center;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

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

.drop-zone-visual:hover {
  border-color: rgba(184, 118, 255, 0.54);
  background: rgba(123, 31, 255, 0.08);
}

.drop-zone-audio:hover {
  border-color: rgba(38, 255, 202, 0.42);
  background: rgba(38, 255, 202, 0.06);
}

.drop-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.drop-zone strong {
  font-size: 0.88rem;
  letter-spacing: 0.04em;
}

.drop-zone span:last-child {
  color: var(--muted);
  font-size: 0.76rem;
}

.thumb-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 8px;
}

.thumb {
  position: relative;
  overflow: hidden;
  min-height: 58px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(9, 5, 16, 0.1), rgba(9, 5, 16, 0.45)),
    url("./public/phone-preview.svg") center / cover no-repeat;
}

.thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.6) 100%);
}

.thumb span {
  position: absolute;
  left: 7px;
  bottom: 7px;
  z-index: 1;
  padding: 4px 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.66);
  font-size: 0.66rem;
  font-weight: 700;
}

.thumb-two {
  filter: hue-rotate(-16deg) saturate(1.15);
}

.thumb-three {
  filter: hue-rotate(22deg) saturate(1.08);
}

.thumb-four {
  filter: hue-rotate(48deg) saturate(0.86);
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.76rem;
}

.inline-action,
.audio-pill-clear {
  border: 0;
  background: transparent;
  color: var(--muted-strong);
}

.audio-link-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  padding: 0 12px;
  min-height: 44px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.audio-link-row input,
.prompt-shell input {
  flex: 1;
  border: 0;
  outline: none;
  color: var(--text);
  background: transparent;
}

.audio-link-row input::placeholder,
.prompt-shell input::placeholder {
  color: #857997;
}

.audio-link-icon {
  color: var(--muted);
}

.audio-pill {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.audio-pill-visual {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(255, 70, 245, 0.68), rgba(93, 29, 255, 0.9)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent);
  position: relative;
}

.audio-pill-visual::before {
  content: "";
  position: absolute;
  inset: 10px 9px;
  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.5) 0 10%,
      transparent 10% 20%,
      rgba(255, 255, 255, 0.3) 20% 30%,
      transparent 30% 40%,
      rgba(255, 255, 255, 0.7) 40% 50%,
      transparent 50% 60%,
      rgba(255, 255, 255, 0.35) 60% 70%,
      transparent 70% 80%,
      rgba(255, 255, 255, 0.55) 80% 90%,
      transparent 90% 100%
    );
  border-radius: 8px;
}

.audio-pill-copy strong,
.result-copy h3 {
  display: block;
  margin-bottom: 4px;
  font-size: 0.88rem;
}

.audio-pill-copy span,
.result-copy p:last-child {
  color: var(--muted);
}

.vibe-section {
  display: grid;
  gap: 8px;
}

.section-heading {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.vibe-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.vibe-chip {
  position: relative;
  display: grid;
  gap: 6px;
  justify-items: center;
  min-height: 68px;
  padding: 10px 6px 8px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 6, 14, 0.92);
  color: var(--text);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.vibe-chip:hover,
.vibe-chip.is-active {
  transform: translateY(-2px);
  border-color: rgba(188, 112, 255, 0.48);
  box-shadow: 0 18px 36px rgba(85, 24, 155, 0.18);
}

.vibe-chip-scenic {
  justify-items: stretch;
  overflow: hidden;
  padding: 0;
}

.vibe-chip-media {
  display: block;
  min-height: 38px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.34)),
    url("./public/phone-preview.svg") center 40% / cover no-repeat;
}

.vibe-chip-badge {
  position: absolute;
  top: 7px;
  right: 7px;
  padding: 4px 7px;
  border-radius: 999px;
  background: #7430ff;
  color: white;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.vibe-chip-scenic .vibe-chip-label {
  align-self: center;
  padding: 0 10px 10px;
}

.vibe-chip-icon {
  color: var(--gold);
  font-size: 1.1rem;
}

.vibe-chip-label {
  font-weight: 600;
  font-size: 0.76rem;
}

.prompt-shell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 10, 18, 0.86);
}

.prompt-icon {
  color: #f7d6ff;
}

.prompt-count {
  color: #8f839e;
  font-size: 0.74rem;
}

.cta-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 12px 16px;
  border: 1px solid rgba(213, 134, 255, 0.4);
  border-radius: 18px;
  background: linear-gradient(90deg, #4a12ff 0%, #7f23ff 38%, #a62cff 65%, #c32dff 100%);
  color: white;
  box-shadow: 0 26px 46px rgba(104, 19, 255, 0.34);
  transition: transform 180ms ease, opacity 180ms ease, filter 180ms ease;
}

.cta-button:hover:not(:disabled) {
  transform: translateY(-2px);
}

.cta-button:disabled {
  opacity: 0.88;
  filter: saturate(0.9);
}

.cta-button.is-loading .cta-flash {
  animation: pulse 1s ease-in-out infinite;
}

.cta-main {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.cta-flash {
  font-size: 1rem;
}

.cta-text {
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cta-meta {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.92);
}

.status-card,
.result-card {
  border-radius: 18px;
  padding: 12px 14px;
}

.status-card {
  min-height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 6, 14, 0.72);
}

.status-card.empty {
  display: none;
}

.status-shell {
  display: grid;
  gap: 8px;
}

.status-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.status-chip.queued {
  background: rgba(176, 106, 255, 0.16);
  color: #d6a5ff;
}

.status-chip.running {
  background: rgba(38, 255, 202, 0.14);
  color: var(--teal);
}

.status-chip.complete {
  background: rgba(121, 255, 146, 0.14);
  color: #8effa7;
}

.status-chip.failed {
  background: rgba(255, 108, 180, 0.14);
  color: #ff8ec3;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.status-grid div {
  display: grid;
  gap: 6px;
}

.status-grid span {
  color: var(--muted);
  font-size: 0.72rem;
}

.status-grid strong {
  font-size: 0.84rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.trust-strip {
  display: none;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 20px;
}

.trust-review {
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatar-stack {
  display: flex;
  padding-right: 8px;
}

.avatar-stack span {
  width: 28px;
  height: 28px;
  margin-right: -8px;
  border-radius: 50%;
  border: 2px solid #0a0612;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.28), transparent 35%),
    linear-gradient(135deg, #3e1fff, #ff7be7);
}

.avatar-stack span:nth-child(2) {
  background: linear-gradient(135deg, #ffad40, #ff4adf);
}

.avatar-stack span:nth-child(3) {
  background: linear-gradient(135deg, #12b3ff, #8a3dff);
}

.avatar-stack span:nth-child(4) {
  background: linear-gradient(135deg, #5cffd2, #2d54ff);
}

.trust-copy p,
.trust-quote {
  margin-bottom: 0;
}

.trust-stars {
  color: var(--gold);
  letter-spacing: 0.14em;
  margin-bottom: 2px;
  font-size: 0.82rem;
}

.trust-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.trust-stats div {
  display: grid;
  gap: 3px;
}

.trust-stats strong {
  color: #d23eff;
  font-size: 1.04rem;
  line-height: 1;
  letter-spacing: -0.04em;
}

.trust-stats span,
.footer-brand p,
.site-footer p {
  color: var(--muted);
  font-size: 0.72rem;
}

.trust-quote {
  max-width: 240px;
  color: #ece5f3;
  font-size: 0.72rem;
  line-height: 1.45;
}

.trust-quote cite {
  display: block;
  margin-top: 4px;
  color: #d33bff;
  font-style: normal;
  font-weight: 600;
}

.result-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 0;
}

.result-actions {
  display: flex;
  gap: 12px;
}

.result-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 138px;
  padding: 13px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.04);
}

.site-footer {
  display: none;
}

.footer-brand {
  padding-right: 24px;
}

.footer-group {
  display: grid;
  gap: 10px;
}

.footer-group h4 {
  margin-bottom: 2px;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f2ebfa;
}

.gate-page {
  display: grid;
  place-items: center;
}

.gate-shell {
  position: relative;
  z-index: 1;
  width: min(100%, calc(100% - 28px));
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 0;
}

.gate-card {
  width: min(520px, 100%);
  padding: 34px 30px 30px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(18, 12, 28, 0.95), rgba(9, 5, 16, 0.96));
  box-shadow:
    0 0 0 1px rgba(166, 80, 255, 0.18),
    0 0 44px rgba(119, 23, 255, 0.18),
    0 32px 120px rgba(0, 0, 0, 0.56);
  text-align: center;
}

.gate-brand {
  margin-bottom: 26px;
}

.gate-eyebrow {
  justify-content: center;
  margin-bottom: 18px;
}

.gate-title {
  margin-bottom: 12px;
  font-size: clamp(2.8rem, 8vw, 4rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.gate-subtitle {
  margin-bottom: 26px;
  color: var(--muted-strong);
  font-size: 1.08rem;
}

.gate-form {
  display: grid;
  gap: 14px;
}

.gate-input-shell {
  display: block;
  padding: 0 18px;
  min-height: 64px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.gate-input-shell input {
  width: 100%;
  min-height: 64px;
  border: 0;
  outline: none;
  color: var(--text);
  background: transparent;
}

.gate-input-shell input::placeholder {
  color: #8b7fa1;
}

.gate-error {
  margin-bottom: 0;
  color: #ff8ec3;
  font-size: 0.92rem;
}

.gate-button {
  min-height: 60px;
  border: 1px solid rgba(213, 134, 255, 0.42);
  border-radius: 18px;
  background: linear-gradient(90deg, #4a12ff 0%, #8522ff 56%, #b72cff 100%);
  color: white;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 22px 42px rgba(104, 19, 255, 0.26);
}

.gate-button:disabled {
  opacity: 0.82;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.12);
    opacity: 0.7;
  }
}

@media (max-width: 1140px) {
  body {
    height: auto;
    overflow-y: auto;
  }

  .page-shell {
    min-height: auto;
    padding-bottom: 24px;
  }

  .app-stage {
    flex: none;
  }

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

  .hero-stack {
    grid-template-rows: auto auto;
  }

  .hero-copy {
    padding-right: 0;
  }

  .phone-stage {
    min-height: auto;
    padding: 8px 0 4px;
  }

  .phone-shell {
    width: min(320px, 100%);
  }

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

  .trust-strip {
    display: grid;
    grid-template-columns: 1fr;
  }

  .trust-quote {
    max-width: none;
  }

  .site-footer {
    display: grid;
    grid-template-columns: 1fr;
  }

  .status-card.empty {
    display: grid;
    place-items: center;
    color: var(--muted);
  }
}

@media (min-width: 1141px) and (min-height: 980px) {
  .trust-strip {
    display: grid;
  }
}

@media (max-width: 900px) {
  .topbar,
  .topnav,
  .top-actions,
  .section-heading,
  .result-card,
  .cta-button,
  .status-top {
    flex-wrap: wrap;
  }

  .topbar {
    justify-content: center;
  }

  .cta-button {
    justify-content: center;
  }

  .cta-meta {
    width: 100%;
    text-align: center;
  }

  .tool-grid,
  .status-grid,
  .trust-stats {
    grid-template-columns: 1fr;
  }

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

  .thumb-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100%, calc(100% - 22px));
    padding-top: 14px;
  }

  .topnav {
    gap: 16px;
  }

  h1 {
    font-size: clamp(2.8rem, 14vw, 4.3rem);
  }

  .hero-question {
    font-size: 1.08rem;
  }

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

  .hero-script {
    font-size: 1.7rem;
  }

  .tool-surface,
  .upload-card,
  .trust-strip,
  .result-card {
    padding: 16px;
  }

  .card-top h2,
  .section-heading h2 {
    font-size: 1.3rem;
  }

  .phone-shell {
    width: min(320px, 100%);
  }
}
