:root {
  color-scheme: light;
  --bg-1: #f6efe4;
  --bg-2: #f0f7f2;
  --bg-3: #fbe9d4;
  --ink: #1d1c1a;
  --muted: #4a4742;
  --accent: #ef6b45;
  --accent-2: #2f9c9e;
  --card: rgba(255, 255, 255, 0.88);
  --stroke: rgba(29, 28, 26, 0.12);
  --shadow: 0 25px 45px rgba(43, 34, 17, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top, var(--bg-3), transparent 55%),
    linear-gradient(140deg, var(--bg-1), var(--bg-2));
  display: grid;
  place-items: center;
  padding: 40px 20px 60px;
  overflow-x: hidden;
}

.ambient-sheen {
  position: fixed;
  inset: -15% -10% auto auto;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(47, 156, 158, 0.35), transparent 70%);
  filter: blur(10px);
  animation: drift 12s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes drift {
  0% {
    transform: translate(-30px, -20px) scale(0.96);
  }
  50% {
    transform: translate(20px, 10px) scale(1.02);
  }
  100% {
    transform: translate(-30px, -20px) scale(0.96);
  }
}

.shell {
  width: min(960px, 100%);
  display: grid;
  gap: 26px;
  position: relative;
  z-index: 1;
}

.hero {
  padding: 12px 4px;
  animation: rise 0.8s ease forwards;
  opacity: 0;
}

.eyebrow {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 12px;
  color: var(--accent-2);
  margin: 0 0 12px;
}

.hero h1 {
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  margin: 0 0 12px;
}

.subhead {
  max-width: 520px;
  font-size: 1.05rem;
  color: var(--muted);
  margin: 0;
}

.card {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 22px;
  padding: 26px;
  box-shadow: var(--shadow);
  animation: rise 0.8s ease forwards;
  animation-delay: 0.1s;
  opacity: 0;
}

.label {
  display: block;
  font-weight: 600;
  margin-bottom: 10px;
}

.input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
}

input[type="url"] {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(29, 28, 26, 0.2);
  font-size: 1rem;
  background: #fff9f1;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

input[type="url"]:focus {
  outline: none;
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(47, 156, 158, 0.2);
}

button {
  border: none;
  background: linear-gradient(130deg, var(--accent), #f2a65a);
  color: #1c0d05;
  font-weight: 700;
  padding: 0 24px;
  border-radius: 14px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  min-width: 150px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: translateX(-120%);
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 18px rgba(239, 107, 69, 0.3);
}

button:hover::after {
  transform: translateX(120%);
  transition: transform 0.6s ease;
}

button[disabled] {
  cursor: wait;
  opacity: 0.6;
  transform: none;
  box-shadow: none;
}

.hint {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 12px 0 0;
}

.status {
  min-height: 24px;
  font-weight: 600;
  color: var(--muted);
  animation: rise 0.8s ease forwards;
  animation-delay: 0.2s;
  opacity: 0;
}

.status.is-error {
  color: #a2332a;
}

.status.is-success {
  color: #1d6c4b;
}

.notes {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--muted);
  animation: rise 0.8s ease forwards;
  animation-delay: 0.3s;
  opacity: 0;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  body {
    padding: 32px 16px 50px;
  }

  .input-row {
    grid-template-columns: 1fr;
  }

  button {
    width: 100%;
    padding: 16px 24px;
  }

  .notes {
    flex-direction: column;
    gap: 8px;
  }
}
