:root {
  --bg: #050812;
  --panel: #0d131f;
  --panel-hover: #111827;
  --panel-soft: rgba(255, 255, 255, 0.03);
  --line: rgba(255, 255, 255, 0.08);
  --line-soft: rgba(255, 255, 255, 0.04);
  --text: #ffffff;
  --muted: #9ca3af;
  --muted-2: #64748b;
  --pink: #ec4899;
  --purple: #8b5cf6;
  --cyan: #06b6d4;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

body::before {
  background:
    radial-gradient(circle at 12% 18%, rgba(236, 72, 153, 0.09) 0%, transparent 36%),
    radial-gradient(circle at 82% 58%, rgba(6, 182, 212, 0.07) 0%, transparent 34%);
  animation: bg-float 18s ease-in-out infinite alternate;
}

body::after {
  background:
    linear-gradient(125deg, transparent 44%, rgba(139, 92, 246, 0.05) 50%, transparent 56%);
  opacity: 0.85;
  animation: bg-sweep 22s linear infinite;
}

.bg-shape {
  position: fixed;
  border-radius: 999px;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.12;
}

.bg-shape-a {
  top: -10%;
  left: -10%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.3) 0%, transparent 60%);
}

.bg-shape-b {
  top: 20%;
  right: -10%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.22) 0%, transparent 60%);
}

.shell {
  position: relative;
  z-index: 1;
}

.shell-home {
  width: min(1100px, calc(100vw - 48px));
  margin: 0 auto;
}

.shell-centered {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 0;
}

.shell-centered > .card {
  width: min(760px, calc(100vw - 32px));
}

.shell-broadcast {
  width: 100vw;
  min-height: 100vh;
  padding: clamp(16px, 3vw, 40px);
}

a {
  color: #cbd5e1;
  text-decoration: none;
}

a:hover {
  color: var(--text);
}

.hidden {
  display: none;
}

.stack {
  display: grid;
  gap: 10px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.muted {
  color: var(--muted);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0 0 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  color: #d8d4ff;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  font-weight: 700;
}

.card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(13, 19, 31, 0.96), rgba(13, 19, 31, 0.86));
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  padding: clamp(20px, 3vw, 32px);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.34);
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.03), transparent 70%);
  border-radius: 0 20px 0 100%;
  pointer-events: none;
}

.brand-logo {
  display: block;
  max-width: 100%;
  height: auto;
}

.brand-logo-page {
  width: clamp(150px, 28vw, 220px);
  margin-bottom: 14px;
}

.brand-logo-broadcast {
  width: 148px;
  margin: 0;
}

