:root {
  --ink: #0b1324;
  --muted: #5d6b82;
  --paper: #f6fbf9;
  --panel: rgba(255, 255, 255, 0.92);
  --line: #cde7e1;
  --brand: #0f8b7e;
  --brand-dark: #083d46;
  --gold: #f4b740;
  --gold-soft: #fff4d8;
  --danger: #b42318;
  --danger-soft: #fff0ed;
  --ok: #087443;
  --ok-soft: #e8f7ef;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Aptos Display", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 8%, rgba(30, 184, 166, 0.32), transparent 25rem),
    radial-gradient(circle at 88% 18%, rgba(244, 183, 64, 0.22), transparent 22rem),
    radial-gradient(circle at 70% 90%, rgba(8, 61, 70, 0.18), transparent 24rem),
    linear-gradient(135deg, #071321, #e9fbf7 46%, #ffffff);
}

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 42px auto;
}

.card {
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--panel);
  box-shadow: 0 24px 80px rgba(6, 26, 39, 0.2);
  padding: clamp(24px, 5vw, 56px);
}

.public-hero {
  overflow: hidden;
  position: relative;
}

.public-hero::after {
  position: absolute;
  right: -90px;
  top: -100px;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: rgba(15, 139, 126, 0.1);
  content: "";
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
  align-items: start;
  position: relative;
  z-index: 1;
}

.status-card {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(15, 139, 126, 0.18);
  border-radius: 24px;
  padding: 22px;
  background: linear-gradient(145deg, #083d46, #0f8b7e);
  color: white;
  box-shadow: 0 18px 42px rgba(8, 61, 70, 0.22);
}

.status-card span {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 750;
}

.panel {
  margin-top: 24px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand);
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(38px, 8vw, 82px);
  line-height: .92;
  letter-spacing: -0.06em;
}

.lead {
  max-width: 760px;
  color: var(--muted);
  font-size: 20px;
  font-weight: 700;
}

.small {
  font-size: 17px;
}

h2 {
  margin: 0;
  font-size: clamp(28px, 5vw, 48px);
  letter-spacing: -0.04em;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 32px;
}

.support-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.support-card {
  display: grid;
  gap: 8px;
  min-height: 160px;
  padding: 22px;
  text-align: left;
  border: 2px solid transparent;
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink);
}

.support-card span {
  width: fit-content;
  border-radius: 999px;
  padding: 7px 11px;
  background: #e8f6f3;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.support-card strong {
  font-size: 24px;
  letter-spacing: -0.03em;
}

.support-card small {
  color: var(--muted);
  font-size: 16px;
  font-weight: 800;
}

.support-card.active {
  border-color: var(--brand);
  background: linear-gradient(135deg, #f8fffd, #e7f8f4);
  box-shadow: 0 16px 36px rgba(15, 139, 126, 0.14);
}

.flow-section {
  margin-top: 28px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.flow-heading {
  margin-top: 12px;
}

.compact-heading {
  margin-top: 0;
}

.hidden {
  display: none !important;
}

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

.console-card {
  min-height: 104px;
  text-align: left;
  border: 2px solid #d8e7e4;
  background: white;
  color: var(--ink);
}

.console-card strong,
.console-card span {
  display: block;
}

.console-card strong {
  font-size: 32px;
}

.console-card span {
  margin-top: 4px;
  color: var(--muted);
  font-weight: 850;
}

.console-card.active {
  border-color: var(--brand);
  background: #eefbf8;
}

.tutorial {
  margin-top: 20px;
}

.choice-empty {
  display: grid;
  gap: 6px;
  border: 1px dashed #9dcfc8;
  border-radius: 24px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-weight: 800;
}

.choice-empty strong {
  color: var(--ink);
  font-size: 20px;
}

.choice-empty span {
  display: block;
}

.tutorial-card {
  display: grid;
  gap: 20px;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(20px, 4vw, 34px);
  background: rgba(255, 255, 255, 0.76);
}

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

.tutorial-step {
  display: grid;
  gap: 8px;
  border: 1px solid #dde9ef;
  border-radius: 22px;
  padding: 18px;
  background: white;
}

.tutorial-step span {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--brand-dark);
  color: white;
  font-weight: 1000;
}

.tutorial-step strong {
  font-size: 19px;
}

.tutorial-step p {
  margin: 0;
  color: var(--muted);
  font-weight: 760;
  line-height: 1.45;
}

.step {
  display: grid;
  gap: 8px;
  border: 1px solid #d7ebe7;
  border-radius: 22px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.step span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--brand-dark);
  color: white;
  font-weight: 1000;
}

.step strong {
  font-size: 18px;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-weight: 750;
}

.stack,
.grid {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.pin-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 14px;
  align-items: end;
  margin-top: 28px;
  padding: 18px;
  border-radius: 26px;
  background: #eefbf8;
  border: 1px solid var(--line);
}

