/*
  XNTLAB 홈페이지 스타일 파일
  ------------------------------------------------------------
  수정 팁:
  1. 색상은 :root 안의 변수만 바꾸면 전체 분위기가 같이 바뀝니다.
  2. 각 섹션의 여백은 .section, .section-inner에서 조정합니다.
  3. 모바일 화면 규칙은 파일 아래쪽의 @media 영역에 모아두었습니다.
*/

:root {
  --bg: #f7f8f6;
  --surface: #ffffff;
  --ink: #171b1f;
  --muted: #5f686b;
  --line: #dce2df;
  --teal: #176b68;
  --teal-deep: #0f4747;
  --coral: #df6b55;
  --gold: #c79a42;
  --charcoal: #11161a;
  --shadow: 0 18px 50px rgba(17, 22, 26, 0.12);
  --radius: 8px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    "Pretendard",
    "Apple SD Gothic Neo",
    "Malgun Gothic",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.65;
  word-break: keep-all;
}

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

img {
  display: block;
  max-width: 100%;
}

/* 상단 메뉴: 화면이 좁아지면 메뉴가 자연스럽게 다음 줄로 내려갑니다. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(247, 248, 246, 0.9);
  border-bottom: 1px solid rgba(220, 226, 223, 0.82);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  background: var(--ink);
  border-radius: 8px;
  color: #ffffff;
  font-size: 18px;
}

.brand-text {
  font-size: 18px;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.main-nav a {
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  background: #e9efec;
  color: var(--ink);
  outline: none;
}

/* 첫 화면: 배경 이미지는 어두운 그라데이션과 함께 깔아 텍스트 가독성을 확보합니다. */
.hero {
  min-height: 74svh;
  display: grid;
  align-items: center;
  padding: clamp(76px, 11vw, 138px) clamp(20px, 6vw, 84px);
  background:
    linear-gradient(90deg, rgba(11, 15, 18, 0.9) 0%, rgba(11, 15, 18, 0.72) 38%, rgba(11, 15, 18, 0.16) 72%),
    url("assets/hero-workspace.png") center right / cover no-repeat;
  color: #ffffff;
}

.hero-content {
  width: min(650px, 100%);
}

.eyebrow,
.section-kicker,
.note-label {
  margin: 0 0 12px;
  color: var(--coral);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(56px, 10vw, 132px);
  line-height: 0.9;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 600px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(18px, 2.1vw, 24px);
  line-height: 1.55;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.button-primary {
  background: var(--coral);
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(223, 107, 85, 0.28);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.36);
  color: #ffffff;
}

.button-dark {
  background: var(--charcoal);
  color: #ffffff;
}

.button-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

/* 공통 섹션 규칙: 홈페이지 전체의 좌우 폭과 세로 여백을 맞춥니다. */
.section {
  padding: clamp(64px, 9vw, 116px) clamp(20px, 5vw, 56px);
}

.section-inner {
  width: min(var(--max-width), 100%);
  margin: 0 auto;
}

.section-heading {
  display: grid;
  gap: 12px;
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading h2,
.intro-grid h2,
.split-copy h2,
.maker-band h2,
.contact-layout h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.12;
  letter-spacing: 0;
}

.section-heading p,
.section-copy,
.split-copy p,
.maker-band p,
.contact-actions p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.intro-section {
  padding-top: clamp(38px, 6vw, 72px);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(280px, 0.78fr);
  gap: clamp(28px, 6vw, 84px);
  align-items: start;
  border-bottom: 1px solid var(--line);
  padding-bottom: clamp(42px, 6vw, 80px);
}

.section-copy {
  padding-top: 8px;
}

/* 카드 그리드: 반복되는 항목만 카드로 만들고, 큰 섹션 자체는 카드처럼 감싸지 않았습니다. */
.card-grid {
  display: grid;
  gap: 18px;
}

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

