/* SnowPal — сайт. Та сама зимова ніч, що й у застосунку. */
:root {
  --night-1: #050e22;
  --night-2: #0b1d3a;
  --night-3: #12305a;
  --ice: #2ee6d6;
  --ice-deep: #1ba8c9;
  --text: #ffffff;
  --muted: #9fb3c8;
  --card: rgba(23, 43, 74, 0.72);
  --stroke: rgba(255, 255, 255, 0.12);
  --sos: #ff3b30;
  --radius: 22px;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 30% at 45% 8%, rgba(46, 230, 214, 0.18), transparent 70%),
    radial-gradient(ellipse 60% 20% at 65% 18%, rgba(167, 139, 250, 0.12), transparent 70%),
    linear-gradient(180deg, var(--night-1), var(--night-2) 55%, var(--night-3));
  background-attachment: fixed;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* Гори внизу екрана */
body::after {
  content: "";
  position: fixed;
  inset: auto 0 0 0;
  height: 26vh;
  pointer-events: none;
  z-index: -1;
  background:
    linear-gradient(180deg, transparent, rgba(5, 14, 34, 0.0)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 300' preserveAspectRatio='none'%3E%3Cpath d='M0 300 L0 150 L170 40 L300 140 L470 10 L640 140 L820 50 L1000 160 L1200 90 L1200 300Z' fill='%23173459'/%3E%3Cpath d='M0 300 L0 210 L260 90 L480 200 L740 80 L1030 210 L1200 150 L1200 300Z' fill='%2324486f'/%3E%3Cpath d='M0 300 L0 250 L360 190 L660 250 L960 200 L1200 240 L1200 300Z' fill='%232f5b86'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
  opacity: 0.9;
}

a { color: var(--ice); }

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 20px 34vh;
}

header.top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
}
header.top img { width: 40px; height: 40px; border-radius: 10px; }
header.top a.brand { color: var(--text); text-decoration: none; font-weight: 700; font-size: 20px; }
header.top nav { margin-left: auto; display: flex; gap: 18px; font-size: 15px; }
header.top nav a { color: var(--muted); text-decoration: none; }
header.top nav a:hover { color: var(--text); }

.hero { text-align: center; padding: 24px 0 8px; }
.hero img.logo {
  width: 132px; height: 132px; border-radius: 30px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45), 0 0 0 1px var(--stroke);
}
h1 { font-size: clamp(36px, 7vw, 56px); line-height: 1.15; margin: 22px 0 10px; letter-spacing: -0.02em; }
h2 { font-size: 24px; margin: 40px 0 12px; }
h3 { font-size: 20px; margin: 22px 0 6px; }
.lead { font-size: 20px; color: var(--muted); max-width: 520px; margin: 0 auto; }
p, li { color: #d7e3f0; }
.muted { color: var(--muted); }

.card {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 22px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-top: 28px; }
.grid .card h3 { margin-top: 6px; }
.grid .card p { margin: 0; font-size: 15px; }
.emoji { font-size: 26px; }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 56px; padding: 0 28px; border-radius: 18px;
  background: var(--ice); color: #0a1628; font-weight: 700; font-size: 18px;
  text-decoration: none; border: none; cursor: pointer;
  box-shadow: 0 10px 30px rgba(46, 230, 214, 0.25);
}
.button.secondary { background: rgba(255, 255, 255, 0.08); color: var(--text); box-shadow: none; border: 1px solid var(--stroke); }
.button:active { transform: scale(0.98); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }

.badge {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: rgba(46, 230, 214, 0.12); color: var(--ice); font-weight: 600; font-size: 14px;
  border: 1px solid rgba(46, 230, 214, 0.3);
}

.code {
  font: 700 clamp(44px, 12vw, 72px) / 1 ui-rounded, "SF Pro Rounded", -apple-system, sans-serif;
  letter-spacing: 0.04em; color: var(--ice); margin: 18px 0 6px;
}

ol.steps { padding-left: 22px; }
ol.steps li { margin: 8px 0; }

.doc h2 { font-size: 21px; }
.doc li { margin: 6px 0; }

footer { margin-top: 56px; font-size: 14px; color: var(--muted); text-align: center; }
footer a { color: var(--muted); }

@media (prefers-reduced-motion: no-preference) {
  .hero img.logo { animation: float 6s ease-in-out infinite; }
  @keyframes float { 50% { transform: translateY(-6px); } }
}
