:root {
  --bg-top: #f7f3df;
  --bg-bottom: #e3f2ff;
  --ink: #0f1722;
  --panel: rgba(255, 255, 255, 0.82);
  --line: rgba(15, 23, 34, 0.14);
  --accent-blue: #0066ff;
  --accent-orange: #ff7a1a;
  --accent-teal: #08a283;
  --danger: #b42318;
  --success: #006b3c;
  --shadow: 0 18px 40px rgba(0, 50, 128, 0.16);
}

* {
  box-sizing: border-box;
}

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

body {
  position: relative;
  color: var(--ink);
  font-family: "Sora", "Trebuchet MS", sans-serif;
  background: linear-gradient(155deg, var(--bg-top), var(--bg-bottom));
  overflow-x: hidden;
}

.ambient-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(2px);
  opacity: 0.24;
}

.orb-a {
  width: 42vw;
  height: 42vw;
  min-width: 260px;
  min-height: 260px;
  background: radial-gradient(circle, #ffc266 0%, rgba(255, 194, 102, 0) 68%);
  top: -8vw;
  left: -10vw;
}

.orb-b {
  width: 36vw;
  height: 36vw;
  min-width: 220px;
  min-height: 220px;
  background: radial-gradient(circle, #4fc6ff 0%, rgba(79, 198, 255, 0) 68%);
  top: 20vh;
  right: -6vw;
}

.orb-c {
  width: 40vw;
  height: 40vw;
  min-width: 260px;
  min-height: 260px;
  background: radial-gradient(circle, #59d7b4 0%, rgba(89, 215, 180, 0) 68%);
  bottom: -14vw;
  left: 34vw;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem clamp(1rem, 3vw, 2.4rem);
  backdrop-filter: blur(10px);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.72));
  border-bottom: 1px solid var(--line);
}

.brand {
  font-family: "Bungee", "Verdana", sans-serif;
  letter-spacing: 0.06em;
  text-decoration: none;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  color: var(--ink);
}

.topnav {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.nav-button {
  text-decoration: none;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(120deg, var(--accent-blue), var(--accent-teal));
  padding: 0.64rem 1rem;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(0, 102, 255, 0.3);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.nav-button:hover,
.nav-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(0, 102, 255, 0.36);
}

.layout {
  position: relative;
  z-index: 2;
  width: min(920px, calc(100% - 2rem));
  margin: 2rem auto 3rem;
  display: grid;
  gap: 1.25rem;
}

.hero,
.panel,
.steps-wrap {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 1.3rem;
  box-shadow: var(--shadow);
}

.hero {
  padding: clamp(1.3rem, 3vw, 2rem);
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.76rem;
  color: #24486d;
  font-weight: 700;
}

h1,
h2 {
  margin: 0.4rem 0 0.65rem;
  font-family: "Bungee", "Verdana", sans-serif;
  font-weight: 400;
  line-height: 1.24;
}

h1 {
  font-size: clamp(1.5rem, 4vw, 2.4rem);
}

h2 {
  font-size: clamp(1.1rem, 3vw, 1.6rem);
}

.hero p {
  margin: 0;
  max-width: 66ch;
  line-height: 1.62;
}

.steps-wrap {
  padding: clamp(1rem, 2.6vw, 1.5rem);
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: gate-step;
  display: grid;
  gap: 0.85rem;
}

.step {
  counter-increment: gate-step;
  position: relative;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.95), rgba(252, 252, 255, 0.76));
  border: 1px solid rgba(15, 23, 34, 0.12);
  border-radius: 1rem;
  min-height: 3.4rem;
  padding: 0.85rem 0.9rem 0.85rem 3.85rem;
  display: flex;
  align-items: center;
  opacity: 0;
  transform: translateY(18px);
  animation: rise 640ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--delay, 0ms);
}

.step::before {
  content: counter(gate-step);
  position: absolute;
  left: 0.75rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.75rem;
  background: linear-gradient(130deg, var(--accent-orange), #ffb347);
  color: #13202c;
  font-family: "Bungee", "Verdana", sans-serif;
  display: grid;
  place-items: center;
  font-size: 0.92rem;
}

.step p {
  margin: 0;
  line-height: 1.5;
}

.panel {
  padding: clamp(1rem, 2.6vw, 1.4rem);
}

.sites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

.site-card {
  border: 1px solid rgba(15, 23, 34, 0.13);
  border-radius: 0.95rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(243, 248, 255, 0.88));
  padding: 0.92rem 0.9rem;
  text-align: left;
  font-family: "Sora", "Trebuchet MS", sans-serif;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: transform 170ms ease, border-color 170ms ease, box-shadow 170ms ease;
}

.site-card:hover,
.site-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(0, 102, 255, 0.45);
  box-shadow: 0 10px 20px rgba(0, 77, 194, 0.16);
}

.hint {
  margin: 0.9rem 0 0;
  font-size: 0.92rem;
  color: #2f4a66;
}

.custom-form {
  margin-top: 0.3rem;
}

.custom-form label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.55rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.6rem;
}

input[type="text"] {
  width: 100%;
  border: 1px solid rgba(15, 23, 34, 0.2);
  border-radius: 0.8rem;
  padding: 0.72rem 0.78rem;
  font: inherit;
}

input[type="text"]:focus-visible {
  outline: 2px solid rgba(0, 102, 255, 0.45);
  border-color: transparent;
}

.go-button {
  border: 0;
  border-radius: 0.8rem;
  background: linear-gradient(125deg, var(--accent-orange), var(--accent-blue));
  color: #ffffff;
  font-weight: 700;
  font-family: "Sora", "Trebuchet MS", sans-serif;
  padding: 0.72rem 0.95rem;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.go-button:hover,
.go-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 102, 255, 0.24);
}

.form-message {
  min-height: 1.25rem;
  margin: 0.65rem 0 0;
  font-size: 0.92rem;
}

.form-message[data-type="error"] {
  color: var(--danger);
}

.form-message[data-type="success"] {
  color: var(--success);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 680ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--delay, 0ms);
}

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

@media (max-width: 720px) {
  .layout {
    width: calc(100% - 1.1rem);
    margin-top: 1rem;
  }

  .topbar {
    padding-inline: 0.75rem;
  }

  .step {
    padding-left: 3.35rem;
  }

  .step::before {
    width: 2rem;
    height: 2rem;
    font-size: 0.84rem;
    left: 0.6rem;
  }

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

  .go-button {
    width: 100%;
  }
}
