@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@500&display=swap");

:root {
  --bg-1: #0f2027;
  --bg-2: #203a43;
  --bg-3: #2c5364;
  --ink: #0b0f14;
  --card: #f8fafc;
  --accent: #ff7a00;
  --accent-2: #00c2ff;
  --muted: #4b5563;
  --shadow: rgba(15, 23, 42, 0.25);
}

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

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 20px;
  font-family: "Space Grotesk", system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(255, 122, 0, 0.35), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(0, 194, 255, 0.25), transparent 60%),
    linear-gradient(135deg, var(--bg-1), var(--bg-2), var(--bg-3));
}

.card {
  width: min(720px, 100%);
  background: var(--card);
  padding: 36px clamp(24px, 4vw, 48px);
  border-radius: 24px;
  box-shadow: 0 20px 50px var(--shadow);
  position: relative;
  overflow: hidden;
  animation: rise 600ms ease-out;
  text-align: center;
}

.card::after {
  content: "";
  position: absolute;
  inset: -40% 40% 50% -30%;
  background: linear-gradient(120deg, rgba(255, 122, 0, 0.18), transparent 60%);
  transform: rotate(-8deg);
}

.eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 12px;
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.1;
}

.sub {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 1rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  justify-content: center;
}

button {
  appearance: none;
  border: none;
  border-radius: 999px;
  padding: 12px 22px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(135deg, var(--accent), #ffb347);
  color: #1a120b;
  box-shadow: 0 10px 20px rgba(255, 122, 0, 0.3);
  transition: transform 150ms ease, box-shadow 150ms ease;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(255, 122, 0, 0.35);
}

button.ghost {
  background: transparent;
  color: var(--ink);
  border: 2px solid rgba(15, 23, 42, 0.15);
  box-shadow: none;
}

button.ghost:hover {
  border-color: rgba(15, 23, 42, 0.35);
}

.balls {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
  padding: 14px 12px;
  border-radius: 18px;
  background: #eef2ff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 200ms ease, transform 200ms ease;
  min-height: 70px;
}

.balls.show {
  opacity: 1;
  transform: translateY(0);
}

.ball {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.1rem;
  font-weight: 600;
  color: #0b0f14;
  box-shadow:
    inset -6px -10px 16px rgba(0, 0, 0, 0.15),
    inset 6px 8px 12px rgba(255, 255, 255, 0.7),
    0 10px 18px rgba(15, 23, 42, 0.2);
  animation: pop 240ms ease-out;
}

.ball.yellow {
  background: radial-gradient(circle at 30% 30%, #fff6bf, #ffd24d 55%, #f6b200 100%);
}

.ball.blue {
  background: radial-gradient(circle at 30% 30%, #c9efff, #66c2ff 55%, #1d8bff 100%);
  color: #07243d;
}

.ball.red {
  background: radial-gradient(circle at 30% 30%, #ffd1d1, #ff7a7a 55%, #e02020 100%);
  color: #3d0b0b;
}

.ball.gray {
  background: radial-gradient(circle at 30% 30%, #f2f2f2, #bfc6d1 55%, #8c96a8 100%);
  color: #0f172a;
}

.ball.green {
  background: radial-gradient(circle at 30% 30%, #d4f6d2, #7be495 55%, #22c55e 100%);
  color: #0a2a16;
}

.contact {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px dashed rgba(15, 23, 42, 0.15);
}

.contact h2 {
  margin: 0 0 16px;
  font-size: 1.4rem;
}

.contact form {
  display: grid;
  gap: 14px;
  text-align: left;
}

.contact label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  color: #1f2937;
}

.contact input,
.contact textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.15);
  padding: 10px 12px;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  color: #0b0f14;
}

.contact input:focus,
.contact textarea:focus {
  outline: none;
  border-color: rgba(255, 122, 0, 0.6);
  box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.2);
}

.contact button {
  justify-self: center;
  min-width: 160px;
}

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

@keyframes pop {
  from {
    transform: scale(0.94);
    opacity: 0.6;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@media (max-width: 480px) {
  .actions {
    flex-direction: column;
  }

  button {
    width: 100%;
  }

  .ball {
    width: 48px;
    height: 48px;
  }
}
