@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@1,600&display=swap");

:root {
  color-scheme: light;
  --ink: #17130f;
  --paper: #f7f1e7;
  --paper-deep: #eadbc7;
  --cream: #fffaf3;
  --terracotta: #bc5c3c;
  --terracotta-dark: #8e3e28;
  --sage: #7d8f79;
  --line: rgba(23, 19, 15, 0.13);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 18%, rgba(188, 92, 60, 0.11), transparent 28rem),
    linear-gradient(135deg, var(--cream), var(--paper));
  font-family: "DM Sans", system-ui, sans-serif;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  opacity: 0.28;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E");
}

.shell {
  width: min(1180px, calc(100% - 48px));
  margin: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(360px, 0.94fr);
  align-items: center;
  min-height: calc(100vh - 76px);
  gap: 68px;
  padding: 56px 0 40px;
}

.maintenance-card {
  position: relative;
  z-index: 2;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 64px;
}

.brand-mark {
  width: 43px;
  aspect-ratio: 1;
  border-radius: 13px;
  color: var(--cream);
  background: var(--ink);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  place-items: center;
  padding: 0 7px;
  box-shadow: 0 8px 24px rgba(23, 19, 15, 0.13);
}

.brand-mark span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: -1px;
}

.brand-name {
  font-weight: 700;
  letter-spacing: 0.16em;
  font-size: 19px;
}

.brand-name strong {
  color: var(--terracotta);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  border: 1px solid rgba(188, 92, 60, 0.24);
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.64);
  color: var(--terracotta-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.status-dot {
  width: 7px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--terracotta);
  box-shadow: 0 0 0 5px rgba(188, 92, 60, 0.11);
  animation: breathe 1.8s ease-in-out infinite;
}

h1 {
  max-width: 700px;
  margin: 28px 0 22px;
  font-size: clamp(52px, 6.8vw, 92px);
  font-weight: 600;
  letter-spacing: -0.065em;
  line-height: 0.94;
}

h1 em {
  font-family: "Playfair Display", Georgia, serif;
  color: var(--terracotta);
  font-weight: 600;
}

.intro {
  max-width: 610px;
  margin: 0;
  color: rgba(23, 19, 15, 0.68);
  font-size: clamp(16px, 1.55vw, 20px);
  line-height: 1.72;
}

.progress {
  width: min(520px, 100%);
  margin-top: 44px;
}

.progress-copy {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  color: rgba(23, 19, 15, 0.57);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.progress-track {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(23, 19, 15, 0.09);
}

.progress-track span {
  display: block;
  width: 78%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--terracotta), #d98a65);
  transform-origin: left;
  animation: load 1.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.thank-you {
  margin: 21px 0 0;
  color: var(--sage);
  font-weight: 600;
}

.visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 610px;
}

.visual::before {
  content: "";
  position: absolute;
  width: min(36vw, 460px);
  aspect-ratio: 1;
  border: 1px solid rgba(23, 19, 15, 0.08);
  border-radius: 50%;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
}

.orb-one {
  width: 330px;
  height: 330px;
  background: var(--paper-deep);
  box-shadow: inset -24px -32px 70px rgba(188, 92, 60, 0.12);
}

.orb-two {
  width: 190px;
  height: 190px;
  right: 3%;
  top: 8%;
  border: 1px solid rgba(188, 92, 60, 0.18);
}

.bag {
  position: relative;
  z-index: 2;
  width: 250px;
  animation: float 5s ease-in-out infinite;
  filter: drop-shadow(0 34px 35px rgba(68, 39, 28, 0.18));
}

.bag-handle {
  width: 122px;
  height: 85px;
  margin: 0 auto -42px;
  border: 14px solid var(--terracotta-dark);
  border-bottom: 0;
  border-radius: 70px 70px 0 0;
}

.bag-body {
  position: relative;
  height: 290px;
  clip-path: polygon(9% 0, 91% 0, 100% 100%, 0 100%);
  border-radius: 12px 12px 24px 24px;
  background:
    linear-gradient(105deg, rgba(255, 255, 255, 0.13), transparent 28%),
    linear-gradient(145deg, #c96f4f, #a84a32);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--cream);
}

.bag-body::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 250, 243, 0.15);
  border-radius: 7px 7px 18px 18px;
}

.bag-monogram {
  font-size: 50px;
  font-weight: 700;
  letter-spacing: -0.08em;
}

.bag-label {
  margin-top: 3px;
  font-size: 12px;
  letter-spacing: 0.5em;
  transform: translateX(0.25em);
}

.spark {
  position: absolute;
  z-index: 3;
  color: var(--terracotta);
  animation: twinkle 2.8s ease-in-out infinite;
}

.spark-one {
  left: 8%;
  top: 22%;
  font-size: 30px;
}

.spark-two {
  right: 12%;
  bottom: 24%;
  font-size: 20px;
  animation-delay: -1s;
}

.spark-three {
  left: 20%;
  bottom: 13%;
  font-size: 14px;
  animation-delay: -2s;
}

footer {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 22px 0 28px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  color: rgba(23, 19, 15, 0.48);
  font-size: 12px;
}

@keyframes breathe {
  50% { transform: scale(0.78); opacity: 0.7; }
}

@keyframes load {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes float {
  50% { transform: translateY(-13px) rotate(1deg); }
}

@keyframes twinkle {
  50% { transform: scale(1.5) rotate(15deg); opacity: 0.45; }
}

@media (max-width: 840px) {
  .shell {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-top: 32px;
  }

  .brand {
    margin-bottom: 42px;
  }

  .visual {
    min-height: 440px;
  }

  .visual::before {
    width: 380px;
  }

  .bag {
    transform: scale(0.82);
  }
}

@media (max-width: 520px) {
  .shell,
  footer {
    width: min(100% - 32px, 1180px);
  }

  .shell {
    min-height: auto;
  }

  h1 {
    font-size: clamp(47px, 15vw, 64px);
  }

  .intro {
    line-height: 1.58;
  }

  .visual {
    min-height: 375px;
  }

  .visual::before {
    width: 310px;
  }

  .orb-one {
    width: 270px;
    height: 270px;
  }

  .bag {
    scale: 0.72;
  }

  footer {
    gap: 10px;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
