@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;700&display=swap");

:root {
  --paper: #f3f0e8;
  --paper-strong: #eeeadf;
  --surface: #fbf8f1;
  --surface-strong: #fffdf8;
  --text: #0d1726;
  --muted: #52606f;
  --line: rgba(13, 23, 38, 0.14);
  --line-strong: rgba(13, 23, 38, 0.28);
  --brand-cyan: #2fa8f8;
  --brand-blue: #5e87f4;
  --brand-violet: #8b64f4;
  --brand-dark: #101d30;
  --success: #146c43;
  --error: #a53f3f;
  --radius-sm: 18px;
  --radius-md: 28px;
  --radius-lg: 44px;
  --container: 1180px;
  --shadow-line: 0 1px 0 rgba(13, 23, 38, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    linear-gradient(rgba(13, 23, 38, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 23, 38, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, var(--paper) 0%, #f8f5ee 100%);
  background-size: 32px 32px, 32px 32px, auto;
  line-height: 1.55;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

textarea {
  resize: vertical;
}

::selection {
  background: rgba(94, 135, 244, 0.22);
  color: var(--text);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 100;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: var(--brand-dark);
  color: #fff;
}

.skip-link:focus {
  top: 1rem;
}

.site-shell {
  overflow: clip;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.section {
  padding: 4.5rem 0;
}

.section--paper {
  background: rgba(255, 253, 248, 0.58);
  border-block: 1px solid rgba(13, 23, 38, 0.08);
}

.section--cta {
  padding-top: 0;
}

.eyebrow,
.site-footer__eyebrow,
.site-footer__title {
  margin: 0 0 0.8rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand-blue);
}

.hero h1,
.editorial-heading h2,
.module-card h3,
.route-card h3,
.editorial-column h2,
.manifesto__block h2,
.cta-strip h2,
.contact-form-panel h2,
.legal-block h2,
.not-found h1 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.02;
}

.hero h1 {
  font-size: clamp(2.2rem, 5.8vw, 4.8rem);
  max-width: 11ch;
  text-wrap: balance;
}

.editorial-heading h2,
.editorial-column h2,
.manifesto__block h2,
.cta-strip h2,
.not-found h1 {
  font-size: clamp(1.75rem, 4vw, 3.15rem);
}

.hero__lead,
.route-card p,
.module-card p,
.editorial-column p,
.manifesto__block p,
.cta-strip p,
.site-footer__lead,
.legal-block p,
.not-found p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.button {
  padding: 0.92rem 1.3rem;
  border: 1px solid var(--line-strong);
  font-weight: 800;
  cursor: pointer;
}

.button:hover,
.button:focus-visible,
.text-link:hover,
.text-link:focus-visible {
  transform: translateY(-1px);
}

.button:focus-visible,
.text-link:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.nav-toggle:focus-visible {
  outline: 3px solid rgba(94, 135, 244, 0.3);
  outline-offset: 2px;
}

.button--solid {
  color: #fff;
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

.button--ghost {
  background: rgba(255, 255, 255, 0.54);
  color: var(--brand-dark);
}

.button--small {
  padding: 0.78rem 1rem;
  font-size: 0.92rem;
}

.text-link {
  color: var(--brand-blue);
  font-weight: 800;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding-top: 0.85rem;
  background: linear-gradient(180deg, rgba(243, 240, 232, 0.95) 0%, rgba(243, 240, 232, 0.78) 80%, rgba(243, 240, 232, 0) 100%);
  backdrop-filter: blur(10px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 82px;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  background: rgba(251, 248, 241, 0.9);
  box-shadow: var(--shadow-line);
}

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

.brand__logo {
  width: clamp(168px, 21vw, 250px);
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.site-nav__list a {
  position: relative;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--muted);
}

.site-nav__list a[aria-current="page"] {
  color: var(--text);
}

.site-nav__list a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.55rem;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-cyan), var(--brand-violet));
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.28rem;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
}

.nav-toggle__line {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--brand-dark);
}

.hero {
  padding: 3.8rem 0 4rem;
}

.hero--editorial {
  padding-top: 3rem;
}

.hero-editorial,
.inner-hero,
.editorial-slab,
.manifesto,
.cta-strip,
.contact-form-panel,
.not-found {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 248, 0.82);
}

