/* ══════════════════════════════════════════════════════════
   DANG LANDING PAGE
   Design tokens inherited from the extension's warm palette
══════════════════════════════════════════════════════════ */

/* ─── Tokens ─────────────────────────────────────────────── */
:root {
  --bg:         #ede6db;
  --surface:    #fdf9f5;
  --surface-2:  #f6ede1;

  --ink-1: #17120d;
  --ink-2: #5f5148;
  --ink-3: #9b8d83;

  --accent:    #9a5826;
  --accent-10: rgba(154, 88, 38, 0.10);
  --accent-16: rgba(154, 88, 38, 0.16);
  --accent-24: rgba(154, 88, 38, 0.24);
  --accent-40: rgba(154, 88, 38, 0.40);

  --green:    #4d8b5d;
  --green-bg: rgba(77, 139, 93, 0.12);

  --border:     rgba(36, 22, 10, 0.08);
  --border-mid: rgba(36, 22, 10, 0.14);

  --shadow: 0 1px 0 rgba(36, 22, 10, 0.05), 0 2px 8px rgba(36, 22, 10, 0.04);
  --shadow-lg: 0 4px 24px rgba(36, 22, 10, 0.08), 0 1px 2px rgba(36, 22, 10, 0.04);

  --f-sans:  -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", "Helvetica Neue", sans-serif;
  --f-serif: "Noto Serif KR", "Baskerville", "Iowan Old Style", "Georgia", serif;

  --s1: 4px;  --s2: 8px;  --s3: 12px;  --s4: 16px;
  --s5: 20px; --s6: 24px; --s7: 32px;  --s8: 48px;
  --s9: 64px; --s10: 96px;

  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 20px; --r-2xl: 24px;
  --r-pill: 999px;

  --t: 140ms cubic-bezier(0.2, 0, 0, 1);
  --t-slow: 300ms cubic-bezier(0.2, 0, 0, 1);
}

/* ─── Reset ──────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ─── Base ───────────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink-1);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--s6);
}

/* ══════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════ */
.hero {
  padding: var(--s10) 0 var(--s8);
  text-align: center;
  overflow: hidden;
}

.eyebrow {
  display: inline-block;
  padding: var(--s1) var(--s3);
  border-radius: var(--r-pill);
  border: 1px solid var(--border-mid);
  background: var(--surface);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: var(--s6);
}

.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s1);
  margin-bottom: var(--s6);
}

.brand {
  font-family: var(--f-serif);
  font-size: clamp(48px, 10vw, 80px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--accent);
}

.subtitle {
  font-family: var(--f-serif);
  font-size: clamp(20px, 4vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink-1);
}

.hero-desc {
  font-size: clamp(15px, 2.5vw, 18px);
  line-height: 1.7;
  color: var(--ink-2);
  margin-bottom: var(--s7);
}

/* ─── CTA Button ─────────────────────────────────────────── */
.cta {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  padding: var(--s3) var(--s6);
  border-radius: var(--r-pill);
  background: var(--accent);
  color: white;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background var(--t), transform var(--t);
}

.cta:hover {
  background: #7f4820;
}

.cta:active {
  transform: scale(0.97);
}

.cta-large {
  padding: var(--s4) var(--s7);
  font-size: 16px;
}

/* ─── Ticker ─────────────────────────────────────────────── */
.demo-ticker {
  margin-top: var(--s9);
  padding: var(--s3) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
}

.ticker-track {
  display: flex;
  gap: var(--s4);
  white-space: nowrap;
  animation: ticker-scroll 25s linear infinite;
  width: max-content;
}

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-item {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
}

.ticker-item em {
  font-style: normal;
  font-weight: 700;
  color: var(--accent);
}

.ticker-sep {
  color: var(--ink-3);
  opacity: 0.4;
}

/* ══════════════════════════════════════════════════════════
   HOW IT WORKS
══════════════════════════════════════════════════════════ */
.how {
  padding: var(--s10) 0;
}

.section-title {
  font-family: var(--f-serif);
  font-size: clamp(24px, 5vw, 32px);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-align: center;
  margin-bottom: var(--s4);
  color: var(--ink-1);
}

