:root {
  --bg: #f7f8f6;
  --paper: #ffffff;
  --ink: #1b1d1f;
  --muted: #687078;
  --soft: #eef1ed;
  --line: #dfe4df;
  --green: #1f5b3d;
  --green-dark: #173f2b;
  --sans: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  letter-spacing: 0;
}

.portal-header {
  min-height: 64px;
  padding: 0 max(20px, calc((100vw - 1120px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
}

.brand strong,
.brand small {
  display: inline;
}

.brand strong {
  font-size: 0.98rem;
  font-weight: 700;
  white-space: nowrap;
}

.brand small {
  margin-left: 6px;
  color: var(--muted);
  font-size: 0.73rem;
  white-space: nowrap;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-actions > a {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
}

.header-actions > a:hover {
  color: var(--green);
}

.creator {
  padding-left: 18px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
}

.creator strong,
footer strong {
  color: var(--green);
}

main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 34px 20px 64px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
  align-items: end;
  padding: 28px 0 30px;
  border-bottom: 1px solid var(--line);
}

.eyebrow,
.section-kicker {
  display: inline-block;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 700;
}

.hero h1 {
  max-width: 760px;
  margin-top: 10px;
  color: var(--green-dark);
  font-size: clamp(1.85rem, 3.4vw, 2.75rem);
  font-weight: 750;
  line-height: 1.16;
}

.hero p {
  max-width: 610px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.hero-panel {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.hero-panel strong,
.hero-panel span {
  display: block;
}

.hero-panel strong {
  color: var(--ink);
  font-size: 0.92rem;
}

.hero-panel span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.8rem;
}

.tools-section {
  padding-top: 28px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.section-heading h2 {
  margin-top: 5px;
  color: var(--ink);
  font-size: 1.55rem;
  font-weight: 750;
}

.tool-count {
  color: var(--muted);
  font-size: 0.82rem;
}

.category-tabs {
  display: flex;
  gap: 8px;
  margin: 20px 0 18px;
  overflow-x: auto;
}

.category-tab {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px 14px;
  background: #fff;
  color: var(--muted);
  font: 650 0.84rem var(--sans);
  cursor: pointer;
  white-space: nowrap;
}

.category-tab:hover {
  border-color: #aebcaf;
  color: var(--green);
}

.category-tab.is-active {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.tool-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: inherit;
  text-decoration: none;
  transition: border-color .16s, box-shadow .16s, transform .16s;
}

.tool-card:hover {
  transform: translateY(-2px);
  border-color: #b8c6b9;
  box-shadow: 0 10px 24px rgba(24, 36, 28, 0.08);
}

.tool-card[hidden] { display: none; }

.tool-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tool-icon {
  min-width: 48px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  padding: 0 10px;
  font-size: 0.74rem;
  font-weight: 800;
}

.tool-icon--green { background: #e7f1ea; color: #24633f; }
.tool-icon--yellow { background: #fff4dc; color: #805b00; }
.tool-icon--rose { background: #f8e8e6; color: #84413d; }

.status {
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 0.72rem;
  font-weight: 700;
}

.status--ready { background: #e7f3ea; color: #23623e; }
.status--soon { background: #f0f1ef; color: #777d77; }

.tool-card h3 {
  margin-top: 22px;
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 750;
  line-height: 1.35;
}

.tool-card p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.tool-card__meta {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
  color: #7f8780;
  font-size: 0.78rem;
  font-weight: 650;
}

.tool-card__enter {
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid #ecefeb;
  color: var(--green);
  font-size: 0.86rem;
  font-weight: 750;
}

footer {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 24px 20px;
  border-top: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 0.78rem;
}

.support-shell {
  max-width: 820px;
  margin: 0 auto;
  padding: 56px 20px 64px;
}

.support-shell h1 {
  margin-top: 10px;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 750;
  line-height: 1.18;
}

.support-shell > .lead {
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.support-card {
  margin-top: 28px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.support-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.support-field--wide { grid-column: 1 / -1; }

.support-field span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.support-field input,
.support-field select,
.support-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 11px 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
}

.support-field textarea {
  min-height: 130px;
  resize: vertical;
}

.support-note {
  margin-top: 14px;
  padding: 12px;
  border-radius: 7px;
  background: var(--soft);
  color: var(--green-dark);
  font-size: 0.78rem;
  line-height: 1.55;
}

.support-actions {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

.support-actions button {
  border: 0;
  border-radius: 7px;
  padding: 11px 17px;
  background: var(--green);
  color: #fff;
  font: 700 0.84rem var(--sans);
  cursor: pointer;
}

.support-actions button + button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
}

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; align-items: start; }
  .hero-panel { max-width: 360px; }
  .tool-grid { grid-template-columns: 1fr; }
  .tool-card { min-height: 220px; }
}

@media (max-width: 620px) {
  .portal-header {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .creator { display: none; }
  .hero { padding-top: 22px; }
  .support-grid { grid-template-columns: 1fr; }
  .support-field--wide { grid-column: auto; }
  footer { flex-wrap: wrap; }
}
