:root {
  --bg: #f7f2e8;
  --bg-accent: #fffaf3;
  --surface: rgba(255, 255, 255, 0.8);
  --surface-strong: #fffdf8;
  --text: #201c19;
  --muted: #6b6258;
  --line: rgba(32, 28, 25, 0.12);
  --accent: #dd4a3a;
  --accent-strong: #be3425;
  --accent-soft: rgba(221, 74, 58, 0.12);
  --secondary: #0c8b7a;
  --shadow: 0 24px 60px rgba(58, 39, 20, 0.08);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.9), transparent 32%),
    linear-gradient(180deg, #fffdfa 0%, var(--bg) 100%);
}

button,
code {
  font: inherit;
}

.page-shell {
  width: min(980px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 72px 0 96px;
}

.hero {
  text-align: center;
  margin-bottom: 34px;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--secondary);
}

.hero h1 {
  margin: 0;
  font-size: clamp(3.8rem, 10vw, 6.2rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
  font-weight: 800;
}

.hero h1 span {
  font-weight: 500;
}

.hero-logo {
  display: block;
  width: min(100%, 760px);
  height: auto;
  margin: 24px auto 0;
}

.subtitle {
  width: min(720px, 100%);
  margin: 28px auto 0;
  font-size: clamp(1.1rem, 2.5vw, 1.55rem);
  line-height: 1.45;
  color: var(--muted);
}

.mode-toggle {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.mode-button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  color: var(--muted);
  border-radius: 999px;
  padding: 15px 30px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 160ms ease,
    background 160ms ease,
    color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.mode-button:hover {
  transform: translateY(-1px);
  border-color: rgba(32, 28, 25, 0.2);
  color: var(--text);
}

.mode-button.is-active {
  background: var(--accent);
  color: #fff8f6;
  border-color: transparent;
  box-shadow: 0 16px 32px rgba(221, 74, 58, 0.26);
}

.instruction-card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-strong) 100%);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow);
  border-radius: var(--radius-xl);
  padding: 34px;
  backdrop-filter: blur(16px);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.card-header h2 {
  margin: 0;
  color: var(--text);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1.18rem;
}

.command-panel {
  margin-bottom: 24px;
}

.command-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.command-label {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.86rem;
}

.command-box {
  padding: 20px;
  background: #fff;
  border: 1px solid rgba(32, 28, 25, 0.08);
  border-radius: var(--radius-lg);
}

.command-box code {
  display: block;
  font-family: ui-monospace, SFMono-Regular, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 1rem;
  line-height: 1.7;
  color: #235d5e;
  white-space: pre-wrap;
  word-break: break-word;
}

#copy-button {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 160ms ease,
    background 160ms ease;
}

#copy-button:hover {
  transform: translateY(-1px);
  background: rgba(221, 74, 58, 0.18);
}

.steps-list {
  margin: 0;
  padding-left: 30px;
  display: grid;
  gap: 14px;
  font-size: 1.08rem;
  line-height: 1.6;
}

.steps-list li::marker {
  color: var(--accent);
  font-weight: 800;
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100vw - 20px, 980px);
    padding: 48px 0 72px;
  }

  .hero-logo {
    margin-top: 18px;
  }

  .instruction-card {
    padding: 22px;
  }

  .command-box {
    padding: 18px;
  }

  #copy-button {
    flex-shrink: 0;
  }
}