.three-columns {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.note-card {
  position: relative;
  min-height: 250px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(17, 22, 26, 0.05);
}

.feature-card {
  display: flex;
  flex-direction: column;
  margin-top: 28px;
}

.feature-card-link {
  color: inherit;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.feature-card-link:hover,
.feature-card-link:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(23, 107, 104, 0.36);
  box-shadow: 0 18px 42px rgba(17, 22, 26, 0.12);
  outline: none;
}

.card-number {
  width: max-content;
  margin-bottom: auto;
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
}

.feature-usage {
  position: absolute;
  top: -30px;
  left: 4px;
  color: var(--teal-deep);
  font-size: 14px;
  font-weight: 900;
}

.feature-card h3,
.note-card h3 {
  margin: 24px 0 10px;
  font-size: 21px;
  line-height: 1.28;
}

.feature-card p,
.note-card p {
  margin: 0;
  color: var(--muted);
}

.contrast-section {
  background: var(--charcoal);
  color: #ffffff;
}

.contrast-section .section-kicker {
  color: #78d4c9;
}

.contrast-section p,
.contrast-section span {
  color: rgba(255, 255, 255, 0.72);
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(320px, 1fr);
  gap: clamp(34px, 7vw, 90px);
  align-items: center;
}

.split-copy {
  display: grid;
  gap: 18px;
}

.text-link {
  width: max-content;
  color: #78d4c9;
  font-weight: 900;
}

.service-list {
  display: grid;
  gap: 12px;
}

.service-row {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.service-row strong {
  color: #ffffff;
}

.maker-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 28px;
  align-items: center;
  padding: clamp(32px, 5vw, 54px);
  background:
    linear-gradient(135deg, rgba(23, 107, 104, 0.11), rgba(223, 107, 85, 0.1)),
    #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.maker-band p {
  max-width: 760px;
  margin-top: 16px;
}

.muted-section {
  background: #eef2f0;
}

.note-label {
  color: var(--gold);
}

.contact-section {
  background: var(--teal-deep);
  color: #ffffff;
}

.contact-section .section-kicker {
  color: #ffc0ac;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
  gap: 30px;
  align-items: center;
}

.contact-actions {
  justify-content: flex-start;
  margin-top: 0;
}

.contact-actions p {
  color: rgba(255, 255, 255, 0.72);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(20px, 5vw, 56px);
  background: #0b0f12;
  color: rgba(255, 255, 255, 0.66);
  font-size: 14px;
}

.site-footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: #ffffff;
  outline: none;
}

/* Web SW 상세 페이지: 실제 도구 화면을 위한 레이아웃입니다. */
.tool-hero {
  padding: clamp(58px, 8vw, 104px) clamp(20px, 5vw, 56px);
  background:
    linear-gradient(135deg, rgba(17, 22, 26, 0.94), rgba(15, 71, 71, 0.9)),
    var(--charcoal);
  color: #ffffff;
}

.tool-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: clamp(28px, 6vw, 80px);
  align-items: end;
}

.tool-hero h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 88px);
  line-height: 0.96;
  letter-spacing: 0;
}

.tool-lead {
  max-width: 720px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(18px, 2vw, 22px);
}

.tool-subcopy {
  max-width: 680px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.62);
}

.usage-pill {
  display: grid;
  gap: 6px;
  width: fit-content;
  min-width: 220px;
  justify-self: end;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
}

.usage-pill span {
  font-size: 18px;
  font-weight: 900;
}

.usage-pill strong {
  color: #ffffff;
}

.usage-pill p {
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
}

.tool-section {
  background: #eef2f0;
}

.tool-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.85fr);
  gap: 20px;
  align-items: start;
}

.tool-card {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 4vw, 34px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(17, 22, 26, 0.07);
}

.tool-card-heading {
  display: grid;
  gap: 8px;
}

.tool-card-heading h2 {
  margin: 0;
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.16;
}

.tool-card-heading p:last-child {
  margin: 0;
  color: var(--muted);
}

.field-row {
  display: grid;
  gap: 8px;
}

