:root {
  --green: #006a4e;
  --green-dark: #004d38;
  --green-700: #005c43;
  --gold: #c8a24b;
  --gold-soft: #e9d9ac;
  --ink: #1f2a26;
  --muted: #5c6b64;
  --bg: #f6f9f7;
  --card: #ffffff;
  --line: #e4ebe7;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0, 60, 40, 0.08);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

a { color: var(--green-dark); text-decoration: none; }
code {
  background: #eef4f1;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 7px;
  font-size: 0.9em;
}

/* Disclaimer strip */
.disclaimer-strip {
  background: #fff6e5;
  border-bottom: 1px solid #f0e2c4;
  color: #6b5316;
  font-size: 0.82rem;
  text-align: center;
  padding: 8px 16px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand-mark {
  font-size: 1.6rem;
  background: var(--green);
  color: #fff;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text small { color: var(--muted); font-size: 0.72rem; letter-spacing: 0.02em; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--muted); font-weight: 500; font-size: 0.95rem; }
.nav a:hover { color: var(--green-dark); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.05s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 14px 24px; font-size: 1rem; }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 6px 16px rgba(0, 106, 78, 0.25); }
.btn-primary:hover { background: var(--green-dark); }
.btn-ghost { background: transparent; color: var(--green-dark); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--green); }

/* Hero */
.hero {
  background:
    radial-gradient(1200px 400px at 90% -10%, rgba(200, 162, 75, 0.18), transparent),
    linear-gradient(180deg, #ffffff, var(--bg));
  padding: 72px 0 56px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.pill {
  display: inline-block;
  background: var(--gold-soft);
  color: #6b5316;
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}
.lead { font-size: 1.12rem; color: var(--muted); margin: 0 0 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 18px; color: var(--muted); font-size: 0.9rem; }

.hero-visual { display: grid; place-items: center; }
.hero-card {
  width: 100%;
  max-width: 380px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.chat-line {
  padding: 11px 15px;
  border-radius: 14px;
  font-size: 0.92rem;
  max-width: 90%;
}
.chat-line.bot { background: #eef4f1; color: var(--ink); border-bottom-left-radius: 4px; }
.chat-line.user { background: var(--green); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }

/* Sections */
.section { padding: 64px 0; }
.section-alt { background: #eef4f1; }
.section-title { font-size: clamp(1.5rem, 2.5vw, 2rem); margin: 0 0 8px; text-align: center; }
.section-sub { color: var(--muted); text-align: center; margin: 0 0 36px; }

/* Cards grid */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 20px;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease;
}
.card:hover { transform: translateY(-4px); }
.card-icon { font-size: 1.8rem; margin-bottom: 10px; }
.card h3 { margin: 0 0 6px; font-size: 1.1rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.94rem; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.chip {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 18px;
  font-size: 0.92rem;
  color: var(--ink);
  cursor: pointer;
  max-width: 520px;
  text-align: left;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.chip:hover { border-color: var(--green); }
.chip.copied { background: var(--green); color: #fff; border-color: var(--green); }

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
}
.step-no {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--gold-soft);
  color: #6b5316;
  font-weight: 700;
  margin: 0 auto 12px;
}
.step p { margin: 0; color: var(--muted); font-size: 0.94rem; }

/* Footer */
.site-footer {
  background: var(--green-dark);
  color: #dcece5;
  padding: 40px 0;
  margin-top: 24px;
}
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.site-footer strong { color: #fff; }
.muted { color: #a9c6bb; }
.small { font-size: 0.8rem; max-width: 560px; }

/* Responsive */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .nav a { display: none; }
}
@media (max-width: 560px) {
  .grid, .steps { grid-template-columns: 1fr; }
}

/* Dify chat widget — pin to the viewport corner.
   Some embed builds render the bubble/window as position:absolute (anchored to
   the document, so it only sits right when scrolled to the bottom). Force fixed
   so it floats over the page and stays put while scrolling. */
#dify-chatbot-bubble-button,
[id="dify-chatbot-bubble-button"] {
  position: fixed !important;
  bottom: 1.25rem !important;
  right: 1.25rem !important;
  z-index: 2147483600 !important;
}
#dify-chatbot-bubble-window,
[id="dify-chatbot-bubble-window"] {
  position: fixed !important;
  bottom: 5.5rem !important;
  right: 1.25rem !important;
  max-height: min(80vh, 720px) !important;
  z-index: 2147483600 !important;
}
