:root {
  --navy-950: #102a43;
  --navy-900: #153554;
  --navy-800: #1e3a5f;
  --emerald-600: #059669;
  --emerald-500: #10b981;
  --emerald-50: #ecfdf5;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;
  --amber-50: #fffbeb;
  --amber-600: #d97706;
  --red-50: #fef2f2;
  --red-600: #dc2626;
  --blue-50: #eff6ff;
  --blue-600: #2563eb;
  --violet-50: #f5f3ff;
  --violet-600: #7c3aed;
  --teal-50: #f0fdfa;
  --teal-600: #0d9488;
  --orange-50: #fff7ed;
  --orange-600: #ea580c;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 16px 40px rgba(15, 23, 42, 0.1);
  --radius: 12px;
  --radius-sm: 8px;
  --header-height: 68px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--slate-800);
  background: var(--white);
  font-family: "Roboto", Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-weight: 500;
}

body,
button,
input {
  font-family: "Roboto", Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.shell.narrow {
  width: min(880px, calc(100% - 40px));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  min-height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 max(20px, calc((100vw - 1120px) / 2));
  border-bottom: 1px solid rgba(226, 232, 240, 0.86);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
}

.brand,
.top-nav,
.header-action {
  display: inline-flex;
  align-items: center;
}

.brand {
  gap: 10px;
  color: var(--slate-900);
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(16, 185, 129, 0.95), rgba(16, 185, 129, 0.62)),
    var(--navy-800);
  box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.18);
}

.top-nav {
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--slate-200);
  border-radius: 999px;
  background: var(--slate-50);
  color: var(--slate-600);
  font-size: 14px;
  font-weight: 700;
}

.top-nav a {
  padding: 8px 13px;
  border-radius: 999px;
}

.top-nav a:hover {
  color: var(--slate-900);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.header-action {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--navy-800);
  color: var(--white);
  font-size: 14px;
  font-weight: 800;
}

.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(110deg, rgba(16, 42, 67, 0.98), rgba(30, 58, 95, 0.94)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 88px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 88px),
    var(--navy-950);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% 0 -10%;
  height: 120px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), var(--white));
  pointer-events: none;
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.72fr);
  gap: 46px;
  align-items: center;
  min-height: calc(100svh - var(--header-height) - 56px);
  padding: 72px 0 84px;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow,
.section-label {
  margin: 0 0 14px;
  color: var(--emerald-600);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.08);
  text-transform: none;
}

.eyebrow span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--emerald-500);
}

h1,
h2,
h3,
p,
dl,
dd {
  margin: 0;
}

h1 {
  max-width: 700px;
  color: var(--white);
  font-size: clamp(40px, 4.9vw, 62px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 640px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 18px;
  line-height: 1.5;
  font-weight: 600;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 10px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--emerald-500);
  color: var(--white);
  box-shadow: 0 14px 28px rgba(16, 185, 129, 0.22);
}

.button-primary:hover {
  background: var(--emerald-600);
}

.button-ghost {
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.button-light {
  border: 1px solid var(--slate-200);
  background: var(--white);
  color: var(--navy-800);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin-top: 36px;
}

.hero-stats div {
  min-width: 108px;
  padding-left: 14px;
  border-left: 2px solid rgba(16, 185, 129, 0.7);
}

.hero-stats dt {
  color: var(--white);
  font-size: 28px;
  line-height: 1;
  font-weight: 800;
}

.hero-stats dd {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  font-weight: 700;
}

.hero-board {
  position: relative;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(14px);
}

.board-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 800;
}

.board-top strong {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.16);
  color: #a7f3d0;
}

.hero-board ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-board li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 700;
}

.hero-board li span {
  color: #a7f3d0;
  font-size: 12px;
  font-weight: 800;
}

.section {
  padding: 72px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 28px;
}

.section-head.compact {
  display: block;
  max-width: 720px;
  margin-bottom: 28px;
}

.section-head h2,
.cta-section h2 {
  color: var(--slate-900);
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: 0;
}

.section-head p:not(.section-label),
.cta-section p {
  max-width: 640px;
  margin-top: 12px;
  color: var(--slate-500);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 500;
}

.risk-section {
  background: var(--white);
}