.field-row label {
  font-weight: 900;
}

.field-row input,
.field-row select,
.field-row textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
  color: var(--ink);
  font: inherit;
}

.field-row input,
.field-row select {
  max-width: 180px;
  min-height: 46px;
  padding: 8px 12px;
}

.field-row .wide-input {
  max-width: 100%;
}

.field-row textarea {
  min-height: 320px;
  padding: 14px;
  resize: vertical;
}

.field-row input:focus,
.field-row select:focus,
.field-row textarea:focus {
  border-color: var(--teal);
  outline: 3px solid rgba(23, 107, 104, 0.14);
}

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

.two-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.three-fields {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.result-card {
  min-height: 500px;
}

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

.result-heading h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.14;
}

.keyword-list {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 10px;
  min-height: 250px;
  padding: 18px;
  background: #f7f8f6;
  border: 1px dashed #cdd7d2;
  border-radius: var(--radius);
}

.keyword-chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--teal-deep);
  font-weight: 900;
}

.empty-result {
  margin: 0;
  color: var(--muted);
}

#copy-buffer {
  width: 100%;
  min-height: 120px;
}

.tool-message {
  min-height: 24px;
  margin: 0;
  color: var(--teal-deep);
  font-weight: 800;
}

/* URL 분석기: 원본 주소와 위험 신호를 스캔하기 쉽게 정리합니다. */
.url-result {
  display: grid;
  gap: 16px;
  min-height: 250px;
}

.risk-card {
  display: grid;
  gap: 6px;
  padding: 18px;
  border-radius: var(--radius);
  color: #ffffff;
}

.risk-card span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 800;
}

.risk-card strong {
  font-size: 30px;
  line-height: 1.1;
}

.risk-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.risk-safe {
  background: #126b50;
}

.risk-good {
  background: #176b68;
}

.risk-risk {
  background: #9b6b19;
}

.risk-danger {
  background: #9f3327;
}

.result-block {
  display: grid;
  gap: 8px;
  padding: 16px;
  background: #f7f8f6;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.result-label {
  margin: 0;
  color: var(--coral);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.url-output {
  overflow-wrap: anywhere;
  color: var(--teal-deep);
  font-weight: 900;
}

.redirect-list,
.check-list,
.warning-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.redirect-list li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.redirect-list li > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  background: var(--ink);
  border-radius: 999px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
}

.redirect-list strong,
.check-list strong {
  color: var(--ink);
}

.redirect-list p {
  margin: 2px 0 0;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 14px;
}

.check-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.check-list span,
.warning-list li {
  color: var(--muted);
}

/* 뽀모도로 타이머: 레퍼런스처럼 작은 데스크 타이머 감성의 원형 진행 UI입니다. */
.pomodoro-theme {
  --timer-accent: #176b68;
  --timer-accent-soft: #d9ece6;
  --timer-panel: #fffdf7;
  --timer-ink: #101417;
}

.theme-forest {
  --timer-accent: #126b50;
  --timer-accent-soft: #dceee7;
  --timer-panel: #fffdf7;
}

.theme-violet {
  --timer-accent: #7252b8;
  --timer-accent-soft: #e9e1fb;
  --timer-panel: #fffaff;
}

.theme-sun {
  --timer-accent: #e0a23d;
  --timer-accent-soft: #fff0c9;
  --timer-panel: #fffaf0;
}

.theme-ocean {
  --timer-accent: #1780b8;
  --timer-accent-soft: #dceefa;
  --timer-panel: #f8fcff;
}

.theme-mint {
  --timer-accent: #25aa9a;
  --timer-accent-soft: #dff5ef;
  --timer-panel: #fbfffc;
}

.theme-digital {
  --timer-accent: #ff7a38;
  --timer-accent-soft: #121923;
  --timer-panel: #f6efe3;
  --timer-ink: #f5fff7;
}

.pomodoro-hero {
  background:
    linear-gradient(135deg, rgba(17, 22, 26, 0.94), rgba(23, 107, 104, 0.86)),
    var(--charcoal);
}

