:root {
  --ink: #0b0b0a;
  --ash: #2f2923;
  --paper: #fff8ea;
  --white: #ffffff;
  --line: rgba(11, 11, 10, 0.13);
  --muted: #716a5e;
  --cyan: #57c6d1;
  --cyan-deep: #207b83;
  --coral: #f04150;
  --gold: #ffbd45;
  --gold-soft: #ffe2a0;
  --shadow: 0 22px 70px rgba(11, 11, 10, 0.14);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 2%, rgba(87, 198, 209, 0.23), transparent 28rem),
    radial-gradient(circle at 94% 8%, rgba(240, 65, 80, 0.16), transparent 24rem),
    linear-gradient(135deg, #fff8ea 0%, #fff4d6 42%, #fffafa 100%);
  font-family: "Manrope", sans-serif;
}

button {
  font: inherit;
}

.site-header {
  min-height: 76px;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--ink);
  background: var(--gold);
  border-bottom: 6px solid var(--coral);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  color: inherit;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: clamp(112px, 16vw, 164px);
  height: auto;
}

.header-tag,
.series,
.step-kicker,
.resource-by span {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.header-tag {
  color: rgba(11, 11, 10, 0.64);
}

.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(110deg, rgba(11, 11, 10, 0.95), rgba(11, 11, 10, 0.78)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 18px),
    #0b0b0a;
}

.hero::after {
  content: "";
  position: absolute;
  left: clamp(1rem, 10vw, 7rem);
  bottom: 0;
  width: 5.5rem;
  height: 5px;
  border-radius: 999px;
  background: var(--cyan);
}

.hero-inner {
  width: min(920px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(3.5rem, 8vw, 6rem);
}

.series {
  margin: 0 0 1rem;
  color: var(--cyan);
}

h1,
h2 {
  margin: 0;
  font-family: "Fraunces", serif;
  line-height: 0.98;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(3rem, 9vw, 6.6rem);
}

.hero p:not(.series) {
  max-width: 540px;
  margin: 1.35rem 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(1rem, 2vw, 1.22rem);
  line-height: 1.75;
}

.app-shell {
  width: min(820px, calc(100% - 2rem));
  margin: clamp(1.6rem, 5vw, 3.5rem) auto 4rem;
}

.panel {
  position: relative;
  padding: clamp(1.25rem, 4vw, 2.4rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.chooser::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(var(--coral), var(--gold), var(--cyan));
}

.step-kicker {
  margin-bottom: 0.7rem;
  color: var(--cyan-deep);
}

h2 {
  font-size: clamp(1.8rem, 5vw, 3rem);
}

.lead {
  max-width: 42rem;
  margin: 0.85rem 0 1.5rem;
  color: var(--muted);
  line-height: 1.75;
}

.tag-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.tag {
  min-height: 56px;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ash);
  background: var(--paper);
  cursor: pointer;
  text-align: left;
  font-weight: 800;
  line-height: 1.25;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.tag:hover,
.tag:focus-visible {
  border-color: var(--coral);
  transform: translateY(-2px);
  outline: none;
}

.tag.selected {
  border-color: var(--coral);
  color: var(--ink);
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
}

.primary-action,
.ghost-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.primary-action {
  width: 100%;
  border: 2px solid var(--coral);
  color: var(--white);
  background: var(--coral);
}

.primary-action:hover,
.primary-action:focus-visible {
  color: var(--ink);
  background: var(--gold);
  border-color: var(--gold);
  outline: none;
}

.primary-action:active,
.ghost-action:active,
.tag:active {
  transform: scale(0.98);
}

.result-area {
  margin-top: 1.25rem;
  animation: rise 320ms ease both;
}

.result-panel {
  border-left: 5px solid var(--cyan);
}

.steps {
  margin-top: 1rem;
}

.action-step {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 1rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
}

.step-num {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: var(--gold);
  font-size: 0.8rem;
  font-weight: 900;
}

.step-text {
  font-weight: 850;
  line-height: 1.5;
}

.step-sub {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.65;
}

.ghost-action {
  margin-top: 1rem;
  padding: 0 1.1rem;
  border: 1px solid rgba(21, 21, 21, 0.24);
  color: var(--ash);
  background: transparent;
}

.ghost-action:hover,
.ghost-action:focus-visible {
  color: var(--white);
  border-color: var(--ink);
  background: var(--ink);
  outline: none;
}

.site-footer {
  padding: 2rem 1rem;
  color: rgba(255, 255, 255, 0.62);
  background: #0b0b0a;
  text-align: center;
}

.site-footer p {
  margin: 0 0 1rem;
  font-family: "Fraunces", serif;
  font-style: italic;
}

.resource-by {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: rgba(255, 255, 255, 0.3);
}

.resource-by img {
  width: 86px;
  height: auto;
  filter: drop-shadow(0 5px 14px rgba(0, 0, 0, 0.3));
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

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

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .tag-row {
    grid-template-columns: 1fr;
  }

  .action-step {
    grid-template-columns: 30px 1fr;
    gap: 0.8rem;
  }

  .step-num {
    width: 30px;
    height: 30px;
  }
}
