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

:root {
  --frame-tone: hsl(0, 0%, 10%);
  --frame-line: hsl(0, 0%, 14%);
  --frame-outer-w: clamp(10px, 1.5vw, 16px);
  --frame-line-w: 2px;
  --frame-mid-w: clamp(10px, 1.6vw, 14px);
  --frame-total: calc(var(--frame-outer-w) + var(--frame-line-w) + var(--frame-mid-w) + var(--frame-line-w));
}

html, body {
  min-height: 100%;
  background: #000000;
  color: #ffffff;
}

html { background: var(--frame-tone); }

body {
  font-family: Inter, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.02em;
  position: relative;
  isolation: isolate;
  padding: var(--frame-total);
  min-height: 100%;
  margin: 0;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.065) 1px, transparent 1px);
  background-size: 44px 44px;
  background-position: 0 0, 0 0;
  animation: grid-scroll-left 1s linear infinite;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 48%, #000 25%, transparent 100%);
  will-change: background-position;
}

@keyframes grid-scroll-left {
  from { background-position: 0 0, 0 0; }
  to { background-position: -44px 0, -44px 0; }
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  background:
    linear-gradient(var(--frame-tone), var(--frame-tone)) top center / 100% var(--frame-total) no-repeat,
    linear-gradient(var(--frame-tone), var(--frame-tone)) bottom center / 100% var(--frame-total) no-repeat,
    linear-gradient(var(--frame-tone), var(--frame-tone)) left center / var(--frame-total) 100% no-repeat,
    linear-gradient(var(--frame-tone), var(--frame-tone)) right center / var(--frame-total) 100% no-repeat;
  box-shadow:
    inset 0 0 0 var(--frame-outer-w) var(--frame-tone),
    inset 0 0 0 calc(var(--frame-outer-w) + var(--frame-line-w)) var(--frame-line),
    inset 0 0 0 calc(var(--frame-outer-w) + var(--frame-line-w) + var(--frame-mid-w)) #000000,
    inset 0 0 0 calc(var(--frame-outer-w) + var(--frame-line-w) + var(--frame-mid-w) + var(--frame-line-w)) var(--frame-tone);
}

@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
}

body > * { position: relative; z-index: 1; }

::selection { background: rgba(255, 255, 255, 0.2); color: #fff; }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.25rem 0.5rem;
  padding: 0.125rem 1rem 0;
  max-width: 72rem;
  margin: 0 auto;
  width: 100%;
}

.site-nav-link {
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5;
  padding: 0.375rem 0.75rem;
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.12s ease;
}

.site-nav-link:hover { color: #ffffff; }

.site-nav-link.is-active {
  color: #ffffff;
}

.page-shell {
  flex: 1;
  width: 100%;
  max-width: 42rem;
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
}

@media (min-width: 640px) {
  .page-shell { padding: 2.5rem 1.5rem 4rem; }
}

.page-hero {
  text-align: center;
  margin-bottom: 2.5rem;
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 1rem;
  color: #ffffff;
}

.page-hero .lede {
  font-size: 1rem;
  line-height: 1.65;
  color: #9ca3af;
  margin: 0 auto;
  max-width: 36rem;
}

@media (min-width: 640px) {
  .page-hero .lede { font-size: 1.0625rem; }
}

.content-card {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0.75rem;
  background: rgba(0, 0, 0, 0.3);
  padding: 1.25rem 1.25rem;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .content-card { padding: 1.5rem 1.5rem; }
}

.content-card h2 {
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 0.75rem;
}

.content-card p {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #9ca3af;
  margin: 0 0 0.75rem;
}

.content-card p:last-child { margin-bottom: 0; }

.content-card ul,
.content-card ol {
  margin: 0 0 0.75rem;
  padding-left: 1.25rem;
  color: #9ca3af;
  font-size: 0.9375rem;
  line-height: 1.65;
}

.content-card li { margin-bottom: 0.35rem; }

.content-card li:last-child { margin-bottom: 0; }

.content-card strong { color: #ffffff; font-weight: 600; }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.steps li {
  display: flex;
  gap: 0.875rem;
  align-items: flex-start;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #9ca3af;
}

.step-num {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.6875rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.1rem;
}

.compare-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0.75rem;
  background: rgba(0, 0, 0, 0.3);
  margin-bottom: 1rem;
}

.compare-table {
  width: 100%;
  min-width: 32rem;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.compare-table th {
  text-align: left;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #6b7280;
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  white-space: nowrap;
}

.compare-table td {
  padding: 1rem 1.25rem;
  vertical-align: top;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #9ca3af;
  line-height: 1.55;
}

.compare-table tbody tr:last-child td { border-bottom: none; }

.compare-table td:first-child {
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
}

.compare-table .us {
  color: #ffffff;
}

.cta-bar {
  text-align: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.cta-bar p {
  font-size: 0.9375rem;
  color: #9ca3af;
  margin: 0 0 1rem;
  line-height: 1.6;
}

.cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.12s ease, border-color 0.12s ease;
}

.cta-link:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.content-card a {
  color: #9ca3af;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.12s ease;
}

.content-card a:hover { color: #ffffff; }

.page-footer {
  flex-shrink: 0;
  width: 100%;
  max-width: 42rem;
  margin: 0 auto;
  padding: 2rem 1rem 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}

.page-footer p {
  font-size: 0.8125rem;
  color: #6b7280;
  margin: 0 0 0.5rem;
  line-height: 1.6;
}

.page-footer a {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.12s ease;
}

.page-footer a:hover { color: #ffffff; }
