:root {
  color-scheme: dark;
  --bg: #000;
  --panel: #080808;
  --panel-2: #101010;
  --line: #242424;
  --text: #f6f3ec;
  --muted: #a4a4a4;
  --gold: #d9b45f;
  --green: #65d48d;
  --red: #ff6b6b;
  --focus: #8ab4ff;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

a {
  color: inherit;
}

.landingBody {
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.78), #000 54%),
    url("/assets/phenominalx_logo_preview.png") left 11vw top 16vh / min(44vw, 520px) auto no-repeat,
    #000;
}

.downloadBody {
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.74), #000 58%),
    url("/assets/phenominalx_logo_preview.png") left 10vw top 18vh / min(42vw, 500px) auto no-repeat,
    #000;
}

.landingHeader,
.siteFooter,
.heroSection,
.signalBand,
.contentSections,
.testimonialCarousel {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.landingHeader {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brandMark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text);
}

.brandMark img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.adminLink {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
}

.heroSection {
  position: relative;
  min-height: calc(100vh - 190px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 64px;
  align-items: center;
  padding: 54px 0;
  overflow: hidden;
}

.heroSection.hasVideoBackground {
  padding-inline: 32px;
  border-radius: 8px;
  isolation: isolate;
}

.heroSection.hasVideoBackground::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.5) 48%, rgba(0, 0, 0, 0.72)),
    rgba(0, 0, 0, 0.32);
  pointer-events: none;
}

.heroVideoLayer {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: #000;
  pointer-events: none;
}

.heroVideoLayer iframe,
.heroVideoLayer video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100%, 177.78vh);
  height: max(100%, 56.25vw);
  border: 0;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.heroCopy {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.leadForm {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.heroCopy h1 {
  margin: 0;
  font-size: clamp(2.35rem, 4.3vw, 4.8rem);
  line-height: 0.94;
  max-width: 14ch;
}

.heroCopy p {
  max-width: 650px;
  margin: 28px 0 0;
  color: #dadada;
  font-size: 1.12rem;
  line-height: 1.75;
}

.proofList {
  display: grid;
  gap: 12px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
  max-width: 680px;
}

.proofList li {
  color: #dedede;
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  line-height: 1.5;
}

.proofList li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--gold);
}

.leadForm,
.adminPanel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 8, 8, 0.94);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.36);
}

.leadForm {
  padding: 28px;
  border-color: #e8e0c9;
  background: #ffffff;
  color: #090909;
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.42);
}

.formHeader {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.formHeader span,
.adminPanel span {
  color: var(--muted);
  font-size: 0.86rem;
}

.formHeader strong {
  font-size: 1.45rem;
}

.leadForm .formHeader span,
.leadForm .formHeader strong,
.leadForm label {
  color: #090909;
}

.leadForm input {
  border-color: #cfcfcf;
  background: #ffffff;
  color: #090909;
}

.leadForm input::placeholder {
  color: #606060;
}

.leadForm .formMessage {
  color: #202020;
}

label {
  display: grid;
  gap: 8px;
  color: #d8d8d8;
  font-size: 0.9rem;
  font-weight: 700;
}

.leadForm label + label,
.loginPanel label + label {
  margin-top: 16px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid #303030;
  border-radius: 8px;
  background: #050505;
  color: var(--text);
  padding: 11px 12px;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(138, 180, 255, 0.18);
}

.leadForm button,
.adminPanel button,
.loginPanel button,
.ghostButton {
  min-height: 44px;
  border-radius: 8px;
  padding: 0 16px;
  background: var(--gold);
  color: #090909;
  font-weight: 900;
}

.leadForm button {
  width: 100%;
  margin-top: 20px;
}

.leadForm button:disabled {
  opacity: 0.58;
  cursor: wait;
}

.formMessage {
  min-height: 22px;
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.formMessage.success {
  color: var(--green);
}

.formMessage.error {
  color: var(--red);
}

.signalBand {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.signalBand div {
  min-height: 98px;
  display: grid;
  align-content: center;
  gap: 8px;
  border-right: 1px solid var(--line);
}

.signalBand div:last-child {
  border-right: 0;
}

.signalBand span {
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 900;
}

.signalBand strong {
  font-size: 1rem;
}

.contentSections {
  display: grid;
  gap: 18px;
  padding: 46px 0 0;
}

.contentSections:empty,
.contentSections[hidden] {
  display: none !important;
}

.contentSection {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.contentSection.written {
  grid-template-columns: minmax(0, 780px);
}

.contentSection:has(.sectionBlocks) {
  grid-template-columns: 1fr;
}

.contentSection:nth-child(even):not(.written) img,
.contentSection:nth-child(even):not(.written) video,
.contentSection:nth-child(even):not(.written) iframe {
  order: 2;
}

.contentSection img,
.contentSection video,
.contentSection iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #050505;
  object-fit: cover;
}

.contentSection iframe {
  min-height: 320px;
}

.contentSectionCopy h2 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.08;
}

.contentSectionCopy p {
  margin: 14px 0 0;
  color: #d6d6d6;
  line-height: 1.7;
  white-space: pre-line;
}

.sectionBlocks {
  display: grid;
  gap: 16px;
}

.sectionBlocks.blockCount1 {
  grid-template-columns: minmax(0, 1fr);
}

.sectionBlocks.blockCount2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sectionBlocks.blockCount3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sectionBlock {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #050505;
}

.sectionBlock img,
.sectionBlock video,
.sectionBlock iframe {
  margin-bottom: 14px;
}

.sectionBlock h3 {
  margin: 0;
  font-size: 1.2rem;
}

.sectionBlock p {
  margin: 10px 0 0;
  color: #d6d6d6;
  line-height: 1.62;
  white-space: pre-line;
}

.testimonialCarousel {
  padding: 54px 0 12px;
  overflow: hidden;
}

.testimonialHeader {
  display: grid;
  gap: 8px;
  margin-bottom: 22px;
}

.testimonialHeader h2 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.08;
}

.testimonialViewport {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}

.testimonialTrack {
  display: flex;
  width: max-content;
  gap: 18px;
  animation: testimonialScroll 34s linear infinite;
}

.testimonialTrack:hover {
  animation-play-state: paused;
}

.testimonialCard {
  width: min(360px, calc(100vw - 52px));
  min-height: 260px;
  flex: 0 0 auto;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #050505;
}

.testimonialCard img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
}

