:root {
  color-scheme: light;
  --ink: #201b35;
  --muted: #716b83;
  --purple: #7454e8;
  --purple-dark: #5639bd;
  --paper: #ffffff;
  --line: rgba(86, 57, 189, 0.14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: #fbfaff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: 74px;
  padding: 0 clamp(1.25rem, 5vw, 5rem);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 750;
  text-decoration: none;
}

.brand img { border-radius: 10px; }

.farewell {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: calc(100svh - 146px);
  place-items: center;
  overflow: hidden;
  padding: clamp(3rem, 8vw, 7rem) 1.25rem;
  background:
    radial-gradient(circle at 50% 0%, rgba(116, 84, 232, 0.12), transparent 38%),
    linear-gradient(180deg, #fff 0%, #f8f6ff 100%);
}

.glow {
  position: absolute;
  z-index: -1;
  width: 25rem;
  height: 25rem;
  border-radius: 999px;
  filter: blur(10px);
  opacity: 0.32;
}

.glow-one { top: 15%; left: -14rem; background: #c7b9ff; }
.glow-two { right: -15rem; bottom: 5%; background: #f1b7ee; }

.farewell-card {
  width: min(100%, 850px);
  text-align: center;
}

.logo-wrap {
  display: grid;
  width: 132px;
  height: 132px;
  margin: 0 auto 2rem;
  place-items: center;
  border: 1px solid rgba(116, 84, 232, 0.16);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 22px 60px rgba(71, 49, 144, 0.13);
}

.logo { display: block; width: 104px; height: auto; }

.eyebrow {
  margin: 0 0 1rem;
  color: var(--purple-dark);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2.7rem, 8vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

h1 span {
  color: var(--purple);
  background: linear-gradient(100deg, var(--purple-dark), #9c6ee9);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lead {
  max-width: 650px;
  margin: 2rem auto 0;
  color: #4e4861;
  font-size: clamp(1.12rem, 2.3vw, 1.35rem);
  line-height: 1.65;
}

.message {
  max-width: 730px;
  margin: 2.5rem auto 0;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 24px 70px rgba(55, 39, 111, 0.08);
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}

.message p { margin: 0; }
.message p + p { margin-top: 1rem; }

.signature {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 2rem;
  color: var(--muted);
}

.signature strong { color: var(--ink); font-size: 1.1rem; }

footer {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem clamp(1.25rem, 5vw, 5rem);
  border-top: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
  font-size: 0.92rem;
}

footer nav { display: flex; gap: 1.25rem; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover, footer a:focus-visible { color: var(--purple-dark); text-decoration: underline; }

@media (max-width: 600px) {
  .farewell { min-height: auto; padding-block: 3.5rem; }
  .logo-wrap { width: 104px; height: 104px; border-radius: 26px; }
  .logo { width: 82px; }
  footer { flex-direction: column; text-align: center; }
}

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