:root {
  --bg: #0a1014;
  --bg-soft: #131c21;
  --surface: rgba(14, 19, 24, 0.88);
  --surface-strong: rgba(22, 29, 36, 0.92);
  --surface-soft: rgba(20, 28, 35, 0.72);
  --ink: #f3f6f8;
  --muted: #9caab4;
  --line: rgba(101, 216, 214, 0.16);
  --accent: #2ab8c6;
  --accent-strong: #66d7de;
  --accent-soft: rgba(42, 184, 198, 0.12);
  --warm: #7f6cff;
  --danger: #ef9b82;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --font-ui: "Segoe UI", "Helvetica Neue", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-ui);
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(42, 184, 198, 0.12), transparent 28%),
    radial-gradient(circle at bottom right, rgba(127, 108, 255, 0.1), transparent 24%),
    linear-gradient(180deg, #081015 0%, #0d151a 100%);
}

body {
  min-height: 100vh;
}

button,
a {
  font: inherit;
}

.app-shell {
  position: relative;
  min-height: 100vh;
  padding: 22px;
  overflow: hidden;
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, black 50%, transparent 100%);
}

.bg-orb {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 999px;
  filter: blur(36px);
  opacity: 0.55;
}

.orb-a {
  top: -90px;
  left: -80px;
  background: rgba(42, 184, 198, 0.22);
}

.orb-b {
  right: -140px;
  top: 26%;
  background: rgba(127, 108, 255, 0.2);
}

.orb-c {
  bottom: -140px;
  left: 24%;
  background: rgba(42, 184, 198, 0.16);
}

.bg-node,
.bg-line {
  position: absolute;
  opacity: 0.55;
}

.bg-node {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(127, 108, 255, 0.92);
  box-shadow: 0 0 16px rgba(127, 108, 255, 0.8);
}

.node-a {
  top: 16%;
  right: 22%;
}

.node-b {
  top: 38%;
  right: 14%;
}

.node-c {
  bottom: 28%;
  right: 30%;
}

.bg-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(127, 108, 255, 0.48), transparent);
  transform-origin: left center;
}

.line-a {
  top: 19%;
  right: 14%;
  width: 180px;
  transform: rotate(27deg);
}

.line-b {
  top: 42%;
  right: 20%;
  width: 120px;
  transform: rotate(-26deg);
}

