:root {
  --bg-top: #000638;
  --bg-bottom: #08145d;
  --card: #ffffffee;
  --ink: #10153a;
  --muted: #4d5477;
  --accent: #000638;
  --accent-2: #ffcc2a;
  --danger: #b42318;
  --success: #05603a;
  --radius: 24px;
  --shadow: 0 20px 48px rgba(0, 6, 56, 0.26);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 80% 8%, #243187 0%, transparent 38%),
    radial-gradient(circle at 0% 100%, #111f73 0%, transparent 40%),
    linear-gradient(160deg, var(--bg-top), var(--bg-bottom));
  background-attachment: fixed;
}

body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  filter: blur(8px);
  z-index: -1;
}

body::before {
  width: 300px;
  height: 300px;
  background: #ffcc2a;
  top: -90px;
  right: -40px;
  opacity: 0.24;
}

body::after {
  width: 260px;
  height: 260px;
  background: #2442c3;
  bottom: -120px;
  left: -80px;
  opacity: 0.4;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(10px);
  background: linear-gradient(90deg, rgba(0, 6, 56, 0.93), rgba(6, 16, 80, 0.9));
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.topbar-inner {
  max-width: 1050px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  width: 190px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.brand-fallback {
  color: var(--accent-2);
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 1rem;
}

.layout {
  flex: 1;
  max-width: 1050px;
  margin: 0 auto;
  padding: 26px 20px 30px;
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 20px;
}

.hero-card,
.steps-card {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
}

.hero-card {
  padding: 28px;
  animation: reveal 0.5s ease-out both;
}

.steps-card {
  padding: 24px;
  animation: reveal 0.8s ease-out both;
}

.eyebrow {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: #0f1f75;
  margin: 0 0 12px;
}

h1 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.2;
}

.subtitle {
  color: var(--muted);
  margin: 12px 0 24px;
  max-width: 60ch;
}

.subtitle a {
  color: #0f1f75;
  text-decoration-color: #ffcc2a;
  text-underline-offset: 3px;
}

.form-grid {
  display: grid;
  gap: 14px;
}

.field span {
  display: block;
  margin-bottom: 6px;
  font-size: 0.92rem;
}

input {
  width: 100%;
  border: 1.6px solid #b9c2f0;
  border-radius: 12px;
  font-size: 1rem;
  padding: 11px 12px;
  font-family: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease;
  background: #fff;
}

input:focus {
  outline: none;
  border-color: #1d31a0;
  box-shadow: 0 0 0 4px rgba(255, 204, 42, 0.33);
  transform: translateY(-1px);
}

button {
  margin-top: 4px;
  border: 0;
  border-radius: 14px;
  padding: 13px 14px;
  font-size: 1rem;
  font-weight: 700;
  background: linear-gradient(135deg, #ffcc2a, #ffd95f);
  color: #000638;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}

button:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

button:disabled {
  opacity: 0.7;
  cursor: wait;
}

.result {
  margin-top: 18px;
  border-radius: 14px;
  padding: 14px;
  font-size: 0.95rem;
  line-height: 1.45;
}

.result.success {
  background: #ebf9ef;
  border: 1px solid #8ed6aa;
  color: var(--success);
}

.result.error {
  background: #fdecec;
  border: 1px solid #f4aaaa;
  color: var(--danger);
}

.hidden {
  display: none;
}

.inline-divider {
  margin: 24px 0 20px;
  border-top: 1px dashed #c8cff0;
}

.section-title {
  margin: 0 0 8px;
  font-size: 1.18rem;
}

.section-subtitle {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.95rem;
}

.steps-card h2 {
  margin: 0;
  font-size: 1.2rem;
}

.steps-card ol {
  margin: 14px 0;
  padding-left: 18px;
  color: #21295b;
  display: grid;
  gap: 8px;
}

.hint {
  font-size: 0.9rem;
  color: #5b6287;
  border-top: 1px dashed #c8cff0;
  padding-top: 12px;
  margin-top: 14px;
}

.page-footer {
  max-width: 1050px;
  margin: 0 auto;
  margin-top: auto;
  padding: 0 20px 28px;
  text-align: center;
  color: #ffd95f;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 860px) {
  .topbar-inner {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .brand-logo {
    width: 150px;
  }

  .layout {
    grid-template-columns: 1fr;
    padding-top: 18px;
  }

  .hero-card,
  .steps-card {
    padding: 20px;
  }
}
