:root {
  --cream: #fff8ef;
  --paper: #fffdf8;
  --ink: #2b201c;
  --muted: #6a5a52;
  --fox: #ff6b35;
  --fox-dark: #95491f;
  --rose: #f7b6c8;
  --mint: #9ddfd3;
  --sky: #9fd0f0;
  --violet: #c8b8ff;
  --line: rgba(149, 73, 31, 0.18);
  --shadow: 0 24px 70px rgba(88, 45, 22, 0.14);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Nunito Sans", system-ui, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 248, 239, 0.94), rgba(247, 252, 249, 0.94)),
    var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

.material-symbols-rounded {
  font-size: 1.2em;
  line-height: 1;
  vertical-align: middle;
}

.site-top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  min-height: 76px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(255, 253, 248, 0.9);
  border-bottom: 1px solid rgba(149, 73, 31, 0.1);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fox);
  font-family: "Outfit", sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
}

.brand img {
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(149, 73, 31, 0.14);
}

.top-links {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 3vw, 34px);
  color: #4d3d36;
  font-weight: 800;
}

.top-links a {
  padding: 8px 0;
  white-space: nowrap;
}

.top-links a:hover {
  color: var(--fox);
}

.lang-switch {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: #f0ebe3;
  border-radius: 999px;
  border: 1px solid rgba(149, 73, 31, 0.12);
}

.lang-switch button {
  border: 0;
  border-radius: 999px;
  padding: 8px 10px;
  background: transparent;
  color: #7c6b62;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
}

.lang-switch button.active {
  color: var(--fox-dark);
  background: #fff;
  box-shadow: 0 6px 14px rgba(88, 45, 22, 0.1);
}

.hero {
  min-height: min(760px, calc(100vh - 76px));
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(420px, 1.14fr);
  gap: clamp(26px, 5vw, 70px);
  align-items: center;
  padding: clamp(80px, 12vw, 150px) clamp(22px, 6vw, 90px);
  background:
    radial-gradient(circle at 82% 22%, rgba(255, 230, 174, 0.55), transparent 32%),
    radial-gradient(circle at 52% 88%, rgba(157, 223, 211, 0.55), transparent 34%),
    linear-gradient(135deg, #543124 0%, #a67758 43%, #b7dfd5 100%);
  color: #fffaf0;
  overflow: hidden;
}

.hero-copy {
  width: 100%;
  max-width: 640px;
  min-width: 0;
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 12px;
  color: #ffe2ad;
  font-family: "Outfit", sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.section-head h2,
.ritual-section h2 {
  margin: 0;
  font-family: "Outfit", sans-serif;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 720px;
  font-size: clamp(3.2rem, 9vw, 7.5rem);
  line-height: 0.92;
}

.hero-text {
  max-width: 560px;
  margin: 22px 0 0;
  color: rgba(255, 250, 240, 0.92);
  font-size: clamp(1.12rem, 2vw, 1.42rem);
  line-height: 1.55;
  overflow-wrap: break-word;
}

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

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border-radius: 999px;
  font-weight: 900;
}

.primary-action {
  gap: 10px;
  padding: 14px 24px;
  color: #fff;
  background: linear-gradient(135deg, #ff8b60, #ff5a2b);
  box-shadow: 0 18px 38px rgba(122, 48, 21, 0.28);
}

.secondary-action {
  padding: 13px 22px;
  color: #fff8ef;
  border: 1px solid rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

.hero-room {
  position: relative;
  min-height: 580px;
  border-radius: 42px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.88) 0 18%, transparent 19%),
    linear-gradient(160deg, rgba(255, 250, 240, 0.92), rgba(239, 247, 252, 0.88));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72), 0 34px 80px rgba(48, 25, 17, 0.24);
}

.room-arch {
  position: absolute;
  left: 9%;
  right: 9%;
  bottom: 13%;
  height: 68%;
  border-radius: 50% 50% 28px 28px;
  background:
    linear-gradient(180deg, rgba(255, 233, 193, 0.86), rgba(255, 184, 139, 0.74)),
    #ffd1aa;
  box-shadow: inset 0 -14px 0 rgba(149, 73, 31, 0.08);
}

.room-rug {
  position: absolute;
  left: 16%;
  right: 12%;
  bottom: 7%;
  height: 16%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255, 107, 53, 0.34), rgba(255, 107, 53, 0.05) 68%);
}

.room-stars {
  position: absolute;
  inset: 0;
}

.room-stars span {
  position: absolute;
  width: 18px;
  height: 18px;
  transform: rotate(45deg);
  border-radius: 6px;
  background: #fff6c9;
  box-shadow: 0 0 24px rgba(255, 246, 201, 0.86);
}

.room-stars span:nth-child(1) { top: 18%; left: 18%; }
.room-stars span:nth-child(2) { top: 13%; right: 18%; width: 12px; height: 12px; }
.room-stars span:nth-child(3) { top: 34%; right: 12%; width: 14px; height: 14px; }

.hero-fox {
  position: absolute;
  object-fit: contain;
  filter: drop-shadow(0 18px 26px rgba(68, 31, 18, 0.18));
}

.hero-fox-main {
  left: 24%;
  bottom: 10%;
  width: min(46%, 360px);
  z-index: 3;
}

.hero-fox-side {
  left: 5%;
  bottom: 9%;
  width: min(34%, 250px);
  z-index: 2;
}

.hero-fox-small {
  right: 4%;
  bottom: 8%;
  width: min(31%, 230px);
  z-index: 2;
}

.door-section,
.friends-section,
.ritual-section {
  width: min(1180px, calc(100% - 36px));
  margin: clamp(54px, 8vw, 92px) auto 0;
}

