/* AgentOnRamp.ai — Direction C · Daylight Ramp design system */
:root {
  --bg: #f6f5f1;
  --bg-deep: #efede7;
  --ink: #15231c;
  --mut: #5d6e64;
  --grn: #1c7a4f;
  --grn-ink: #0f5435;
  --acc: #d8e8de;
  --line: #dcdfd8;
  --card: #ffffff;
  --serif: "Noto Serif TC", serif;
  --sans: "Noto Sans TC", sans-serif;
  --mono: "IBM Plex Mono", monospace;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

/* CJK 斷行控制 — 避免單字孤行、避免標點開頭 */
h1, h2, h3, h4, p, li, .lede, .sub, .kick, .card p,
.cta-band h2, .footer .small, blockquote, figcaption {
  text-wrap: pretty;
  line-break: strict;
  word-break: normal;
  overflow-wrap: break-word;
}

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 36px; }

/* ---------- nav ---------- */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 26px; padding-bottom: 26px;
}
.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo .wm { font-family: var(--serif); font-weight: 900; font-size: 20px; letter-spacing: 0.01em; }
.nav-logo .wm .tld { color: var(--grn); font-family: var(--mono); font-weight: 600; font-size: 15px; }
.nav-links { display: flex; gap: 34px; font-size: 15px; color: var(--mut); }
.nav-links a:hover { color: var(--ink); }
.nav-links a.on { color: var(--ink); font-weight: 500; border-bottom: 2px solid var(--grn); padding-bottom: 2px; }
.nav-cta {
  background: var(--ink); color: #fff; padding: 10px 22px; border-radius: 999px;
  font-size: 14px; font-weight: 500; transition: background 0.2s; white-space: nowrap;
}
.nav-cta:hover { background: var(--grn-ink); }

/* ---------- type atoms ---------- */
.kick { font-family: var(--mono); font-size: 13px; letter-spacing: 0.2em; color: var(--grn); font-weight: 600; margin-bottom: 18px; }
h1.display { font-family: var(--serif); font-size: clamp(38px, 4.6vw, 58px); font-weight: 900; line-height: 1.32; letter-spacing: 0.01em; }
h1.display em, h2.sect em { font-style: normal; color: var(--grn); }
h2.sect { font-family: var(--serif); font-size: clamp(28px, 3vw, 38px); font-weight: 900; line-height: 1.4; }
.lede { font-size: 17.5px; color: var(--mut); line-height: 2; }
.lede b, .lede strong { color: var(--ink); font-weight: 500; }

/* ---------- buttons ---------- */
.btn-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.btn-p {
  display: inline-block; background: var(--grn); color: #fff; font-weight: 600;
  padding: 16px 30px; border-radius: 999px; font-size: 16px; border: none; cursor: pointer;
  font-family: var(--sans); transition: background 0.2s, transform 0.15s;
}
.btn-p:hover { background: var(--grn-ink); transform: translateY(-1px); }
.btn-g { color: var(--ink); font-size: 15.5px; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--grn); }
.btn-g:hover { color: var(--grn-ink); }

/* ---------- sections ---------- */
.sect-pad { padding: 88px 0; }
.sect-hd { max-width: 640px; margin-bottom: 52px; }
.sect-hd .lede { margin-top: 16px; }
.band { background: var(--bg-deep); }
.band-ink { background: var(--ink); color: #f6f5f1; }
.band-ink .lede { color: #b8c4bc; }
.band-ink h2.sect em { color: #7ed0a5; }

/* ---------- cards ---------- */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 32px; box-shadow: 0 12px 36px rgba(21, 35, 28, 0.05);
}
.card h3 { font-family: var(--serif); font-size: 22px; font-weight: 900; margin-bottom: 4px; }
.card .tag { font-family: var(--mono); font-size: 12px; color: var(--grn); letter-spacing: 0.14em; margin-bottom: 14px; }
.card p { font-size: 15.5px; color: var(--mut); line-height: 1.95; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

/* ---------- step list (panel) ---------- */
.steps { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 28px; box-shadow: 0 20px 50px rgba(21,35,28,0.08); }
.steps .hd { font-family: var(--mono); font-size: 12px; color: var(--grn); letter-spacing: 0.15em; margin-bottom: 10px; }
.step { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.step:last-child { border-bottom: none; }
.step .n { font-family: var(--mono); font-size: 12px; color: var(--grn); font-weight: 600; flex: none; width: 30px; }
.step .t { font-size: 15.5px; font-weight: 700; white-space: nowrap; }
.step .d { font-size: 13.5px; color: var(--mut); margin-left: auto; text-align: right; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 44px 0 56px; margin-top: 40px; }
.footer-grid { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; }
.footer .small { font-size: 13.5px; color: var(--mut); line-height: 2; }
.footer .mono { font-family: var(--mono); font-size: 12px; color: var(--mut); }
.footer-links { display: flex; gap: 26px; font-size: 14px; color: var(--mut); }
.footer-links a:hover { color: var(--ink); }

/* ---------- CTA band ---------- */
.cta-band { padding: 80px 0; text-align: center; }
.cta-band h2 { font-family: var(--serif); font-size: clamp(28px, 3.2vw, 40px); font-weight: 900; line-height: 1.45; margin-bottom: 14px; }
.cta-band .lede { max-width: 560px; margin: 0 auto 36px; }

/* ---------- misc ---------- */
.mono-note { font-family: var(--mono); font-size: 12.5px; color: var(--mut); }
.divider-dot { color: var(--grn); }

@media (max-width: 900px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-cta { padding: 9px 16px; font-size: 13px; }
  .wrap { padding: 0 max(24px, env(safe-area-inset-left, 24px)); }
  .sect-pad { padding: 60px 0; }
  /* 按鈕 mobile：垂直排列，全寬不折行 */
  .btn-row { flex-direction: column; align-items: stretch; gap: 12px; }
  .btn-p { text-align: center; font-size: 15px; padding: 15px 24px; white-space: nowrap; }
  .btn-g { text-align: center; }
  /* footer 橫排改直排 */
  .footer-grid { flex-direction: column; gap: 24px; }
  .footer-links { flex-wrap: wrap; gap: 16px; }
}
