/* ===== Variables ===== */
:root {
  --black: #0a0a0a;
  --black-soft: #141414;
  --black-card: #1a1a1a;
  --black-border: #2a2a2a;
  --yellow: #ffd000;
  --yellow-bright: #ffe566;
  --yellow-dark: #c9a600;
  --yellow-glow: rgba(255, 208, 0, 0.35);
  --text: #f5f5f5;
  --text-muted: #a8a8a8;
  --danger: #ff4444;
  --radius: 16px;
  --radius-sm: 10px;
  --header-h: 56px;
  --bottom-bar-h: 64px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --font: 'Manrope', system-ui, -apple-system, sans-serif;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background: var(--black);
  min-height: 100dvh;
  padding-bottom: calc(var(--bottom-bar-h) + var(--safe-bottom) + 16px);
  overflow-x: hidden;
}

a {
  color: var(--yellow);
  text-decoration: none;
}

strong {
  color: var(--yellow-bright);
  font-weight: 600;
}

/* ===== Background glow ===== */
.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, var(--yellow-glow), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 60%, rgba(255, 208, 0, 0.08), transparent 50%),
    radial-gradient(ellipse 50% 30% at 0% 80%, rgba(255, 208, 0, 0.06), transparent 45%);
}

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--black-border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 16px;
  max-width: 480px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 800;
  font-size: 1.05rem;
}

.logo__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--yellow), var(--yellow-dark));
  color: var(--black);
  border-radius: 10px;
  font-size: 1.1rem;
  box-shadow: 0 4px 16px var(--yellow-glow);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: var(--black-card);
  border: 1px solid var(--black-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--yellow);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px 16px 16px;
  max-width: 480px;
  margin: 0 auto;
  border-top: 1px solid var(--black-border);
}

.nav.is-open {
  display: flex;
}

.nav a {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}

.nav a:hover,
.nav a:focus-visible {
  background: var(--black-card);
  color: var(--yellow);
}

/* ===== Main layout ===== */
main {
  position: relative;
  z-index: 1;
  max-width: 480px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ===== Hero ===== */
.hero {
  padding: 28px 0 36px;
  text-align: center;
}

.hero__badge {
  display: inline-block;
  padding: 6px 14px;
  background: linear-gradient(90deg, var(--yellow-dark), var(--yellow));
  color: var(--black);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  border-radius: 20px;
  margin-bottom: 16px;
  box-shadow: 0 4px 20px var(--yellow-glow);
}

.hero__title {
  font-size: clamp(1.75rem, 6vw, 2.25rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  background: linear-gradient(180deg, #fff 30%, var(--yellow-bright));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__lead {
  color: var(--text-muted);
  text-align: left;
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 28px;
}

.stat {
  background: var(--black-card);
  border: 1px solid var(--black-border);
  border-radius: var(--radius);
  padding: 14px 8px;
  text-align: center;
}

.stat__value {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--yellow);
  line-height: 1.2;
}

.stat__label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn--primary {
  background: linear-gradient(135deg, var(--yellow), var(--yellow-dark));
  color: var(--black);
  box-shadow: 0 6px 24px var(--yellow-glow);
  width: 100%;
}

.btn--primary:active {
  transform: scale(0.98);
}

.btn--lg {
  padding: 16px 32px;
  font-size: 1rem;
}

/* ===== Sections ===== */
.section {
  padding: 32px 0;
}

.section--alt {
  margin: 0 -16px;
  padding: 32px 16px;
  background: linear-gradient(180deg, var(--black-soft) 0%, var(--black) 100%);
  border-top: 1px solid var(--black-border);
  border-bottom: 1px solid var(--black-border);
}

.section__head {
  margin-bottom: 16px;
}

.section__tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--black);
  background: var(--yellow);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 10px;
}

.section__title {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--text);
}

.section__intro {
  color: var(--text-muted);
  margin-bottom: 20px;
  font-size: 0.93rem;
}

/* ===== Step cards ===== */
.steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.step-card {
  position: relative;
  background: var(--black-card);
  border: 1px solid var(--black-border);
  border-radius: var(--radius);
  padding: 20px 18px 20px 18px;
  overflow: hidden;
}

.step-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--yellow), var(--yellow-dark));
  border-radius: 4px 0 0 4px;
}

.step-card--highlight {
  border-color: rgba(255, 208, 0, 0.4);
  background: linear-gradient(135deg, rgba(255, 208, 0, 0.08) 0%, var(--black-card) 60%);
  box-shadow: 0 0 30px rgba(255, 208, 0, 0.1);
}

.step-card__num {
  font-size: 2rem;
  font-weight: 800;
  color: rgba(255, 208, 0, 0.2);
  line-height: 1;
  margin-bottom: 6px;
}

.step-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--yellow-bright);
}

.step-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.step-card p:last-child {
  margin-bottom: 0;
}

