:root {
  color-scheme: light dark;
  --background: #f5f7fb;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: #ffffff;
  --text: #172033;
  --muted: #617087;
  --line: #dfe5ee;
  --accent: #6857d9;
  --accent-strong: #4d3fb5;
  --accent-soft: #eeeaff;
  --easy: #198a74;
  --easy-soft: #e2f6f0;
  --socketbuddy: #7256d8;
  --socketbuddy-soft: #eee9ff;
  --shadow: 0 18px 45px rgba(27, 38, 66, 0.09);
  --radius-large: 28px;
  --radius-medium: 18px;
  --radius-small: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(104, 87, 217, 0.13), transparent 34rem),
    radial-gradient(circle at top right, rgba(25, 138, 116, 0.1), transparent 30rem),
    var(--background);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 17px;
  line-height: 1.68;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--accent-strong);
  text-underline-offset: 0.18em;
}

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}

.site-header {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 0;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 750;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.site-brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(145deg, var(--accent), var(--easy));
  box-shadow: 0 8px 20px rgba(77, 63, 181, 0.22);
  color: #ffffff;
  font-size: 0.82rem;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  font-size: 0.9rem;
  font-weight: 650;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
}

main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0 84px;
}

.hero {
  max-width: 780px;
  padding: 44px 0 56px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.18;
  letter-spacing: -0.025em;
}

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(2.7rem, 8vw, 5.7rem);
  font-weight: 820;
}

.document h1 {
  max-width: 820px;
  font-size: clamp(2.45rem, 7vw, 4.8rem);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
}

h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

p {
  margin: 0 0 1.2em;
}

.hero-copy {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.24rem);
}

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

.app-card {
  position: relative;
  overflow: hidden;
  min-height: 310px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-large);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.app-card::after {
  position: absolute;
  top: -70px;
  right: -60px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: var(--card-glow);
  content: "";
  filter: blur(4px);
  opacity: 0.72;
}

.app-card.easy {
  --card-glow: var(--easy-soft);
}

.app-card.socketbuddy {
  --card-glow: var(--socketbuddy-soft);
}

.app-card > * {
  position: relative;
  z-index: 1;
}

.app-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 42px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 750;
  text-transform: uppercase;
}

.app-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--easy);
  box-shadow: 0 0 0 5px var(--easy-soft);
}

.socketbuddy .app-dot {
  background: var(--socketbuddy);
  box-shadow: 0 0 0 5px var(--socketbuddy-soft);
}

.app-card h2 {
  margin-bottom: 12px;
  font-size: 2rem;
}

.app-card p {
  max-width: 470px;
  color: var(--muted);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-strong);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 750;
  text-decoration: none;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.button:hover {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
  box-shadow: 0 10px 25px rgba(27, 38, 66, 0.1);
  transform: translateY(-2px);
}

.button.primary {
  border-color: transparent;
  background: var(--text);
  color: var(--background);
}

.document {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 64px;
  align-items: start;
}

.document-header {
  grid-column: 1 / -1;
  max-width: 860px;
  padding: 42px 0 8px;
}

.document-meta {
  color: var(--muted);
  font-size: 0.94rem;
}

.document-content {
  min-width: 0;
}

.document-section {
  margin-bottom: 22px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-medium);
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(27, 38, 66, 0.045);
}

.document-section p:last-child,
.document-section ul:last-child {
  margin-bottom: 0;
}

.document-section ul {
  margin: 0 0 1.2em;
  padding-left: 1.2em;
}

.document-section li + li {
  margin-top: 0.55em;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.summary-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--surface-strong);
}

.summary-card strong {
  display: block;
  margin-bottom: 5px;
}

.summary-card span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

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

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
}

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

th {
  background: var(--accent-soft);
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

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

.document-aside {
  position: sticky;
  top: 24px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-medium);
  background: var(--surface);
}

.document-aside h2 {
  margin-bottom: 14px;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

.document-aside ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: section;
}

.document-aside li + li {
  margin-top: 10px;
}

.document-aside a {
  display: block;
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.4;
  text-decoration: none;
}

.document-aside a:hover {
  color: var(--text);
}

.callout {
  padding: 20px 22px;
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-small) var(--radius-small) 0;
  background: var(--accent-soft);
}

.callout p {
  margin: 0;
}

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

.footer-inner {
  display: flex;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 40px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 0.86rem;
}

.footer-inner p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
}

.footer-links a {
  color: var(--muted);
}

@media (max-width: 840px) {
  main {
    padding-top: 48px;
  }

  .app-grid,
  .document {
    grid-template-columns: 1fr;
  }

  .document {
    gap: 18px;
  }

  .document-header {
    padding-top: 24px;
  }

  .document-aside {
    position: static;
    grid-row: 2;
  }

  .document-content {
    grid-row: 3;
  }

  .summary-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 16px;
  }

  .site-header,
  main,
  .footer-inner {
    width: min(100% - 24px, 1120px);
  }

  .site-nav,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .hero {
    padding-top: 24px;
  }

  .app-card,
  .document-section {
    padding: 23px;
  }

  .app-label {
    margin-bottom: 28px;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #0e1220;
    --surface: rgba(23, 29, 48, 0.9);
    --surface-strong: #1b2237;
    --text: #f4f6fb;
    --muted: #aab3c7;
    --line: #313a53;
    --accent: #a99cff;
    --accent-strong: #c3baff;
    --accent-soft: #282444;
    --easy: #63d3b8;
    --easy-soft: #173b35;
    --socketbuddy: #ae9eff;
    --socketbuddy-soft: #2d274f;
    --shadow: 0 18px 45px rgba(0, 0, 0, 0.2);
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
