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

:root {
  --bg: #fafaf9;
  --text: #1c1917;
  --text-muted: #57534e;
  --accent: #dc2626;
  --accent-light: #fef2f2;
  --border: #e7e5e4;
  --card-bg: #ffffff;
  --font-body: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --font-serif: 'Instrument Serif', Georgia, serif;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* HEADER */
.header {
  padding: 6rem 1.5rem 4rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #fff 0%, var(--bg) 100%);
}

.header-inner {
  max-width: 680px;
  margin: 0 auto;
}

.badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-light);
  padding: 0.3em 0.8em;
  border-radius: 3px;
  margin-bottom: 1.5rem;
}

.header h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 1.2rem;
  letter-spacing: -0.02em;
}

.subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 1.5rem;
  line-height: 1.5;
}

.meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.meta .sep {
  margin: 0 0.5em;
}

/* CONTENT */
.content {
  max-width: 680px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.intro {
  margin-bottom: 3.5rem;
}

.intro p {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.intro p:last-child {
  margin-bottom: 0;
}

/* EXAMPLE CONVERSATION */
.example-convo {
  margin-bottom: 2.5rem;
  padding: 1.5rem;
  background: #1c1917;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.convo-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #a8a29e;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.convo-bubble {
  font-size: 0.88rem;
  line-height: 1.5;
  padding: 0.6rem 1rem;
  border-radius: 16px;
  max-width: 80%;
  color: #fafaf9;
}

.convo-bubble.left {
  background: #374151;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.convo-bubble.right {
  background: #dc2626;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

/* DICTIONARY */
.dictionary {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.entry {
  padding: 2.2rem 0;
  border-top: 1px solid var(--border);
}

.entry:last-child {
  border-bottom: 1px solid var(--border);
}

.term {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: 0.3rem;
  letter-spacing: -0.01em;
}

.pos {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: italic;
  letter-spacing: 0.03em;
  margin-bottom: 0.8rem;
  font-style: italic;
}

.definition {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1rem;
  color: var(--text);
}

.example {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--text-muted);
  padding: 1rem 1.2rem;
  background: #f5f5f4;
  border-radius: 6px;
  border-left: 3px solid var(--accent);
}

/* VERSION GUIDE */
.version-guide {
  margin-top: 3rem;
  padding: 2rem 1.5rem;
  background: #f5f5f4;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.version-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 0.8rem;
}

.version-intro {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.8rem;
}

.version-entry {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.version-entry:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.version-entry h3 {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--accent);
}

.version-entry p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text);
}

/* PROMPT SECTION */
.prompt-section {
  margin-top: 3rem;
  padding: 2rem 1.5rem;
  background: #1c1917;
  border-radius: 10px;
  color: #fafaf9;
}

.prompt-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 0.6rem;
  color: #fafaf9;
}

.prompt-desc {
  font-size: 0.9rem;
  color: #a8a29e;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.prompt-box {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.7;
  color: #d6d3d1;
  background: #0c0a09;
  padding: 1.2rem 1rem;
  border-radius: 6px;
  border: 1px solid #292524;
  max-height: 400px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-wrap: break-word;
  margin-bottom: 1rem;
}

.prompt-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.btn-copy,
.btn-download {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.6rem 1.2rem;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
}

.btn-copy {
  background: var(--accent);
  color: #fff;
  border: none;
}

.btn-copy:hover {
  background: #b91c1c;
}

.btn-download {
  background: transparent;
  color: #d6d3d1;
  border: 1px solid #44403c;
}

.btn-download:hover {
  background: #292524;
}

/* FOOTER */
.footer {
  margin-top: 3rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}

.footer p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  font-style: italic;
}

/* RESPONSIVE */
@media (max-width: 640px) {
  .header {
    padding: 4rem 1.25rem 3rem;
  }

  .content {
    padding: 2rem 1.25rem;
  }

  .term {
    font-size: 1.5rem;
  }

  .entry {
    padding: 1.8rem 0;
  }

  .example {
    font-size: 0.78rem;
    padding: 0.8rem 1rem;
  }
}