.testimonialCard blockquote {
  margin: 0;
  color: #e5e5e5;
  line-height: 1.62;
}

.testimonialMeta {
  display: grid;
  gap: 3px;
}

.testimonialMeta span {
  color: var(--muted);
  font-size: 0.86rem;
}

@keyframes testimonialScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% - 9px));
  }
}

.siteFooter {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  padding: 34px 0 42px;
  margin-top: 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}

.siteFooter img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.downloadShell {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  min-height: calc(100vh - 90px);
  display: grid;
  align-content: center;
  gap: 44px;
  padding: 50px 0;
}

.downloadHero {
  max-width: 720px;
}

.downloadHero h1 {
  margin: 0;
  font-size: clamp(3rem, 6vw, 6rem);
  line-height: 0.96;
}

.downloadHero p {
  margin: 24px 0 0;
  max-width: 600px;
  color: #dadada;
  font-size: 1.12rem;
  line-height: 1.7;
}

.downloadButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin-top: 30px;
  padding: 0 22px;
  border-radius: 8px;
  background: var(--gold);
  color: #090909;
  font-weight: 900;
  text-decoration: none;
}

.downloadSteps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.downloadSteps article {
  min-height: 98px;
  display: grid;
  align-content: center;
  gap: 8px;
  border-right: 1px solid var(--line);
}

.downloadSteps article:last-child {
  border-right: 0;
}

.downloadSteps span {
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 900;
}

.verificationShell {
  width: min(680px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  place-items: center;
  padding: 40px 0;
}

.verificationPanel {
  width: 100%;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 8, 8, 0.96);
  text-align: center;
}

.verificationPanel img {
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
  object-fit: contain;
}

.verificationPanel h1 {
  margin: 0;
  font-size: 2.2rem;
  line-height: 1.08;
}

.verificationPanel p:not(.eyebrow) {
  margin: 18px auto 0;
  max-width: 540px;
  color: #d6d6d6;
  line-height: 1.7;
}

.adminBody {
  min-height: 100vh;
  background: #000;
}

.loginShell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.loginPanel {
  width: min(420px, 100%);
  padding: 28px;
}

.loginPanel h1,
.adminTopbar h1,
.panelHeader h2,
.panelHeader h3 {
  margin: 0;
}