.risk-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.risk-card {
  display: flex;
  min-height: 168px;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  background: var(--white);
  text-align: left;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.risk-card:hover {
  transform: translateY(-3px);
  border-color: var(--slate-300);
  box-shadow: var(--shadow-md);
}

.risk-card strong {
  display: block;
  color: var(--slate-900);
  font-size: 16px;
  line-height: 1.2;
}

.risk-card p {
  margin-top: 10px;
  color: var(--slate-500);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 500;
}

.risk-tag {
  display: inline-flex;
  align-self: flex-start;
  margin-top: 16px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.tag-object { background: var(--blue-50); color: var(--blue-600); }
.tag-owner { background: var(--violet-50); color: var(--violet-600); }
.tag-court { background: var(--orange-50); color: var(--orange-600); }
.tag-debt { background: var(--red-50); color: var(--red-600); }
.tag-docs { background: var(--slate-100); color: var(--slate-700); }
.tag-notary { background: var(--teal-50); color: var(--teal-600); }
.tag-tax { background: var(--amber-50); color: var(--amber-600); }

.services-section {
  background: var(--slate-50);
}

.services-head > p {
  text-align: right;
}

.service-tools {
  position: sticky;
  top: var(--header-height);
  z-index: 20;
  display: grid;
  gap: 12px;
  margin: 0 -12px 22px;
  padding: 12px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.92);
  backdrop-filter: blur(14px);
}

.search-box {
  position: relative;
  display: block;
}

.search-box span {
  position: absolute;
  top: 50%;
  left: 15px;
  width: 15px;
  height: 15px;
  transform: translateY(-50%);
  border: 2px solid var(--slate-400);
  border-radius: 999px;
}

.search-box span::after {
  content: "";
  position: absolute;
  right: -6px;
  bottom: -5px;
  width: 8px;
  height: 2px;
  border-radius: 999px;
  background: var(--slate-400);
  transform: rotate(45deg);
}

.search-box input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px 0 43px;
  border: 1px solid var(--slate-200);
  border-radius: 10px;
  outline: 0;
  background: var(--white);
  color: var(--slate-900);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.search-box input:focus {
  border-color: var(--navy-800);
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.12);
}

.category-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.category-button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--slate-200);
  border-radius: 999px;
  background: var(--white);
  color: var(--slate-600);
  font-size: 14px;
  font-weight: 800;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.category-button[aria-pressed="true"] {
  border-color: var(--navy-800);
  background: var(--navy-800);
  color: var(--white);
}

.result-count {
  margin-bottom: 16px;
  color: var(--slate-500);
  font-size: 14px;
  font-weight: 700;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.service-card {
  display: flex;
  min-height: 180px;
  flex-direction: column;
  padding: 16px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.service-card:hover {
  transform: translateY(-2px);
  border-color: var(--slate-300);
  box-shadow: var(--shadow-md);
}

.service-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.category-pill {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.service-card h3 {
  color: var(--slate-900);
  font-size: 17px;
  line-height: 1.25;
  font-weight: 800;
}

.service-card p {
  flex: 1;
  margin-top: 8px;
  color: var(--slate-500);
  font-size: 14px;
  line-height: 1.48;
  font-weight: 500;
}

.service-card a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  border-radius: 9px;
  background: var(--slate-50);
  color: var(--navy-800);
  font-size: 14px;
  font-weight: 800;
}

.service-card a:hover {
  background: var(--navy-800);
  color: var(--white);
}

.empty-state {
  grid-column: 1 / -1;
  padding: 36px;
  border: 1px dashed var(--slate-300);
  border-radius: var(--radius);
  color: var(--slate-500);
  text-align: center;
  font-weight: 700;
}

.checklist-section {
  background: var(--white);
}

.progress-wrap {
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  background: var(--slate-50);
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
  color: var(--slate-600);
  font-size: 14px;
  font-weight: 800;
}

.progress-track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--slate-200);
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--emerald-500);
  transition: width 220ms ease;
}

.checklist {
  display: grid;
  gap: 10px;
}

.step-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.step-number {
  display: grid;
  height: 72px;
  place-items: center;
  border-radius: 10px;
  background: var(--navy-800);
  color: var(--white);
  font-size: 24px;
  font-weight: 800;
}

.step-card h3 {
  margin-bottom: 10px;
  color: var(--slate-900);
  font-size: 17px;
  font-weight: 800;
}

.step-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--slate-600);
  font-size: 14px;
  line-height: 1.42;
  font-weight: 600;
  text-align: left;
}

.check-item span:first-child {
  position: relative;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border: 2px solid var(--slate-300);
  border-radius: 6px;
  background: var(--white);
}

.check-item.is-done {
  color: var(--slate-400);
}

.check-item.is-done span:first-child {
  border-color: var(--emerald-500);
  background: var(--emerald-500);
}

.check-item.is-done span:first-child::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 9px;
  border-right: 2px solid var(--white);
  border-bottom: 2px solid var(--white);
  transform: rotate(45deg);
}

.cta-section {
  padding: 58px 0;
  background: var(--navy-950);
  color: var(--white);
}

.cta-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
}

.cta-section .section-label {
  color: #a7f3d0;
}

.cta-section h2 {
  color: var(--white);
}

.cta-section p {
  color: rgba(255, 255, 255, 0.66);
}

.cta-actions {
  justify-content: end;
  margin-top: 0;
}

.site-footer {
  padding: 36px 0 24px;
  background: var(--slate-950);
  color: var(--slate-400);
}

.footer-layout,
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-footer strong {
  display: block;
  margin-bottom: 8px;
  color: var(--white);
}

.site-footer p,
.footer-bottom {
  font-size: 13px;
  line-height: 1.5;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 14px;
  font-weight: 700;
}