h1 {
  margin: 0 0 14px;
  font-size: clamp(40px, 7vw, 64px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

h2 {
  margin: 0 0 12px;
}

h3 {
  margin: 0 0 12px;
}

label {
  color: #e5e7eb;
  font-size: 14px;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 14px 16px;
  font: inherit;
}

input::placeholder,
textarea::placeholder {
  color: var(--muted-2);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: rgba(6, 182, 212, 0.35);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.08);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

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

.btn:disabled {
  opacity: 0.72;
  cursor: default;
  transform: none;
}

.btn-primary {
  background: linear-gradient(to right, var(--pink), var(--purple), var(--cyan));
  color: #fff;
  box-shadow: 0 10px 24px rgba(139, 92, 246, 0.25);
}

.microcopy,
.status-line {
  min-height: 22px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.form-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 13px;
}

.mini-panel {
  margin: 12px 0;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}

.submission-list {
  display: grid;
  gap: 10px;
  max-height: 58vh;
  overflow: auto;
}

.submission-item {
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  padding: 14px;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.submission-item:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
}

.submission-item.is-active {
  border-color: rgba(6, 182, 212, 0.45);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.08);
}

.submission-copy {
  display: block;
}

.submission-meta {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.empty-state {
  padding: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
}

.broadcast-stage {
  min-height: calc(100vh - (2 * clamp(16px, 3vw, 40px)));
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(circle at 20% 15%, rgba(236, 72, 153, 0.1), transparent 32%),
    radial-gradient(circle at 80% 78%, rgba(6, 182, 212, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(13, 19, 31, 0.96), rgba(5, 8, 18, 0.98));
  background-size: 120% 120%, 120% 120%, 100% 100%;
  padding: clamp(20px, 4vw, 36px);
  display: grid;
  grid-template-rows: 60px minmax(0, 1fr);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.36);
  animation: broadcast-drift 14s ease-in-out infinite alternate;
}

.broadcast-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  min-height: 60px;
}

.broadcast-badge {
  margin: 0;
}

.broadcast-title {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.broadcast-main {
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.broadcast-text {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(92%, 1400px);
  max-height: 100%;
  text-align: center;
  font-size: 88px;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.05em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.reveal {
  animation: reveal-in 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.landing-page {
  position: relative;
}

.landing-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.landing-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 32px 0;
}

.landing-logo {
  display: block;
  width: min(220px, 42vw);
  max-width: 100%;
  height: auto;
}

.landing-nav {
  display: flex;
  gap: 32px;
}

.landing-nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.landing-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 80px 0 100px;
}

.landing-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: #e2e8f0;
  margin-bottom: 32px;
}

.landing-badge svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: var(--cyan);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.landing-title {
  margin: 0 0 24px;
  font-size: clamp(48px, 8vw, 72px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -2px;
}

.landing-gradient {
  background: linear-gradient(to right, var(--pink), var(--purple), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.landing-subtitle {
  max-width: 540px;
  margin: 0 auto 48px;
  color: var(--muted);
  font-size: 18px;
}

.landing-form {
  display: flex;
  width: 100%;
  max-width: 460px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.landing-form:focus-within {
  border-color: rgba(6, 182, 212, 0.3);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.1);
}

.landing-form input {
  flex: 1;
  min-width: 0;
  padding: 0 24px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 15px;
  outline: none;
}

.landing-form input::placeholder {
  color: var(--muted-2);
}

.landing-btn-primary {
  border: 0;
  padding: 12px 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.landing-btn-primary:hover {
  background: rgba(255, 255, 255, 0.12);
}

.landing-status {
  min-height: 22px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.landing-upload {
  display: grid;
  gap: 8px;
  width: 100%;
  max-width: 460px;
  margin-top: 14px;
  text-align: left;
}

.landing-upload-label {
  color: #e5e7eb;
  font-size: 13px;
  font-weight: 600;
}

.landing-upload input[type="file"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
}

.landing-upload-name {
  color: var(--muted);
  font-size: 13px;
}

.landing-results {
  width: 100%;
  max-width: 680px;
  margin-top: 18px;
  padding: 20px;
  border-radius: 20px;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  text-align: left;
}

.landing-results-title {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 600;
}

.landing-result-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: start;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.landing-result-row:first-of-type {
  border-top: 0;
}

.landing-link-label {
  margin: 0 0 6px;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.landing-copy-btn {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
}

.landing-results-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.landing-section {
  padding: 60px 0;
}

.landing-section-title {
  margin: 0 0 48px;
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.landing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.landing-card {
  position: relative;
  overflow: hidden;
  padding: 32px;
  border-radius: 20px;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  transition: transform 0.3s ease, background 0.3s ease;
}

.landing-card:hover {
  transform: translateY(-4px);
  background: var(--panel-hover);
}

.landing-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.03), transparent 70%);
  border-radius: 0 20px 0 100%;
  pointer-events: none;
}

.landing-card-icon-bg {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 64px;
  height: 64px;
  fill: none;
  stroke: rgba(255, 255, 255, 0.03);
  stroke-width: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.landing-card-number {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
}

.landing-card-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  margin-bottom: 24px;
}

.landing-card-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.landing-icon-pink {
  color: var(--pink);
}

.landing-icon-purple {
  color: #a855f7;
}

.landing-icon-cyan {
  color: var(--cyan);
}

.landing-card h3 {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 600;
}

.landing-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.landing-cta {
  text-align: center;
  padding: 100px 0;
}

.landing-cta h2 {
  margin: 0 0 16px;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -1px;
}

.landing-cta p {
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 16px;
}

.landing-btn-gradient {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--pink), var(--purple), var(--cyan));
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.landing-btn-gradient svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.landing-btn-gradient:hover {
  opacity: 0.92;
  transform: scale(1.02);
}

.landing-footer {
  padding: 32px 0 40px;
  text-align: center;
}

.landing-footer p {
  margin: 0;
  color: #62748b;
  font-size: 14px;
}

@keyframes bg-float {
  from {
    transform: translate3d(-1.5%, -1%, 0);
  }
  to {
    transform: translate3d(1.5%, 1%, 0);
  }
}

@keyframes bg-sweep {
  from {
    transform: translateX(-4%);
  }
  to {
    transform: translateX(4%);
  }
}

@keyframes broadcast-drift {
  0% {
    background-position: 0% 0%, 100% 100%, 0% 0%;
  }
  100% {
    background-position: 8% 6%, 92% 88%, 0% 0%;
  }
}

@keyframes reveal-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 900px) {
  .landing-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .shell-home,
  .shell,
  .shell-centered > .card {
    width: calc(100vw - 32px);
  }

  .landing-container {
    padding: 0 16px;
  }

  .landing-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 0;
  }

  .landing-nav {
    gap: 16px;
  }

  .landing-hero {
    padding: 48px 0 72px;
  }

  .landing-subtitle {
    font-size: 16px;
    margin-bottom: 28px;
  }

  .landing-form {
    flex-direction: column;
    max-width: 100%;
    border-radius: 24px;
  }

  .landing-form input {
    padding: 14px 16px 4px;
  }

  .landing-btn-primary,
  .landing-copy-btn,
  .btn {
    width: 100%;
  }

  .landing-result-row,
  .form-meta {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .landing-section {
    padding: 40px 0;
  }

  .landing-cta {
    padding: 72px 0;
  }

  .landing-cta h2 {
    font-size: 30px;
  }

  .submission-list {
    max-height: none;
  }

  .shell-centered {
    min-height: auto;
    align-items: flex-start;
  }

  .brand-logo-page {
    width: 160px;
  }

  .broadcast-stage {
    min-height: calc(100vh - 32px);
    border-radius: 20px;
    padding: 16px;
  }

  .broadcast-text {
    font-size: 40px;
  }

  .broadcast-header {
    gap: 10px;
    flex-wrap: wrap;
    align-content: center;
  }

  .brand-logo-broadcast {
    width: 120px;
  }
}
