/* -- SCREENS -- */
.screen { display: none; height: 100vh; }
.screen.active { display: flex; }
/* INPUT SCREEN */
.input-screen {
  background:
    radial-gradient(circle at 18% 20%, rgba(129, 140, 248, 0.07), transparent 24%),
    radial-gradient(circle at 78% 24%, rgba(244, 114, 182, 0.06), transparent 20%),
    var(--void);
  position: relative;
  overflow: hidden;
}
#screen-input.active {
  animation: screenFadeIn 0.2s ease both;
}
@keyframes screenFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0);   }
}
.input-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--hero-glow);
  pointer-events: none;
  z-index: 0;
}
.input-screen::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--hero-veil), var(--hero-spot);
  pointer-events: none;
  z-index: 1;
}
.input-hero {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 52px 24px 92px 18vw;
}
.input-card {
  width: min(660px, 100%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  text-align: left;
}
.input-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--accent);
  position: relative;
}
.input-logo svg {
  width: 28px;
  height: 28px;
  display: block;
  margin-right: 0 !important;
}
.input-heading {
  font-size: clamp(35px, 4.6vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.05em;
  font-weight: 700;
  max-width: 10.5ch;
  text-align: left;
  position: relative;
}
.input-heading span { color: var(--accent); }
.input-sub {
  max-width: 520px;
  font-size: 16.5px;
  line-height: 1.62;
  color: var(--t2);
  text-align: left;
  position: relative;
}
.input-box {
  position: relative;
  width: min(520px, 100%);
  display: grid;
  grid-template-columns: 1fr auto;
}
.input-field {
  min-width: 0;
  height: 52px;
  background: color-mix(in srgb, var(--raised) 84%, transparent);
  border: 1px solid var(--mid);
  border-right: none;
  border-radius: 10px 0 0 10px;
  padding: 0 20px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 16.5px;
  color: var(--t1);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.input-field::placeholder { color: var(--t3); }
.input-field:focus { border-color: var(--accent); background: color-mix(in srgb, var(--raised) 92%, transparent); }
.submit-btn {
  min-width: 146px;
  height: 52px;
  padding: 0 28px;
  background: var(--accent);
  color: var(--void);
  border: none;
  border-radius: 0 10px 10px 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.15s;
}
.submit-btn:hover { opacity: 0.92; }
.submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.input-examples {
  display: flex;
  gap: 10px;
  position: relative;
  flex-wrap: wrap;
  justify-content: flex-start;
}
.example-chip {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--dim);
  background: color-mix(in srgb, var(--raised) 72%, transparent);
  color: var(--t2);
  cursor: pointer;
  transition: all 0.15s;
}
.example-chip:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-g); }
.input-error {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--error);
  position: relative;
  min-height: 18px;
  text-align: left;
  width: min(520px, 100%);
}
.input-mobile-note {
  display: none;
  width: min(520px, 100%);
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--panel) 96%, transparent), color-mix(in srgb, var(--panel-2) 98%, transparent)),
    color-mix(in srgb, var(--void) 92%, transparent);
  box-shadow: 0 18px 40px color-mix(in srgb, var(--void) 26%, transparent);
}
.input-mobile-note-kicker {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.input-mobile-note-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.input-mobile-note-copy {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}
.version-tag {
  position: absolute;
  bottom: 18px;
  right: 22px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--t3);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  pointer-events: none;
  z-index: 4;
}
.version-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.72;
}
.attribution-tag {
  position: absolute;
  bottom: 18px;
  left: 22px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: var(--t3);
  opacity: 0.7;
  pointer-events: none;
  z-index: 4;
}
#dna-webgl {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 0;
  opacity: 0.985;
}
.input-screen > :not(#dna-webgl):not(.version-tag):not(.attribution-tag):not(.theme-toggle) {
  position: relative;
  z-index: 2;
}

@media (max-width: 900px) {
  .input-hero {
    justify-content: center;
    padding-inline: 22px;
  }

  .input-card {
    align-items: center;
    text-align: center;
  }

  .input-heading,
  .input-sub,
  .input-error {
    text-align: center;
  }

  .input-examples {
    justify-content: center;
  }

  .input-screen::after {
    background: linear-gradient(180deg, var(--void) 0%, color-mix(in srgb, var(--void) 92%, transparent) 34%, color-mix(in srgb, var(--void) 48%, transparent) 62%, transparent 100%);
  }
}

@media (max-width: 720px) {
  .input-hero {
    padding-inline: 18px;
    padding-bottom: 102px;
  }

  .input-card {
    gap: 24px;
  }

  .input-box {
    grid-template-columns: 1fr;
  }

  .submit-btn {
    min-width: 0;
    height: 52px;
    border-radius: 0 0 10px 10px;
  }

  .input-field {
    border-right: 1px solid var(--mid);
    border-radius: 10px 10px 0 0;
  }

  .input-mobile-note {
    display: block;
    text-align: center;
    margin-top: 8px;
  }

  .input-box,
  .input-examples,
  .input-error,
  .input-sub {
    display: none;
  }

  .attribution-tag,
  .version-tag {
    left: 18px;
    right: auto;
  }

  .version-tag {
    bottom: 38px;
  }
}

