:root {
  --be-green: #00a651;
  --be-green-hover: #008f47;
  --be-yellow: #ffd100;
  --be-charcoal: #1a1a1a;
  --be-white: #ffffff;
}

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

html {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--be-white);
  background-color: var(--be-charcoal);
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(0, 166, 81, 0.22), transparent 55%),
    radial-gradient(ellipse 90% 60% at 100% 100%, rgba(255, 209, 0, 0.06), transparent 45%),
    linear-gradient(180deg, #141414 0%, var(--be-charcoal) 40%, #111100%);
}

.landing {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(1.25rem, 5vw, 2.5rem);
  text-align: center;
}

.landing__logo {
  width: min(420px, 88vw);
  height: auto;
  display: block;
  margin-bottom: clamp(1.75rem, 5vw, 2.75rem);
}

.landing__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem 1rem;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 22rem;
}

.btn {
  flex: 1 1 auto;
  min-width: min(140px, 42vw);
  min-height: 44px;
  padding: 0.625rem 1.25rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.15s ease,
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease;
}

.btn:focus-visible {
  outline: 2px solid var(--be-yellow);
  outline-offset: 3px;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  color: var(--be-white);
  background: var(--be-green);
  border: 2px solid transparent;
  box-shadow: 0 4px 14px rgba(0, 166, 81, 0.35);
}

.btn--primary:hover {
  background: var(--be-green-hover);
  transform: translateY(-1px);
}

.btn--secondary {
  color: var(--be-green);
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid var(--be-green);
}

.btn--secondary:hover {
  border-color: var(--be-green-hover);
  color: var(--be-green-hover);
  background: rgba(0, 166, 81, 0.12);
  transform: translateY(-1px);
}

@media (max-width: 380px) {
  .landing__actions {
    flex-direction: column;
    max-width: 100%;
  }

  .btn {
    width: 100%;
    min-width: unset;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .btn:hover,
  .btn:active {
    transition: none;
    transform: none;
  }
}

.demo-dialog {
  width: min(100%, 22rem);
  padding: 0;
  border: 2px solid var(--be-green);
  border-radius: 14px;
  background: linear-gradient(165deg, #1e2420 0%, var(--be-charcoal) 55%, #141816);
  color: var(--be-white);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 209, 0, 0.12);
}

.demo-dialog::backdrop {
  background: rgba(10, 12, 11, 0.72);
  backdrop-filter: blur(4px);
}

.demo-dialog__form {
  padding: clamp(1.25rem, 4vw, 1.75rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0;
}

.demo-dialog__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.demo-dialog__hint {
  margin: -0.25rem 0 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.72);
}

.demo-dialog__label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-align: left;
}

.demo-dialog__label-text {
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
}

.demo-dialog__input {
  width: 100%;
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  border: 2px solid rgba(0, 166, 81, 0.45);
  background: rgba(255, 255, 255, 0.06);
  color: var(--be-white);
  font: inherit;
}

.demo-dialog__input:focus {
  outline: none;
  border-color: var(--be-green);
  box-shadow: 0 0 0 3px rgba(0, 166, 81, 0.25);
}

.demo-dialog__input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.demo-dialog__error {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffb4b4;
}

.demo-dialog__error:empty,
.demo-dialog__error[hidden] {
  display: none;
}

.demo-dialog__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 0.25rem;
}

.demo-dialog__btn {
  flex: 1 1 auto;
  min-width: 6.5rem;
}

@media (max-width: 380px) {
  .demo-dialog__actions {
    flex-direction: column-reverse;
  }

  .demo-dialog__btn {
    width: 100%;
  }
}
