* {
  box-sizing: border-box;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 4px solid rgba(103, 77, 168, 0.28);
  outline-offset: 4px;
}

.site-header {
  position: sticky;
  top: 10px;
  z-index: 100;

  width: calc(100% - 28px);
  max-width: var(--observer-max);

  margin: 10px auto 0;
  padding: 13px 18px;

  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;

  border: 1px solid var(--observer-line);
  border-radius: 23px;

  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(22px) saturate(150%);

  box-shadow: var(--observer-shadow);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;

  color: #59418b;
  text-decoration: none;
  font-weight: 950;
  white-space: nowrap;
}

.brand-icon {
  width: 50px;
  height: 42px;

  display: grid;
  place-items: center;

  border-radius: 18px;

  background:
    linear-gradient(145deg, #ffffff, #eee7ff);

  box-shadow:
    0 7px 17px rgba(75, 53, 113, 0.13);

  font-size: 26px;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.site-nav a {
  min-height: 42px;

  display: inline-flex;
  align-items: center;
  gap: 7px;

  padding: 9px 13px;
  border-radius: 999px;

  color: #5f5874;
  text-decoration: none;
  font-weight: 820;
}

.site-nav a:hover,
.site-nav a.current {
  color: #573d88;
  background: rgba(130, 98, 200, 0.12);
}

.sign-in {
  min-height: 43px;

  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;

  padding: 9px 18px;
  border-radius: 999px;

  color: #ffffff;
  text-decoration: none;
  font-weight: 900;

  background:
    linear-gradient(135deg, #795bc2, #ae79e1);

  box-shadow:
    0 11px 24px rgba(109, 74, 175, 0.25);
}

main {
  width: calc(100% - 28px);
  max-width: var(--observer-max);

  margin: 18px auto 0;
}

.legacy-hero {
  position: relative;
  overflow: hidden;

  min-height: 610px;

  display: grid;
  grid-template-columns: 0.94fr 1.06fr;
  gap: clamp(32px, 5vw, 76px);
  align-items: center;

  padding: clamp(35px, 5vw, 82px);

  border: 1px solid var(--observer-line);
  border-radius: var(--observer-radius-xl);

  background:
    radial-gradient(
      circle at 15% 14%,
      rgba(255, 255, 255, 0.96),
      transparent 35%
    ),
    radial-gradient(
      circle at 85% 19%,
      rgba(255, 255, 255, 0.90),
      transparent 38%
    ),
    linear-gradient(
      135deg,
      rgba(255, 236, 190, 0.93),
      rgba(255, 222, 237, 0.91) 43%,
      rgba(230, 218, 255, 0.91)
    );

  box-shadow: var(--observer-shadow);
}

.legacy-hero::before,
.legacy-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;

  width: 475px;
  height: 225px;
  bottom: -118px;

  border-radius: 50%;
  background: rgba(255, 255, 255, 0.87);
}

.legacy-hero::before {
  left: -95px;
}

.legacy-hero::after {
  right: -105px;
}

.hero-copy,
.memory-window {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 12px;

  color: #7555b6;

  font-size: 0.82rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  font-weight: 950;
}

.legacy-hero h1 {
  margin: 0;

  color: #4d3975;

  font-size: clamp(3.5rem, 7vw, 7.7rem);
  line-height: 0.91;
  letter-spacing: -0.07em;
}

.legacy-hero h1 span {
  display: block;

  margin-top: 16px;

  color: #a9638e;

  font-size: 0.40em;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.hero-lead {
  max-width: 760px;

  margin: 25px 0 0;

  color: #5d5870;

  font-size: clamp(1rem, 1.55vw, 1.24rem);
  line-height: 1.72;
  font-weight: 620;
}

.hero-actions {
  margin-top: 29px;

  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.memory-window {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.memory-tile {
  --memory-color: #8e65bd;
  --memory-soft: rgba(142, 101, 189, 0.15);

  position: relative;
  overflow: hidden;

  min-height: 190px;

  padding: 24px;

  border: 1px solid var(--observer-line);
  border-radius: 27px;

  background: rgba(255, 255, 255, 0.91);

  box-shadow:
    0 15px 36px rgba(72, 52, 108, 0.12);
}

.memory-tile::after {
  content: "";

  position: absolute;
  width: 145px;
  height: 145px;

  right: -57px;
  bottom: -61px;

  border-radius: 50%;
  background: var(--memory-soft);
}

.memory-icon {
  position: relative;
  z-index: 1;

  display: block;
  margin-bottom: 15px;

  font-size: 3rem;
}

.memory-tile h2 {
  position: relative;
  z-index: 1;

  margin: 0;

  color: var(--memory-color);
  font-size: 1.45rem;
}

.memory-tile p {
  position: relative;
  z-index: 1;

  color: #696378;
  line-height: 1.58;
}

.memory-tile.photos {
  --memory-color: #d94f8a;
  --memory-soft: rgba(217, 79, 138, 0.14);
}

.memory-tile.pets {
  --memory-color: #e49a22;
  --memory-soft: rgba(228, 154, 34, 0.15);
}

.memory-tile.stories {
  --memory-color: #7248a7;
  --memory-soft: rgba(114, 72, 167, 0.14);
}

.memory-tile.future {
  --memory-color: #258bd0;
  --memory-soft: rgba(37, 139, 208, 0.14);
}

.section {
  margin-top: 27px;
}

.section-heading {
  max-width: 980px;

  margin: 0 auto 29px;

  text-align: center;
}

.section-heading h2 {
  margin: 0;

  color: #4d3975;

  font-size: clamp(2.3rem, 4.5vw, 4.1rem);
  letter-spacing: -0.052em;
}

.section-heading p {
  color: var(--observer-muted);
  line-height: 1.7;
}

.legacy-grid {
  display: grid;

  grid-template-columns:
    repeat(
      auto-fit,
      minmax(min(100%, 285px), 1fr)
    );

  gap: 18px;
}

.legacy-card {
  --legacy-color: #7257a9;
  --legacy-soft: rgba(142, 108, 207, 0.12);

  position: relative;
  overflow: hidden;

  min-height: 290px;

  padding: 28px;

  border: 1px solid var(--observer-line);
  border-radius: var(--observer-radius-lg);

  background: var(--observer-glass);

  box-shadow:
    0 13px 31px rgba(72, 52, 108, 0.10);
}

.legacy-card::after {
  content: "";

  position: absolute;
  width: 140px;
  height: 140px;

  right: -55px;
  bottom: -58px;

  border-radius: 50%;
  background: var(--legacy-soft);
}

.legacy-card-icon {
  width: 67px;
  height: 67px;

  display: grid;
  place-items: center;

  margin-bottom: 17px;

  border-radius: 23px;

  color: #ffffff;
  background: var(--legacy-color);

  box-shadow:
    0 10px 24px var(--legacy-soft);

  font-size: 2.2rem;
}

.legacy-card h3 {
  position: relative;
  z-index: 1;

  margin: 0;

  color: var(--legacy-color);
  font-size: 1.45rem;
}

.legacy-card p,
.legacy-card li {
  position: relative;
  z-index: 1;

  color: #696378;
  line-height: 1.63;
}

.legacy-card ul {
  padding-left: 20px;
  margin-bottom: 0;
}

.legacy-card.photos {
  --legacy-color: #d94f8a;
  --legacy-soft: rgba(217, 79, 138, 0.14);
}

.legacy-card.pets {
  --legacy-color: #e49a22;
  --legacy-soft: rgba(228, 154, 34, 0.15);
}

.legacy-card.stories {
  --legacy-color: #7248a7;
  --legacy-soft: rgba(114, 72, 167, 0.14);
}

.legacy-card.recipes {
  --legacy-color: #63ad37;
  --legacy-soft: rgba(99, 173, 55, 0.14);
}

.legacy-card.documents {
  --legacy-color: #258bd0;
  --legacy-soft: rgba(37, 139, 208, 0.14);
}

.legacy-card.recovery {
  --legacy-color: #21aebb;
  --legacy-soft: rgba(33, 174, 187, 0.14);
}

.pet-panel {
  margin-top: 27px;

  padding: clamp(29px, 4vw, 52px);

  border: 1px solid var(--observer-line);
  border-radius: var(--observer-radius-xl);

  background:
    radial-gradient(
      circle at 11% 13%,
      rgba(255, 255, 255, 0.94),
      transparent 35%
    ),
    linear-gradient(
      135deg,
      rgba(255, 235, 196, 0.92),
      rgba(255, 220, 236, 0.91) 50%,
      rgba(235, 224, 255, 0.91)
    );

  box-shadow: var(--observer-shadow);
}

.pet-panel-inner {
  max-width: 1120px;
  margin: auto;

  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 34px;
  align-items: center;
}

.pet-symbol {
  min-height: 285px;

  display: grid;
  place-items: center;

  border: 1px solid rgba(140, 99, 155, 0.16);
  border-radius: 34px;

  background:
    radial-gradient(
      circle at center,
      rgba(255, 255, 255, 0.96),
      rgba(255, 240, 247, 0.88)
    );

  box-shadow:
    0 18px 43px rgba(81, 55, 105, 0.13);

  font-size: clamp(7rem, 15vw, 12rem);
}

.pet-copy h2 {
  margin: 0;

  color: #8b537d;

  font-size: clamp(2.5rem, 5vw, 4.6rem);
  letter-spacing: -0.055em;
}

.pet-copy p {
  color: #6b6171;
  line-height: 1.72;
}

.pet-quote {
  margin-top: 21px;
  padding: 21px 23px;

  border-left: 5px solid #d58caf;
  border-radius: 0 20px 20px 0;

  color: #77536c;
  background: rgba(255, 255, 255, 0.66);

  font-size: 1.08rem;
  font-weight: 820;
}

.scroll-panel {
  margin-top: 27px;

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 21px;
}

.scroll-card {
  padding: 32px;

  border: 1px solid var(--observer-line);
  border-radius: 27px;

  background: var(--observer-glass);
  box-shadow: var(--observer-shadow);
}

.scroll-card h2 {
  margin-top: 0;
  color: #4d3975;
}

.scroll-card p,
.scroll-card li {
  color: #696378;
  line-height: 1.68;
}

.scroll-card.memory-room {
  border-top: 7px solid #d94f8a;
}

.scroll-card.continuity {
  border-top: 7px solid #258bd0;
}

.legacy-seeds {
  margin-top: 27px;

  padding: clamp(28px, 4vw, 48px);

  border: 1px solid var(--observer-line);
  border-radius: var(--observer-radius-xl);

  background:
    linear-gradient(
      135deg,
      rgba(217, 248, 230, 0.91),
      rgba(211, 241, 255, 0.91) 52%,
      rgba(239, 225, 255, 0.91)
    );

  box-shadow: var(--observer-shadow);
}

.legacy-seeds h2 {
  margin-top: 0;

  color: #4d3975;
  text-align: center;

  font-size: clamp(2.3rem, 4.5vw, 4rem);
  letter-spacing: -0.052em;
}

.seed-grid {
  display: grid;

  grid-template-columns:
    repeat(
      auto-fit,
      minmax(min(100%, 220px), 1fr)
    );

  gap: 15px;

  margin-top: 26px;
}

.seed {
  min-height: 170px;

  padding: 22px;

  text-align: center;

  border: 1px solid rgba(88, 112, 139, 0.15);
  border-radius: 22px;

  background: rgba(255, 255, 255, 0.86);
}

.seed-icon {
  display: block;
  margin-bottom: 12px;
  font-size: 2.7rem;
}

.seed strong {
  display: block;
  color: #514174;
}

.seed span {
  display: block;
  margin-top: 7px;

  color: #6a6877;
  line-height: 1.55;
}

.promise {
  margin-top: 27px;

  padding: 32px;

  text-align: center;

  border: 1px solid var(--observer-line);
  border-radius: 27px;

  background: var(--observer-glass);
  box-shadow: var(--observer-shadow);
}

.promise h2 {
  margin-top: 0;
  color: #4d3975;
}

.promise p {
  max-width: 900px;
  margin-inline: auto;

  color: #696378;
  line-height: 1.72;
}

footer {
  width: min(1050px, calc(100% - 28px));

  margin: 24px auto 40px;
  padding: 21px;

  text-align: center;

  border: 1px solid var(--observer-line);
  border-radius: 999px;

  color: #69627c;
  background: rgba(255, 255, 255, 0.82);

  box-shadow:
    0 10px 27px rgba(71, 52, 108, 0.08);
}

footer strong {
  color: #523d7b;
}

@media (max-width: 1100px) {
  .legacy-hero,
  .pet-panel-inner {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .pet-copy {
    text-align: center;
  }

  .hero-lead {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .scroll-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .memory-window {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .site-header,
  main {
    width: calc(100% - 12px);
  }

  .brand span:last-child {
    display: none;
  }

  .site-header {
    top: 5px;
    padding: 10px;
  }

  .sign-in {
    padding-inline: 13px;
  }

  .legacy-hero {
    padding: 26px 17px;
    border-radius: 24px;
  }

  .legacy-hero h1 {
    font-size: clamp(3rem, 17vw, 5.2rem);
  }

  footer {
    border-radius: 25px;
  }
}
