/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding: 72px 0 96px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 480px at 88% 6%, var(--accent-soft), transparent 70%),
    radial-gradient(700px 340px at 4% 90%, color-mix(in srgb, var(--accent) 5%, transparent), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  position: relative;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.01em;
  color: var(--text-dim);
  padding: 5px 11px 5px 8px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--bg-elev);
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--success) 25%, transparent);
}
.eyebrow .pill-tag {
  font-size: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 1px 6px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(36px, 5.6vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 600;
  text-wrap: balance;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: -0.05em;
}
.hero .lede {
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-dim);
  max-width: 540px;
  text-wrap: pretty;
}
.hero-ctas {
  margin-top: 30px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-meta {
  margin-top: 40px;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  color: var(--text-mute);
  font-size: 12.5px;
  font-family: var(--font-mono);
}
.hero-meta strong { color: var(--text); font-weight: 500; }

/* Hero visual — clean static HTML → PDF side-by-side */
.hero-visual {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  max-width: 560px;
  margin-left: auto;
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: -8% -10% -8% -10%;
  background:
    radial-gradient(60% 60% at 50% 50%, var(--accent-soft), transparent 70%);
  filter: blur(30px);
  z-index: 0;
  pointer-events: none;
}
.hv-side {
  position: relative;
  z-index: 1;
  aspect-ratio: 8.5 / 11;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.hv-html {
  background: #0e1a2e;
  color: #cbd5e1;
  border-color: rgba(255, 255, 255, 0.08);
}
.hv-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}
.hv-dots { display: inline-flex; gap: 4px; }
.hv-dots i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}
.hv-dots i:first-child { background: rgba(232, 78, 60, 0.55); }
.hv-dots i:nth-child(2) { background: rgba(245, 166, 35, 0.55); }
.hv-dots i:nth-child(3) { background: rgba(74, 222, 128, 0.55); }
.hv-file {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.55);
}
.hv-code {
  margin: 0;
  padding: 14px 14px 0;
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.65;
  color: #cbd5e1;
  white-space: pre;
  overflow: hidden;
}
.hv-code .kw { color: #7dd3fc; }
.hv-code .at { color: #fbbf24; }
.hv-code .str { color: #86efac; }
.hv-code .cm { color: #64748b; font-style: italic; }

.hv-pdf {
  background: #ffffff;
  color: #0a2540;
  padding: 18px 18px 28px;
  border-color: var(--border-strong);
}
.hv-pdftag {
  position: absolute;
  top: 10px; right: 10px;
  background: var(--accent);
  color: white;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: 600;
}
.hv-pdf h4 {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #0a2540;
}
.hv-line {
  height: 4px;
  background: #cbd5e1;
  border-radius: 2px;
  margin-bottom: 5px;
}
.hv-line.w50 { width: 50%; }
.hv-line.w60 { width: 60%; }
.hv-line.w70 { width: 70%; }
.hv-line.w80 { width: 80%; }
.hv-line.w85 { width: 85%; }
.hv-line.w90 { width: 90%; }
.hv-chart {
  margin: 14px 0;
  height: 60px;
  display: flex;
  align-items: flex-end;
  gap: 5px;
  padding: 0 2px;
  border-bottom: 1px solid #e2e8f0;
}
.hv-chart span {
  flex: 1;
  background: linear-gradient(180deg, var(--accent) 0%, color-mix(in srgb, var(--accent) 60%, white) 100%);
  border-radius: 2px 2px 0 0;
  animation: barRise .9s cubic-bezier(.4,0,.2,1) both;
}
.hv-chart span:nth-child(1) { animation-delay: .1s; }
.hv-chart span:nth-child(2) { animation-delay: .2s; }
.hv-chart span:nth-child(3) { animation-delay: .3s; }
.hv-chart span:nth-child(4) { animation-delay: .4s; }
.hv-chart span:nth-child(5) { animation-delay: .5s; }
.hv-chart span:nth-child(6) { animation-delay: .6s; }
@keyframes barRise {
  from { height: 0 !important; opacity: 0; }
}
.hv-pageno {
  position: absolute;
  bottom: 10px; right: 14px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: #94a3b8;
}

.hv-arrow {
  position: relative;
  z-index: 2;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: white;
  box-shadow: 0 8px 24px -6px color-mix(in srgb, var(--accent) 55%, transparent), var(--shadow-md);
  animation: hvPulse 2.4s ease-in-out infinite;
}
@keyframes hvPulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-soft), 0 8px 24px -6px color-mix(in srgb, var(--accent) 55%, transparent); }
  50%      { box-shadow: 0 0 0 12px transparent, 0 8px 24px -6px color-mix(in srgb, var(--accent) 55%, transparent); }
}

/* trust strip */
.trust {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-mute);
}
.trust-label { color: var(--text-dim); }
.trust-list { display: flex; flex-wrap: wrap; gap: 8px; }
.trust-list span {
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--bg-elev);
  color: var(--text-dim);
}

