:root {
  --bg: #f4efe7;
  --surface: rgba(255, 252, 246, 0.86);
  --surface-strong: #fffaf2;
  --ink: #171717;
  --muted: #5f5a53;
  --line: rgba(23, 23, 23, 0.1);
  --accent: #ff6b2c;
  --accent-deep: #d74a10;
  --accent-soft: #ffd9c9;
  --green: #1f8f63;
  --shadow: 0 24px 70px rgba(43, 31, 18, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans KR", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 174, 132, 0.45), transparent 28%),
    radial-gradient(circle at top right, rgba(255, 222, 163, 0.5), transparent 24%),
    linear-gradient(180deg, #f8f0e6 0%, #f4efe7 45%, #efe6db 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(23, 23, 23, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 23, 23, 0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 85%);
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 64px;
  position: relative;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 18px;
  background: rgba(255, 250, 242, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  backdrop-filter: blur(18px);
  position: sticky;
  top: 18px;
  z-index: 10;
  box-shadow: 0 16px 40px rgba(58, 40, 22, 0.08);
}

.brand,
.topnav a,
.top-cta {
  text-decoration: none;
  color: inherit;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent) 0%, #ff9d71 100%);
  color: white;
  box-shadow: 0 12px 24px rgba(255, 107, 44, 0.28);
}

.topnav {
  display: flex;
  gap: 20px;
  color: var(--muted);
}

.topnav a:hover,
.top-cta:hover {
  color: var(--ink);
}

.top-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.top-cta {
  padding: 12px 18px;
  background: var(--ink);
  color: white;
}

.top-cta:hover,
.button:hover,
.action-chip:hover {
  transform: translateY(-1px);
}

main {
  display: grid;
  gap: 34px;
  margin-top: 28px;
}

section {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 28px;
  padding: 42px;
}

.hero-copy h1,
.section-heading h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.02;
}

.hero-copy h1 {
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  letter-spacing: -0.05em;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-deep);
  font-weight: 700;
}

.hero-text,
.section-heading p,
.compare-card li,
.flow-grid p,
.task-note,
.status-copy {
  color: var(--muted);
}

.hero-text {
  max-width: 640px;
  font-size: 1.05rem;
  line-height: 1.7;
}

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

.button {
  padding: 14px 22px;
  text-decoration: none;
  font-weight: 700;
}

.button-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 18px 32px rgba(255, 107, 44, 0.24);
}

.button-secondary {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.6);
}

.block {
  width: 100%;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.hero-metrics li,
.status-card,
.preview-card,
.task-card,
.compare-card,
.flow-grid article,
.composer-form {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.hero-metrics li {
  padding: 18px;
}

.hero-metrics strong {
  display: block;
  font-size: 1.4rem;
  margin-bottom: 6px;
  font-family: "Space Grotesk", sans-serif;
}

.hero-panel {
  display: flex;
  align-items: stretch;
}

.device-card {
  width: 100%;
  background: linear-gradient(180deg, #281f1a 0%, #3d2b22 100%);
  color: white;
  border-radius: 32px;
  padding: 18px;
  box-shadow: 0 30px 60px rgba(48, 29, 15, 0.3);
}

.device-head {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
}

.message-stack {
  display: grid;
  gap: 14px;
}

.message {
  padding: 18px;
  border-radius: 22px;
}

.message-kakao {
  background: #fee500;
  color: #1a1a1a;
}

.message-sms {
  background: #fff5eb;
  color: #3d2b22;
}

.message-mail {
  background: rgba(255, 255, 255, 0.14);
}

.channel {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(23, 23, 23, 0.1);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.problem,
.composer,
.loop,
.dashboard {
  padding: 32px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.section-heading.compact {
  margin-bottom: 18px;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.04em;
}

.compare-grid,
.flow-grid,
.composer-layout {
  display: grid;
  gap: 18px;
}

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

.compare-card {
  padding: 24px;
}

.compare-card.accent {
  background: linear-gradient(180deg, #fff6ea 0%, #ffe9db 100%);
  border-color: rgba(255, 107, 44, 0.22);
}

.compare-card ul {
  margin: 14px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
}

.composer-layout {
  grid-template-columns: 1.05fr 0.95fr;
}

.composer-form {
  padding: 24px;
  display: grid;
  gap: 18px;
}

label,
fieldset {
  display: grid;
  gap: 10px;
  margin: 0;
  border: 0;
  padding: 0;
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(23, 23, 23, 0.1);
  background: #fffdf9;
  color: var(--ink);
  outline: none;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(255, 107, 44, 0.45);
  box-shadow: 0 0 0 4px rgba(255, 107, 44, 0.12);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

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

.channel-pills,
.preview-tags,
.task-channels,
.task-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.channel-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: white;
  overflow: hidden;
}

.channel-pill input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.channel-pill span,
.preview-tags span,
.task-channels span {
  padding: 10px 14px;
  font-size: 0.92rem;
  font-weight: 700;
}

.channel-pill.selected {
  background: var(--accent-soft);
  border-color: rgba(255, 107, 44, 0.34);
}

.preview-panel {
  display: grid;
  gap: 18px;
}

.preview-card,
.status-card {
  padding: 24px;
}

.preview-head,
.task-meta,
.task-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.preview-head p,
.status-label,
.task-time {
  margin: 0;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 700;
}

.preview-card h3,
.task-card h3 {
  margin: 16px 0 10px;
  font-size: 1.6rem;
}

.preview-card p {
  margin: 0;
}

.preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.action-chip {
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
}

.action-chip-primary,
.complete-btn {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}

.status-card strong {
  display: block;
  margin: 10px 0 8px;
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-family: "Space Grotesk", sans-serif;
}

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

.flow-grid article {
  padding: 20px;
}

.flow-grid span {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-weight: 700;
  margin-bottom: 16px;
}

.task-board {
  display: grid;
  gap: 14px;
}

.task-card {
  padding: 20px 22px;
}

.task-card.completed {
  opacity: 0.7;
  background: #f0fbf6;
}

.task-card.completed .task-title {
  text-decoration: line-through;
}

.task-meta {
  min-width: 280px;
}

@media (max-width: 980px) {
  .topbar,
  .hero,
  .composer-layout,
  .compare-grid,
  .flow-grid,
  .field-row,
  .task-card,
  .task-meta {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .topnav {
    display: none;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 20px, 100%);
    padding-top: 16px;
  }

  .topbar,
  .hero,
  .problem,
  .composer,
  .loop,
  .dashboard {
    padding: 20px;
  }

  .hero-copy h1 {
    font-size: 2.4rem;
  }

  .preview-card h3,
  .task-card h3 {
    font-size: 1.25rem;
  }
}
