:root {
  --ink: #14211f;
  --muted: #61706d;
  --line: #dce6e2;
  --paper: #f7faf8;
  --white: #ffffff;
  --green: #1f8a63;
  --coral: #ef6b4f;
  --blue: #3a78c2;
  --soft: #e9f4ef;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Pretendard", "Noto Sans KR", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

a {
  color: inherit;
  text-decoration: none;
}

.hero {
  position: relative;
  min-height: 92vh;
  overflow: hidden;
  background: #111;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.58);
}

.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px;
  color: #fff;
}

.topbar div {
  display: flex;
  gap: 18px;
  font-size: 14px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: 16vh 24px 18vh;
  color: #fff;
}

.hero-copy p,
.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-weight: 800;
  letter-spacing: 0;
}

.hero-copy h1 {
  max-width: 760px;
  margin: 0 0 20px;
  font-size: clamp(44px, 7vw, 86px);
  line-height: 1.04;
  letter-spacing: 0;
}

.hero-copy span {
  display: block;
  max-width: 620px;
  font-size: 20px;
  line-height: 1.7;
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 72px 24px;
}

.intro,
.panel,
.writer,
.visual-tools,
.adsense {
  border-bottom: 1px solid var(--line);
}

.section h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.18;
  letter-spacing: 0;
}

.workflow,
.keyword-grid,
.visual-grid,
.revenue-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
}

article,
.result-card,
.compose {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  box-shadow: 0 16px 38px rgba(26, 56, 48, 0.06);
}

article span {
  color: var(--coral);
  font-weight: 900;
}

article h3,
.result-card h3 {
  margin: 10px 0;
  font-size: 22px;
}

article p,
.result-card p,
.compose p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

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

.source-link,
button {
  border: 0;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  padding: 12px 16px;
  font-weight: 800;
  cursor: pointer;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.filter {
  background: #e8efeb;
  color: var(--ink);
}

.filter.active {
  background: var(--ink);
  color: #fff;
}

.keyword-card {
  min-height: 230px;
}

.keyword-card button {
  width: 100%;
  margin-top: 16px;
  background: var(--blue);
}

.intent {
  display: inline-flex;
  margin-bottom: 12px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--green);
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 900;
}

.writer {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 22px;
  align-items: stretch;
}

label {
  display: block;
  margin: 28px 0 8px;
  font-weight: 900;
}

.input-row {
  display: flex;
  gap: 10px;
}

input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  font-size: 16px;
}

.portal-links {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.portal-links a {
  display: flex;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
  background: #fbfdfc;
  font-weight: 800;
}

.result-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

#intentBadge {
  border-radius: 999px;
  background: #fff0ec;
  color: var(--coral);
  padding: 7px 10px;
  font-weight: 900;
}

.outline {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.outline div {
  border-left: 4px solid var(--green);
  background: #f4faf7;
  padding: 12px 14px;
  line-height: 1.55;
}

.visual-grid,
.revenue-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 860px) {
  .topbar {
    align-items: flex-start;
    gap: 14px;
    flex-direction: column;
  }

  .topbar div {
    flex-wrap: wrap;
  }

  .workflow,
  .keyword-grid,
  .visual-grid,
  .revenue-grid,
  .writer {
    grid-template-columns: 1fr;
  }

  .section-head,
  .input-row {
    align-items: stretch;
    flex-direction: column;
  }

  .hero {
    min-height: 86vh;
  }
}