.pomodoro-section {
  background: var(--timer-accent-soft);
}

.pomodoro-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(320px, 1fr);
  gap: clamp(20px, 4vw, 42px);
  align-items: center;
}

.timer-stage {
  display: grid;
  place-items: center;
}

.timer-shell {
  width: min(420px, 100%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 34px);
  background: var(--timer-panel);
  border: 1px solid rgba(17, 22, 26, 0.1);
  border-radius: 32px;
  box-shadow:
    0 24px 60px rgba(17, 22, 26, 0.16),
    inset 0 0 0 8px rgba(255, 255, 255, 0.7);
}

.theme-digital .timer-shell {
  padding: clamp(16px, 3vw, 26px);
  background:
    linear-gradient(145deg, #f6efe3, #cabba9),
    var(--timer-panel);
  border: 6px solid rgba(17, 22, 26, 0.18);
  border-radius: 28px;
  box-shadow:
    0 26px 70px rgba(17, 22, 26, 0.28),
    inset 0 0 0 8px rgba(255, 255, 255, 0.42);
}

.timer-dial {
  --progress: 0deg;
  width: 100%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    conic-gradient(var(--timer-accent) var(--progress), #d7ddd8 0),
    radial-gradient(circle, #ffffff 0 58%, transparent 59%);
  box-shadow: inset 0 0 0 1px rgba(17, 22, 26, 0.08);
}

.theme-digital .timer-dial {
  border-radius: 18px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 50%, rgba(0, 0, 0, 0.04) 50%) 0 0 / 100% 8px,
    radial-gradient(circle at center, rgba(255, 122, 56, 0.12) 0 43%, transparent 44%),
    conic-gradient(var(--timer-accent) var(--progress), rgba(255, 255, 255, 0.08) 0),
    #101722;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 0 40px rgba(0, 0, 0, 0.6);
}

.timer-face {
  width: 62%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  background: #101417;
  border-radius: 50%;
  color: #ffffff;
  text-align: center;
}

.theme-digital .timer-face {
  width: 66%;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0)),
    #071018;
  color: #f5fff7;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 0 24px rgba(35, 255, 198, 0.14);
}

.timer-mode,
.timer-status {
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timer-time {
  font-size: clamp(34px, 7vw, 58px);
  line-height: 1;
  letter-spacing: 0;
}

.theme-digital .timer-time {
  color: #c9ffe8;
  font-family:
    "Consolas",
    "Cascadia Mono",
    "Courier New",
    monospace;
  text-shadow:
    0 0 10px rgba(37, 255, 190, 0.58),
    0 0 22px rgba(255, 122, 56, 0.22);
}

.timer-panel {
  background: rgba(255, 255, 255, 0.9);
}

.time-inputs {
  display: grid;
  grid-template-columns: minmax(70px, 1fr) max-content minmax(70px, 1fr) max-content;
  gap: 8px;
  align-items: center;
}

.time-inputs input {
  max-width: 100%;
}

.time-inputs span {
  color: var(--muted);
  font-weight: 800;
}

.preset-row,
.theme-picker,
.toggle-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.preset-row button {
  min-height: 40px;
  padding: 8px 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.theme-swatch {
  width: 38px;
  height: 38px;
  border: 3px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(17, 22, 26, 0.16);
  cursor: pointer;
}

.theme-swatch.is-active {
  box-shadow:
    0 0 0 3px var(--timer-accent),
    0 10px 20px rgba(17, 22, 26, 0.16);
}

.swatch-forest {
  background: #126b50;
}

.swatch-violet {
  background: #7252b8;
}

.swatch-sun {
  background: #e0a23d;
}

.swatch-ocean {
  background: #1780b8;
}

.swatch-mint {
  background: #25aa9a;
}

.swatch-digital {
  background:
    linear-gradient(135deg, #101722 0 50%, #ff7a38 50% 100%);
}

.toggle-row label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 900;
}

/* 키워드 마인드맵: 중심 키워드에서 아이디어 노드가 퍼져 나가는 시각화 화면입니다. */
.mindmap-hero {
  background:
    linear-gradient(135deg, rgba(17, 22, 26, 0.95), rgba(44, 60, 86, 0.9)),
    var(--charcoal);
}

.mindmap-section {
  background:
    radial-gradient(circle at 20% 20%, rgba(37, 170, 154, 0.14), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(223, 107, 85, 0.13), transparent 30%),
    #edf1ef;
}

.mindmap-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.42fr) minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}

