:root {
  --ink: #14151f;
  --plum: #341b42;
  --violet: #6741d9;
  --blue: #2867d8;
  --rose: #e85d8f;
  --mint: #53c7a1;
  --yellow: #f2c94c;
  --cream: #fff9ef;
  --paper: #ffffff;
  --soft: #f5f2fb;
  --muted: #676174;
  --line: #e3ddea;
  --shadow: 0 28px 88px rgba(52, 27, 66, 0.16);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 96px;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
}

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

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

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

p,
li {
  text-wrap: pretty;
}

.skip-link {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 50;
  transform: translateY(-160%);
  padding: 10px 14px;
  background: var(--paper);
  color: var(--plum);
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  padding: 14px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(227, 221, 234, 0.72);
  background: rgba(255, 249, 239, 0.86);
  backdrop-filter: blur(18px);
  transition:
    background 0.2s,
    box-shadow 0.2s,
    min-height 0.2s;
}

.site-header.is-scrolled {
  min-height: 72px;
  background: rgba(255, 249, 239, 0.96);
  box-shadow: 0 16px 42px rgba(52, 27, 66, 0.1);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 10px 22px rgba(52, 27, 66, 0.18));
}

.brand span {
  color: var(--plum);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.62rem;
  letter-spacing: -0.01em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 32px);
  color: rgba(52, 27, 66, 0.82);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus {
  color: var(--violet);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(52, 27, 66, 0.24);
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 21px;
  height: 1px;
  margin: 7px auto;
  background: var(--plum);
  transition: transform 0.2s;
}

.nav-open .nav-toggle span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-open .nav-toggle span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(380px, 0.92fr);
  gap: clamp(30px, 5vw, 74px);
  align-items: center;
  min-height: 100svh;
  padding: 128px clamp(20px, 5vw, 72px) 146px;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 18%, rgba(232, 93, 143, 0.22), transparent 28%),
    radial-gradient(circle at 88% 12%, rgba(83, 199, 161, 0.28), transparent 25%),
    linear-gradient(135deg, var(--cream), #f7f0ff 48%, #ecf8ff);
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto clamp(20px, 5vw, 72px) 116px;
  height: 1px;
  background: var(--line);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.eyebrow,
.section-label {
  color: var(--violet);
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 20px 0 0;
  color: var(--plum);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(4.2rem, 8.4vw, 8.8rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 0.86;
}

.hero p {
  max-width: 660px;
  margin: 28px 0 0;
  color: rgba(20, 21, 31, 0.76);
  font-size: 1.18rem;
  line-height: 1.72;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid currentColor;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    transform 0.2s,
    background 0.2s,
    color 0.2s;
}

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

.button.primary {
  border-color: var(--plum);
  background: var(--plum);
  color: var(--paper);
}

.button.secondary {
  color: var(--plum);
}

.hero-media {
  position: relative;
  z-index: 1;
  margin: 0;
  min-height: 620px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 36px;
  box-shadow: var(--shadow);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 249, 239, 0.12), transparent 42%),
    linear-gradient(0deg, rgba(52, 27, 66, 0.2), transparent 34%);
  pointer-events: none;
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 620px;
  object-fit: cover;
  object-position: 56% center;
}

.hero-strip {
  position: absolute;
  left: clamp(20px, 5vw, 72px);
  right: clamp(20px, 5vw, 72px);
  bottom: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  background: rgba(255, 249, 239, 0.78);
  backdrop-filter: blur(16px);
}

.hero-strip div {
  min-height: 116px;
  padding: 22px clamp(18px, 3vw, 34px);
  border-right: 1px solid var(--line);
}

.hero-strip div:last-child {
  border-right: 0;
}

.hero-strip span,
.service-card span,
.flow-row span {
  display: block;
  margin-bottom: 9px;
  color: var(--violet);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-strip strong {
  color: var(--plum);
  font-size: 0.96rem;
  line-height: 1.36;
}

.section {
  padding: clamp(76px, 10vw, 132px) clamp(20px, 5vw, 72px);
}

.intro-section {
  display: grid;
  grid-template-columns: minmax(180px, 0.32fr) minmax(0, 0.9fr);
  gap: clamp(28px, 6vw, 92px);
  background: var(--paper);
}

.intro-copy h2,
.section-heading h2,
.flow-copy h2,
.trust-copy h2,
.contact-section h2 {
  margin: 0;
  color: var(--plum);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(3rem, 5.6vw, 6.2rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 0.94;
}

.intro-copy p,
.trust-copy p,
.contact-section p {
  max-width: 760px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.7;
}

.service-section {
  display: grid;
  grid-template-columns: 1.15fr 0.9fr 0.9fr;
  gap: 1px;
  padding: 1px clamp(20px, 5vw, 72px);
  background: var(--line);
}

.service-card {
  min-height: 420px;
  padding: clamp(28px, 4vw, 48px);
  background: var(--cream);
}

.service-card.featured {
  background:
    radial-gradient(circle at 14% 14%, rgba(83, 199, 161, 0.22), transparent 34%),
    linear-gradient(135deg, #2c1840, #4b2872);
  color: var(--paper);
}

.service-card.featured span {
  color: var(--yellow);
}

.service-card h3,
.community-grid h3,
.partner-grid h3 {
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 2.35rem;
  font-weight: 400;
  line-height: 1;
}

.service-card p,
.community-grid p,
.partner-grid p,
.flow-row p {
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.68;
}

.service-card.featured p {
  color: rgba(255, 255, 255, 0.76);
}

.communities-section,
.partners-section,
.flow-section,
.trust-section,
.contact-section {
  padding: clamp(76px, 10vw, 132px) clamp(20px, 5vw, 72px);
}

.communities-section {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 249, 239, 0.98)),
    linear-gradient(90deg, rgba(232, 93, 143, 0.12), rgba(40, 103, 216, 0.12));
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(180px, 0.32fr) minmax(0, 0.9fr);
  gap: clamp(28px, 6vw, 92px);
  align-items: start;
}

.community-grid,
.partner-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 56px;
  background: var(--line);
}

