:root {
  color-scheme: dark;
  --display: "Cooper Black", "Bookman Old Style", Georgia, ui-serif, serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ink: #f6fff9;
  --muted: #aab9b1;
  --soft: #d9eee6;
  --coal: #070708;
  --coal-2: #0c0e0d;
  --panel: #111312;
  --panel-2: #171918;
  --line: rgba(183, 255, 60, 0.2);
  --accent: #b7ff3c;
  --accent-2: #ff5ca8;
  --accent-dim: #26391a;
  --shadow: rgba(0, 0, 0, 0.58);
  font-family: var(--sans);
  color: var(--ink);
  background: var(--coal);
  letter-spacing: 0;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% -10%, rgba(183, 255, 60, 0.08), transparent 34%),
    linear-gradient(135deg, #050506 0%, #101211 55%, #060807 100%);
}

.starfield {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.92;
  background:
    radial-gradient(circle, rgba(246, 255, 249, 0.9) 0 1px, transparent 1.6px) 8px 16px / 92px 92px,
    radial-gradient(circle, rgba(183, 255, 60, 0.72) 0 1px, transparent 1.7px) 44px 68px / 137px 137px,
    radial-gradient(circle, rgba(255, 92, 168, 0.6) 0 1px, transparent 1.6px) 18px 42px / 181px 181px,
    repeating-linear-gradient(0deg, rgba(183, 255, 60, 0.035) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(90deg, rgba(255, 92, 168, 0.026) 0 1px, transparent 1px 46px);
  animation: starDrift 38s linear infinite;
}

.starfield::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 0%, rgba(7, 7, 8, 0.55) 78%, rgba(7, 7, 8, 0.86) 100%),
    repeating-linear-gradient(180deg, rgba(246, 255, 249, 0.035) 0 1px, transparent 1px 4px);
}

@keyframes starDrift {
  from {
    background-position: 8px 16px, 44px 68px, 18px 42px, 0 0, 0 0;
  }

  to {
    background-position: 8px 108px, 44px 205px, 18px 223px, 0 34px, 46px 0;
  }
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.shell {
  width: min(1480px, 100%);
  margin: 0 auto;
  padding: clamp(16px, 3vw, 42px);
  position: relative;
  z-index: 1;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(270px, 340px) minmax(360px, 1fr) minmax(320px, 420px);
  gap: 18px;
  align-items: stretch;
}

.panel {
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(183, 255, 60, 0.075), rgba(255, 92, 168, 0.035)),
    rgba(7, 7, 8, 0.86);
  box-shadow: 0 28px 70px var(--shadow);
  backdrop-filter: blur(8px);
}

.control-panel,
.transmission-panel,
.share-panel,
.content-panel {
  min-height: 720px;
}

.control-panel {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  position: relative;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border: 2px solid rgba(255, 92, 168, 0.72);
  border-radius: 50% 50% 42% 42%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(183, 255, 60, 0.1), 0 0 32px rgba(183, 255, 60, 0.22);
}

.brand-mark::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 15px;
  width: 9px;
  height: 12px;
  border-radius: 50%;
  background: #070708;
  box-shadow: 17px 0 0 #070708;
}

.brand-mark span {
  position: absolute;
  left: 15px;
  bottom: 12px;
  width: 16px;
  height: 3px;
  background: #070708;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(183, 255, 60, 0.2);
}

h1,
h2,
p {
  margin: 0;
}

h1,
h2 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.01;
}

h1 {
  font-size: clamp(33px, 4vw, 46px);
}

h2 {
  font-size: clamp(34px, 3.4vw, 44px);
  overflow-wrap: normal;
}

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

label {
  display: grid;
  gap: 8px;
}

label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

input,
select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(183, 255, 60, 0.26);
  border-radius: 0;
  background: rgba(246, 255, 249, 0.06);
  color: var(--ink);
  padding: 0 13px;
  outline: none;
}

