:root {
  --bg: #f4f0ea;
  --ink: #161616;
  --muted: #5f646b;
  --panel: rgba(255, 255, 255, 0.86);
  --line: rgba(22, 22, 22, 0.12);
  --accent: #e34f3f;
  --accent-dark: #a92921;
  --green: #1f8a5c;
  --blue: #2448d8;
  --shadow: 0 28px 90px rgba(31, 34, 39, 0.16);
}

@font-face {
  font-family: "Inter";
  src: url("fonts/inter-regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("fonts/inter-medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("fonts/inter-semibold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("fonts/inter-bold.ttf") format("truetype");
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background:
    radial-gradient(
      circle at 18% 16%,
      rgba(227, 79, 63, 0.16),
      transparent 34%
    ),
    linear-gradient(135deg, #f7f2ea 0%, #f8f8f4 46%, #e8eef8 100%);
}

a {
  color: inherit;
}

.maintenance-shell,
.subpage-shell {
  width: min(1180px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  align-items: center;
  padding: 40px 0;
}

.notice {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.72fr);
  gap: 36px;
  width: 100%;
  min-height: min(760px, calc(100vh - 80px));
  padding: clamp(26px, 5vw, 72px);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 28px;
  background:
    linear-gradient(
      120deg,
      rgba(255, 255, 255, 0.9),
      rgba(255, 255, 255, 0.62)
    ),
    url("data:image/svg+xml,%3Csvg width='1200' height='900' viewBox='0 0 1200 900'%3E%3Cdefs%3E%3ClinearGradient id='a' x1='0' x2='1' y1='0' y2='1'%3E%3Cstop stop-color='%23e34f3f' stop-opacity='.22'/%3E%3Cstop offset='.55' stop-color='%232448d8' stop-opacity='.14'/%3E%3Cstop offset='1' stop-color='%231f8a5c' stop-opacity='.2'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='1200' height='900' fill='%23fbfaf7'/%3E%3Cg fill='none' stroke='url(%23a)' stroke-width='42' stroke-linecap='round'%3E%3Cpath d='M-70 673C151 520 267 525 388 604s221 202 401 139 224-279 473-278'/%3E%3Cpath d='M-45 356c202-153 376-170 523-51s238 124 372 17 240-139 418-69' opacity='.72'/%3E%3C/g%3E%3Cg fill='%23161616' opacity='.055'%3E%3Ccircle cx='168' cy='186' r='8'/%3E%3Ccircle cx='322' cy='122' r='8'/%3E%3Ccircle cx='903' cy='185' r='8'/%3E%3Ccircle cx='1034' cy='368' r='8'/%3E%3Ccircle cx='758' cy='678' r='8'/%3E%3Ccircle cx='236' cy='716' r='8'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover;
  box-shadow: var(--shadow);
}

.notice::after {
  content: "";
  position: absolute;
  inset: auto -10% -22% 34%;
  height: 310px;
  background: linear-gradient(
    90deg,
    rgba(227, 79, 63, 0.18),
    rgba(36, 72, 216, 0.15),
    rgba(31, 138, 92, 0.13)
  );
  filter: blur(48px);
  transform: rotate(-8deg);
  pointer-events: none;
}

.notice-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 680px;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: block;
  width: 64px;
  height: 64px;
  border-radius: 14px;
  padding: 8px;
  object-fit: contain;
  background: #050505;
  box-shadow: 0 10px 24px rgba(22, 22, 22, 0.18);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin: clamp(44px, 8vw, 84px) 0 22px;
  padding: 9px 14px;
  border: 1px solid rgba(31, 138, 92, 0.22);
  border-radius: 999px;
  color: #14583d;
  background: rgba(234, 248, 241, 0.86);
  font-size: 0.88rem;
  font-weight: 700;
}

.status-pill::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(31, 138, 92, 0.12);
}

h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2.7rem, 7vw, 4.3rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.lead {
  max-width: 620px;
  margin: 26px 0 0;
  color: #2d3034;
  font-size: clamp(1.1rem, 2.1vw, 1.45rem);
  line-height: 1.55;
}

p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.legal-links {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 34px;
  color: #2d3034;
  font-size: 0.95rem;
  font-weight: 700;
}

.legal-links a {
  text-decoration-color: rgba(22, 22, 22, 0.22);
  text-underline-offset: 4px;
}

.legal-links a:hover,
.legal-links a:focus-visible {
  color: var(--accent-dark);
}

.visual-panel {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: center;
  justify-items: center;
  min-height: 420px;
}

.challenge-card {
  position: relative;
  display: grid;
  width: min(100%, 420px);
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 34px;
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.9),
      rgba(255, 255, 255, 0.42)
    ),
    linear-gradient(135deg, rgba(227, 79, 63, 0.2), rgba(36, 72, 216, 0.12));
  box-shadow: 0 28px 80px rgba(22, 22, 22, 0.16);
}

