:root {
  --bg: #040b16;
  --card: rgba(10, 25, 43, 0.82);
  --line: rgba(164, 198, 233, 0.2);
  --text: #edf5ff;
  --muted: #a8bfd9;
  --gold: #ffc45e;
  --cyan: #34d8ff;
  --danger: #ff7373;
  --ok: #50e591;
  --shadow: 0 24px 55px rgba(3, 11, 23, 0.45);
  --radius-lg: 24px;
  --radius-md: 14px;
}

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

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  min-height: 100vh;
  background:
    radial-gradient(980px 450px at 100% 0%, rgba(52, 216, 255, 0.13), transparent 56%),
    radial-gradient(900px 460px at 0% 100%, rgba(255, 196, 94, 0.1), transparent 58%),
    linear-gradient(145deg, #030915 0%, #061325 44%, #051122 100%);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  line-height: 1.12;
}

p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 5vw;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 15, 29, 0.76);
  backdrop-filter: blur(10px);
}

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

.brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.brand strong {
  display: block;
  letter-spacing: 0.08em;
  font-size: 0.84rem;
}

.brand small {
  color: var(--muted);
}

.topnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.topnav a {
  text-decoration: none;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.82rem;
  font-size: 0.82rem;
  font-weight: 700;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.topnav a:hover,
.topnav a:focus-visible {
  color: var(--text);
  border-color: rgba(52, 216, 255, 0.55);
  transform: translateY(-1px);
}

main {
  padding: 34px 5vw 60px;
  display: grid;
  gap: 12px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow);
}

.hero {
  padding: 22px;
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 10px;
}

.hero > div:first-child {
  display: grid;
  gap: 9px;
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.hero h1 {
  font-size: clamp(2.1rem, 3.8vw, 3.2rem);
  margin-bottom: 8px;
}

.steps {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(7, 17, 31, 0.72);
  padding: 14px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.steps h3 {
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.steps ol {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 7px;
}

.steps li {
  color: var(--muted);
}

.steps:hover {
  transform: translateY(-2px);
  border-color: rgba(52, 216, 255, 0.5);
}

.commitments {
  padding: 22px;
  display: grid;
  gap: 12px;
}

.commitments h2 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  margin-bottom: 4px;
}

.commit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.commit-grid article {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(7, 17, 31, 0.72);
  padding: 12px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.commit-grid h3 {
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.commit-grid article:hover {
  transform: translateY(-2px);
  border-color: rgba(52, 216, 255, 0.5);
}

.form-panel {
  padding: 22px;
  display: grid;
  gap: 12px;
}

.form-panel h2 {
  font-size: 2rem;
}

.form-tips {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(7, 17, 31, 0.72);
  padding: 12px;
  display: grid;
  gap: 6px;
}

.form-tips span {
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  font-weight: 800;
}

.form-tips ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 4px;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
}

.grid .full {
  grid-column: 1 / -1;
}

label {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 4px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(7, 19, 33, 0.9);
  color: var(--text);
  padding: 0.65rem 0.72rem;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(52, 216, 255, 0.58);
}

textarea {
  resize: vertical;
}

.docs h3 {
  margin-bottom: 2px;
  font-size: 1.35rem;
}

.docs ul {
  margin: 6px 0 10px;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 4px;
}

.doc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.hint {
  margin-top: 8px;
  font-size: 0.8rem;
}

.doc-preview {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.doc-preview article {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px;
  background: rgba(7, 17, 31, 0.7);
  display: grid;
  gap: 2px;
}

.doc-preview strong {
  font-size: 0.82rem;
}

.doc-preview span,
.doc-preview small {
  color: var(--muted);
  font-size: 0.76rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.privacy-note {
  font-size: 0.82rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(7, 17, 31, 0.72);
  padding: 9px;
}

.btn {
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.68rem 1rem;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.btn-gold {
  color: #221400;
  background: linear-gradient(115deg, #ffb733, var(--gold));
}

.btn-ghost {
  color: var(--text);
  border-color: var(--line);
  background: rgba(8, 20, 35, 0.84);
}

.error {
  color: #ffc4c4;
  min-height: 18px;
  font-size: 0.84rem;
}

.success {
  padding: 20px;
  display: grid;
  gap: 8px;
  border-color: rgba(80, 229, 145, 0.4);
  background: linear-gradient(145deg, rgba(9, 26, 39, 0.9), rgba(7, 30, 25, 0.9));
}

.success h2 {
  font-size: 1.9rem;
}

.protocol {
  border: 1px solid rgba(80, 229, 145, 0.45);
  border-radius: 10px;
  padding: 10px;
  background: rgba(12, 42, 32, 0.5);
}

.protocol span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.protocol strong {
  font-size: 1rem;
}

.small {
  font-size: 0.84rem;
}

.hidden {
  display: none !important;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .commit-grid {
    grid-template-columns: 1fr;
  }

  .doc-grid,
  .doc-preview {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .grid {
    grid-template-columns: 1fr;
  }
}