select option {
  background: #101312;
  color: var(--ink);
}

input:focus,
select:focus {
  border-color: rgba(183, 255, 60, 0.72);
  box-shadow: 0 0 0 3px rgba(183, 255, 60, 0.14);
}

.primary-action,
.share-actions button {
  min-height: 48px;
  border: 1px solid rgba(183, 255, 60, 0.72);
  background: var(--accent);
  color: #070708;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  box-shadow: 0 7px 0 rgba(255, 92, 168, 0.72);
}

.button-icon {
  width: 16px;
  height: 16px;
  display: inline-block;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: #070708;
  box-shadow: 0 0 0 6px rgba(255, 92, 168, 0.15);
}

.primary-action:hover,
.share-actions button:hover {
  transform: translateY(2px);
  box-shadow: 0 5px 0 rgba(255, 92, 168, 0.72);
}

.credit-surface {
  margin-top: auto;
  padding: 16px;
  border: 1px dashed rgba(255, 92, 168, 0.72);
  background:
    repeating-linear-gradient(-7deg, rgba(255, 92, 168, 0.11) 0 6px, transparent 6px 14px),
    rgba(183, 255, 60, 0.055);
}

.credit-surface div {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
}

.credit-surface strong {
  color: var(--accent-2);
  font-size: 28px;
  font-weight: 800;
}

.credit-surface span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.transmission-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 4vw, 46px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.transmission-panel::before {
  content: "";
  position: absolute;
  inset: 78px -90px auto;
  height: 360px;
  opacity: 0.44;
  background:
    linear-gradient(90deg, transparent, rgba(183, 255, 60, 0.14), transparent),
    repeating-linear-gradient(90deg, rgba(183, 255, 60, 0.16) 0 2px, transparent 2px 32px);
  transform: rotate(-11deg);
}

.transmission-panel::after {
  content: "NOT LEGAL ADVICE FROM SPACE";
  position: absolute;
  left: 34px;
  bottom: 34px;
  color: rgba(255, 92, 168, 0.68);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  transform: rotate(-3deg);
}

.transmission-top,
.reading,
.signal-readout,
.signal-grid,
.stamp-badge {
  position: relative;
  z-index: 1;
}

.stamp-badge {
  width: fit-content;
  margin-left: auto;
  padding: 8px 12px;
  border: 2px solid var(--accent-2);
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transform: rotate(5deg);
  box-shadow: inset 0 0 0 1px rgba(255, 92, 168, 0.28);
}

.transmission-top {
  display: block;
  min-width: 0;
}

