:root {
  color-scheme: dark;
  --bg: #0b0b0d;
  --surface: #131316;
  --surface-strong: #19191d;
  --text: #f1f0ed;
  --muted: #a09fa8;
  --quiet: #82818a;
  --border: #29292f;
  --accent: #9b87f5;
  --accent-strong: #b9aaf8;
  --accent-ink: #100d1c;
  --max: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  height: 1px;
  background: var(--accent);
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 4px;
}

.site-nav,
.site-footer,
.container {
  width: min(100% - 3rem, var(--max));
  margin-inline: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  gap: 2rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 750;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.logo img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.nav-links,
.footer-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links a,
.footer-links a {
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
}

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

.nav-cta {
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.38fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: end;
  padding-block: clamp(6rem, 12vw, 10rem) clamp(5rem, 10vw, 8rem);
}

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

h1, h2, h3, p {
  margin-top: 0;
}

h1, h2, h3 {
  text-wrap: balance;
}

h1 {
  max-width: 900px;
  margin-bottom: 1.75rem;
  font-size: clamp(2.65rem, 6.6vw, 5.75rem);
  font-weight: 720;
  letter-spacing: -0.055em;
  line-height: 0.98;
  overflow-wrap: anywhere;
}

h2 {
  max-width: 760px;
  margin-bottom: 1.25rem;
  font-size: clamp(2rem, 4vw, 3.75rem);
  font-weight: 680;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

h3 {
  margin-bottom: 0.65rem;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.lead {
  max-width: 720px;
  margin-bottom: 2.25rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
}

.hero-aside {
  padding-left: 1.5rem;
  border-left: 1px solid var(--border);
}

.hero-aside p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-aside strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--text);
  font-size: 1.1rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  font-size: 0.94rem;
  font-weight: 650;
  text-decoration: none;
}

.button {
  padding: 0.7rem 1.1rem;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-ink);
}

.button:hover {
  background: var(--accent-strong);
}

.text-link {
  padding-inline: 0.5rem;
  color: var(--text);
}

.text-link::after {
  content: "↗";
  margin-left: 0.45rem;
}

.text-link[href^="#"]::after,
.text-link[href^="/"]::after {
  content: "→";
}

.credibility {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: 1px solid var(--border);
}

.credibility div {
  min-width: 0;
  padding: 1.25rem 1.5rem 1.25rem 0;
}

.credibility div + div {
  padding-left: 1.5rem;
  border-left: 1px solid var(--border);
}

.credibility strong {
  display: block;
  font-size: 0.95rem;
}

.credibility span {
  color: var(--quiet);
  font-size: 0.82rem;
}

.section {
  padding-block: clamp(5rem, 10vw, 9rem);
}

.section + .section {
  border-top: 1px solid var(--border);
}

.section-header {
  display: grid;
  grid-template-columns: minmax(0, 0.38fr) minmax(0, 1fr);
  gap: clamp(2rem, 7vw, 7rem);
  margin-bottom: 3rem;
}

.section-header > div > p {
  max-width: 660px;
  color: var(--muted);
  font-size: 1.05rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--border);
}

.service,
.trigger {
  min-width: 0;
  padding: 2rem;
  border-bottom: 1px solid var(--border);
}

.service:nth-child(odd),
.trigger:nth-child(odd) {
  padding-left: 0;
  border-right: 1px solid var(--border);
}

.service p,
.trigger p,
.step p {
  margin-bottom: 0;
  color: var(--muted);
}

.service-number {
  display: block;
  margin-bottom: 2rem;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 700;
}

.principle {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
  gap: clamp(3rem, 9vw, 9rem);
  align-items: center;
  padding-block: clamp(5rem, 10vw, 9rem);
}

.principle-panel {
  padding: clamp(2rem, 5vw, 4rem);
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
}

.principle-panel blockquote {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.8rem);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.principle-panel blockquote span {
  color: var(--accent-strong);
}

.feature-list {
  display: grid;
  gap: 1.4rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.feature-list strong {
  display: block;
  margin-bottom: 0.25rem;
}

.feature-list span {
  color: var(--muted);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: 1px solid var(--border);
}

.step {
  min-width: 0;
  padding: 2rem 1.5rem;
}

.step:first-child {
  padding-left: 0;
}

.step + .step {
  border-left: 1px solid var(--border);
}

.step span {
  display: block;
  margin-bottom: 3rem;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 700;
}

.fit {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--border);
}

.fit > div {
  padding: clamp(2rem, 5vw, 4rem);
  background: var(--surface);
}

.fit ul {
  margin: 1.5rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3rem;
  align-items: end;
  padding-block: clamp(5rem, 10vw, 9rem);
  border-top: 1px solid var(--border);
}

.contact p {
  max-width: 700px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 2rem;
  border-top: 1px solid var(--border);
  color: var(--quiet);
  font-size: 0.84rem;
}

.process-hero {
  max-width: 850px;
  padding-block: clamp(6rem, 12vw, 10rem);
}

.process-list {
  border-top: 1px solid var(--border);
}

.process-row {
  display: grid;
  grid-template-columns: 80px minmax(220px, 0.45fr) minmax(0, 1fr);
  gap: 2rem;
  padding-block: 2.5rem;
  border-bottom: 1px solid var(--border);
}

.process-row > span {
  color: var(--accent-strong);
  font-size: 0.8rem;
  font-weight: 700;
}

.process-row h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

.process-row p {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
}

@media (max-width: 820px) {
  .hero,
  .section-header,
  .principle,
  .contact {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    gap: 3rem;
  }

  .hero-aside {
    max-width: 520px;
  }

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

  .credibility div:nth-child(3) {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--border);
  }

  .credibility div:nth-child(4) {
    border-top: 1px solid var(--border);
  }

  .step:nth-child(3) {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--border);
  }

  .step:nth-child(4) {
    border-top: 1px solid var(--border);
  }

  .process-row {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .process-row p {
    grid-column: 2;
  }
}

@media (max-width: 620px) {
  .site-nav,
  .site-footer,
  .container {
    width: min(100% - 2rem, var(--max));
  }

  .site-nav {
    min-height: 72px;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-block: 1rem;
  }

  .nav-links {
    width: 100%;
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
  }

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

  h1 {
    font-size: clamp(2.4rem, 12vw, 3.4rem);
    line-height: 1.02;
  }

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

  .service,
  .trigger,
  .service:nth-child(odd),
  .trigger:nth-child(odd) {
    padding-inline: 0;
    border-right: 0;
  }

  .credibility,
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .credibility div,
  .credibility div + div,
  .credibility div:nth-child(3) {
    padding-inline: 0;
    border-left: 0;
    border-top: 1px solid var(--border);
  }

  .credibility div:first-child {
    border-top: 0;
  }

  .step,
  .step:first-child,
  .step:nth-child(3) {
    padding-inline: 0;
    border-left: 0;
    border-top: 1px solid var(--border);
  }

  .step:first-child {
    border-top: 0;
  }

  .step span {
    margin-bottom: 1.5rem;
  }

  .contact {
    align-items: start;
  }

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

  .footer-links {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.65rem;
  }

  .process-row {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 1rem;
  }
}

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

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