.mindmap-control {
  align-self: start;
}

.mindmap-stage {
  min-width: 0;
}

.mindmap-canvas {
  position: relative;
  min-height: 660px;
  overflow: hidden;
  background:
    linear-gradient(rgba(17, 22, 26, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 22, 26, 0.04) 1px, transparent 1px),
    #fbfcfb;
  background-size: 36px 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 48px rgba(17, 22, 26, 0.1);
}

.mindmap-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.mindmap-lines line {
  stroke-width: 2;
  stroke-linecap: round;
  opacity: 0.34;
}

.mindmap-nodes {
  position: absolute;
  inset: 0;
}

.mindmap-node {
  position: absolute;
  max-width: 170px;
  min-height: 42px;
  padding: 9px 13px;
  border: 1px solid rgba(17, 22, 26, 0.12);
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
  transform: translate(-50%, -50%);
  box-shadow: 0 12px 26px rgba(17, 22, 26, 0.1);
}

.mindmap-center {
  max-width: 220px;
  min-height: 72px;
  padding: 16px 24px;
  background: #11161a;
  color: #ffffff;
  border-radius: 20px;
  font-size: clamp(21px, 3vw, 34px);
  box-shadow: 0 22px 48px rgba(17, 22, 26, 0.28);
}

.mindmap-group {
  background: var(--node-color);
  color: #ffffff;
}

.mindmap-leaf {
  color: var(--node-color);
}

.mindmap-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: var(--muted);
  text-align: center;
}

.mindmap-empty strong {
  color: var(--ink);
  font-size: clamp(34px, 7vw, 76px);
  line-height: 1;
}

/* 해시태그/키워드 생성기: 생성 결과를 복사하기 쉬운 묶음으로 나눕니다. */
.hashtag-hero {
  background:
    linear-gradient(135deg, rgba(17, 22, 26, 0.94), rgba(114, 82, 184, 0.82)),
    var(--charcoal);
}

.generated-result {
  display: grid;
  gap: 16px;
  min-height: 300px;
}

.generated-section {
  display: grid;
  gap: 12px;
  padding: 16px;
  background: #f7f8f6;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.generated-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.generated-section-heading strong {
  color: var(--teal-deep);
}

.hashtag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hashtag-chip,
.chip-button {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--teal-deep);
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.hashtag-chip:hover,
.hashtag-chip:focus-visible,
.chip-button:hover,
.chip-button:focus-visible {
  border-color: rgba(23, 107, 104, 0.45);
  box-shadow: 0 8px 20px rgba(17, 22, 26, 0.1);
  outline: none;
}

.compact-list {
  min-height: auto;
  padding: 0;
  background: transparent;
  border: 0;
}

/* 특수문자 이모티콘 모음: 검색, 카테고리, 복사를 한 화면에서 처리합니다. */
.emoticon-hero {
  background:
    linear-gradient(135deg, rgba(17, 22, 26, 0.94), rgba(199, 154, 66, 0.78)),
    var(--charcoal);
}

.emoticon-section {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.36), transparent),
    #eef2f0;
}

