:root {
  color-scheme: light;
  --bg-top: #fff4ea;
  --bg-bottom: #f4e3d2;
  --ink: #221d18;
  --muted: #72685f;
  --accent: #e67b1e;
  --accent-soft: rgba(211, 109, 47, 0.14);
  --accent-strong: #ffd09d;
  --shadow: 0 24px 80px rgba(100, 70, 49, 0.16);
  --page-width: 1120px;
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  background:
    radial-gradient(circle at 12% 14%, rgba(255, 171, 112, 0.24), transparent 24rem),
    radial-gradient(circle at 86% 18%, rgba(255, 210, 151, 0.2), transparent 20rem),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
  color: var(--ink);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

.page-glow {
  position: fixed;
  inset: auto;
  border-radius: 999px;
  filter: blur(44px);
  pointer-events: none;
  opacity: 0.74;
}

.page-glow-one {
  top: 4rem;
  left: -5rem;
  width: 19rem;
  height: 19rem;
  background: rgba(248, 146, 72, 0.22);
}

.page-glow-two {
  right: -4rem;
  bottom: 4rem;
  width: 18rem;
  height: 18rem;
  background: rgba(255, 205, 133, 0.18);
}

.page-shell {
  width: min(calc(100% - 2rem), var(--page-width));
  margin: 0 auto;
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: 2rem 0;
}

.site-header {
  position: absolute;
  top: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - 2rem), var(--page-width));
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: block;
}

.brand-name {
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-card {
  position: relative;
  overflow: hidden;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(252, 247, 242, 0.8));
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 15rem;
  height: 15rem;
  background: radial-gradient(circle, rgba(255, 205, 167, 0.2), transparent 70%);
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 1.1rem;
  color: #bf6a22;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.84fr);
  gap: 1.4rem;
  align-items: stretch;
}

.hero-copy {
  padding: 0.35rem 0 0.25rem;
}

.hero-copy h1 {
  margin: 0;
  max-width: 10ch;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(3rem, 6.7vw, 5rem);
  line-height: 0.93;
  letter-spacing: -0.07em;
  overflow-wrap: anywhere;
}

.hero-text {
  margin: 1.2rem 0 0;
  max-width: 35rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.18rem);
  line-height: 1.6;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.55rem;
}

.action-button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 0.92rem 1.25rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 140ms ease,
    box-shadow 140ms ease,
    background-color 140ms ease;
}

.action-button:hover {
  transform: translateY(-1px);
}

.action-button:focus-visible,
.ip-toggle:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.action-button-primary {
  background: var(--ink);
  color: #fffaf6;
  box-shadow: 0 12px 30px rgba(34, 29, 24, 0.18);
}

.action-button-primary:hover {
  box-shadow: 0 18px 36px rgba(34, 29, 24, 0.22);
}

.action-button-secondary {
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  border: 1px solid rgba(34, 29, 24, 0.08);
}

.challenge-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.9rem;
  min-height: 21rem;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 242, 232, 0.92), rgba(250, 231, 216, 0.86));
  border: 1px solid rgba(211, 109, 47, 0.08);
}

.challenge-label {
  margin: 0;
  color: #9d653d;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.challenge-box {
  min-height: 12rem;
  display: grid;
  place-items: center;
  padding: 1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(34, 29, 24, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
  text-align: center;
}

.challenge-box > * {
  max-width: 100%;
}

.challenge-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.5;
}

.spinner {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  border: 3px solid var(--accent-soft);
  border-top-color: var(--accent);
  margin: 0 auto 0.9rem;
  animation: spin 900ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.request-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.35rem 0 0;
  padding: 1rem;
  border: 1px solid rgba(34, 29, 24, 0.06);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.58);
}

.meta-item {
  display: grid;
  gap: 0.35rem;
}

.meta-item dt {
  color: #ba8457;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.meta-item dd {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.45;
}

.ip-toggle {
  appearance: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.ip-value {
  margin-left: 0.55rem;
  color: var(--muted);
  font-weight: 600;
}

@media (max-width: 900px) {
  .hero-grid,
  .request-meta {
    grid-template-columns: 1fr;
  }

  .challenge-card {
    min-height: 16rem;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(calc(100% - 1rem), var(--page-width));
    padding: 1rem 0;
  }

  .site-header {
    top: 1rem;
    width: min(calc(100% - 1rem), var(--page-width));
  }

  .hero-card {
    padding: 1.15rem;
  }

  .hero-copy h1 {
    max-width: 8ch;
    font-size: clamp(2.4rem, 12vw, 3.55rem);
  }

  .hero-text {
    margin-top: 1rem;
    font-size: 1rem;
  }

  .action-row {
    gap: 0.75rem;
  }

  .action-button {
    width: 100%;
  }

  .challenge-card {
    min-height: 14rem;
    padding: 1.1rem;
  }

  .challenge-box {
    min-height: 10.5rem;
    padding: 0.85rem;
  }
}