.pin-area {
  margin-top: 28px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.guest-warning {
  display: grid;
  gap: 20px;
  margin-bottom: 28px;
  border: 2px solid #f0a318;
  border-radius: 28px;
  padding: clamp(18px, 4vw, 30px);
  background:
    radial-gradient(circle at 10% 0%, rgba(244, 183, 64, 0.42), transparent 18rem),
    linear-gradient(135deg, #fff8e8, #ffffff);
  box-shadow: 0 18px 50px rgba(122, 82, 0, 0.14);
}

.warning-copy h2 {
  color: #7a2400;
}

.warning-copy strong {
  color: #7a2400;
}

.screenshot-wrap {
  position: relative;
  overflow: hidden;
  border: 6px solid #111827;
  border-radius: 24px;
  background: #06111f;
  box-shadow: 0 20px 54px rgba(6, 17, 31, 0.28);
}

.screenshot-wrap img {
  display: block;
  width: 100%;
  height: auto;
}

.screenshot-wrap::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 15, 25, 0), rgba(10, 15, 25, 0.26));
  content: "";
  pointer-events: none;
}

.arrow-label {
  position: absolute;
  z-index: 2;
  right: 6%;
  top: 12%;
  max-width: 260px;
  border-radius: 999px;
  padding: 14px 18px;
  background: #ff3b30;
  color: white;
  font-size: clamp(16px, 2.5vw, 28px);
  font-weight: 1000;
  letter-spacing: -0.03em;
  box-shadow: 0 12px 28px rgba(122, 36, 0, 0.42);
}

.arrow-line {
  position: absolute;
  z-index: 2;
  left: 31%;
  top: 36%;
  width: 43%;
  height: clamp(10px, 1.3vw, 18px);
  border-radius: 999px;
  background: #ff3b30;
  transform: rotate(-4deg);
  transform-origin: right center;
  box-shadow: 0 8px 22px rgba(122, 36, 0, 0.38);
}

.arrow-line::before {
  position: absolute;
  left: -2px;
  top: 50%;
  width: 0;
  height: 0;
  border-top: clamp(18px, 2.3vw, 34px) solid transparent;
  border-bottom: clamp(18px, 2.3vw, 34px) solid transparent;
  border-right: clamp(28px, 3.4vw, 52px) solid #ff3b30;
  content: "";
  transform: translate(-70%, -50%);
}

.compact-warning {
  margin-bottom: 24px;
}

.grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

label {
  display: grid;
  gap: 8px;
  color: #344054;
  font-weight: 900;
}

input,
select,
button,
textarea {
  width: 100%;
  border: 1px solid #cbd8e6;
  border-radius: 18px;
  padding: 18px 20px;
  color: var(--ink);
  background: #f8fafc;
  font: inherit;
  font-weight: 800;
}

.pin-box input {
  text-align: center;
  font-size: clamp(30px, 7vw, 58px);
  letter-spacing: .16em;
  font-weight: 1000;
}

button {
  cursor: pointer;
  border: none;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: white;
  transition: transform .18s ease, box-shadow .18s ease;
}

button:disabled {
  cursor: not-allowed;
  opacity: .48;
  transform: none;
  box-shadow: none;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(15, 139, 126, 0.25);
}

.result {
  margin-top: 24px;
}

.notice {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: white;
  padding: 22px;
  color: var(--muted);
  font-weight: 750;
  white-space: pre-wrap;
}

.notice strong,
.notice span {
  display: block;
}

.notice strong {
  color: var(--ink);
  font-size: 20px;
  margin-bottom: 6px;
}

.notice.urgent {
  border-color: #f5c26b;
  background: var(--gold-soft);
  color: #6d4a00;
}

.notice.success {
  border-color: #b8e5c8;
  background: var(--ok-soft);
  color: #155d35;
}

.notice.compact {
  padding: 16px;
}

.ready-panel,
.code-panel {
  display: grid;
  gap: 16px;
}

.account-check {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  background: white;
  color: var(--muted);
  font-weight: 850;
}

.account-check strong {
  color: var(--ink);
}

.confirm-line {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 2px solid var(--brand);
  border-radius: 22px;
  padding: 18px;
  background: #f2fffb;
  color: var(--ink);
}

.confirm-line input {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  margin-top: 2px;
  accent-color: var(--brand);
}

.attempt {
  display: inline-flex;
  width: fit-content;
  margin: 0;
  border-radius: 999px;
  padding: 10px 14px;
  background: var(--gold-soft);
  color: #7a5200;
  font-weight: 1000;
}

.code {
  display: inline-flex;
  margin: 14px 0;
  padding: 18px 26px;
  border-radius: 22px;
  background: #061a27;
  color: #f7fffb;
  font-size: clamp(42px, 10vw, 78px);
  font-weight: 1000;
  letter-spacing: .08em;
}

.timer {
  width: fit-content;
  border-radius: 999px;
  padding: 12px 16px;
  background: #edf4ff;
  color: #164372;
  font-weight: 950;
}

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

.actions.split button {
  flex: 1 1 220px;
}

.secondary {
  background: #e8f6f3;
  color: var(--brand-dark);
  border: 1px solid var(--line);
}

.danger {
  background: var(--danger);
}

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

@media (max-width: 760px) {
  .shell {
    width: min(100% - 20px, 1120px);
    margin: 14px auto;
  }

  .hero-grid,
  .steps,
  .support-options,
  .console-picker,
  .tutorial-grid,
  .pin-box {
    grid-template-columns: 1fr;
  }

  .status-card {
    order: -1;
  }

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

  .card {
    border-radius: 22px;
  }

  .account-check {
    display: grid;
  }

  .guest-warning {
    padding: 16px;
  }

  .arrow-label {
    right: 5%;
    top: 7%;
    max-width: 170px;
    padding: 10px 12px;
  }

  .arrow-line {
    left: 28%;
    top: 28%;
    width: 42%;
  }
}
