@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500&display=swap");

:root {
  --bg: #0d1717;
  --bg-soft: #112021;
  --panel: rgba(14, 27, 28, 0.78);
  --panel-strong: rgba(11, 22, 23, 0.92);
  --text: #eef3ef;
  --muted: #9db0aa;
  --line: rgba(220, 238, 230, 0.12);
  --accent: #ef7d4a;
  --accent-soft: rgba(239, 125, 74, 0.18);
  --ok: #4fd1a5;
  --warn: #f2c35b;
  --danger: #ff7b72;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 20%, rgba(239, 125, 74, 0.18), transparent 30%),
    radial-gradient(circle at 85% 15%, rgba(79, 209, 165, 0.12), transparent 26%),
    linear-gradient(180deg, #102122 0%, var(--bg) 100%);
  color: var(--text);
  font-family: "Manrope", sans-serif;
  overflow-x: hidden;
}

.ambient {
  position: fixed;
  inset: auto;
  width: 28rem;
  height: 28rem;
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.48;
  pointer-events: none;
  z-index: 0;
}

.ambient-left {
  top: -6rem;
  left: -8rem;
  background: rgba(239, 125, 74, 0.18);
}

.ambient-right {
  top: 16rem;
  right: -10rem;
  background: rgba(79, 209, 165, 0.13);
}

.shell {
  position: relative;
  z-index: 1;
  width: min(1280px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 24px 0 64px;
}

.poster,
.surface {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(20, 35, 36, 0.94), rgba(10, 19, 20, 0.9));
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.poster {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.8fr);
  gap: 28px;
  padding: clamp(26px, 5vw, 48px);
  border-radius: 34px;
  min-height: min(82svh, 760px);
  align-items: end;
}

.kicker,
.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  font-weight: 700;
}

.poster h1 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(40px, 8vw, 82px);
  line-height: 0.94;
  letter-spacing: -0.04em;
}

.lead {
  max-width: 42rem;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.7;
}

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

.button {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 18px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    color 180ms ease;
}

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

.button-primary {
  background: var(--accent);
  color: #111;
}

.button-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}

.button-inline {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-color: var(--line);
  padding: 10px 14px;
}

.poster-metrics {
  align-self: stretch;
  display: grid;
  gap: 14px;
}

.metric {
  display: grid;
  gap: 10px;
  padding: 18px 18px 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.metric-label,
.label,
.subhint {
  color: var(--muted);
  font-size: 13px;
}

.metric strong,
.value {
  font-size: clamp(18px, 3vw, 28px);
  font-weight: 700;
}

.mono {
  font-family: "IBM Plex Mono", monospace;
  font-size: 14px;
  word-break: break-all;
}

.workspace {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.surface {
  padding: 24px;
  border-radius: 28px;
}

.surface-wide {
  grid-column: 1 / -1;
}

.section-head,
.subhead {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}

.section-head h2,
.subhead h3 {
  margin: 0;
  font-size: 26px;
  line-height: 1.08;
}

.subhead h3 {
  font-size: 16px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.badge[data-tone="ok"] {
  color: var(--ok);
  border-color: rgba(79, 209, 165, 0.28);
}

.badge[data-tone="warn"] {
  color: var(--warn);
  border-color: rgba(242, 195, 91, 0.28);
}

.badge[data-tone="danger"] {
  color: var(--danger);
  border-color: rgba(255, 123, 114, 0.28);
}

.identity-grid,
.account-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.hint,
.callout,
.payment-state {
  margin: 18px 0 0;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  line-height: 1.6;
}

.identity-list,
.device-list,
.activity-log {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.identity-item,
.device-item,
.activity-item {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.identity-item header,
.device-item header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.identity-item strong,
.device-item strong {
  font-size: 17px;
}

.identity-meta,
.device-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  color: var(--muted);
  font-size: 14px;
}

.device-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.device-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}

.device-link:hover {
  text-decoration: underline;
}

.inline-form,
.stack-form {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.inline-form {
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: end;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  color: var(--muted);
  font-size: 13px;
}

input,
select {
  width: 100%;
  min-height: 50px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--panel-strong);
  color: var(--text);
  padding: 0 16px;
  font: inherit;
}

input:focus,
select:focus,
.button:focus-visible,
.device-link:focus-visible {
  outline: 2px solid rgba(239, 125, 74, 0.65);
  outline-offset: 2px;
}

.payment-link {
  display: inline-flex;
  margin-top: 12px;
}

.empty {
  color: var(--muted);
  padding: 16px 0 6px;
}

.activity-item time {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.activity-item strong {
  font-size: 15px;
}

.activity-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: revealUp 720ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.reveal:nth-child(2) {
  animation-delay: 100ms;
}

.reveal:nth-child(3) {
  animation-delay: 160ms;
}

.reveal:nth-child(4) {
  animation-delay: 220ms;
}

@keyframes revealUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .poster {
    min-height: auto;
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(100vw - 20px, 100%);
    padding: 12px 0 40px;
  }

  .poster,
  .surface {
    border-radius: 24px;
    padding: 18px;
  }

  .poster h1 {
    max-width: none;
    font-size: clamp(36px, 12vw, 56px);
  }

  .identity-grid,
  .account-grid,
  .inline-form {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
    justify-content: center;
  }

  .poster-actions,
  .device-actions {
    flex-direction: column;
  }
}