.transmission-top > div:first-child {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.orbital-device {
  position: relative;
  width: 118px;
  height: 118px;
  flex: 0 0 118px;
  border: 1px solid rgba(183, 255, 60, 0.46);
  border-radius: 50%;
  background: #090b09;
  box-shadow: 0 0 62px rgba(183, 255, 60, 0.2);
}

.transmission-panel .orbital-device {
  position: absolute;
  top: 54px;
  right: 44px;
  opacity: 0.38;
}

.orbital-device::before,
.orbital-device::after,
.orbital-device span {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.orbital-device::before {
  inset: 30px;
  background: rgba(183, 255, 60, 0.74);
  filter: blur(1px);
}

.orbital-device::after {
  right: 30px;
  top: 31px;
  width: 13px;
  height: 13px;
  background: var(--accent-2);
}

.orbital-device span {
  left: 35px;
  bottom: 36px;
  width: 16px;
  height: 16px;
  background: var(--soft);
}

.transmission-panel.is-receiving .orbital-device::before {
  animation: signalPulse 680ms ease-out;
}

.transmission-panel.is-receiving .reading,
.transmission-panel.is-receiving .signal-readout {
  animation: textFlicker 560ms ease-out;
}

@keyframes signalPulse {
  0% {
    transform: scale(0.82);
    box-shadow: 0 0 0 0 rgba(183, 255, 60, 0.42);
  }

  72% {
    transform: scale(1.18);
    box-shadow: 0 0 0 36px rgba(183, 255, 60, 0);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes textFlicker {
  0%,
  100% {
    opacity: 1;
  }

  22% {
    opacity: 0.42;
  }

  48% {
    opacity: 0.88;
  }

  64% {
    opacity: 0.58;
  }
}

.reading {
  max-width: 720px;
  color: var(--soft);
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.38;
}

.signal-readout {
  max-width: 720px;
  display: grid;
  gap: 10px;
}

.signal-readout > div:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.signal-readout span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.signal-readout strong {
  color: var(--accent);
  font-size: 25px;
  font-weight: 800;
}

.meter {
  height: 12px;
  border: 1px solid rgba(183, 255, 60, 0.36);
  background: rgba(246, 255, 249, 0.045);
  overflow: hidden;
}

.meter i {
  display: block;
  width: 73%;
  height: 100%;
  background:
    repeating-linear-gradient(90deg, rgba(7, 7, 8, 0.24) 0 8px, transparent 8px 14px),
    linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 18px rgba(183, 255, 60, 0.28);
  transition: width 420ms ease;
}

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

.signal-grid article {
  min-height: 112px;
  padding: 16px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(183, 255, 60, 0.075), transparent),
    rgba(246, 255, 249, 0.04);
}

.signal-grid span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.signal-grid strong {
  color: var(--ink);
  font-size: clamp(19px, 2vw, 27px);
  font-weight: 800;
  line-height: 1.05;
}

.share-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px;
}

.share-copy h2,
.content-heading h2 {
  font-size: clamp(30px, 3vw, 44px);
}

.canvas-wrap {
  flex: 1;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 14px;
  border: 1px dashed rgba(183, 255, 60, 0.3);
  background:
    repeating-linear-gradient(90deg, rgba(246, 255, 249, 0.045) 0 1px, transparent 1px 18px),
    rgba(0, 0, 0, 0.28);
}

#shareCanvas {
  width: min(100%, 270px);
  height: auto;
  aspect-ratio: 9 / 16;
  display: block;
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.46);
}

.share-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
}

.share-status {
  min-height: 18px;
  color: var(--muted);
  font-size: 13px;
}

.content-panel {
  grid-column: 2 / 4;
  min-height: auto;
  padding: 22px;
}

.hook-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.hook-card {
  min-height: 180px;
  padding: 16px;
  border: 1px solid var(--line);
  background:
    linear-gradient(160deg, rgba(255, 92, 168, 0.08), rgba(183, 255, 60, 0.04)),
    rgba(246, 255, 249, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.hook-card p {
  color: var(--soft);
  font-size: 15px;
  line-height: 1.38;
}

.hook-card button {
  min-height: 38px;
  border: 1px solid rgba(255, 92, 168, 0.54);
  background: rgba(255, 92, 168, 0.13);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.site-foot {
  width: min(1480px, 100%);
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 42px) 36px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 12px;
  position: relative;
  z-index: 1;
}

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

  .control-panel,
  .transmission-panel,
  .share-panel,
  .content-panel {
    min-height: auto;
  }

  .transmission-panel {
    grid-column: span 2;
    min-height: 620px;
  }

  .content-panel {
    grid-column: span 2;
  }
}

@media (max-width: 760px) {
  .shell {
    padding: 14px;
  }

  .workspace {
    grid-template-columns: 1fr;
  }

  .transmission-panel,
  .content-panel {
    grid-column: auto;
  }

  .transmission-top {
    display: grid;
  }

  .transmission-panel .orbital-device {
    position: relative;
    top: auto;
    right: auto;
    opacity: 1;
    margin-top: 18px;
  }

  .orbital-device {
    width: 92px;
    height: 92px;
  }

  .signal-grid,
  .hook-list {
    grid-template-columns: 1fr;
  }

  .site-foot {
    display: grid;
    padding-inline: 14px;
  }
}