.section-head {
  margin-bottom: 24px;
}

.section-head .eyebrow,
.ritual-section .eyebrow {
  color: var(--fox-dark);
}

.section-head h2,
.ritual-section h2 {
  color: var(--fox-dark);
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.02;
}

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

.door-card {
  position: relative;
  min-height: 380px;
  overflow: hidden;
  border-radius: 18px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: var(--paper);
  box-shadow: var(--shadow);
  isolation: isolate;
}

.door-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(35, 22, 18, 0.62));
}

.door-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.door-card > .material-symbols-rounded {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  border-radius: 14px;
  color: #fff;
  background: rgba(255, 107, 53, 0.82);
}

.door-card h3 {
  max-width: 330px;
  margin: 0;
  color: #fff;
  font-family: "Outfit", sans-serif;
  font-size: clamp(1.45rem, 2.3vw, 2rem);
  line-height: 1.05;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.32);
}

.door-card p {
  max-width: 360px;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 800;
  line-height: 1.45;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.34);
}

.friends-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 18px;
  align-items: stretch;
}

.friend-stage {
  min-height: 560px;
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  background:
    linear-gradient(180deg, rgba(37, 25, 20, 0.08), rgba(37, 25, 20, 0.48)),
    linear-gradient(135deg, var(--mint), var(--sky) 48%, var(--violet));
  box-shadow: var(--shadow);
}

.friend-stage > img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
}

.friend-note {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  display: grid;
  gap: 6px;
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.9);
  box-shadow: 0 18px 44px rgba(34, 20, 14, 0.18);
  backdrop-filter: blur(14px);
}

.friend-note strong {
  color: var(--fox-dark);
  font-family: "Outfit", sans-serif;
  font-size: 1.5rem;
}

.friend-note span {
  color: var(--muted);
  font-weight: 800;
}

.friend-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.friend-chip {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 112px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.86);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  box-shadow: 0 12px 32px rgba(88, 45, 22, 0.08);
  font: inherit;
  font-family: "Outfit", sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
}

.friend-chip img {
  width: 82px;
  height: 82px;
  object-fit: cover;
  border-radius: 16px;
}

.friend-chip.active {
  border-color: rgba(255, 107, 53, 0.75);
  background: #fff5ed;
  box-shadow: 0 18px 44px rgba(149, 73, 31, 0.16);
}

.ritual-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: 24px;
  align-items: center;
  margin-bottom: 84px;
  padding: clamp(26px, 5vw, 48px);
  border: 1px solid rgba(149, 73, 31, 0.14);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(239, 247, 252, 0.88)),
    var(--paper);
  box-shadow: var(--shadow);
}

.ritual-section p:not(.eyebrow) {
  max-width: 560px;
  color: var(--muted);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.6;
}

.ritual-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 18px;
  padding: 12px 20px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #ff8b60, #ff5a2b);
  box-shadow: 0 16px 32px rgba(122, 48, 21, 0.22);
  font-weight: 900;
}

.ritual-steps {
  display: grid;
  gap: 12px;
}

.ritual-steps span {
  display: flex;
  align-items: center;
  min-height: 62px;
  padding: 16px 18px;
  border-radius: 18px;
  color: #3d342f;
  background: #fff;
  border: 1px solid rgba(149, 73, 31, 0.14);
  font-weight: 900;
}

.ritual-steps span:nth-child(1) { border-left: 8px solid var(--mint); }
.ritual-steps span:nth-child(2) { border-left: 8px solid var(--sky); }
.ritual-steps span:nth-child(3) { border-left: 8px solid var(--rose); }

.site-foot {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px clamp(22px, 6vw, 90px);
  color: var(--muted);
  background: #fff;
  border-top: 1px solid rgba(149, 73, 31, 0.1);
  font-weight: 800;
}

.site-foot a {
  color: var(--fox-dark);
}

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

  .top-links {
    grid-column: 1 / -1;
    order: 3;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    align-items: flex-start;
    padding-bottom: clamp(42px, 8vw, 72px);
  }

  .hero-room {
    width: min(100%, 680px);
    min-height: 480px;
    margin: 0 auto;
  }

  .door-grid,
  .friends-layout,
  .ritual-section {
    grid-template-columns: 1fr;
  }

  .door-card {
    min-height: 330px;
  }
}

@media (max-width: 560px) {
  .site-top {
    grid-template-columns: 1fr;
    padding: 10px 14px;
    gap: 12px;
  }

  .top-links {
    grid-column: auto;
  }

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

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

  .lang-switch {
    gap: 0;
    padding: 3px;
    justify-self: start;
  }

  .lang-switch button {
    padding: 6px 7px;
    font-size: 0.68rem;
  }

  .hero {
    width: 100vw;
    max-width: 100vw;
    padding: 54px 18px 34px;
  }

  .hero-copy,
  .hero h1,
  .hero-text,
  .hero-actions {
    width: calc(100vw - 48px);
    max-width: calc(100vw - 48px);
  }

  .primary-action,
  .secondary-action {
    width: calc(100vw - 48px);
    max-width: calc(100vw - 48px);
  }

  .hero h1 {
    font-size: clamp(2.9rem, 13vw, 4.6rem);
  }

  .hero-text {
    font-size: 1.08rem;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .door-section,
  .friends-section,
  .ritual-section {
    width: min(100% - 24px, 1180px);
  }

  .hero-room {
    min-height: 360px;
    border-radius: 30px;
  }

  .hero-fox-main {
    left: 24%;
    width: 48%;
  }

  .hero-fox-side {
    width: 35%;
  }

  .hero-fox-small {
    width: 33%;
  }

  .friend-stage,
  .friend-stage > img {
    min-height: 420px;
  }

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