.hero-editorial,
.inner-hero,
.editorial-slab,
.manifesto,
.cta-strip,
.contact-form-panel {
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

.hero-editorial {
  display: grid;
  gap: 1.5rem;
}

.hero-editorial__topline,
.hero-editorial__rail {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.8rem;
  padding-top: 0.2rem;
}

.hero-editorial__rail {
  gap: 0.55rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.hero-editorial__rail span {
  padding: 0.42rem 0.8rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--paper-strong);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}

.hero-editorial__grid {
  display: grid;
  gap: 1.25rem;
  align-items: stretch;
}

.hero-editorial__main,
.hero-editorial__side,
.editorial-heading,
.editorial-column,
.manifesto__block,
.module-card,
.route-card,
.legal-block {
  display: grid;
  gap: 0.9rem;
}

.hero-editorial__main {
  display: grid;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.hero-editorial__side {
  align-content: start;
  padding: 1.25rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--surface-strong);
  gap: 1.2rem;
}

.hero-editorial__side p {
  margin: 0;
  max-width: 34ch;
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
}

.hero__actions,
.cta-strip__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.inner-hero {
  display: grid;
  gap: 1rem;
}

.inner-hero h1 {
  max-width: 100%;
  text-wrap: pretty;
}

.inner-hero .hero__lead {
  max-width: 58ch;
}

.inner-hero .hero__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 560px;
  margin-top: 0.35rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.inner-hero .hero__actions .button {
  width: 100%;
}

.editorial-heading {
  max-width: 760px;
  margin-bottom: 2rem;
}

.route-grid,
.module-grid,
.editorial-columns,
.legal-layout,
.site-footer__grid {
  display: grid;
  gap: 1rem;
}

.route-card,
.module-card,
.editorial-column,
.legal-block {
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.42);
}

.route-card {
  min-height: 0;
}

.module-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.module-card h3,
.route-card h3,
.process-item h3 {
  font-size: 1.42rem;
}

.editorial-process,
.process-list {
  display: grid;
  gap: 1rem;
}

.method-flow {
  display: grid;
  gap: 0.95rem;
}

.method-step {
  position: relative;
  display: grid;
  gap: 0.75rem;
  min-height: 180px;
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background: var(--surface-strong);
}

.method-step h3 {
  margin: 0;
  font-size: 1.2rem;
}

.method-step p {
  margin: 0;
  color: var(--muted);
}

.method-step__index {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--brand-blue);
}

.method-step__arrow {
  display: none;
}

.process-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.process-item:first-child {
  border-top: 0;
}

.process-item__index {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-weight: 800;
  color: var(--brand-blue);
}

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

.feature-list li {
  position: relative;
  padding-left: 1.15rem;
  color: var(--muted);
}

.feature-list li::before {
  content: "";
  position: absolute;
  top: 0.58rem;
  left: 0;
  width: 0.46rem;
  height: 0.46rem;
  border-radius: 50%;
  background: var(--brand-blue);
}

.manifesto {
  display: grid;
  gap: 1rem;
}

.cta-strip {
  display: grid;
  gap: 0.95rem;
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(1.25rem, 2vw, 1.9rem) clamp(1.2rem, 2.6vw, 2.2rem);
  border-radius: 30px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(238, 234, 223, 0.7));
}

.cta-strip h2 {
  max-width: 20ch;
}

.cta-strip p {
  max-width: 58ch;
}

.cta-strip__actions {
  margin-top: 0.25rem;
}

.editorial-columns--contact p a {
  color: var(--brand-blue);
}

.contact-form-panel {
  display: grid;
  gap: 1rem;
}

.status-banner {
  padding: 1rem 1.1rem;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
}

.status-banner p {
  margin: 0;
  font-weight: 700;
}

.status-banner--success {
  color: var(--success);
  background: rgba(20, 108, 67, 0.08);
}