.app-frame {
  position: relative;
  z-index: 1;
  width: min(100%, 1280px);
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 22px;
  background: rgba(7, 10, 14, 0.88);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.brand,
.brand-copy,
.topbar-actions,
.progress-row,
.screen-head,
.result-stats,
.cta-stack,
.hint,
.trade-meta,
.micro-stats,
.hero-footnotes,
.activity-row,
.preview-chip-row {
  display: flex;
}

.brand,
.topbar-actions,
.progress-row,
.result-stats,
.trade-meta,
.hero-footnotes,
.activity-row,
.preview-chip-row {
  align-items: center;
}

.brand {
  gap: 12px;
}

.brand-mark {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(12, 18, 24, 0.96), rgba(10, 15, 20, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 10px 24px rgba(0, 0, 0, 0.28);
}

.brand-logo {
  width: 48px;
  height: 48px;
  display: block;
}

.brand-copy {
  flex-direction: column;
  gap: 2px;
}

.brand-name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-sub {
  font-size: 12px;
  color: var(--muted);
}

.topbar-actions {
  gap: 12px;
  align-items: center;
}

.header-pill,
.header-button,
.preview-chip,
.trade-chip,
.tag,
.mini-badge,
.stat-pill {
  border-radius: 999px;
}

.header-pill,
.preview-chip,
.mini-badge,
.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid rgba(42, 184, 198, 0.16);
  background: rgba(42, 184, 198, 0.08);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.header-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  padding: 13px 18px;
  background: linear-gradient(135deg, #2ab8c6 0%, #34d1d6 100%);
  color: #031114;
  font-weight: 800;
  text-decoration: none;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.78fr);
  gap: 22px;
  margin-top: 20px;
}

.app-card {
  position: relative;
  min-height: 720px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  background: var(--surface);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.preview-panel {
  min-height: 720px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top center, rgba(42, 184, 198, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(15, 20, 26, 0.96) 0%, rgba(11, 16, 21, 0.94) 100%);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.preview-head {
  display: grid;
  gap: 12px;
}

.screen {
  display: flex;
  flex-direction: column;
  height: calc(100% - 42px);
  padding-top: 26px;
  animation: fade-up 220ms ease-out;
}

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.step-indicator {
  font-size: 12px;
  color: var(--muted);
}

.progress-bar {
  height: 8px;
  margin-top: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 20%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent) 0%, #7cf8ff 100%);
  transition: width 220ms ease;
  box-shadow: 0 0 16px rgba(42, 184, 198, 0.32);
}

.screen-head {
  flex-direction: column;
  gap: 10px;
}

.screen-title {
  margin: 0;
  font-size: 52px;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.accent-word {
  color: var(--accent);
}

.screen-subtitle {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  max-width: 640px;
  font-size: 18px;
}

.options-grid {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.option-button,
.action-button,
.ghost-button {
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 17px 18px;
  text-align: left;
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.option-button {
  background: linear-gradient(180deg, rgba(22, 29, 36, 0.98), rgba(16, 22, 29, 0.98));
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.option-button:hover,
.action-button:hover,
.ghost-button:hover {
  transform: translateY(-1px);
}

.option-button:hover {
  border-color: rgba(42, 184, 198, 0.38);
  background: linear-gradient(180deg, rgba(24, 34, 42, 1), rgba(17, 24, 31, 1));
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.24);
}

.option-label {
  display: block;
  font-weight: 700;
  font-size: 16px;
}

.option-note {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.micro-stats,
.hero-footnotes,
.preview-chip-row {
  flex-wrap: wrap;
  gap: 10px;
}

.hero-footnotes {
  margin-top: 22px;
  color: var(--muted);
  font-size: 14px;
}

.mini-badge {
  margin-top: 18px;
}

.trade-card,
.explain-card,
.summary-card {
  margin-top: 24px;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(20, 27, 34, 0.96), rgba(13, 19, 24, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.trade-chip {
  display: inline-flex;
  align-self: flex-start;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-strong);
  background: rgba(42, 184, 198, 0.1);
  border: 1px solid rgba(42, 184, 198, 0.18);
}

.trade-title,
.summary-title {
  margin: 14px 0 0;
  font-size: 28px;
}

.trade-pair {
  margin: 8px 0 0;
  color: var(--muted);
}

.result-stats {
  margin-top: 20px;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(13, 30, 34, 0.9), rgba(10, 21, 27, 0.95));
  border: 1px solid rgba(42, 184, 198, 0.18);
  align-items: flex-end;
}

.stat-label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stat-value {
  display: block;
  font-size: 30px;
  font-weight: 700;
  color: #7cf8ff;
}

.trade-meta {
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
}

.trade-disclaimer {
  margin: 18px 0 0;
  font-size: 12px;
  color: var(--danger);
}

.segment-note {
  margin-top: 16px;
  padding: 14px 16px;
  border-left: 4px solid var(--warm);
  border-radius: 0 16px 16px 0;
  background: rgba(127, 108, 255, 0.12);
  color: #c8c1ff;
}

.steps-list {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.step-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.step-number {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent) 0%, #7cf8ff 100%);
  color: #041215;
  font-weight: 700;
}

.step-copy strong {
  display: block;
  margin-bottom: 4px;
}

.step-copy span {
  color: var(--muted);
  line-height: 1.45;
}

.footer-actions,
.cta-stack {
  margin-top: auto;
}

.footer-actions {
  display: grid;
  gap: 12px;
  padding-top: 24px;
}

.action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent) 0%, #34d1d6 100%);
  color: #041215;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 14px 28px rgba(42, 184, 198, 0.24);
}

.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  text-decoration: none;
}

.hint {
  justify-content: center;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.summary-card {
  display: grid;
  gap: 14px;
}

.summary-copy {
  color: var(--muted);
  line-height: 1.5;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  padding: 8px 12px;
  background: rgba(42, 184, 198, 0.08);
  border: 1px solid rgba(42, 184, 198, 0.12);
  color: var(--ink);
  font-size: 13px;
}

.cta-stack {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.inline-link {
  color: var(--accent-strong);
  text-decoration: none;
  font-weight: 600;
}

.preview-title {
  margin: 0;
  font-size: 46px;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.preview-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 16px;
}

.preview-stage {
  position: relative;
  margin-top: 18px;
  min-height: 290px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(42, 184, 198, 0.12);
  background:
    radial-gradient(circle at center, rgba(42, 184, 198, 0.12), transparent 38%),
    linear-gradient(180deg, rgba(12, 17, 22, 0.88), rgba(10, 15, 20, 0.98));
}

.preview-stage::after {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 22px;
  border: 1px solid rgba(42, 184, 198, 0.08);
  pointer-events: none;
}

.bubble {
  position: absolute;
  padding: 18px 20px;
  border-radius: 28px;
  border: 1px solid rgba(42, 184, 198, 0.18);
  background: rgba(18, 24, 30, 0.9);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.02),
    0 0 40px rgba(42, 184, 198, 0.06);
}

.bubble-main {
  top: 30px;
  right: 48px;
  width: 196px;
  z-index: 2;
}

.bubble-mini {
  width: 140px;
  bottom: 32px;
}

.bubble-left {
  left: 44px;
  z-index: 1;
}

.bubble-right {
  right: 38px;
  z-index: 3;
}

.bubble-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  margin: 0 auto 12px;
  background: linear-gradient(135deg, rgba(42, 184, 198, 0.16), rgba(127, 108, 255, 0.12));
  border: 1px solid rgba(42, 184, 198, 0.26);
  color: #7cf8ff;
  font-size: 24px;
}

.bubble-label {
  display: block;
  text-align: center;
  font-weight: 700;
}

.activity-card {
  margin-top: 20px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(20, 27, 34, 0.84);
}

.activity-head {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
}

.activity-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #2fe28d;
  box-shadow: 0 0 10px rgba(47, 226, 141, 0.65);
}

.activity-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.activity-row {
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.activity-avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent) 0%, #7cf8ff 100%);
  color: #051114;
  flex: 0 0 auto;
}

.activity-copy {
  flex: 1 1 auto;
}

.activity-name {
  display: block;
  font-weight: 700;
}

.activity-desc,
.activity-time {
  color: var(--muted);
  font-size: 14px;
}

.activity-time {
  white-space: nowrap;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

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

@media (max-width: 980px) {
  .content-grid {
    grid-template-columns: 1fr;
  }

  .preview-panel,
  .app-card {
    min-height: auto;
  }

  .screen-title,
  .preview-title {
    font-size: 40px;
  }

  .preview-panel {
    padding-top: 20px;
  }

  .preview-stage {
    min-height: 220px;
  }

  .bubble-main {
    top: 20px;
    right: 24px;
    width: 170px;
  }

  .bubble-left,
  .bubble-right {
    bottom: 20px;
  }

  .bubble-left {
    left: 24px;
  }

  .bubble-right {
    right: 20px;
  }
}

@media (max-width: 640px) {
  .app-shell {
    padding: 12px;
  }

  .topbar {
    align-items: flex-start;
    padding: 14px;
  }

  .topbar-actions {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }

  .app-card,
  .preview-panel {
    padding: 18px;
  }

  .brand {
    gap: 10px;
  }

  .brand-mark {
    width: 52px;
    height: 52px;
  }

  .brand-logo {
    width: 44px;
    height: 44px;
  }

  .brand-name {
    font-size: 17px;
  }

  .brand-sub {
    font-size: 11px;
  }

  .header-pill {
    padding: 8px 12px;
    font-size: 11px;
  }

  .header-button {
    min-width: 0;
    flex: 1 1 auto;
    padding: 12px 14px;
    border-radius: 18px;
  }

  .screen-title,
  .preview-title {
    font-size: 28px;
  }

  .screen-subtitle {
    font-size: 16px;
  }

  .preview-panel {
    margin-top: 16px;
    background:
      radial-gradient(circle at top center, rgba(42, 184, 198, 0.07), transparent 26%),
      linear-gradient(180deg, rgba(13, 19, 24, 0.98) 0%, rgba(10, 15, 20, 0.98) 100%);
  }

  .preview-head {
    gap: 10px;
  }

  .preview-copy {
    font-size: 15px;
    line-height: 1.55;
  }

  .preview-stage {
    min-height: 148px;
    margin-top: 14px;
  }

  .bubble {
    padding: 12px 12px 10px;
    border-radius: 22px;
  }

  .bubble-main {
    top: 18px;
    right: 16px;
    width: 120px;
  }

  .bubble-mini {
    width: 100px;
    bottom: 16px;
  }

  .bubble-left {
    left: 16px;
  }

  .bubble-right {
    right: 12px;
  }

  .bubble-icon {
    width: 38px;
    height: 38px;
    margin-bottom: 8px;
    font-size: 18px;
  }

  .bubble-label {
    font-size: 12px;
    line-height: 1.3;
  }

  .activity-card {
    margin-top: 14px;
    padding: 14px;
    border-radius: 18px;
  }

  .activity-row {
    padding: 10px 12px;
    gap: 10px;
  }

  .activity-avatar {
    width: 30px;
    height: 30px;
    font-size: 13px;
  }

  .activity-name {
    font-size: 14px;
  }

  .activity-desc,
  .activity-time {
    font-size: 12px;
  }
}
