:root {
  --ink: #231f20;
  --muted: #6f6763;
  --paper: #fff9f6;
  --surface: #ffffff;
  --coral: #ff5f6d;
  --rose: #d94862;
  --sage: #5d806f;
  --teal: #176d73;
  --gold: #d5a245;
  --line: rgba(35, 31, 32, 0.12);
  --shadow: 0 24px 70px rgba(35, 31, 32, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  color: #fff;
  background: linear-gradient(to bottom, rgba(35, 31, 32, 0.56), rgba(35, 31, 32, 0));
}

.brand,
.nav-links,
.header-action {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  font-size: 1.08rem;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--coral), var(--rose));
}

.nav-links {
  gap: clamp(18px, 4vw, 42px);
  font-size: 0.95rem;
  font-weight: 600;
}

.header-action {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  font-weight: 700;
  backdrop-filter: blur(12px);
}

.hero {
  position: relative;
  min-height: 94vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 140px clamp(18px, 6vw, 72px) 54px;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(35, 31, 32, 0.8), rgba(35, 31, 32, 0.36) 48%, rgba(35, 31, 32, 0.08)),
    linear-gradient(0deg, rgba(35, 31, 32, 0.48), rgba(35, 31, 32, 0.04) 50%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  color: #fff;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.section h2 {
  margin: 0;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 820px;
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 0.96;
}

.hero-copy {
  max-width: 650px;
  margin: 24px 0 30px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.7;
}

.match-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(150px, 0.8fr) auto;
  max-width: 780px;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(16px);
}

.match-form label {
  display: grid;
  gap: 7px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.74rem;
  font-weight: 700;
}

.match-form input,
.match-form select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  color: var(--ink);
  border: 0;
  border-radius: 6px;
  background: #fff;
}

.match-form button,
.like-button {
  min-height: 48px;
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: var(--coral);
  font-weight: 800;
  cursor: pointer;
}

.match-form button {
  align-self: end;
  padding: 0 24px;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-strip div {
  display: grid;
  gap: 5px;
  padding: 28px clamp(16px, 4vw, 42px);
  background: var(--paper);
}

.trust-strip strong {
  font-size: clamp(1.55rem, 4vw, 2.7rem);
}

.trust-strip span {
  color: var(--muted);
  font-weight: 600;
}

.section {
  padding: 88px clamp(18px, 6vw, 72px);
}

.intro,
.experience {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1fr);
  gap: clamp(28px, 8vw, 96px);
  align-items: center;
}

.section h2 {
  max-width: 720px;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 1.04;
}

.intro > p,
.experience-copy p {
  max-width: 650px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.8;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface);
  cursor: pointer;
  font-weight: 800;
}

.filter.active {
  color: #fff;
  border-color: var(--teal);
  background: var(--teal);
}

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

.profile-card,
.steps article,
.principles article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.profile-card {
  display: grid;
  grid-template-rows: auto auto 1fr auto auto;
  gap: 18px;
  min-height: 438px;
  padding: 22px;
  box-shadow: 0 16px 45px rgba(35, 31, 32, 0.07);
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.profile-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.profile-card.hidden {
  display: none;
}

.avatar {
  display: grid;
  width: 100%;
  aspect-ratio: 1.4 / 1;
  place-items: center;
  border-radius: 7px;
  color: #fff;
  font-size: clamp(4rem, 11vw, 7rem);
  font-weight: 800;
}

.avatar-1 {
  background: linear-gradient(135deg, var(--rose), var(--gold));
}

.avatar-2 {
  background: linear-gradient(135deg, var(--teal), var(--sage));
}

.avatar-3 {
  background: linear-gradient(135deg, #6a5aa6, var(--coral));
}

.profile-meta h3 {
  margin: 0 0 6px;
  font-size: 1.35rem;
}

.profile-meta span,
.profile-card p,
.steps p,
footer {
  color: var(--muted);
}

.profile-card p,
.steps p {
  margin: 0;
  line-height: 1.7;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chips span {
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--sage);
  background: rgba(93, 128, 111, 0.12);
  font-size: 0.84rem;
  font-weight: 800;
}

.like-button {
  width: 100%;
}

.like-button.liked {
  background: var(--teal);
}

.how {
  background: #f7efe9;
}

.steps article,
.principles article {
  min-height: 230px;
  padding: 28px;
}

.steps span,
.principles span {
  color: var(--coral);
  font-weight: 800;
}

.steps h3,
.principles h3 {
  margin: 52px 0 12px;
  font-size: 1.35rem;
}

.experience {
  background: linear-gradient(135deg, #fff9f6, #ffffff);
}

.principles {
  display: grid;
  gap: 14px;
}

.principles article {
  min-height: 0;
  box-shadow: 0 14px 40px rgba(35, 31, 32, 0.06);
}

.principles h3 {
  margin-top: 20px;
}

.principles p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 6vw, 72px);
  border-top: 1px solid var(--line);
  font-weight: 700;
}

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

  .hero {
    min-height: 92vh;
    padding-top: 110px;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(35, 31, 32, 0.78), rgba(35, 31, 32, 0.28)),
      linear-gradient(0deg, rgba(35, 31, 32, 0.66), rgba(35, 31, 32, 0.06) 60%);
  }

  .match-form,
  .intro,
  .experience,
  .trust-strip,
  .match-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .match-form button {
    align-self: auto;
  }

  .section {
    padding-block: 64px;
  }

  .section-heading {
    display: grid;
    align-items: start;
  }

  footer {
    display: grid;
  }
}

@media (max-width: 520px) {
  .site-header {
    padding: 14px 16px;
  }

  .header-action {
    min-height: 38px;
    padding-inline: 12px;
    font-size: 0.9rem;
  }

  .hero h1 {
    font-size: clamp(2.6rem, 16vw, 4.8rem);
  }

  .trust-strip div {
    padding: 22px 18px;
  }
}