.adminShell {
  width: min(1440px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.adminTopbar {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 22px;
}

.adminTabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tabButton,
.ghostButton {
  min-height: 38px;
  border: 1px solid var(--line);
  background: #0a0a0a;
  color: var(--text);
  border-radius: 8px;
  padding: 0 12px;
}

.tabButton.active,
.sideList button.active {
  border-color: var(--gold);
  color: var(--gold);
}

.tabPage {
  display: none;
}

.tabPage.active {
  display: grid;
  gap: 18px;
}

.metricGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.adminPanel {
  padding: 18px;
}

.metricGrid .adminPanel {
  display: grid;
  gap: 8px;
}

.metricGrid strong {
  font-size: 2.3rem;
}

.panelHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.panelHeader.compact {
  margin-top: 18px;
}

.panelActions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.saveStatus {
  min-height: 24px;
  color: var(--green);
  font-size: 0.88rem;
  font-weight: 800;
}

.saveStatus.error {
  color: var(--red);
}

.leadList,
.messageList {
  display: grid;
  gap: 10px;
}

.leadRow,
.messageRow {
  display: grid;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #050505;
}

.leadRow {
  grid-template-columns: minmax(0, 1fr) 170px 190px auto;
}

.messageRow {
  grid-template-columns: minmax(0, 1fr) 170px 190px;
}

.leadRow strong,
.messageRow strong {
  display: block;
}

.leadRow span,
.messageRow span,
.leadRow time,
.messageRow time {
  color: var(--muted);
  font-size: 0.86rem;
}

.messageRow mark {
  justify-self: start;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
  background: #111;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
}

.formGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.wide {
  grid-column: 1 / -1;
}

.checkLine {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkLine input {
  width: 18px;
  min-height: 18px;
}

.campaignLayout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.sideList {
  display: grid;
  gap: 8px;
}

.sideList button {
  min-height: 42px;
  border: 1px solid var(--line);
  background: #050505;
  color: var(--text);
  text-align: left;
}

.campaignEditor,
#automationForm {
  display: grid;
  gap: 14px;
}

.sectionBuilder {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.sectionTools {
  display: flex;
  gap: 10px;
  align-items: center;
}

.sectionTools select {
  min-width: 190px;
}

.contentSectionEditor {
  display: grid;
  gap: 12px;
}

.testimonialEditor {
  display: grid;
  gap: 12px;
}

.contentSectionBox {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #050505;
}

.testimonialBox {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #050505;
}

.sectionBlockBuilder {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.blockCountControl {
  min-width: 150px;
}

.sectionBlockEditor {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.sectionInnerBlock {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0a0a0a;
}

.sectionInnerBlock h4 {
  margin: 0;
}

#stepEditor {
  display: grid;
  gap: 12px;
}

.stepBox {
  display: grid;
  grid-template-columns: 90px repeat(3, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #050505;
}

.stepBox .wide {
  grid-column: 1 / -2;
}

.dangerButton {
  background: #321111 !important;
  color: #ffb8b8 !important;
}

.emptyLine {
  color: var(--muted);
}

@media (max-width: 920px) {
  .heroSection,
  .contentSection,
  .adminTopbar,
  .campaignLayout,
  .formGrid {
    grid-template-columns: 1fr;
  }

  .heroCopy h1 {
    max-width: none;
    font-size: 3rem;
  }

  .metricGrid,
  .signalBand {
    grid-template-columns: 1fr 1fr;
  }

  .leadRow,
  .messageRow {
    grid-template-columns: 1fr;
  }

  .stepBox {
    grid-template-columns: 1fr;
  }

  .stepBox .wide {
    grid-column: auto;
  }
}

@media (max-width: 620px) {
  .landingBody {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.72), #000 44%),
      url("/assets/phenominalx_logo_preview.png") center top 96px / 260px auto no-repeat,
      #000;
  }

  .landingHeader,
  .siteFooter,
  .heroSection,
  .signalBand,
  .contentSections,
  .testimonialCarousel,
  .adminShell {
    width: min(100% - 24px, 1180px);
  }

  .heroSection {
    padding-top: 210px;
    gap: 28px;
  }

  .heroCopy h1 {
    font-size: 2.45rem;
  }

  .signalBand,
  .downloadSteps,
  .metricGrid {
    grid-template-columns: 1fr;
  }

  .signalBand div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .downloadSteps article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .contentSection {
    grid-template-columns: 1fr;
  }

  .contentSection:nth-child(even):not(.written) img,
  .contentSection:nth-child(even):not(.written) video,
  .contentSection:nth-child(even):not(.written) iframe {
    order: 0;
  }

  .contentSectionBox,
  .testimonialBox {
    grid-template-columns: 1fr;
  }

  .sectionBlocks.blockCount2,
  .sectionBlocks.blockCount3,
  .sectionBlockEditor {
    grid-template-columns: 1fr;
  }

  .siteFooter {
    flex-direction: column;
    align-items: center;
  }
}

.customerDeleteButton {
  min-height: 38px;
  padding: 0 14px;
}
