:root {
  --bg: #f4efe8;
  --ink: #151515;
  --muted: rgba(21, 21, 21, 0.65);
  --line: rgba(21, 21, 21, 0.1);
  --card: rgba(255, 255, 255, 0.76);
  --card-bright: linear-gradient(135deg, #ffede3 0%, #fff7f0 100%);
  --accent: #ff6a3d;
  --accent-dark: #d84d25;
  --shadow: 0 24px 80px rgba(53, 35, 23, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(255, 126, 79, 0.16), transparent 32%),
    radial-gradient(circle at top right, rgba(242, 192, 110, 0.22), transparent 26%),
    linear-gradient(180deg, #fbf7f1 0%, var(--bg) 100%);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Instrument Sans", "Segoe UI", sans-serif;
  color: var(--ink);
}

code,
pre {
  font-family: "Space Grotesk", "Consolas", monospace;
}

.shell {
  width: min(1160px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.75fr);
  gap: 24px;
  align-items: stretch;
}

.hero-copy,
.hero-card,
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 36px;
  background: rgba(255, 255, 255, 0.72);
}

.hero-card {
  padding: 28px;
  background: linear-gradient(160deg, #1b1b1b 0%, #32231b 100%);
  color: #fff5ef;
}

.eyebrow,
.panel-label,
.card-label {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.card-label {
  color: rgba(255, 245, 239, 0.72);
}

h1 {
  margin: 0;
  max-width: 12ch;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.4rem, 4vw, 4.6rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.lede {
  margin: 18px 0 0;
  max-width: 56ch;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 14px 20px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 120ms ease,
    box-shadow 120ms ease,
    background 120ms ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

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

.button:disabled {
  cursor: progress;
  opacity: 0.72;
  transform: none;
}

.button-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 16px 36px rgba(255, 106, 61, 0.28);
}

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

.button-block {
  width: 100%;
}

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

.grid-product {
  align-items: start;
}

.panel {
  padding: 26px;
  background: var(--card);
}

.panel-bright {
  background: var(--card-bright);
}

.panel-wide {
  margin-top: 24px;
}

.panel-form {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 245, 239, 0.9));
}

.kv {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

.kv:last-of-type {
  border-bottom: 0;
}

.kv span {
  color: var(--muted);
}

.kv code {
  max-width: 58%;
  text-align: right;
  word-break: break-all;
}

.path-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 12px;
  color: rgba(255, 245, 239, 0.82);
  line-height: 1.5;
}

.hint {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.92rem;
}

.long-code,
.result-box {
  display: block;
  width: 100%;
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(21, 21, 21, 0.94);
  color: #fff2e7;
  overflow: auto;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.field span {
  font-size: 0.92rem;
  font-weight: 600;
}

.field input {
  width: 100%;
  border: 1px solid rgba(21, 21, 21, 0.14);
  border-radius: 14px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.92);
  font: inherit;
}

.field input:focus {
  outline: 2px solid rgba(255, 106, 61, 0.28);
  border-color: rgba(255, 106, 61, 0.42);
}

.hero-product h1 {
  max-width: 13ch;
}

.hidden {
  display: none;
}

@media (max-width: 900px) {
  .hero,
  .grid {
    grid-template-columns: 1fr;
  }

  .shell {
    width: min(100vw - 20px, 1160px);
    padding-top: 20px;
  }

  .hero-copy,
  .hero-card,
  .panel {
    padding: 22px;
    border-radius: 22px;
  }

  h1 {
    max-width: none;
    font-size: clamp(2.2rem, 12vw, 3.6rem);
  }

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

  .kv code {
    max-width: 100%;
    text-align: left;
  }
}
