:root {
  --red: #e7192b;
  --red-dark: #9f0013;
  --white: #fffaf7;
  --black: #08080d;
  --ink: #17171f;
  --muted: rgba(255, 255, 255, 0.72);
  --line: rgba(255, 255, 255, 0.18);
  --panel: rgba(255, 255, 255, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: Inter, "Arial Narrow", Arial, Helvetica, sans-serif;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(231, 25, 43, 0.92), rgba(8, 8, 13, 0.96) 42%),
    var(--black);
}

button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 0 16px;
  font: inherit;
  font-weight: 900;
  letter-spacing: 0;
  cursor: pointer;
}

#motionCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.topbar,
main,
.choice-strip {
  position: relative;
  z-index: 2;
}

.topbar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 268px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  overflow-y: auto;
  padding: 22px 16px;
  border-right: 1px solid var(--line);
  background: rgba(8, 8, 13, 0.58);
  backdrop-filter: blur(18px);
}

.logo-lockup {
  width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.sc-mark {
  width: 42px;
  height: 34px;
  display: grid;
  place-items: center;
  transform: skewX(-9deg);
  background: var(--red);
  color: #fff;
  box-shadow: 0 10px 28px rgba(231, 25, 43, 0.34);
}

.platform-tabs {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.platform-tab {
  width: 100%;
  justify-content: flex-start;
  text-align: left;
  color: rgba(255, 255, 255, 0.72);
  background: transparent;
}

.platform-tab.is-active {
  color: #fff;
  background: var(--red);
}

.tab-group {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(8, 8, 13, 0.2);
}

.tab-group summary {
  min-height: 40px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
}

.tab-group summary::-webkit-details-marker {
  display: none;
}

.tab-group summary::after {
  content: "+";
  margin-left: auto;
  color: rgba(255, 255, 255, 0.62);
  font-size: 1rem;
}

.tab-group[open] summary::after {
  content: "-";
}

.tab-group .platform-tab {
  min-height: 36px;
  padding: 0 12px 0 20px;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 850;
}

main {
  min-height: 100vh;
  margin-left: 268px;
}

.panel-view {
  display: none;
  min-height: 100vh;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.96fr);
  gap: clamp(24px, 5vw, 78px);
  align-items: center;
  padding: clamp(26px, 5vw, 74px);
}

.panel-view.is-active {
  display: grid;
}

.hero-copy,
.section-copy {
  max-width: 900px;
}

.eyebrow {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}

h1,
h2 {
  margin: 0;
  line-height: 0.9;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  width: fit-content;
  max-width: 1000px;
  padding: 10px 26px 20px;
  transform: skewX(-7deg);
  color: #fff;
  background: var(--red);
  font-size: clamp(4rem, 11vw, 11rem);
  box-shadow: 0 30px 90px rgba(231, 25, 43, 0.36);
}

h2 {
  max-width: 900px;
  font-size: clamp(3rem, 8vw, 7rem);
}

.hero-copy p:not(.eyebrow),
.section-copy p:not(.eyebrow) {
  max-width: 720px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.5;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.actions button {
  color: var(--black);
  background: var(--white);
}

.actions .ghost {
  color: #fff;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
}

.role-strip {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.role-strip span {
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
}

select,
input {
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--white);
  background: rgba(8, 8, 13, 0.62);
  font: inherit;
  font-weight: 850;
}

.hero-card,
.work-card,
.analytics-board div,
.payment-phone,
.rule-card,
.campaign-card,
.ip-card,
.account-card,
.call-dock,
.paris-stage,
.gate-list span {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  backdrop-filter: blur(18px);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.22);
}

.hero-card {
  max-width: 520px;
  padding: 24px;
}

.mini-nav,
.simple-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mini-nav span,
.simple-list span {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-weight: 900;
}

.mini-nav .is-on {
  background: var(--red);
}

.big-number {
  margin: 28px 0 0;
  font-size: clamp(6rem, 16vw, 13rem);
  font-weight: 950;
  line-height: 0.8;
}

.hero-card p {
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.45;
}

.work-grid,
.analytics-board,
.payment-grid,
.campaign-flow,
.security-board,
.module-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.desk-shell {
  display: grid;
  gap: 14px;
}

.work-card,
.analytics-board div,
.rule-card,
.campaign-card,
.module-card,
.ip-card,
.call-dock {
  min-height: 160px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 22px;
}

.work-card.primary,
.ip-card.primary,
.module-card.primary {
  grid-column: 1 / -1;
  background: rgba(231, 25, 43, 0.76);
}

.work-card span,
.analytics-board span,
.rule-card span,
.campaign-card span,
.module-card span,
.ip-card span,
.account-card span,
.call-dock span {
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
}

.work-card strong,
.analytics-board strong,
.rule-card strong,
.campaign-card strong,
.module-card strong,
.ip-card strong,
.account-card strong,
.call-dock strong {
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 0.9;
}

.work-card p,
.module-card p,
.account-card p,
.call-dock p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.account-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 22px;
  background: rgba(231, 25, 43, 0.76);
}