/* ============================================================
   Live demo
   ============================================================ */
.demo-wrap {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 28px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
}
.demo-left h3 {
  font-size: 20px;
  margin: 4px 0 8px;
  letter-spacing: -0.02em;
  font-weight: 600;
}
.demo-left p {
  margin: 0 0 22px;
  color: var(--text-dim);
  font-size: 14px;
}
.demo-input-row {
  display: flex;
  gap: 8px;
  background: var(--bg-inset);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 5px;
  transition: border-color .15s, box-shadow .15s;
  align-items: center;
}
.demo-input-row:focus-within {
  border-color: var(--accent-line);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.demo-input-row .prefix {
  display: inline-flex;
  align-items: center;
  color: var(--text-mute);
  padding-left: 10px;
  pointer-events: none;
}
.demo-input-row input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: none;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 8px 4px;
}
.demo-input-row input::placeholder { color: var(--text-mute); }
.demo-note {
  margin: 14px 0 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-mute);
  line-height: 1.5;
}
.demo-status {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-mute);
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 16px;
}
.demo-status .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text-mute); }
.demo-status[data-state="ready"] .dot { background: var(--success); }
.demo-status[data-state="working"] .dot { background: var(--accent); animation: blink .6s infinite alternate; }
.demo-status[data-state="done"] .dot { background: var(--success); }
.demo-status[data-state="error"] .dot { background: #b45309; }
@keyframes blink { to { opacity: .3; } }

.demo-preview {
  background: var(--bg-inset);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 340px;
  overflow: hidden;
}
.preview-page {
  width: 210px;
  aspect-ratio: 8.5/11;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  box-shadow: var(--shadow-lg);
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--text-dim);
  position: relative;
  opacity: 0;
  transform: translateY(16px) scale(.96);
  transition: opacity .5s, transform .5s cubic-bezier(.4,0,.2,1);
}
.demo-preview[data-shown="true"] .preview-page { opacity: 1; transform: none; }
.preview-page h4 {
  margin: 0 0 8px;
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--text);
  letter-spacing: -0.01em;
}
.preview-page .pp-line { height: 3px; border-radius: 1px; background: var(--border-strong); opacity: .55; margin-bottom: 4px; }
.preview-page .pp-line.s { width: 60%; }
.preview-page .pp-line.m { width: 82%; }
.preview-page .pp-line.l { width: 94%; }
.preview-page .pp-block {
  margin: 8px 0;
  height: 36px;
  background: repeating-linear-gradient(45deg, var(--border-strong) 0 3px, transparent 3px 7px);
  border: 1px solid var(--border);
  border-radius: 2px;
  opacity: .6;
}
.preview-page .pp-tag {
  position: absolute;
  top: -8px; right: 10px;
  background: var(--accent); color: white;
  font-size: 7px; padding: 2px 5px; border-radius: 3px;
  letter-spacing: .06em;
}
.preview-page .pp-footer {
  position: absolute;
  bottom: 12px; left: 16px; right: 16px;
  display: flex; justify-content: space-between;
  font-size: 7px; color: var(--text-mute);
}
.preview-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-mute);
  font-family: var(--font-mono);
  font-size: 12px;
  text-align: center;
  padding: 24px;
}
.demo-preview[data-shown="true"] .preview-placeholder { display: none; }

