/* Shared black-and-silver palette, components, and responsive refinements. */
:root {
  color-scheme: dark;
  --canvas: #0b0c0f;
  --band: #101216;
  --surface: #17191e;
  --surface-raised: #20232a;
  --text: #f2f3f6;
  --muted: #b7bdc8;
  --silver: #d5dae4;
  --bright-silver: #f0f2f6;
  --dark-on-silver: #101217;
  --line: #363a43;
  --control-line: #707884;
  --nav-bg: rgba(11, 12, 15, 0.94);
  --shadow: 0 24px 54px rgba(0, 0, 0, 0.32);
}

::selection {
  background: var(--silver);
  color: var(--dark-on-silver);
}

html {
  scroll-padding-top: 92px;
}

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

.hero-inner > *,
.section-inner > *,
.cta-box > *,
.card {
  min-width: 0;
}

:focus-visible {
  outline: 3px solid var(--bright-silver);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 14px;
  z-index: 100;
  transform: translateY(-160%);
  border-radius: 8px;
  background: var(--silver);
  padding: 12px 16px;
  color: var(--dark-on-silver);
  font-weight: 700;
}

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

.nav-inner {
  position: relative;
  gap: 16px;
}

.brand {
  display: inline-flex;
  min-width: 0;
  min-height: 44px;
  align-items: baseline;
  align-content: center;
  flex-wrap: wrap;
  column-gap: 0.4rem;
  color: var(--silver);
  line-height: 1.1;
  text-decoration: none;
}

.brand-surname {
  font-size: 1.5rem;
  font-weight: 780;
  letter-spacing: -0.04em;
}

.brand-name {
  font-size: 1rem;
  font-weight: 620;
  letter-spacing: -0.018em;
}

.nav-links {
  margin-left: auto;
}

.nav-links a,
.nav-tools a,
.mobile-nav summary {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}

.nav-tools {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

.language-switch,
.mobile-nav summary {
  justify-content: center;
  border: 1px solid var(--control-line);
  border-radius: 8px;
  background: var(--surface);
  padding: 8px 12px;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.mobile-nav {
  display: none;
}

.mobile-nav summary {
  cursor: pointer;
  list-style: none;
}

.mobile-nav summary::-webkit-details-marker {
  display: none;
}

.mobile-nav summary::after {
  content: "+";
  margin-left: 8px;
}

.mobile-nav[open] summary::after {
  content: "−";
}

.mobile-nav-links {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  width: min(280px, calc(100vw - 28px));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 8px;
  box-shadow: var(--shadow);
}

.mobile-nav-links a {
  border-radius: 4px;
  padding: 10px 14px;
  text-decoration: none;
}

.mobile-nav-links a:hover {
  background: var(--surface-raised);
}

.credentials {
  margin-top: 20px;
  margin-bottom: 0;
  padding-left: 20px;
  color: var(--muted);
}

.credentials li + li {
  margin-top: 8px;
}

.contact-address {
  display: inline-block;
  margin-top: 16px;
  color: var(--text);
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}

.footer-inner > span {
  max-width: 680px;
}

.hero-support {
  max-width: 740px;
  margin-bottom: 24px;
  font-size: 1.05rem;
}

.intro-note,
.scope-note {
  max-width: 850px;
  color: var(--muted);
  font-size: 0.94rem;
}

.intro-note {
  margin-bottom: 0;
}

.scope-note {
  margin: 24px 0 0;
}

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

.service-card {
  display: flex;
  flex-direction: column;
  align-items: start;
}

.service-output {
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.94rem;
}

.service-output li + li {
  margin-top: 8px;
}

.card .service-boundary {
  margin-bottom: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
}

.service-cta {
  margin-top: auto;
  width: 100%;
  text-align: center;
}

.sample-summary strong {
  display: block;
  margin-bottom: 6px;
}

.sample-summary p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.profile-panel h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.15;
}

.profile-panel p {
  max-width: 880px;
}

.profile-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-top: 14px;
  color: var(--text);
  text-underline-offset: 4px;
}