.account-actions {
  display: grid;
  gap: 10px;
}

.account-actions button,
.campaign-card button {
  color: var(--black);
  background: var(--white);
}

.work-grid.tight .work-card {
  min-height: 122px;
}

.analytics-board .wide {
  grid-column: 1 / -1;
}

.campaign-card.red {
  background: rgba(231, 25, 43, 0.78);
}

.campaign-card.wide {
  grid-column: 1 / -1;
}

.campaign-card.builder button {
  width: fit-content;
}

.campaign-card p,
.ip-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.ip-card.wide {
  grid-column: 1 / -1;
}

.ip-card button {
  width: fit-content;
  color: var(--black);
  background: var(--white);
}

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

.ip-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.payment-phone {
  grid-row: span 3;
  min-height: 500px;
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 24px;
  color: var(--ink);
  background: var(--white);
}

.payment-phone .phone-top {
  width: fit-content;
  padding: 8px 10px;
  border-radius: 999px;
  color: #fff;
  background: var(--red);
  font-weight: 950;
  text-transform: uppercase;
}

.payment-phone .balance {
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 950;
  line-height: 0.9;
}

.payment-phone p,
.rule-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.payment-phone p {
  color: #55545c;
}

.payment-phone button {
  width: 100%;
  color: #fff;
  background: var(--ink);
}

.payment-phone small {
  color: #686771;
  line-height: 1.35;
}

.rule-card.merchant {
  min-height: 190px;
}

.rule-card.merchant strong {
  font-size: clamp(1.9rem, 4vw, 3.8rem);
}

.rule-card.wide {
  grid-column: 1 / -1;
}

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

.gate-list span {
  min-height: 72px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  font-weight: 950;
  text-transform: uppercase;
}

.paris-stage {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.avatar-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.paris-avatar {
  position: relative;
  width: 180px;
  height: 180px;
  display: grid;
  place-items: center;
}

.avatar-halo {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  animation: halo 4s linear infinite;
}

.avatar-halo::before,
.avatar-halo::after {
  content: "";
  position: absolute;
  inset: 20px;
  border: 1px dashed rgba(255, 255, 255, 0.35);
  border-radius: 50%;
}

.avatar-halo::after {
  inset: 44px;
  border-style: solid;
}

.avatar-face {
  position: relative;
  width: 116px;
  height: 116px;
  border: 4px solid #fff;
  border-radius: 34px;
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.9), transparent 10%),
    linear-gradient(135deg, var(--red), var(--red-dark));
  box-shadow: 0 20px 50px rgba(231, 25, 43, 0.35);
  animation: guide 3.4s ease-in-out infinite;
}

.eye,
.mouth {
  position: absolute;
  background: #fff;
}

.eye {
  top: 42px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
}

.eye.left {
  left: 31px;
}

.eye.right {
  right: 31px;
}

.mouth {
  left: 38px;
  bottom: 33px;
  width: 42px;
  height: 9px;
  border-radius: 999px;
}

.speech {
  padding: 18px;
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
}

.speech strong {
  display: block;
  color: var(--red);
  text-transform: uppercase;
}

.speech p {
  margin: 8px 0 0;
  line-height: 1.5;
}

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

.walkthrough button {
  color: #fff;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
}

.choice-strip {
  margin-left: 268px;
  min-height: 52px;
  display: flex;
  align-items: center;
  padding: 10px clamp(18px, 4vw, 54px);
  color: rgba(255, 255, 255, 0.75);
  background: rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(14px);
  font-weight: 800;
}

@keyframes halo {
  to {
    transform: rotate(360deg);
  }
}

@keyframes guide {
  50% {
    transform: translateY(-10px) rotate(-2deg);
  }
}

@media (max-width: 960px) {
  .topbar {
    position: relative;
    inset: auto;
    width: auto;
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  main,
  .choice-strip {
    margin-left: 0;
  }

  .platform-tabs {
    max-height: 260px;
    overflow-y: auto;
  }

  .platform-tabs,
  .platform-tab {
    width: 100%;
  }

  .panel-view,
  .account-card,
  .work-grid,
  .analytics-board,
    .payment-grid,
    .campaign-flow,
    .security-board,
    .module-board,
    .gate-list {
    grid-template-columns: 1fr;
  }

  .avatar-card {
    grid-template-columns: 1fr;
    justify-items: center;
  }

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

  .role-strip,
  .account-actions {
    width: 100%;
  }
}

@media (max-width: 560px) {
  h1 {
    font-size: 3.45rem;
    padding: 8px 14px 12px;
  }

  h2 {
    font-size: 2.8rem;
  }

  .actions button,
  .role-strip,
  .role-strip select,
  .account-actions button,
  .walkthrough button {
    width: 100%;
  }

  .role-strip,
  .ip-form {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .role-strip {
    flex-direction: column;
  }

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