/* Demo options — single link replacing the parameter controls */
.demo-opts { margin-top: 16px; }
.demo-opts-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-elev-2);
  text-decoration: none;
  color: var(--text);
  transition: border-color .15s, background .15s, transform .12s;
}
.demo-opts-link:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-1px);
}
.demo-opts-link .dol {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.45;
}
.demo-opts-link .dol-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
  transition: gap .15s;
}
.demo-opts-link:hover .dol-cta { gap: 9px; }
.demo-opts-link .dol-cta svg { transition: transform .15s; }
.demo-opts-link:hover .dol-cta svg { transform: translateX(2px); }
.progress {
  position: absolute;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: var(--accent);
  transition: width .8s ease;
}

/* ============================================================
   Features grid
   ============================================================ */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.feat {
  background: var(--bg-elev);
  padding: 26px 24px;
  position: relative;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background .25s;
  overflow: hidden;
}
.feat:hover { background: var(--bg-elev-2); }
.feat .icon { width: 30px; height: 30px; color: var(--accent); }
.feat h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.feat p {
  margin: 0;
  color: var(--text-dim);
  font-size: 13.5px;
  line-height: 1.5;
}
.feat .reveal {
  position: absolute;
  inset: auto 24px 24px 24px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .25s, transform .25s;
}
.feat:hover .reveal { opacity: 1; transform: none; }
.feat .feat-num {
  position: absolute;
  top: 20px; right: 22px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-mute);
}

/* ============================================================
   Product suite
   ============================================================ */
.suite-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.suite-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  background: var(--bg-elev);
  transition: border-color .15s, transform .2s, box-shadow .2s;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 170px;
  box-shadow: var(--shadow-sm);
}
.suite-card:hover {
  border-color: var(--accent-line);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.suite-card.featured {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  grid-column: span 2;
}
.suite-card.featured .label,
.suite-card.featured .meta { color: rgba(255,255,255,0.78); }
.suite-card .label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.suite-card h5 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.suite-card p {
  margin: 0;
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.5;
}
.suite-card.featured p { color: rgba(255,255,255,0.88); }
.suite-card .meta {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-mute);
  display: flex;
  justify-content: space-between;
  align-items: center;
  white-space: nowrap;
  gap: 8px;
}
.suite-card .arrow-go {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--bg-inset);
  display: grid;
  place-items: center;
  color: var(--text-dim);
  transition: background .15s, color .15s, transform .15s;
}
.suite-card:hover .arrow-go { background: var(--accent); color: white; transform: rotate(-45deg); }
.suite-card.featured .arrow-go { background: rgba(255,255,255,0.18); color: white; }
.suite-card.featured:hover .arrow-go { background: white; color: var(--accent); transform: rotate(-45deg); }

/* ============================================================
   Latest News (real changelog from site)
   ============================================================ */
.news-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.news-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.news-card .when {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-mute);
  letter-spacing: 0.04em;
}
.news-card h4 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.news-card p {
  margin: 0;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.55;
  flex: 1;
}
.news-card .ver {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  padding: 4px 10px;
  background: var(--accent-soft);
  border-radius: 100px;
  align-self: flex-start;
}
.news-card a.read {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  align-self: flex-start;
}
.news-card a.read:hover { text-decoration: underline; }

/* ============================================================
   Testimonial (real)
   ============================================================ */
.quote-wrap {
  background: var(--bg-deep);
  color: #e8eef7;
  border-radius: var(--radius-lg);
  padding: 56px 56px;
  display: grid;
  grid-template-columns: 1fr max-content;
  gap: 48px;
  align-items: end;
  position: relative;
  overflow: hidden;
}
.quote-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 280px at 10% 100%, rgba(77,155,255,0.18), transparent 60%);
  pointer-events: none;
}
.quote-wrap blockquote {
  margin: 0;
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-wrap: balance;
  position: relative;
  z-index: 1;
}
.quote-wrap blockquote::before {
  content: "“";
  position: absolute;
  font-size: 80px;
  line-height: 1;
  color: rgba(255,255,255,0.15);
  top: -34px;
  left: -8px;
}
.quote-meta {
  position: relative;
  z-index: 1;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 12.5px;
}
.quote-meta strong {
  display: block;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: white;
}
.quote-meta span { color: rgba(255,255,255,0.6); }
