:root {
  color-scheme: dark;
  --bg: #181a20;
  --surface: #20232b;
  --surface-2: #252933;
  --surface-3: #2c303b;
  --line: #383d49;
  --text: #f7f8fa;
  --muted: #b7bdc8;
  --quiet: #8d95a3;
  --blue: #78b7ff;
  --green: #45cf69;
  --green-dark: #159640;
  --amber: #f0a33a;
  --red: #f05b5b;
  --max: 1120px;
  --reading: 780px;
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover { text-decoration-thickness: 2px; }

a:focus-visible,
button:focus-visible {
  outline: 3px solid #9dccff;
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3 {
  color: var(--text);
  line-height: 1.16;
  letter-spacing: -0.025em;
}

h1 { font-size: clamp(2.3rem, 6vw, 4.8rem); }
h2 { font-size: clamp(1.65rem, 3vw, 2.35rem); }
h3 { font-size: 1.08rem; }

p, ul, ol { color: var(--muted); }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.8rem;
  left: 0.8rem;
  padding: 0.65rem 0.9rem;
  transform: translateY(-180%);
  border-radius: 6px;
  background: #fff;
  color: #111827;
  font-weight: 700;
}

.skip-link:focus { transform: translateY(0); }

.site-nav {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(24, 26, 32, 0.96);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
  min-height: 66px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-weight: 850;
  letter-spacing: 0.055em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand-link img {
  width: 30px;
  height: 30px;
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  color: #c7ccd5;
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
}

.nav-links a:hover { color: #fff; }

.site-header {
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 2%, rgba(45, 184, 77, 0.18), transparent 32rem),
    radial-gradient(circle at 90% 40%, rgba(61, 127, 240, 0.2), transparent 35rem),
    var(--surface);
  border-bottom: 1px solid var(--line);
}

.hero-shell {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 4rem;
}

.hero-copy {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: #8edca3;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0;
  text-wrap: balance;
}

.hero-copy > p:not(.eyebrow):not(.hero-actions) {
  max-width: 700px;
  margin: 1.25rem auto 0;
  font-size: clamp(1.05rem, 2vw, 1.22rem);
}

.hero-actions { margin: 1.65rem 0 0; }

.trust-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem 1.15rem;
  margin: 1.25rem 0 0;
  padding: 0;
  color: #b8bec8;
  font-size: 0.87rem;
  list-style: none;
}

.trust-list li::before {
  content: "\2713";
  margin-right: 0.35rem;
  color: var(--green);
  font-weight: 850;
}

.product-proof {
  max-width: 1040px;
  margin: 2.7rem auto 0;
}

.product-proof img,
.screenshot img {
  width: 100%;
  border: 1px solid #434957;
  border-radius: var(--radius);
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.42);
}

img.screenshot {
  width: 100%;
  border: 1px solid #434957;
  border-radius: calc(var(--radius) - 4px);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.34);
}

figcaption,
.caption {
  margin-top: 0.75rem;
  color: var(--quiet);
  font-size: 0.86rem;
  text-align: center;
}