.status-banner--error {
  color: var(--error);
  background: rgba(165, 63, 63, 0.08);
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.form-grid {
  display: grid;
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field label {
  font-size: 0.92rem;
  font-weight: 800;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: var(--surface-strong);
  color: var(--text);
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: rgba(165, 63, 63, 0.75);
}

.field--checkbox {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 0.8rem;
  align-items: start;
}

.field--checkbox input {
  width: 20px;
  height: 20px;
  margin-top: 0.25rem;
}

.field-error {
  margin: 0;
  color: var(--error);
  font-size: 0.92rem;
  font-weight: 700;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.contact-form__footer {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.site-footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.86);
}

.site-footer__grid {
  padding: 1.5rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.58);
  margin-bottom: 1.6rem;
}

.site-footer__col,
.site-footer__list,
.site-footer__legal {
  display: grid;
  gap: 0.6rem;
}

.site-footer__logo {
  width: min(260px, 100%);
  height: auto;
  filter: grayscale(1) saturate(0) contrast(1.08);
}

.site-footer__lead {
  margin: 0;
  max-width: 34ch;
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.site-footer__positioning,
.site-footer__legal p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.site-footer__positioning {
  max-width: 42ch;
}

.site-footer__legal p a {
  color: var(--muted);
}

.site-footer__list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.site-footer__meta {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  text-align: center;
}

.site-footer__meta p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.button--compact {
  padding: 0.62rem 0.92rem;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.2;
}

.not-found {
  max-width: 760px;
  margin: clamp(2rem, 8vw, 6rem) auto;
  padding: clamp(1.8rem, 4vw, 3rem);
  text-align: center;
}

.not-found__brand {
  width: 56px;
  margin: 0 auto 1.3rem;
}

.not-found__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.js-enabled .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.js-enabled .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 760px) {
  .hero-editorial__grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.75fr);
  }

  .hero-editorial__main {
    padding-bottom: 0;
    border-bottom: 0;
    border-right: 1px solid var(--line);
    padding-right: 1.2rem;
  }

  .manifesto,
  .editorial-columns,
  .legal-layout,
  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .method-flow {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
  }

  .method-step__arrow {
    position: absolute;
    top: 50%;
    right: -0.65rem;
    transform: translateY(-50%);
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 50%;
    background: var(--paper-strong);
    border: 1px solid var(--line-strong);
    font-size: 0.8rem;
    color: var(--brand-blue);
  }

  .site-footer__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: start;
    gap: 2rem;
  }

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

  .cta-strip {
    grid-template-columns: 1fr auto;
    align-items: end;
    column-gap: 1.4rem;
  }

  .cta-strip .eyebrow,
  .cta-strip h2,
  .cta-strip p {
    grid-column: 1 / 2;
  }

  .cta-strip__actions {
    grid-column: 2 / 3;
    grid-row: 1 / 4;
    align-self: center;
    margin-top: 0;
  }
}

@media (max-width: 899px) {
  .nav-toggle {
    display: inline-flex;
  }

  .js-enabled .site-nav {
    position: absolute;
    top: calc(100% + 0.7rem);
    right: 1rem;
    left: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    border: 1px solid var(--line-strong);
    border-radius: 24px;
    background: rgba(255, 253, 248, 0.98);
  }

  .js-enabled.nav-open .site-nav {
    display: flex;
  }

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

  .site-nav__cta {
    width: 100%;
  }
}

@media (max-width: 759px) {
  .section {
    padding: 3.8rem 0;
  }

  .hero {
    padding-top: 2.6rem;
  }

  .hero__actions,
  .cta-strip__actions,
  .not-found__actions {
    flex-direction: column;
  }

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

  .button--compact {
    width: auto;
  }

  .button,
  .button--large {
    width: 100%;
  }

  .hero-editorial__topline,
  .hero-editorial__rail {
    flex-direction: column;
    align-items: flex-start;
  }

  .brand__logo {
    width: clamp(156px, 46vw, 196px);
  }
}

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

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