:root {
  --ink: #0b1220;
  --ink-soft: #4a5468;
  --navy: #111c34;
  --navy-deep: #0a1226;
  --line: #e2e6ee;
  --surface: #ffffff;
  --surface-alt: #f6f8fc;
  --accent: #f97316;
  --accent-soft: #fff3e8;
  --radius: 14px;
  --wrap: 1080px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

a { color: inherit; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .92em;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 5px;
}

pre {
  margin: 10px 0;
  padding: 14px 16px;
  overflow-x: auto;
  background: var(--navy);
  border-radius: 10px;
}

pre code {
  background: none;
  border: 0;
  padding: 0;
  color: #e6ecff;
  font-size: 14px;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.wrap.narrow { max-width: 760px; }

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 50;
  background: #fff;
  padding: 10px 14px;
  border-radius: 8px;
}

/* ------------------------------------------------------------- header -- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 68px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.02em;
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-size: 15px;
  font-weight: 500;
}

.nav a { color: var(--ink-soft); text-decoration: none; }
.nav a:hover { color: var(--ink); }

/* ------------------------------------------------------------ buttons -- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
}

.btn-lg { padding: 14px 24px; font-size: 16px; }
.btn-solid { background: var(--navy); color: #fff; }
.btn-solid:hover { background: var(--navy-deep); }
.btn-solid:disabled { opacity: .5; cursor: not-allowed; }
.btn-outline { background: transparent; color: var(--ink); border-color: #c8d0e0; }
.btn-outline:hover { background: var(--surface-alt); }
.btn-outline:disabled { opacity: .45; cursor: not-allowed; }

/* --------------------------------------------------------------- hero -- */
.hero {
  padding: 74px 0 64px;
  background: linear-gradient(180deg, #f7f9fd 0%, #ffffff 100%);
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 52px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 5vw, 50px);
  line-height: 1.08;
  letter-spacing: -.035em;
  font-weight: 800;
}

.lede {
  margin: 0 0 26px;
  font-size: 18px;
  color: var(--ink-soft);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }

.hero-points { margin: 0; padding: 0; list-style: none; font-size: 15px; color: var(--ink-soft); }

.hero-points li { position: relative; padding-left: 26px; margin-bottom: 8px; }

.hero-points li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-panel {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 30px 70px rgba(15, 23, 42, .12);
  overflow: hidden;
}

.panel-bar {
  display: flex;
  gap: 7px;
  padding: 13px 16px;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--line);
}

.panel-bar span { width: 10px; height: 10px; border-radius: 50%; background: #d3d9e6; }

.panel-body { padding: 18px; }

.panel-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.panel-label { font-weight: 700; color: var(--ink); }

.panel-doc {
  min-height: 180px;
  padding: 18px;
  font-size: 15.5px;
  line-height: 1.75;
  background: var(--surface-alt);
  border-radius: 10px;
  white-space: pre-wrap;
}

.caret {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  vertical-align: text-bottom;
  background: var(--ink);
  animation: blink 1.05s steps(1) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

.panel-meta { margin-top: 12px; font-size: 13px; color: var(--ink-soft); }

/* ----------------------------------------------------------- sections -- */
.section { padding: 76px 0; }
.section-alt { background: var(--surface-alt); border-block: 1px solid var(--line); }

.section-dark {
  background: var(--navy);
  color: #dbe3f5;
}

.section-dark h2 { color: #fff; }
.section-dark .fineprint { color: #8fa0c4; }

h2 {
  margin: 0 0 14px;
  font-size: clamp(26px, 3.4vw, 34px);
  letter-spacing: -.03em;
  font-weight: 800;
}

h3 { margin: 0 0 8px; font-size: 17px; font-weight: 700; }

.section-lede { max-width: 720px; margin: 0 0 30px; color: var(--ink-soft); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.fineprint { font-size: 14px; color: #7b8499; }

/* ---------------------------------------------------------------- demo -- */
.demo-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-end;
  margin-bottom: 16px;
}

.control { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; }
.control-grow { flex: 1 1 260px; }

.control select,
.control input,
.control textarea {
  padding: 10px 12px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 400;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.control textarea { resize: vertical; line-height: 1.55; }

.demo-buttons { display: flex; gap: 10px; }

.demo-output {
  min-height: 108px;
  padding: 18px;
  font-size: 16px;
  line-height: 1.7;
  background: var(--surface-alt);
  border-radius: 10px;
  white-space: pre-wrap;
}

.demo-stats { margin: 12px 0 0; font-size: 14px; color: var(--ink-soft); }

/* -------------------------------------------------------------- steps -- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.step-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  background: var(--navy);
  border-radius: 9px;
}

.steps p { margin: 0; font-size: 15px; color: var(--ink-soft); }

/* ----------------------------------------------------------- profiles -- */
.table-scroll { overflow-x: auto; margin-bottom: 34px; }

.profiles {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 620px;
}

.profiles th,
.profiles td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.profiles th { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
.profiles td:first-child { font-weight: 700; }
.profiles tbody tr:hover { background: var(--surface-alt); }

.knobs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.knob p { margin: 0; font-size: 15px; color: var(--ink-soft); }

/* ------------------------------------------------------------ install -- */
.install { margin: 0 0 18px; padding-left: 22px; }
.install li { margin-bottom: 14px; }

/* ---------------------------------------------------------- humanizer -- */
.humanizer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.humanizer-grid .control { width: 100%; }
.humanizer-actions { display: flex; align-items: center; gap: 14px; margin-top: 16px; flex-wrap: wrap; }
.humanizer-summary { font-size: 14px; color: var(--ink-soft); }

/* ---------------------------------------------------------------- faq -- */
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}

.faq summary {
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: " +"; color: var(--accent); }
.faq details[open] summary::after { content: " –"; }
.faq p { margin: 10px 0 0; color: var(--ink-soft); font-size: 16px; }

/* ------------------------------------------------------------- footer -- */
.site-footer { padding: 40px 0; background: var(--surface-alt); border-top: 1px solid var(--line); }

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
}

.footer-inner nav { display: flex; gap: 20px; font-size: 15px; }
.footer-inner p { margin: 8px 0 0; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .knobs,
  .humanizer-grid { grid-template-columns: 1fr; }
  .nav { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .caret { animation: none; }
}
