* {
  box-sizing: border-box;
}

:root {
  --brand: #5a00d2;
  --brand-pressed: #4a00ad;
  --brand-soft: #905cd6;
  --brand-blue: #0f6fff;
  --success: #15803d;
  --danger: #c2185b;
  --bg: #f7f2ff;
  --surface: #ffffff;
  --surface-soft: #fbf8ff;
  --surface-brand: #f0e8ff;
  --border: #d7c4fa;
  --border-strong: #b995f2;
  --ink: #241332;
  --muted: #624795;
  --shadow: rgba(36, 19, 50, 0.12);
  --shadow-brand: rgba(90, 0, 210, 0.18);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  overflow-x: hidden;
}

a {
  color: var(--brand);
  font-weight: 800;
  text-decoration: none;
}

a:hover {
  color: var(--brand-pressed);
}

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

.site-page.narrow {
  width: min(920px, calc(100% - 36px));
}

.site-topbar {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand-logo {
  width: 106px;
  height: auto;
  display: block;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.site-pill,
.status-pill {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.site-pill.soft,
.status-pill.soft {
  background: var(--surface-brand);
  color: var(--ink);
}

.surface-card,
.document-card,
.service-card,
.mini-panel {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 18px 48px var(--shadow);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
}

.eyebrow::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--brand);
  box-shadow: 0 0 0 5px var(--surface-brand);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  color: var(--ink);
  letter-spacing: 0;
}

.lead {
  max-width: 700px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

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

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--brand);
  border-radius: 16px;
  background: var(--brand);
  color: #ffffff;
  font-weight: 850;
  text-align: center;
  box-shadow: 0 12px 26px var(--shadow-brand);
}

.button:hover {
  border-color: var(--brand-pressed);
  background: var(--brand-pressed);
  color: #ffffff;
}

.button.secondary {
  border-color: var(--border);
  background: var(--surface);
  color: var(--brand);
  box-shadow: none;
}

.button.secondary:hover {
  border-color: var(--border-strong);
  background: var(--surface-brand);
  color: var(--brand);
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: 26px;
  align-items: stretch;
}

.hero-copy,
.hero-preview,
.document-card {
  padding: 30px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.hero-preview {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.preview-window {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--bg);
}

.preview-titlebar {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  border-bottom: 1px solid var(--border);
  background: #f2ecfb;
}

.preview-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  opacity: 0.72;
}

.preview-body {
  padding: 22px;
}

.preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.preview-logo {
  width: 82px;
  height: auto;
  display: block;
}

.preview-title {
  margin: 0 0 7px;
  color: var(--ink);
  font-size: 26px;
  line-height: 1.05;
  font-weight: 900;
}

.preview-copy {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.signal-list {
  display: grid;
  gap: 10px;
}

.signal-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-soft);
}

.signal-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--surface-brand);
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
}

.signal-main {
  min-width: 0;
}

.signal-main strong,
.signal-main span {
  display: block;
}

.signal-main strong {
  color: var(--ink);
  font-size: 14px;
}

.signal-main span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.signal-state {
  color: var(--success);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.note {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.service-card {
  min-height: 184px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  box-shadow: 0 12px 28px rgba(36, 19, 50, 0.08);
}

.service-kicker {
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.service-card h2 {
  margin: 8px 0 8px;
  font-size: 21px;
  line-height: 1.15;
}

.service-card p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.5;
}

.document-card h1 {
  font-size: clamp(36px, 5vw, 54px);
}

.document-meta,
.document-intro {
  color: var(--muted);
  line-height: 1.6;
}

.document-meta {
  margin: 0 0 22px;
}

.document-intro {
  margin: 0 0 24px;
}

.document-body {
  font-size: 16px;
  line-height: 1.65;
}

.document-body h2 {
  margin: 28px 0 10px;
  font-size: 22px;
}

.document-body p {
  margin: 0 0 12px;
}

.document-body ul {
  margin: 0 0 14px;
  padding-left: 22px;
}

.info-panel {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-soft);
}

.info-panel p:last-child {
  margin-bottom: 0;
}

.status-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
}

.info-grid {
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(0, 1fr);
  gap: 12px 20px;
  margin: 0;
}

.info-grid dt {
  color: var(--muted);
  font-weight: 900;
}

.info-grid dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.site-footer {
  margin-top: 18px;
  padding: 18px 0 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.site-footer a {
  color: var(--brand);
}

@media (max-width: 960px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .site-page {
    width: min(100% - 24px, 640px);
    padding-top: 18px;
  }

  .site-topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

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

  .home-hero {
    display: block;
  }

  .hero-copy,
  .hero-preview,
  .document-card {
    padding: 18px;
  }

  .hero-preview {
    margin-top: 14px;
  }

  h1 {
    font-size: 38px;
  }

  .lead {
    font-size: 16px;
  }

  .actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .service-grid {
    grid-template-columns: 1fr;
  }

  .info-grid {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .info-grid dd {
    margin-bottom: 10px;
  }

  .signal-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .signal-state {
    grid-column: 2;
  }
}

@media (max-width: 440px) {
  .site-page {
    width: calc(100% - 20px);
  }

  .brand-logo {
    width: 96px;
  }

  .hero-copy,
  .hero-preview,
  .document-card {
    padding: 14px;
    border-radius: 18px;
  }

  h1 {
    font-size: 34px;
  }

  .preview-body {
    padding: 16px;
  }
}