.emoticon-layout {
  display: grid;
  grid-template-columns: minmax(270px, 0.36fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.emoticon-controls {
  position: sticky;
  top: 86px;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-tab {
  min-height: 38px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

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

.category-tab:hover,
.category-tab:focus-visible {
  border-color: rgba(17, 22, 26, 0.32);
  outline: none;
}

.emoticon-panel {
  min-width: 0;
}

.emoticon-panel-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.emoticon-panel-heading h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.15;
}

.emoticon-panel-heading p:last-child {
  margin: 0;
  color: var(--teal-deep);
  font-weight: 900;
}

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

.emoticon-card {
  min-width: 0;
}

.emoticon-copy {
  width: 100%;
  min-height: 130px;
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  text-align: center;
  box-shadow: 0 10px 24px rgba(17, 22, 26, 0.05);
  cursor: pointer;
}

.emoticon-copy:hover,
.emoticon-copy:focus-visible {
  border-color: rgba(223, 107, 85, 0.46);
  box-shadow: 0 16px 34px rgba(17, 22, 26, 0.1);
  outline: none;
}

.emoticon-text {
  display: block;
  overflow-wrap: anywhere;
  font-size: clamp(21px, 2.4vw, 32px);
  line-height: 1.25;
}

.emoticon-meta {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

/* 태블릿 화면: 카드 개수를 줄여 글자가 답답하지 않게 합니다. */
@media (max-width: 980px) {
  .four-columns,
  .three-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .intro-grid,
  .split-layout,
  .contact-layout,
  .tool-hero-grid,
  .tool-layout,
  .pomodoro-layout,
  .mindmap-layout,
  .emoticon-layout {
    grid-template-columns: 1fr;
  }

  .emoticon-controls {
    position: static;
  }

  .emoticon-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .maker-band {
    grid-template-columns: 1fr;
  }

  .three-fields {
    grid-template-columns: 1fr;
  }

  .usage-pill {
    justify-self: start;
  }
}

/* 모바일 화면: 메뉴, 버튼, 카드가 한 줄에 무리하게 끼지 않도록 정리합니다. */
@media (max-width: 680px) {
  .site-header {
    align-items: flex-start;
  }

  .main-nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: 68svh;
    padding-top: 86px;
    background:
      linear-gradient(180deg, rgba(11, 15, 18, 0.92) 0%, rgba(11, 15, 18, 0.74) 56%, rgba(11, 15, 18, 0.42) 100%),
      url("assets/hero-workspace.png") center / cover no-repeat;
  }

  .hero-actions,
  .contact-actions,
  .tool-actions {
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .four-columns,
  .three-columns {
    grid-template-columns: 1fr;
  }

  .feature-card,
  .note-card {
    min-height: auto;
  }

  .tool-hero {
    padding-top: 42px;
  }

  .tool-layout {
    gap: 14px;
  }

  .tool-card {
    padding: 20px;
  }

  .field-row input {
    max-width: 100%;
  }

  .field-row select {
    max-width: 100%;
  }

  .field-row textarea {
    min-height: 260px;
  }

  .two-fields,
  .three-fields {
    grid-template-columns: 1fr;
  }

  .result-heading {
    display: grid;
  }

  .check-list li {
    display: grid;
    gap: 2px;
  }

  .timer-shell {
    width: min(330px, 100%);
    border-radius: 24px;
  }

  .mindmap-canvas {
    min-height: 760px;
  }

  .mindmap-node {
    max-width: 142px;
    padding: 8px 10px;
    font-size: 12px;
  }

  .mindmap-center {
    min-height: 62px;
    padding: 12px 18px;
  }

  .emoticon-panel-heading {
    align-items: start;
  }

  .emoticon-grid {
    grid-template-columns: 1fr;
  }

  .emoticon-copy {
    min-height: 112px;
  }

  .time-inputs {
    grid-template-columns: minmax(68px, 1fr) max-content;
  }

  .service-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

/* 아주 좁은 화면: 로고와 메뉴가 넘치지 않도록 여백과 글자를 조금 줄입니다. */
@media (max-width: 420px) {
  .site-header {
    padding-inline: 14px;
  }

  .main-nav a {
    padding: 7px 8px;
    font-size: 13px;
  }

  .hero h1 {
    font-size: 52px;
  }
}