.cta {
  display: inline-block;
  padding: 0.75rem 1.4rem;
  border: 1px solid #4f8df6;
  border-radius: 8px;
  background: #3d7ff0;
  color: #fff;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}

.cta:hover {
  background: #2b6fdf;
  text-decoration: none;
  transform: translateY(-1px);
}

.cta-primary {
  border-color: #37c65a;
  background: linear-gradient(135deg, #2db84d, var(--green-dark));
  box-shadow: 0 10px 26px rgba(18, 145, 58, 0.27);
  font-size: 1.02rem;
  padding: 0.9rem 1.65rem;
}

.cta-primary:hover { background: linear-gradient(135deg, #35c958, #168f3e); }

.page-shell {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5.25rem) 0;
}

.reading-shell { max-width: var(--reading); }

.section {
  margin: 0 0 clamp(3.5rem, 8vw, 5.5rem);
}

.section-heading {
  max-width: 760px;
  margin: 0 0 1.5rem;
}

.section-heading h2 { margin: 0 0 0.75rem; }
.section-heading p { margin: 0; font-size: 1.04rem; }

.feature-grid,
.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.feature,
.guide-card,
.content-card,
.direct-answer,
.callout,
.developer-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.feature,
.guide-card {
  padding: 1.35rem;
}

.feature h3,
.guide-card h3 { margin: 0 0 0.5rem; }
.feature p,
.guide-card p { margin: 0; font-size: 0.94rem; }
.guide-card a { font-weight: 750; }

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface-2);
  font-size: 0.94rem;
}

th, td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

thead th {
  background: #2a2e38;
  color: #fff;
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

tbody tr:last-child th,
tbody tr:last-child td { border-bottom: 0; }

tbody th { color: #fff; font-weight: 720; }

.status-dot {
  display: inline-block;
  width: 0.7rem;
  height: 0.7rem;
  margin-right: 0.35rem;
  border-radius: 50%;
}

.status-ok { background: var(--green); }
.status-redirect { background: var(--amber); }
.status-broken { background: var(--red); }
.status-other { background: #8a919d; }

.steps { padding-left: 1.35rem; }
.steps li { margin-bottom: 0.7rem; padding-left: 0.25rem; }

.answer-list {
  display: grid;
  gap: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.answer-list > div { padding: 1.2rem 1.35rem; border-bottom: 1px solid var(--line); }
.answer-list > div:last-child { border-bottom: 0; }
.answer-list h3 { margin: 0 0 0.35rem; }
.answer-list p { margin: 0; }

.developer-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem;
  align-items: center;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(61, 127, 240, 0.13), rgba(45, 184, 77, 0.09));
}

.developer-avatar {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border: 1px solid #4a5364;
  border-radius: 50%;
  background: #1f2937;
  color: #a8d2ff;
  font-size: 1.15rem;
  font-weight: 850;
}

.developer-card h2,
.developer-card p { margin: 0; }
.developer-card p + p { margin-top: 0.45rem; }

.final-cta {
  padding: clamp(1.75rem, 5vw, 3rem);
  border: 1px solid #414854;
  border-radius: var(--radius);
  background: var(--surface-2);
  text-align: center;
}

.final-cta h2,
.final-cta p { margin-top: 0; }
.final-cta p { max-width: 600px; margin-right: auto; margin-left: auto; }

.article-header {
  max-width: 880px;
  margin: 0 auto 2.5rem;
}

.page-shell > article {
  max-width: 900px;
  margin: 0 auto;
}

.article-header h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(2.25rem, 5vw, 4.25rem);
  text-wrap: balance;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.9rem;
  margin: 1.1rem 0 0;
  color: var(--quiet);
  font-size: 0.9rem;
}

.direct-answer {
  max-width: 880px;
  margin: 0 auto 2.25rem;
  padding: 1.4rem 1.5rem;
  border-color: #47634f;
  background: rgba(31, 85, 47, 0.24);
}

.direct-answer > strong:first-child {
  display: block;
  margin-bottom: 0.35rem;
  color: #9ae4ae;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.direct-answer p { margin: 0; color: #d7dfda; font-size: 1.05rem; }

.article-body {
  max-width: var(--reading);
  margin: 0 auto;
}

.article-body > section { margin-bottom: 3.2rem; }
.article-body h2 { margin: 0 0 1rem; font-size: clamp(1.55rem, 3vw, 2rem); }
.article-body h3 { margin: 1.4rem 0 0.45rem; }
.article-body p { margin: 0 0 1rem; }

.content-card { padding: 1.35rem 1.5rem; }
.content-card + .content-card,
.content-card + .callout,
.callout + .final-cta,
.final-cta + .related-guides { margin-top: 1.5rem; }
figure.content-card { margin-right: 0; margin-left: 0; }
.content-card > :first-child { margin-top: 0; }
.content-card > :last-child { margin-bottom: 0; }

.screenshot { margin: 1.5rem 0; }

.callout {
  padding: 1.25rem 1.4rem;
  border-left: 4px solid var(--blue);
}

.callout > :first-child { margin-top: 0; }
.callout > :last-child { margin-bottom: 0; }

.limitation-list li { margin-bottom: 0.6rem; }

.related-guides {
  padding: 1.35rem 1.5rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.related-guides h2 { margin-top: 0; }
.related-guides ul { margin-bottom: 0; }

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #15171c;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
  padding: 1.7rem 0;
  color: #777f8c;
  font-size: 0.86rem;
}

.footer-inner p { margin: 0; color: inherit; }
.footer-inner p a { color: #aeb9c8; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.45rem 1rem; }
.footer-links a { color: #aeb9c8; }

@media (max-width: 820px) {
  .feature-grid,
  .guide-grid { grid-template-columns: 1fr; }

  .nav-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 0.85rem 0;
  }

  .nav-links { justify-content: flex-start; }
}

@media (max-width: 620px) {
  h1 { font-size: 2.45rem; }
  .hero-shell { padding-top: 3.5rem; }
  .trust-list { display: grid; grid-template-columns: 1fr 1fr; text-align: left; }
  .developer-card { grid-template-columns: 1fr; }
  .support-grid { grid-template-columns: 1fr; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  th, td { min-width: 150px; padding: 0.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
