:root {
  --bg: #050809;
  --bg-2: #08100d;
  --panel: #0c1412;
  --panel-2: #101a17;
  --ink: #f4fbf7;
  --muted: #a4b3ac;
  --faint: #6f7d76;
  --line: rgba(228, 246, 238, .11);
  --line-strong: rgba(228, 246, 238, .18);
  --accent: #31d17c;
  --accent-dark: #07130d;
  --accent-soft: rgba(49, 209, 124, .14);
  --shadow: 0 30px 80px -46px rgba(0, 0, 0, .95);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  background:
    radial-gradient(circle at 72% 18%, rgba(49, 209, 124, .16), transparent 32%),
    linear-gradient(180deg, #07100d 0%, var(--bg) 58%, #030505 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: inline-block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
p {
  margin: 0;
}

.topbar {
  flex: none;
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 72px;
  padding: 18px clamp(20px, 4vw, 58px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  font-size: .98rem;
  font-weight: 780;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand img {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 0 30px -16px var(--accent);
}

.spacer {
  flex: 1;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 30px);
}

.nav a {
  color: var(--muted);
  font-size: .88rem;
  font-weight: 620;
  white-space: nowrap;
  transition: color .16s ease;
}

.nav a:hover {
  color: var(--ink);
}

.shell {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: clamp(16px, 2.5vh, 28px);
  width: 100%;
  padding: clamp(18px, 3vw, 38px) clamp(20px, 4vw, 58px) 0;
}

.command-deck {
  align-self: center;
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, .78fr);
  gap: clamp(34px, 5vw, 72px);
  align-items: center;
}

.copy-col {
  min-width: 0;
}

.proof-chips span,
.selector-pill,
.preview-pill,
.soft-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .035);
  color: var(--muted);
  font-size: .76rem;
  font-weight: 760;
  letter-spacing: .02em;
}

h1 {
  max-width: 11ch;
  margin-top: 18px;
  color: var(--ink);
  font-size: clamp(3.35rem, 7.1vw, 6.8rem);
  font-weight: 840;
  letter-spacing: 0;
  line-height: .91;
}

.deck {
  max-width: 58ch;
  margin-top: 22px;
  color: var(--muted);
  font-size: clamp(1rem, 1.2vw, 1.17rem);
}

h2 {
  max-width: 24ch;
  margin-top: 18px;
  color: var(--ink);
  font-size: clamp(1.22rem, 2vw, 1.78rem);
  font-weight: 760;
  letter-spacing: 0;
  line-height: 1.12;
}

.proof-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.proof-chips span {
  min-height: 36px;
  padding: 8px 13px;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 820;
  white-space: nowrap;
  transition: transform .16s ease, background .16s ease, border-color .16s ease, color .16s ease;
}

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

.primary-cta {
  min-height: 60px;
  margin-top: 28px;
  padding: 13px 32px;
  color: var(--accent-dark);
  background: var(--accent);
  font-size: 1.03rem;
  box-shadow: 0 18px 44px -28px rgba(49, 209, 124, .95);
}

.primary-cta::after,
.card-cta::after {
  content: " \203A";
  padding-left: 8px;
}

.preview-card {
  position: relative;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .018)),
    var(--panel);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .04);
}

.preview-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(140deg, rgba(49, 209, 124, .16), transparent 34%);
  opacity: .56;
}

.window-bar,
.console,
.card-cta {
  position: relative;
  z-index: 1;
}

.window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  margin-bottom: 12px;
}

.selector-pill {
  min-width: 0;
  min-height: 34px;
  padding: 8px 12px;
  color: var(--ink);
}

.preview-pill {
  flex: none;
  min-height: 34px;
  padding: 8px 12px;
  color: var(--accent);
  background: rgba(49, 209, 124, .09);
  border-color: rgba(49, 209, 124, .24);
}

.preview-pill span {
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(49, 209, 124, .34);
  animation: previewPulse 1.9s ease-out infinite;
}

.console {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .015)),
    var(--panel-2);
}

.market-line,
.strategy-row,
.mode-switch,
.hint-line {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 8, 9, .42);
}

.market-line,
.strategy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
}