.challenge-card::before,
.challenge-card::after {
  content: "";
  position: absolute;
  border-radius: 999px;
}

.challenge-card::before {
  width: 70px;
  height: 70px;
  left: 12%;
  top: 14%;
  background: var(--accent);
}

.challenge-card::after {
  width: 112px;
  height: 112px;
  right: 8%;
  bottom: 9%;
  border: 22px solid var(--blue);
}

.ring {
  display: grid;
  width: 224px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 999px;
  color: var(--ink);
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.9) 0 47%, transparent 48%),
    conic-gradient(var(--accent) 0 72%, rgba(22, 22, 22, 0.12) 72% 100%);
}

.ring span {
  font-size: 4.6rem;
  font-weight: 900;
  letter-spacing: 0;
}

.mini-bars {
  position: absolute;
  left: 36px;
  right: 36px;
  bottom: 34px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  gap: 8px;
  height: 52px;
}

.mini-bars span {
  display: block;
  overflow: hidden;
  border-radius: 999px 999px 8px 8px;
  color: transparent;
  font-size: 0;
  line-height: 0;
  background: rgba(22, 22, 22, 0.72);
}

.mini-bars span:nth-child(1) {
  height: 38%;
}
.mini-bars span:nth-child(2) {
  height: 74%;
  background: var(--green);
}
.mini-bars span:nth-child(3) {
  height: 54%;
}
.mini-bars span:nth-child(4) {
  height: 92%;
  background: var(--accent);
}
.mini-bars span:nth-child(5) {
  height: 66%;
  background: var(--blue);
}

.subpage {
  width: min(820px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 6vw, 58px);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.subpage h1 {
  margin-top: 54px;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
}

.subpage h2 {
  margin: 36px 0 8px;
  font-size: 1.2rem;
}

.subpage h3 {
  margin: 26px 0 8px;
  font-size: 1rem;
}

.subpage a {
  overflow-wrap: anywhere;
}

.placeholder-box {
  margin: 24px 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
}

.placeholder-box p {
  margin: 0;
}

.placeholder-box p + p {
  margin-top: 8px;
}

@media (max-width: 900px) {
  .maintenance-shell {
    align-items: start;
  }

  .notice {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .visual-panel {
    min-height: 280px;
    order: -1;
  }

  .challenge-card {
    width: min(100%, 340px);
  }
}

@media (max-width: 620px) {
  .maintenance-shell,
  .subpage-shell {
    width: min(100% - 20px, 1180px);
    padding: 10px 0;
  }

  .notice,
  .subpage {
    border-radius: 18px;
  }

  .visual-panel {
    min-height: 220px;
  }

  .challenge-card {
    width: min(100%, 268px);
    border-radius: 24px;
  }

  .ring {
    width: 152px;
  }

  .ring span {
    font-size: 3.2rem;
  }

  .challenge-card::before {
    width: 46px;
    height: 46px;
  }

  .challenge-card::after {
    width: 74px;
    height: 74px;
    border-width: 15px;
  }
}