.step-card__tip {
  margin-top: 12px !important;
  padding: 10px 12px;
  background: rgba(255, 208, 0, 0.1);
  border-radius: var(--radius-sm);
  color: var(--yellow-bright) !important;
  font-size: 0.85rem !important;
  border-left: 3px solid var(--yellow);
}

/* ===== Lists ===== */
.chip-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.chip-list li {
  padding: 6px 12px;
  background: var(--black-soft);
  border: 1px solid var(--black-border);
  border-radius: 20px;
  font-size: 0.82rem;
  color: var(--text);
}

.bullet-list {
  list-style: none;
  margin: 10px 0;
}

.bullet-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 6px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.bullet-list li::before {
  content: '●';
  position: absolute;
  left: 0;
  color: var(--yellow);
  font-size: 0.6rem;
  top: 0.35em;
}

.bullet-list--yellow li::before {
  color: var(--yellow-bright);
}

.numbered-list {
  list-style: none;
  counter-reset: step;
  margin: 12px 0;
}

.numbered-list li {
  position: relative;
  padding-left: 36px;
  margin-bottom: 12px;
  color: var(--text-muted);
  font-size: 0.9rem;
  counter-increment: step;
}

.numbered-list li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--yellow);
  color: var(--black);
  font-size: 0.75rem;
  font-weight: 800;
  border-radius: 8px;
}

/* ===== Info & alert cards ===== */
.info-card,
.alert-card,
.tip-card {
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 14px;
}

.info-card {
  background: var(--black-card);
  border: 1px solid var(--black-border);
}

.info-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.info-card p:last-child {
  margin-bottom: 0;
}

.info-card--soft {
  background: rgba(255, 208, 0, 0.05);
  border-color: rgba(255, 208, 0, 0.2);
}

.alert-card {
  display: flex;
  gap: 12px;
  background: rgba(255, 68, 68, 0.08);
  border: 1px solid rgba(255, 68, 68, 0.25);
}

.alert-card__icon {
  flex-shrink: 0;
  font-size: 1.25rem;
}

.alert-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.tip-card {
  background: var(--black-card);
  border: 1px dashed var(--yellow-dark);
}

.tip-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* ===== Block ===== */
.block {
  margin-bottom: 22px;
}

.block__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.block__note {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 8px;
}

/* ===== Error list ===== */
.error-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.error-item {
  display: flex;
  gap: 12px;
  padding: 16px;
  background: var(--black-card);
  border: 1px solid var(--black-border);
  border-radius: var(--radius);
}

.error-item__icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 68, 68, 0.15);
  color: var(--danger);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
}

.error-item div {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.error-item strong {
  display: block;
  color: var(--text);
  margin-bottom: 4px;
}

/* ===== FAQ ===== */
.faq {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq__item {
  background: var(--black-card);
  border: 1px solid var(--black-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq__item[open] {
  border-color: rgba(255, 208, 0, 0.4);
}

.faq__item summary {
  padding: 16px 44px 16px 18px;
  font-weight: 600;
  font-size: 0.93rem;
  cursor: pointer;
  list-style: none;
  position: relative;
  color: var(--text);
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: '+';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--yellow);
  color: var(--black);
  font-size: 1.1rem;
  font-weight: 800;
  border-radius: 8px;
  transition: transform 0.25s;
}

.faq__item[open] summary::after {
  content: '−';
  transform: translateY(-50%) rotate(180deg);
}

.faq__item p {
  padding: 0 18px 16px;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* ===== Footer ===== */
.footer {
  text-align: center;
  padding: 24px 16px 16px;
  max-width: 480px;
  margin: 0 auto;
}

.footer__domain {
  font-weight: 800;
  color: var(--yellow);
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.footer__note {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ===== Bottom bar ===== */
.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: calc(var(--bottom-bar-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: rgba(10, 10, 10, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--black-border);
  max-width: 480px;
  margin: 0 auto;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
}

.bottom-bar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 12px;
  color: var(--text-muted);
  font-size: 0.65rem;
  font-weight: 600;
  transition: color 0.2s;
  border-radius: 10px;
}

.bottom-bar__item--active,
.bottom-bar__item:hover {
  color: var(--yellow);
}

.bottom-bar__icon {
  font-size: 1.1rem;
  line-height: 1;
}

/* ===== Animations ===== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero,
.step-card,
.section__head {
  animation: fadeUp 0.5s ease backwards;
}

.step-card:nth-child(1) { animation-delay: 0.05s; }
.step-card:nth-child(2) { animation-delay: 0.1s; }
.step-card:nth-child(3) { animation-delay: 0.15s; }
.step-card:nth-child(4) { animation-delay: 0.2s; }
.step-card:nth-child(5) { animation-delay: 0.25s; }
.step-card:nth-child(6) { animation-delay: 0.3s; }

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero, .step-card, .section__head { animation: none; }
}

/* ===== Slightly wider screens ===== */
@media (min-width: 481px) {
  .header__inner,
  .nav,
  main,
  .footer,
  .bottom-bar {
    max-width: 520px;
  }
}
