:root {
  --bg: #1a1a1a;
  --surface: #252525;
  --surface-elevated: rgba(37, 37, 37, 0.94);
  --input: #2d2d2d;
  --border: #3a3a3a;
  --divider: #333333;
  --accent: #3daee9;
  --accent-strong: #5abeef;
  --success: #5dd9a0;
  --text: #e0e0e0;
  --muted: #707070;
  --shadow: rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(61, 174, 233, 0.12), transparent 30%),
    radial-gradient(circle at bottom right, rgba(93, 217, 160, 0.09), transparent 26%),
    linear-gradient(180deg, #181818 0%, #131313 100%);
  color: var(--text);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    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: 28px 28px;
  pointer-events: none;
}

.ambient-glow {
  position: fixed;
  width: 30rem;
  height: 30rem;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  pointer-events: none;
}

.ambient-glow-left {
  top: -8rem;
  left: -10rem;
  background: rgba(61, 174, 233, 0.18);
}

.ambient-glow-right {
  right: -12rem;
  bottom: -10rem;
  background: rgba(93, 217, 160, 0.14);
}

.shell {
  position: relative;
  z-index: 1;
  height: 100vh;
  padding: 18px;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 12px;
}

.workspace {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(360px, 0.93fr) minmax(0, 1.57fr);
  gap: 14px;
}

.left-column {
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, auto) minmax(0, 1fr);
  gap: 14px;
}

.panel {
  min-height: 0;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  box-shadow: 0 28px 80px var(--shadow);
}

.intro-panel {
  padding: 18px 18px 16px;
}

.brand-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.logo-badge {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 30%, rgba(93, 217, 160, 0.12), transparent 52%),
    linear-gradient(180deg, #303030 0%, #202020 100%);
  border: 1px solid #454545;
}

.logo-badge img {
  width: 70px;
  height: 70px;
  display: block;
}

.eyebrow,
.panel-header p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.03em;
}

h1 {
  margin-top: 6px;
  font-size: clamp(2rem, 3vw, 2.85rem);
  line-height: 0.94;
  max-width: 12ch;
}

h2 {
  font-size: 16px;
  margin-bottom: 12px;
}

.how-it-works {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--divider);
}

.step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.step-list li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.step-list p {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.4;
}

.step-number {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  background: linear-gradient(180deg, var(--accent) 0%, #2d9ed9 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.button {
  min-height: 42px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 140ms ease, border-color 140ms ease, transform 140ms ease;
}

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

.button.primary {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #ffffff;
}

.button.primary:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}

.button.secondary {
  background: transparent;
  border: 1px solid var(--border);
}

.button.secondary:hover {
  border-color: var(--accent);
  color: #ffffff;
}

.warning {
  margin: 14px 0 0;
  padding: 12px 14px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
  background: rgba(45, 45, 45, 0.92);
  border-left: 3px solid var(--accent);
}

.panel-header {
  min-height: 38px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--divider);
  background: rgba(32, 32, 32, 0.95);
}

.traffic-lights {
  display: inline-flex;
  gap: 6px;
}

.traffic-lights span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.traffic-lights span:nth-child(1) {
  background: #ff5f57;
}

.traffic-lights span:nth-child(2) {
  background: #febc2e;
}

.traffic-lights span:nth-child(3) {
  background: #28c840;
}

.terminal-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
}

.terminal {
  margin: 0;
  min-height: 0;
  padding: 14px 16px 12px;
  overflow: auto;
  background:
    linear-gradient(180deg, rgba(45, 45, 45, 0.96), rgba(31, 31, 31, 0.98));
  color: #cfd8dc;
  font-family: "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 12.5px;
  line-height: 1.55;
}

.terminal code {
  white-space: pre;
}

.terminal-notes {
  padding: 12px 16px 14px;
  border-top: 1px solid var(--divider);
  background: rgba(34, 34, 34, 0.98);
}

.terminal-notes p {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.45;
}

.terminal-notes p + p {
  margin-top: 8px;
}

.terminal-notes span {
  color: var(--success);
  font-weight: 600;
}

.terminal-notes code,
.warning code {
  color: var(--text);
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.92em;
}

.visual-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.panel-header-visual {
  justify-content: space-between;
}

.visual-meta {
  color: var(--success);
}

.screenshot-wrap {
  min-height: 0;
  padding: 14px;
  background:
    radial-gradient(circle at top left, rgba(61, 174, 233, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(31, 31, 31, 0.98), rgba(24, 24, 24, 0.98));
}

.screenshot-wrap img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  border: 1px solid var(--border);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
}

.footer {
  padding: 0 4px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.footer p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

a {
  color: var(--accent-strong);
}

@media (max-width: 1180px), (max-height: 860px) {
  body {
    overflow: auto;
  }

  .shell {
    height: auto;
    min-height: 100vh;
  }

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

  .left-column {
    grid-template-rows: auto auto;
  }

  .visual-panel {
    min-height: 48vh;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

  .brand-row {
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 12px;
  }

  .logo-badge img {
    width: 56px;
    height: 56px;
  }

  h1 {
    max-width: none;
    font-size: 1.85rem;
  }

  .actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}