.profile-panel :focus-visible,
.cta :focus-visible {
  outline-color: var(--bright-silver);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.cta .contact-note {
  margin-top: 18px;
  font-size: 0.88rem;
}

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

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

.requirements-table caption {
  padding: 16px;
  text-align: left;
  font-weight: 700;
}

.requirements-table th,
.requirements-table td {
  min-width: 140px;
  padding: 16px;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.requirements-table thead th {
  background: var(--surface-raised);
}

.requirements-table td {
  color: var(--muted);
}

.nav-links a:hover,
.profile-link:hover,
.contact-address:hover {
  color: var(--bright-silver);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hero {
  border-bottom: 1px solid var(--line);
  background: radial-gradient(ellipse at 88% 12%, #252b36 0, var(--band) 41%, var(--canvas) 78%);
  padding: clamp(54px, 8vw, 104px) 0 clamp(50px, 7vw, 86px);
}

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
}

.status-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 1px;
  transform: rotate(45deg);
}

.hero h1 {
  max-width: 20ch;
  font-size: clamp(2.65rem, 5.4vw, 4.55rem);
  font-weight: 730;
  letter-spacing: -0.045em;
  line-height: 1.06;
  text-wrap: balance;
}

.hero .lead {
  max-width: 62ch;
  line-height: 1.6;
}

.hero-actions .button,
.cta-actions .button {
  padding-inline: 18px;
}

.button-primary,
.cta .button-primary {
  background: linear-gradient(150deg, var(--bright-silver), #c4cad5);
  color: var(--dark-on-silver);
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.25);
}

.button-primary:hover,
.cta .button-primary:hover {
  background: var(--bright-silver);
}

.button-secondary,
.button-link {
  border-color: var(--control-line);
  background: var(--surface);
  color: var(--text);
}

.button-secondary:hover,
.button-link:hover,
.language-switch:hover,
.mobile-nav summary:hover {
  border-color: var(--silver);
  background: var(--surface-raised);
}

.section {
  padding-block: clamp(50px, 6.5vw, 84px);
}

.section-white {
  border-block: 1px solid var(--line);
  background: var(--band);
}

.section-header h2,
.profile-panel h2,
.cta h2,
.surface h2 {
  letter-spacing: -0.03em;
  line-height: 1.13;
}

.section-header h2 {
  min-width: 0;
  font-size: clamp(1.85rem, 3.55vw, 3rem);
}

.card,
.section-white .card {
  background: var(--surface);
}

.card,
.surface,
.profile-panel,
.sample-window {
  border-radius: 12px;
}

.card h3 {
  font-size: 1.08rem;
  line-height: 1.32;
}

.service-card {
  padding: clamp(19px, 2.4vw, 28px);
  background: linear-gradient(150deg, var(--surface-raised), var(--surface) 50%);
}

.service-card h3 {
  font-size: 1.28rem;
  letter-spacing: -0.02em;
}

#service-review {
  border-top-color: #858e9d;
}

.module-label {
  border-radius: 5px;
  letter-spacing: 0.085em;
}

.risk {
  border-left: 2px solid var(--control-line);
}

.profile-panel,
.surface {
  padding: clamp(20px, 4vw, 38px);
  background: linear-gradient(150deg, var(--surface-raised), var(--surface) 68%);
}

.surface p {
  margin-bottom: 0;
}

.cta {
  background: radial-gradient(ellipse at 94% 100%, #252b36, var(--band) 64%);
}

@media (min-width: 1080px) {
  .page-shell .hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.38fr);
    gap: 36px;
    align-items: center;
  }

  .page-shell .hero-inner::after {
    content: "";
    width: 100%;
    aspect-ratio: 300 / 324;
    background: url("hero-trace.svg") center / contain no-repeat;
    pointer-events: none;
  }
}

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

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .nav-tools {
    margin-left: auto;
  }

  .mobile-nav {
    display: block;
  }
}

@media (max-width: 680px) {
  .nav-inner {
    gap: 8px;
  }

  .brand-surname {
    font-size: 1.25rem;
  }

  .brand-name {
    font-size: 0.92rem;
  }

  .mobile-nav {
    display: block;
  }

  .sample-content {
    padding: 16px;
  }

  .sample-footer {
    flex-wrap: wrap;
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(2rem, 8.4vw, 3.25rem);
    text-wrap: wrap;
  }

  .window-bar {
    flex-wrap: wrap;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