.community-grid article,
.partner-grid article {
  min-height: 278px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.76);
}

.flow-section {
  color: var(--paper);
  background:
    radial-gradient(circle at 10% 20%, rgba(232, 93, 143, 0.24), transparent 24%),
    radial-gradient(circle at 82% 24%, rgba(83, 199, 161, 0.18), transparent 26%),
    linear-gradient(135deg, #151322, var(--plum));
}

.flow-copy h2 {
  color: var(--paper);
}

.flow-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 54px;
  background: rgba(255, 255, 255, 0.18);
}

.flow-row div {
  min-height: 260px;
  padding: clamp(26px, 4vw, 42px);
  background: rgba(255, 255, 255, 0.08);
}

.flow-row span {
  color: var(--yellow);
}

.flow-row strong {
  display: block;
  color: var(--paper);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 2.5rem;
  font-weight: 400;
}

.flow-row p {
  color: rgba(255, 255, 255, 0.74);
}

.partners-section {
  background: var(--paper);
}

.partner-grid article {
  background: var(--soft);
}

.trust-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.55fr);
  gap: clamp(36px, 7vw, 94px);
  align-items: center;
  background: var(--cream);
}

.trust-list {
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 24px 72px rgba(52, 27, 66, 0.09);
}

.trust-list div {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 16px;
  align-items: center;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
  color: var(--plum);
  font-weight: 700;
}

.trust-list div:last-child {
  border-bottom: 0;
}

.trust-list span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background:
    linear-gradient(135deg, var(--rose), var(--yellow) 38%, var(--mint) 68%, var(--blue));
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.56fr);
  gap: clamp(36px, 7vw, 94px);
  align-items: start;
  color: var(--paper);
  background:
    radial-gradient(circle at 16% 18%, rgba(232, 93, 143, 0.2), transparent 24%),
    radial-gradient(circle at 86% 14%, rgba(83, 199, 161, 0.18), transparent 26%),
    linear-gradient(135deg, #171223, #301841 56%, #173552);
}

.contact-section .section-label,
.contact-section h2 {
  color: var(--paper);
}

.contact-section p {
  color: rgba(255, 255, 255, 0.72);
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 14px;
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--paper);
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form .button {
  width: 100%;
}

.contact-form .button.primary {
  border-color: var(--paper);
  background: var(--paper);
  color: var(--plum);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(20px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.72);
  background: #171223;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (max-width: 1120px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-bottom: 132px;
  }

  .hero-media {
    min-height: 460px;
  }

  .hero-media img {
    min-height: 460px;
  }

  .service-section,
  .community-grid,
  .partner-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trust-section,
  .contact-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  section[id] {
    scroll-margin-top: 86px;
  }

  .site-header {
    min-height: 72px;
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  .brand span {
    font-size: 1.46rem;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 8px 20px 20px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 249, 239, 0.98);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
  }

  .hero {
    padding-top: 112px;
    padding-bottom: 0;
  }

  .hero::before {
    display: none;
  }

  .hero h1 {
    font-size: 4.35rem;
  }

  .hero p {
    font-size: 1.05rem;
    line-height: 1.62;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .hero-media {
    min-height: 360px;
    border-radius: 24px;
  }

  .hero-media img {
    min-height: 360px;
    object-position: 64% center;
  }

  .hero-strip {
    position: relative;
    left: auto;
    right: auto;
    grid-template-columns: 1fr;
    margin: 32px -20px 0;
  }

  .hero-strip div {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .hero-strip div:last-child {
    border-bottom: 0;
  }

  .intro-section,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .service-section,
  .community-grid,
  .partner-grid,
  .flow-row {
    grid-template-columns: 1fr;
  }

  .service-card,
  .community-grid article,
  .partner-grid article,
  .flow-row div {
    min-height: 0;
  }

  .contact-form {
    padding: 18px;
    border-radius: 20px;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .hero h1 {
    font-size: 3.64rem;
  }

  .intro-copy h2,
  .section-heading h2,
  .flow-copy h2,
  .trust-copy h2,
  .contact-section h2 {
    font-size: 2.86rem;
  }
}