.section-desc {
  text-align: center;
  font-size: 15px;
  color: var(--ink-2);
  margin-bottom: var(--s8);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s4);
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--s6);
  box-shadow: var(--shadow);
  text-align: center;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--r-md);
  background: var(--accent);
  color: white;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  margin-bottom: var(--s3);
}

.step h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: var(--s2);
  color: var(--ink-1);
}

.step p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-2);
}

/* ══════════════════════════════════════════════════════════
   PRESETS
══════════════════════════════════════════════════════════ */
.presets {
  padding: var(--s8) 0 var(--s10);
}

.preset-grid {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  margin-top: var(--s7);
}

.preset-card {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: var(--s3) var(--s4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  transition: border-color var(--t), transform var(--t);
}

.preset-card:hover {
  border-color: var(--accent-24);
  transform: translateY(-1px);
}

.preset-idx {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-mid);
  background: var(--surface-2);
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink-3);
}

.preset-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.preset-info strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-1);
}

.preset-tone {
  font-size: 12px;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.preset-example {
  flex-shrink: 0;
  padding: var(--s1) var(--s3);
  border-radius: var(--r-pill);
  background: var(--accent-10);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}

.preset-example em {
  font-style: normal;
  font-weight: 800;
  color: var(--accent);
}

/* ══════════════════════════════════════════════════════════
   INTERACTIVE DEMO
══════════════════════════════════════════════════════════ */
.demo {
  padding: var(--s8) 0 var(--s10);
}

.demo-box {
  margin-top: var(--s7);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.demo-controls {
  display: flex;
  gap: var(--s2);
  padding: var(--s4);
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  overflow-x: auto;
}

.demo-btn {
  padding: var(--s2) var(--s4);
  border-radius: var(--r-pill);
  border: 1px solid var(--border-mid);
  background: var(--surface);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--t);
}

.demo-btn:hover {
  background: var(--accent-10);
  border-color: var(--accent-24);
}

.demo-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.demo-result {
  padding: var(--s6);
  display: flex;
  flex-direction: column;
  gap: var(--s4);
}

.demo-line {
  display: flex;
  align-items: center;
  gap: var(--s3);
  flex-wrap: wrap;
}

.demo-original {
  font-size: 15px;
  color: var(--ink-3);
}

.demo-arrow {
  font-size: 14px;
  color: var(--ink-3);
  opacity: 0.5;
}

.demo-transformed {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-1);
  transition: opacity 0.15s ease;
}

/* ══════════════════════════════════════════════════════════
   FINAL CTA
══════════════════════════════════════════════════════════ */
.final-cta {
  padding: var(--s10) 0;
  text-align: center;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cta-title {
  font-family: var(--f-serif);
  font-size: clamp(28px, 6vw, 40px);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--ink-1);
  margin-bottom: var(--s3);
}

.cta-desc {
  font-size: 16px;
  color: var(--ink-2);
  margin-bottom: var(--s7);
}

/* ══════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════ */
.footer {
  padding: var(--s7) 0;
}

.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  font-family: var(--f-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
}

.footer-copy {
  font-size: 12px;
  color: var(--ink-3);
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  .hero {
    padding: var(--s9) 0 var(--s7);
  }

  .steps {
    grid-template-columns: 1fr;
    gap: var(--s3);
  }

  .preset-card {
    flex-wrap: wrap;
  }

  .preset-example {
    margin-left: calc(32px + var(--s3));
  }

  .demo-line {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s1);
  }

  .demo-arrow {
    display: none;
  }

  .demo-controls {
    padding: var(--s3);
    gap: var(--s1);
  }

  .demo-btn {
    padding: var(--s1) var(--s3);
    font-size: 12px;
  }
}

/* ─── Fade-in animation ──────────────────────────────────── */
.hero,
.how,
.presets,
.demo,
.final-cta {
  animation: fadeUp 0.6s ease both;
}

.how       { animation-delay: 0.1s; }
.presets   { animation-delay: 0.15s; }
.demo      { animation-delay: 0.2s; }
.final-cta { animation-delay: 0.25s; }

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
