/* brug.by — Belarus Ruby User Group. Simple one-page draft: dark graphite + ruby red. */

:root {
  --bg: #0b0c10;
  --bg-elev: #13151b;
  --bg-card: #15171e;
  --line: #262933;
  --text: #f2f2f5;
  --muted: #9a9eab;
  --ruby: #cc342d;
  --ruby-hover: #e0433b;
  --ruby-soft: rgba(204, 52, 45, 0.16);
  --ring: #ff6a5f;
  --radius: 14px;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Space Grotesk", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { font-family: var(--font-head); letter-spacing: -0.02em; line-height: 1.1; margin: 0; }
p { margin: 0; }
a { color: inherit; }

.wrap { width: min(1080px, 100% - 48px); margin-inline: auto; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 96px 0 72px;
  overflow: hidden;
  isolation: isolate;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.hero::before {
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(204, 52, 45, 0.38), transparent 70%),
    radial-gradient(35% 35% at 85% 80%, rgba(204, 52, 45, 0.14), transparent 70%),
    linear-gradient(180deg, #14161c 0%, var(--bg) 70%);
}
.hero::after {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent 100%);
          mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent 100%);
}

.hero-inner { max-width: 820px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border: 1px solid rgba(204, 52, 45, 0.45);
  border-radius: 999px;
  background: var(--ruby-soft);
  color: #ffb5af;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ruby);
  box-shadow: 0 0 0 4px rgba(204, 52, 45, 0.25);
}

.hero h1 {
  margin: 28px 0 20px;
  font-size: clamp(2.6rem, 7.5vw, 5.4rem);
  font-weight: 700;
  text-wrap: balance;
}
.hero h1 .accent {
  background: linear-gradient(90deg, #ff7a70, var(--ruby));
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}

.hero .lead {
  max-width: 600px;
  margin: 0 auto 36px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.4vw + 0.6rem, 1.3rem);
  line-height: 1.6;
  text-wrap: pretty;
}

.hero-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border: 0;
  border-radius: 999px;
  background: var(--ruby);
  color: #fff;
  font: 600 16px/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 30px -10px rgba(204, 52, 45, 0.7);
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn:hover { background: var(--ruby-hover); transform: translateY(-2px); box-shadow: 0 14px 34px -10px rgba(224, 67, 59, 0.8); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; transition: transform .2s ease; }
.btn:hover svg { transform: translateY(2px); }

.hero .note { margin-top: 28px; color: var(--muted); font-size: 14px; }

/* ---------- Features ---------- */
.features { padding: 24px 0 80px; }
.features h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 36px;
  text-align: center;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.card {
  position: relative;
  padding: 28px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--bg-card), var(--bg-elev));
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.card:hover {
  border-color: rgba(204, 52, 45, 0.55);
  transform: translateY(-4px);
  box-shadow: 0 24px 50px -30px rgba(204, 52, 45, 0.6);
}
.card .icon {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  margin-bottom: 20px;
  border-radius: 14px;
  background: var(--ruby-soft);
  color: #ff8a80;
}
.card .icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15.5px; }

/* ---------- Join (Telegram) ---------- */
.join { padding: 40px 0 96px; scroll-margin-top: 24px; }
.join-box {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  padding: 48px 36px;
  border: 1px solid rgba(204, 52, 45, 0.35);
  border-radius: 20px;
  background:
    radial-gradient(70% 90% at 50% 0%, rgba(204, 52, 45, 0.22), transparent 70%),
    var(--bg-elev);
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.9);
  text-align: center;
}
.join h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 12px; }
.join .intro { max-width: 520px; margin: 0 auto 30px; color: var(--muted); text-wrap: pretty; }

.btn-lg { padding: 18px 34px; font-size: 17px; }
.btn-lg svg { width: 22px; height: 22px; }
.btn-lg:hover svg { transform: none; }

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

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  color: var(--muted);
  font-size: 14px;
}
.footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer .brand { color: var(--text); font-family: var(--font-head); font-weight: 600; }
.footer .brand .gem { color: var(--ruby); }

/* ---------- Consent banner (Google Consent Mode) ---------- */
.consent {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 24px;
  max-width: 760px;
  margin-inline: auto;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(19, 21, 27, 0.96);
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.9);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}
.consent[hidden] { display: none; }
.consent p { flex: 1 1 280px; color: var(--muted); text-wrap: pretty; }
.consent-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.consent-btn {
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font: 600 14px/1.2 var(--font-body);
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
.consent-accept { background: var(--ruby); border-color: var(--ruby); color: #fff; }
.consent-accept:hover { background: var(--ruby-hover); border-color: var(--ruby-hover); }
.consent-decline:hover { border-color: var(--muted); }
.consent-btn:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(18px); animation: rise .7s cubic-bezier(.2, .7, .2, 1) forwards; }
.d1 { animation-delay: .1s; }
.d2 { animation-delay: .22s; }
.d3 { animation-delay: .34s; }
.d4 { animation-delay: .46s; }
.d5 { animation-delay: .6s; }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; animation: none; }
  .btn, .card, .btn svg { transition: none; }
  .btn:hover, .card:hover { transform: none; }
}

/* ---------- Small screens ---------- */
@media (max-width: 600px) {
  .wrap { width: min(1080px, 100% - 36px); }
  .hero { padding: 72px 0 56px; }
  .hero h1 { margin: 22px 0 16px; }
  .btn { width: 100%; }
  .join-box { padding: 36px 20px; }
  .footer .wrap { justify-content: center; text-align: center; }
  .consent { left: 12px; right: 12px; bottom: 12px; padding: 14px 16px; }
  .consent-actions { width: 100%; }
  .consent-btn { flex: 1 1 0; }
}