.site-footer a:hover,
.footer-bottom a {
  color: var(--white);
}

.footer-bottom {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--navy-800);
  box-shadow: var(--shadow-md);
}

.to-top::before {
  content: "";
  position: absolute;
  top: 17px;
  left: 16px;
  width: 11px;
  height: 11px;
  border-top: 2px solid var(--white);
  border-left: 2px solid var(--white);
  transform: rotate(45deg);
}

.to-top.is-visible {
  display: block;
}

@media (max-width: 980px) {
  .site-header {
    gap: 12px;
  }

  .top-nav {
    display: none;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 26px;
    min-height: auto;
    padding: 56px 0 64px;
  }

  .hero-board {
    max-width: 620px;
  }

  .risk-grid,
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta-layout {
    grid-template-columns: 1fr;
  }

  .cta-actions {
    justify-content: start;
  }
}

@media (max-width: 700px) {
  :root {
    --header-height: 58px;
  }

  body {
    font-size: 15.5px;
    line-height: 1.42;
    font-weight: 600;
  }

  .shell,
  .shell.narrow {
    width: min(100% - 28px, 1120px);
  }

  .site-header {
    min-height: var(--header-height);
    padding: 0 14px;
  }

  .brand {
    max-width: 58vw;
    font-size: 14px;
  }

  .brand-mark {
    width: 28px;
    height: 28px;
  }

  .header-action {
    min-height: 34px;
    padding: 0 12px;
    font-size: 12px;
  }

  .hero-layout {
    padding: 34px 0 46px;
  }

  .hero .eyebrow {
    padding: 7px 10px;
    font-size: 12px;
    line-height: 1.3;
  }

  h1 {
    max-width: 330px;
    font-size: 32px;
    line-height: 1.08;
  }

  .hero-lead {
    max-width: 340px;
    margin-top: 14px;
    font-size: 15.5px;
    line-height: 1.44;
    font-weight: 700;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 22px;
  }

  .button {
    min-height: 44px;
    border-radius: 9px;
    font-size: 14px;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 24px;
  }

  .hero-stats div {
    min-width: 0;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-left: 2px solid rgba(16, 185, 129, 0.7);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
  }

  .hero-stats dt {
    font-size: 22px;
  }

  .hero-stats dd {
    font-size: 11px;
    line-height: 1.2;
  }

  .hero-board {
    padding: 14px;
    border-radius: 12px;
  }

  .hero-board li {
    min-height: 42px;
    padding: 10px;
    font-size: 13px;
    line-height: 1.3;
  }

  .section {
    padding: 46px 0;
  }

  .section-head,
  .section-head.compact {
    margin-bottom: 20px;
  }

  .section-head {
    display: block;
  }

  .section-head h2,
  .cta-section h2 {
    font-size: 28px;
    line-height: 1.12;
  }

  .section-head p:not(.section-label),
  .cta-section p {
    font-size: 15.5px;
    line-height: 1.44;
    font-weight: 700;
  }

  .section-label {
    margin-bottom: 10px;
    font-size: 12px;
  }

  .risk-grid {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    margin: 0 -14px;
    padding: 0 14px 6px;
    scroll-snap-type: x proximity;
  }

  .risk-card {
    flex: 0 0 78%;
    min-height: 145px;
    padding: 14px;
    scroll-snap-align: start;
  }

  .risk-card strong {
    font-size: 15px;
  }

  .risk-card p {
    font-size: 13.5px;
    line-height: 1.38;
    font-weight: 700;
  }

  .services-head > p {
    text-align: left;
  }

  .service-tools {
    top: var(--header-height);
    margin: 0 -14px 16px;
    padding: 10px 14px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .search-box input {
    min-height: 44px;
    font-size: 15px;
    font-weight: 700;
  }

  .category-button {
    min-height: 34px;
    padding: 0 12px;
    font-size: 13px;
  }

  .result-count {
    margin-bottom: 12px;
    font-size: 13px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .service-card {
    min-height: 0;
    padding: 14px;
    border-radius: 10px;
  }

  .service-card h3 {
    font-size: 16px;
  }

  .service-card p {
    font-size: 13.5px;
    line-height: 1.38;
    font-weight: 700;
  }

  .service-card a {
    min-height: 38px;
    margin-top: 12px;
    font-size: 13px;
  }

  .progress-wrap {
    padding: 12px;
  }

  .step-card {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
    border-radius: 10px;
  }

  .step-number {
    height: 44px;
    border-radius: 9px;
    font-size: 17px;
  }

  .step-card h3 {
    font-size: 15px;
  }

  .check-item {
    font-size: 13.5px;
    line-height: 1.34;
    font-weight: 700;
  }

  .cta-section {
    padding: 42px 0;
  }

  .cta-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .footer-layout,
  .footer-bottom {
    display: grid;
    gap: 16px;
  }

  .footer-bottom {
    font-size: 12px;
  }
}

@media (max-width: 380px) {
  h1 {
    font-size: 30px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .risk-card {
    flex-basis: 86%;
  }
}
