:root {
  --bg: #0f1222;
  --bg-elevated: #171a2a;
  --bg-elevated-soft: #1f2335;
  --border-subtle: #252a3f;
  --text-main: #f7f8ff;
  --text-muted: #a0a4c0;
  --accent: #4f8af7;
  --accent-soft: rgba(79, 138, 247, 0.15);
  --accent-strong: #346be0;
  --danger: #f45b69;
  --danger-soft: rgba(244, 91, 105, 0.16);
  --success: #4fd1b8;
  --success-soft: rgba(79, 209, 184, 0.16);

  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  --radius-sm: 4px;
  --radius-md: 8px;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.3);
}

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

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

body {
  min-height: 100vh;
  background: radial-gradient(circle at top left, #202545 0, #0b0d19 55%, #050712 100%);
  color: var(--text-main);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Layout */

.site-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  background: linear-gradient(to bottom, rgba(6, 8, 20, 0.95), rgba(6, 8, 20, 0.85));
}

.site-header__inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0.9rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.site-header__brand {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.site-header__logo-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #ffffff, #4f8af7);
  margin-right: 0.2rem;
}

.site-header__title {
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.site-header__subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.site-header__nav {
  display: flex;
  gap: 0.9rem;
  font-size: 0.9rem;
}

.nav-link {
  color: var(--text-main);
  opacity: 0.85;
}

.nav-link:hover {
  opacity: 1;
}

.nav-link--muted {
  color: var(--text-muted);
}

.page {
  max-width: 960px;
  margin: 1.8rem auto 2.4rem;
  padding: 0 1.2rem;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 2.4rem;
}

.site-footer__inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0.9rem 1.2rem 1.4rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.site-footer__muted {
  opacity: 0.75;
}

/* Panels */

.panel {
  background: linear-gradient(145deg, var(--bg-elevated) 0, #141828 100%);
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  margin-bottom: 1.4rem;
}

.panel--primary {
  box-shadow: 0 20px 50px rgba(79, 138, 247, 0.55);
}

.panel__header {
  padding: 1.2rem 1.4rem 0.3rem;
}

.panel__body {
  padding: 0.3rem 1.4rem 1.3rem;
}

.panel__title {
  margin: 0 0 0.25rem;
  font-size: 1.2rem;
}

.panel__subtitle {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Form elements */

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
}

.field__label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.field__input {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: rgba(4, 6, 20, 0.9);
  color: var(--text-main);
  padding: 0.55rem 0.7rem;
  font-size: 0.9rem;
  outline: none;
}

.field__input::placeholder {
  color: rgba(160, 164, 192, 0.7);
}

.field__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(79, 138, 247, 0.4);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 1.1rem;
  font-size: 0.9rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  font-weight: 500;
  transition: transform 0.06s ease-out, box-shadow 0.06s ease-out,
    background-color 0.1s ease-out;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent) 0, var(--accent-strong) 100%);
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
}

.btn--primary:active {
  transform: translateY(0);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

/* Status messages */

.status {
  margin-top: 0.7rem;
  min-height: 1.1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.status--error {
  color: var(--danger);
  background: var(--danger-soft);
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
}

.status--success {
  color: var(--success);
  background: var(--success-soft);
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
}

/* Steps */

.steps {
  margin: 0.3rem 0 0;
  padding-left: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.steps li + li {
  margin-top: 0.2rem;
}

/* Responsive tweaks */

@media (max-width: 640px) {
  .site-header__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-header__nav {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

