:root {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: #27211e;
  background: #fff;
  line-height: 1.65;
  --orange: #ff7a2f;
  --orange2: #f4661f;
  --orange3: #ff963f;
  --ink: #231d1a;
  --muted: #756c67;
  --line: #eee4dc;
  --soft: #fff8f3;
  --soft2: #fff3ea;
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--ink); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.hidden { display: none !important; }
.site-container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(238, 228, 220, .9);
}
.nav-wrap { height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: linear-gradient(145deg, #ff963f, #ff7027);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px rgba(255, 122, 47, .22);
}
.brand-mark svg { width: 27px; height: 27px; }
.brand-mark .site-icon-stroke { fill: none; stroke: #fff; stroke-width: 4.2; stroke-linecap: round; stroke-linejoin: round; }
.brand b { display: block; font-size: 16px; line-height: 1.2; letter-spacing: -.01em; }
.brand small { display: block; font-size: 11px; color: #968980; margin-top: 3px; }
.top-nav { display: flex; gap: 28px; font-size: 14px; font-weight: 650; }
.top-nav a { text-decoration: none; color: #5f554f; transition: .18s; }
.top-nav a:hover { color: var(--orange); }

/* Utility-first hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 42px 0 48px;
  background: linear-gradient(180deg, #fff7f0 0, #fffdfb 76%, #fff 100%);
}
.hero::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  right: -170px;
  top: -250px;
  background: radial-gradient(circle, rgba(255, 166, 92, .27), rgba(255, 166, 92, 0) 68%);
}
.hero::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 48% 52% 58% 42%;
  left: -185px;
  bottom: 70px;
  background: radial-gradient(circle, rgba(255, 208, 168, .16), rgba(255, 208, 168, 0) 70%);
  transform: rotate(18deg);
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(290px, .72fr) minmax(500px, 1.28fr);
  gap: 64px;
  align-items: start;
}
.hero-copy { padding-top: 34px; position: relative; z-index: 2; }
.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .12em;
  color: var(--orange);
  text-transform: uppercase;
}
.eyebrow::before,
.section-kicker::before { content: ""; width: 18px; height: 2px; background: var(--orange); border-radius: 2px; }
.hero h1 {
  font-size: clamp(38px, 4.1vw, 52px);
  line-height: 1.12;
  letter-spacing: -.042em;
  margin: 16px 0 18px;
  color: #2b211d;
}
.hero h1 span { color: var(--orange); }
.hero-lead { font-size: 16px; line-height: 1.82; color: #6f625b; max-width: 520px; margin: 0 0 22px; }
.host-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.host-badges span {
  font-size: 12px;
  font-weight: 750;
  color: #6d5140;
  background: rgba(255, 255, 255, .88);
  border: 1px solid #f1ded0;
  border-radius: 999px;
  padding: 6px 10px;
  box-shadow: 0 4px 16px rgba(107, 72, 49, .04);
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 142px;
  height: 48px;
  padding: 0 22px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--orange), var(--orange3));
  color: #fff;
  text-decoration: none;
  font-weight: 850;
  box-shadow: 0 12px 26px rgba(255, 122, 47, .25);
  transition: .18s;
}
.hero-cta:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(255, 122, 47, .31); }
.hero-cta span { font-size: 18px; }

/* Parser is the visual focus */
#parser, #historySection { scroll-margin-top: 88px; }
.service-card {
  position: relative;
  z-index: 3;
  background: rgba(255, 255, 255, .985);
  border: 2px solid #ff7200;
  border-radius: 0 0 26px 26px;
  padding: 28px;
  box-shadow:
    -18px 0 34px rgba(103, 63, 35, .10),
    18px 0 34px rgba(103, 63, 35, .10),
    0 24px 52px rgba(103, 63, 35, .12);
}
.service-head { display: flex; align-items: center; gap: 12px; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid #f2e8e1; }
.service-head h2 { font-size: 21px; margin: 0; letter-spacing: -.015em; }
.service-head p { font-size: 12px; color: #95867d; margin: 3px 0 0; }
.service-icon { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 13px; background: linear-gradient(145deg, #fff0e5, #ffe3cf); }
.service-icon svg { width: 25px; height: 25px; fill: none; stroke: var(--orange); stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
.dx-card-gate { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.dx-input { width: 100%; height: 48px; border: 1px solid #ddcfc5; border-radius: 12px; padding: 0 14px; font-size: 14px; outline: none; background: #fff; transition: .18s; }
.dx-input:focus { border-color: #ff9a55; box-shadow: 0 0 0 3px rgba(255, 122, 47, .11); }
.dx-btn { height: 48px; border: 0; border-radius: 12px; padding: 0 20px; font-weight: 850; cursor: pointer; transition: .18s; }
.dx-btn.primary { background: linear-gradient(135deg, var(--orange), var(--orange3)); color: #fff; box-shadow: 0 7px 18px rgba(255, 122, 47, .18); }
.dx-btn.primary:hover { filter: saturate(1.05) brightness(.98); transform: translateY(-1px); }
.dx-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.dx-btn.full { width: 100%; margin-top: 5px; }
.dx-card-info { margin: 12px 0; padding: 10px 12px; border-radius: 11px; background: #fff7f1; border: 1px solid #f6e7dc; font-size: 13px; }
.submit-panel { padding-top: 2px; }
.dx-field {
  position: relative;
  display: grid;
  gap: 7px;
  margin-top: 20px;
  padding-top: 7px;
}
.dx-field > label {
  position: absolute;
  left: 14px;
  top: 0;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: calc(100% - 28px);
  height: 15px;
  padding: 0 7px;
  background: #fff;
  color: #43362f;
  font-size: 13px;
  font-weight: 800;
  line-height: 15px;
  white-space: nowrap;
  pointer-events: none;
}
.dx-field > .dx-input { display: block; margin: 0; }
.dx-field small { display: block; color: #9a8c83; margin: -1px 0 0; font-size: 11px; }
.dx-message { margin-top: 14px; border-radius: 11px; padding: 10px 12px; font-size: 13px; }
.dx-message.ok { background: #eff8f1; color: #166534; }
.dx-message.err { background: #fff0ed; color: #a32a1e; }
.service-note { font-size: 11px; color: #aa9b91; margin: 14px 0 0; text-align: center; }

/* History stays directly under the parser area */
.hero-history { position: relative; z-index: 2; margin-top: 24px; margin-bottom: 0; }
.history-card { background: rgba(255, 255, 255, .97); border: 1px solid #f0e2d8; border-radius: 20px; padding: 22px; box-shadow: 0 15px 38px rgba(103, 63, 35, .07); }
.dx-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; margin-bottom: 13px; }
.dx-section-head > div { min-width: 0; }
.dx-section-head h2 { font-size: 18px; margin: 0; }
.history-note { margin: 5px 0 0; color: #978981; font-size: 11px; line-height: 1.65; max-width: 760px; }
.dx-section-head > span { flex: 0 0 auto; color: #9a8d84; font-size: 12px; }
.dx-list { display: block; }
/* Task cards mirror the original client plugin: semantic state colors + lower countdown layer. */
.dx-task { border: 1px solid rgba(148,163,184,.28); border-radius: 14px; margin-top: 10px; position: relative; overflow: hidden; min-height: 146px; box-shadow: 0 3px 12px rgba(17,24,39,.05); }
.dx-task.pending { background: #fffbeb; }
.dx-task.waiting { background: #eff6ff; }
.dx-task.done { background: #ecfdf5; }
.dx-task.fail { background: #fff1f2; }
.dx-task-content { position: relative; z-index: 2; width: 100%; min-height: 146px; padding: 12px; box-sizing: border-box; background: transparent; }
.dx-line { margin: 6px 0; font-size: 13px; line-height: 1.5; position: relative; word-break: break-word; overflow-wrap: anywhere; }
.dx-k { font-weight: 800; color: inherit; }
.dx-subtle { color: #64748b; }
.dx-task a { word-break: break-all; }
.dx-status { display: inline-block; padding: 3px 8px; border-radius: 999px; font-weight: 700; font-size: 12px; }
.dx-status.pending { background: #fef3c7; color: #92400e; }
.dx-status.waiting { background: #dbeafe; color: #1d4ed8; }
.dx-status.done { background: #d1fae5; color: #065f46; }
.dx-status.fail { background: #ffe4e6; color: #9f1239; }
.dx-countdown-layer { position: absolute; z-index: 1; right: 12px; top: 50%; transform: translateY(-50%); width: min(54%,360px); max-width: calc(100% - 24px); box-sizing: border-box; text-align: center; pointer-events: none; font-variant-numeric: tabular-nums; line-height: 1; overflow: visible; }
.dx-countdown-value { display: block; width: 100%; box-sizing: border-box; font-family: ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace; font-size: clamp(42px,6vw,62px); font-weight: 800; letter-spacing: -2px; color: rgba(51,65,85,.24); white-space: nowrap; text-align: center; }
.dx-countdown-value.has-hours { font-size: clamp(31px,4.6vw,46px); letter-spacing: -1.5px; }
.dx-countdown-value.is-long { font-size: clamp(26px,4vw,38px); letter-spacing: -1px; }
.dx-countdown-label { margin-top: 9px; font-size: 12px; font-weight: 800; letter-spacing: .08em; color: rgba(51,65,85,.52); text-align: center; white-space: nowrap; }
.dx-task.pending .dx-countdown-value { color: rgba(146,64,14,.20); }
.dx-task.pending .dx-countdown-label { color: rgba(146,64,14,.56); }
.dx-task.waiting .dx-countdown-value { color: rgba(29,78,216,.19); }
.dx-task.waiting .dx-countdown-label { color: rgba(29,78,216,.55); }
.dx-newlink { word-break: break-all; text-underline-offset: 3px; }
.dx-newlink-ready { color: #047857; text-decoration: underline; font-weight: 700; }
.dx-newlink-sync { color: #94a3b8 !important; text-decoration: underline; text-decoration-style: dashed; font-weight: 600; }
.dx-newlink-muted { color: #94a3b8; word-break: break-all; }
.dx-open-hint { display: inline-block; margin-left: 4px; color: #047857; font-size: 10px; font-weight: 800; white-space: nowrap; animation: dxOpenHint 1.15s ease-in-out infinite alternate; }
@keyframes dxOpenHint { from { transform: translateX(4px); } to { transform: translateX(0); } }
.dx-syncing { display: inline-block; color: #94a3b8; font-size: 12px; font-weight: 700; min-width: 56px; }
.dx-syncing:after { content: ""; animation: dxDots 1.2s steps(4,end) infinite; }
@keyframes dxDots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75%,100% { content: "..."; } }
.dx-pager { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.dx-page { border: 1px solid #e2d5cb; background: #fff; border-radius: 8px; min-width: 34px; height: 34px; cursor: pointer; }
.dx-page.active { background: var(--orange); color: #fff; border-color: var(--orange); }

/* Information below the work area */
.service-strip { margin-top: 32px; border-top: 1px solid #f2e7df; border-bottom: 1px solid #f2e7df; background: #fffaf6; }
.strip-grid { display: grid; grid-template-columns: repeat(3, 1fr); padding: 22px 0; }
.strip-grid > div { padding: 0 30px; border-right: 1px solid #eee1d7; }
.strip-grid > div:first-child { padding-left: 0; }
.strip-grid > div:last-child { border-right: 0; }
.strip-grid b { display: block; font-size: 14px; color: #3d3029; }
.strip-grid span { display: block; font-size: 12px; color: #95877e; margin-top: 2px; }

.content-section { padding: 70px 0; }
.content-section.alt { background: #fff8f3; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .65fr); gap: 64px; align-items: start; }
.section-copy h2,
.section-title h2 { font-size: clamp(28px, 3.2vw, 38px); letter-spacing: -.03em; line-height: 1.22; margin: 13px 0 18px; }
.section-copy p,
.section-title p { color: #756a63; font-size: 15px; line-height: 1.9; }
.section-copy code,
.faq-list code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: #fff1e7; padding: 1px 5px; border-radius: 5px; font-size: .9em; }
.support-box { border: 1px solid #f0dfd2; border-radius: 18px; padding: 22px; background: linear-gradient(180deg, #fff, #fffaf6); box-shadow: 0 12px 32px rgba(102, 67, 45, .05); }
.support-box h3 { margin: 0 0 14px; font-size: 17px; }
.support-box ul { list-style: none; padding: 0; margin: 0; }
.support-box li { display: flex; align-items: center; gap: 9px; border-bottom: 1px solid #f1e8e1; padding: 9px 0; font-size: 14px; font-weight: 650; }
.support-box li:last-child { border-bottom: 0; }
.support-box li span { color: var(--orange); font-weight: 900; }
.support-box p { font-size: 11px; color: #a99a90; margin: 12px 0 0; }
.section-title { max-width: 720px; margin-bottom: 30px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.steps article { background: #fff; border: 1px solid #efe1d7; border-radius: 17px; padding: 20px; min-height: 176px; transition: .18s; }
.steps article:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(104, 65, 38, .07); }
.steps article > span { display: inline-flex; width: 35px; height: 35px; border-radius: 10px; align-items: center; justify-content: center; background: #fff0e4; color: var(--orange); font-size: 12px; font-weight: 900; }
.steps h3 { font-size: 16px; margin: 16px 0 7px; }
.steps p { font-size: 13px; color: #7d7068; line-height: 1.75; margin: 0; }
.faq-section { padding-bottom: 88px; }
.faq-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: 64px; }
.faq-title { margin: 0; }
.faq-list { display: grid; gap: 10px; }
.faq-list details { border: 1px solid #eee0d6; border-radius: 15px; background: #fff; padding: 0 17px; }
.faq-list summary { cursor: pointer; list-style: none; font-weight: 750; padding: 17px 28px 17px 0; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 0; top: 15px; font-size: 20px; color: #9a8a81; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list p { margin: 0 0 17px; color: #786b64; font-size: 13px; line-height: 1.8; }

.site-footer { border-top: 1px solid #2f2926; background: #211d1b; color: #fff; padding: 34px 0; }
.footer-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; }
.footer-inner b { font-size: 16px; }
.footer-inner > div p { font-size: 12px; color: #b7aba5; margin: 4px 0 0; }
.disclaimer { max-width: 650px; font-size: 11px; line-height: 1.8; color: #9e928c; margin: 0; text-align: right; }

@media (max-width: 900px) {
  .hero { padding: 34px 0 42px; }
  .hero-grid { grid-template-columns: 1fr; gap: 66px; }
  .hero-copy { text-align: center; padding-top: 4px; }
  .hero-lead { margin-left: auto; margin-right: auto; max-width: 650px; }
  .host-badges { justify-content: center; }
  .hero-cta { margin-inline: auto; }
  .service-card { width: min(680px, 100%); justify-self: center; }
  .content-grid,
  .faq-grid { grid-template-columns: 1fr; gap: 32px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .top-nav { display: none; }
  .strip-grid > div { padding: 0 18px; }
  .hero-history { margin-top: 22px; }
}

@media (max-width: 600px) {
  .site-container { width: min(100% - 28px, 1180px); }
  .nav-wrap { height: 62px; }
  .brand-mark { width: 38px; height: 38px; border-radius: 11px; }
  .brand b { font-size: 15px; }
  .brand small { font-size: 10px; }
  .hero { padding: 26px 0 36px; }
  .hero-grid { gap: 58px; }
  .hero h1 { font-size: 34px; margin-top: 13px; }
  .hero-lead { font-size: 14px; line-height: 1.75; margin-bottom: 18px; }
  .host-badges { gap: 6px; }
  .host-badges span { font-size: 11px; padding: 5px 8px; }
  .service-card { padding: 19px; border-radius: 0 0 19px 19px; }
  .service-head { margin-bottom: 15px; padding-bottom: 15px; }
  .dx-card-gate { grid-template-columns: 1fr; }
  .dx-card-gate .dx-btn { width: 100%; }
  .hero-history { width: calc(100% - 28px); margin-top: 20px; padding: 16px; }
  .dx-section-head { align-items: flex-start; flex-direction: column; }
  .service-strip { margin-top: 24px; }
  .strip-grid { grid-template-columns: 1fr; padding: 6px 0; }
  .strip-grid > div { border-right: 0; border-bottom: 1px solid #eee1d7; padding: 14px 0 !important; }
  .strip-grid > div:last-child { border-bottom: 0; }
  .content-section { padding: 54px 0; }
  .steps { grid-template-columns: 1fr; }
  .steps article { min-height: auto; }
  .footer-inner { flex-direction: column; gap: 14px; }
  .disclaimer { text-align: left; }
  .section-copy h2,
  .section-title h2 { font-size: 28px; }
}

/* Plugin task-card responsive rules */
@media (max-width: 720px) {
  .dx-countdown-layer { right: 8px; width: 60%; max-width: calc(100% - 16px); }
  .dx-countdown-value { font-size: clamp(36px,11vw,50px); }
  .dx-countdown-value.has-hours { font-size: clamp(27px,7.8vw,36px); }
  .dx-countdown-value.is-long { font-size: clamp(23px,6.8vw,31px); }
}
@media (max-width: 480px) {
  .dx-task { min-height: 162px; }
  .dx-task-content { min-height: 162px; }
  .dx-countdown-layer { right: 6px; width: 64%; max-width: calc(100% - 12px); }
  .dx-countdown-value { font-size: clamp(32px,12vw,44px); }
  .dx-countdown-value.has-hours { font-size: clamp(24px,8vw,31px); }
  .dx-countdown-value.is-long { font-size: clamp(21px,7vw,27px); }
  .dx-countdown-label { font-size: 11px; letter-spacing: .04em; }
}