.label {
  display: block;
  margin-bottom: 6px;
  color: var(--faint);
  font-size: .68rem;
  font-weight: 820;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.market-line strong,
.strategy-row strong {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 780;
  letter-spacing: 0;
}

.market-line img {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
}

.status-text,
.soft-chip {
  flex: none;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 720;
}

.soft-chip {
  min-height: 32px;
  padding: 7px 11px;
  border-color: rgba(49, 209, 124, .2);
}

.mode-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 56px;
  width: 100%;
  padding: 11px 14px;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}

.mode-switch strong {
  min-width: 72px;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--accent-dark);
  background: var(--accent);
  font-size: .88rem;
  text-align: center;
}

.hint-line {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 13px 14px;
  color: var(--faint);
  font-size: .78rem;
  font-weight: 650;
}

.card-cta {
  width: 100%;
  min-height: 48px;
  margin-top: 14px;
  padding: 12px 18px;
  color: var(--ink);
  border: 1px solid rgba(49, 209, 124, .38);
  background: rgba(49, 209, 124, .1);
}

.card-cta:hover {
  background: rgba(49, 209, 124, .16);
}

.texture-band {
  width: min(1180px, 100%);
  margin: 0 auto;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 10px 0 0;
  border-top: 1px solid var(--line);
  color: rgba(244, 251, 247, .35);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.texture-band span {
  flex: 0 0 auto;
  padding: 7px 12px;
  border: 1px solid rgba(228, 246, 238, .08);
  border-radius: 999px;
  background: rgba(255, 255, 255, .025);
  font-size: .72rem;
  font-weight: 760;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.foot {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 12px clamp(20px, 4vw, 58px) 20px;
  color: var(--faint);
  text-align: center;
  font-size: .78rem;
}

.foot span + span {
  padding-left: 16px;
  border-left: 1px solid var(--line);
}

@keyframes previewPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(49, 209, 124, .34);
  }

  70% {
    box-shadow: 0 0 0 8px rgba(49, 209, 124, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(49, 209, 124, 0);
  }
}

@media (min-width: 921px) {
  body {
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
  }
}

@media (min-width: 921px) and (max-height: 760px) {
  .topbar {
    min-height: 60px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .shell {
    gap: 12px;
    padding-top: 12px;
  }

  h1 {
    margin-top: 12px;
    font-size: clamp(3rem, 6vw, 5.5rem);
  }

  .deck,
  h2 {
    margin-top: 12px;
  }

  .proof-chips {
    margin-top: 16px;
  }

  .primary-cta {
    margin-top: 18px;
  }

  .texture-band {
    min-height: 42px;
    padding-top: 6px;
  }

  .foot {
    padding-top: 8px;
    padding-bottom: 12px;
  }
}

@media (max-width: 920px) {
  body {
    overflow-y: auto;
  }

  .topbar {
    min-height: 64px;
    padding: 16px 20px;
  }

  .nav {
    display: none;
  }

  .brand span {
    max-width: calc(100vw - 92px);
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .shell {
    display: block;
    padding: 26px 20px 0;
  }

  .command-deck {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
  }

  h1 {
    max-width: 10ch;
    font-size: clamp(2.55rem, 11vw, 3.65rem);
    overflow-wrap: normal;
  }

  .deck {
    max-width: 32ch;
  }

  h2 {
    max-width: 18ch;
  }

  .preview-card {
    width: 100%;
    max-width: 520px;
    overflow: hidden;
  }

  .texture-band {
    margin-top: 28px;
    min-height: 48px;
  }

  .foot {
    flex-direction: column;
    gap: 6px;
    padding: 18px 20px 22px;
  }

  .foot span + span {
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 520px) {
  .topbar {
    padding-inline: 16px;
  }

  .shell {
    padding-inline: 16px;
    padding-top: 18px;
  }

  .proof-chips {
    max-width: 330px;
    gap: 8px;
  }

  .proof-chips span {
    min-height: 34px;
    padding-inline: 11px;
    font-size: .72rem;
  }

  .window-bar,
  .market-line,
  .strategy-row,
  .hint-line {
    align-items: stretch;
    flex-direction: column;
  }

  .market-line strong {
    flex-wrap: wrap;
  }

  .window-bar {
    align-items: flex-start;
  }

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

  .status-text,
  .soft-chip {
    align-self: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
