@import url("https://fonts.googleapis.com/css2?family=Fraunces:wght@600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap");

:root {
  --bg: #0b0f16;
  --bg-2: #111725;
  --card: rgba(18, 24, 36, 0.92);
  --text: #f2f5fb;
  --muted: #b4bdd1;
  --border: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.2);
  --accent: #2cc5b3;
  --accent-2: #f0c06a;
  --shadow: 0 18px 45px rgba(5, 10, 18, 0.45);
}

html[data-theme="light"] {
  --bg: #f6f4ef;
  --bg-2: #fdfbf6;
  --card: #ffffff;
  --text: #1b1f2a;
  --muted: #566075;
  --border: rgba(27, 31, 42, 0.12);
  --border-strong: rgba(27, 31, 42, 0.2);
  --accent: #1f9d8d;
  --accent-2: #e8b563;
  --shadow: 0 18px 45px rgba(18, 25, 38, 0.12);
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", Tahoma, sans-serif;
  color: var(--text);
  background: radial-gradient(1100px 500px at 85% -10%, rgba(44, 197, 179, 0.18), transparent 60%),
    radial-gradient(900px 420px at 10% -5%, rgba(240, 192, 106, 0.18), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
  line-height: 1.6;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.06;
  pointer-events: none;
  z-index: -1;
}

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

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 22px;
}

/* ===== NAVBAR ===== */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  position: sticky;
  top: 0;
  z-index: 1200;
  background: rgba(8, 12, 18, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  box-shadow: 0 16px 34px rgba(5, 10, 18, 0.55);
  backdrop-filter: blur(18px);
}

html[data-theme="light"] .nav {
  background: rgba(244, 242, 238, 0.92);
  border: 1px solid rgba(27, 31, 42, 0.14);
  box-shadow: 0 16px 34px rgba(18, 25, 38, 0.12);
}

.nav-left,
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.logo {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #0a1418;
  background: linear-gradient(145deg, rgba(44, 197, 179, 0.45), rgba(240, 192, 106, 0.65));
  border: 1px solid rgba(44, 197, 179, 0.45);
}

.badge {
  font-size: 0.75rem;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
}

html[data-theme="light"] .badge {
  background: rgba(255, 255, 255, 0.7);
}

.navlinks {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  margin-right: 6px;
}

.navlinks a {
  padding: 8px 14px;
  border-radius: 12px;
  color: var(--muted);
  transition: all 0.2s ease;
  font-weight: 500;
}

.navlinks a:hover {
  background: rgba(44, 197, 179, 0.18);
  color: var(--text);
}

.navlinks a:focus-visible,
.btn:focus-visible,
.burger:focus-visible {
  outline: 2px solid rgba(31, 157, 141, 0.45);
  outline-offset: 2px;
}
/* ===== BURGER MENU ===== */
.burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(44, 197, 179, 0.08);
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.burger:hover {
  background: rgba(44, 197, 179, 0.16);
}

.burger span {
  width: 18px;
  height: 2px;
  background: var(--text);
  margin: 0 auto;
  transition: all 0.25s ease;
}

/* ===== MOBILE DRAWER ===== */
.mobile-drawer {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 21, 0.96);
  backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 110px 22px 30px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 1100;
  overflow-y: auto;
}

.mobile-drawer a {
  font-size: 1.15rem;
  padding: 14px 18px;
  border-radius: 14px;
  color: var(--text);
  transition: background 0.2s ease;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-drawer a:hover {
  background: rgba(44, 197, 179, 0.16);
}

.drawer-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

html[data-theme="light"] .mobile-drawer {
  background: rgba(253, 251, 246, 0.96);
}

html[data-theme="light"] .mobile-drawer a {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(27, 31, 42, 0.08);
}

body.menu-open {
  overflow: hidden;
}

body.menu-open .mobile-drawer {
  transform: translateX(0);
}

body.menu-open .burger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.menu-open .burger span:nth-child(2) {
  opacity: 0;
}

body.menu-open .burger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== HERO ===== */
.hero {
  padding: 52px 0 26px;
  max-width: 900px;
}

h1, h2, h3 {
  font-family: "Fraunces", "Times New Roman", serif;
  color: var(--text);
}

h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

p.lead {
  max-width: 70ch;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.08rem);
  margin: 0 0 22px;
}

.lead.compact {
  font-size: 0.98rem;
}

/* ===== BUTTONS ===== */
.cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 18px 0 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: transform 0.05s ease, background 0.15s ease, border 0.15s ease;
  font-weight: 600;
  font-size: 0.95rem;
}

.btn:hover {
  background: rgba(44, 197, 179, 0.14);
  border-color: rgba(44, 197, 179, 0.4);
}

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

.btn.primary {
  background: linear-gradient(145deg, rgba(44, 197, 179, 0.95), rgba(28, 145, 133, 0.95));
  border-color: rgba(44, 197, 179, 0.45);
  color: #051a18;
  font-weight: 700;
}

.btn.primary:hover {
  filter: brightness(1.03);
}

.btn-login {
  background: rgba(255, 255, 255, 0.06);
}

html[data-theme="light"] .btn {
  background: rgba(255, 255, 255, 0.82);
}

html[data-theme="light"] .btn-login {
  background: rgba(27, 31, 42, 0.04);
}

.btn.toggle {
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.btn.toggle .icon {
  width: 18px;
  height: 18px;
  display: none;
}

html[data-theme="light"] .btn.toggle .icon-sun {
  display: inline-flex;
}

html[data-theme="light"] .btn.toggle .icon-moon {
  display: none;
}

html[data-theme="dark"] .btn.toggle .icon-sun {
  display: none;
}

html[data-theme="dark"] .btn.toggle .icon-moon {
  display: inline-flex;
}

/* ===== GRID & CARDS ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin: 26px 0;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  transition: transform 0.2s ease, border 0.2s ease;
  box-shadow: 0 10px 24px rgba(5, 10, 18, 0.22);
}

html[data-theme="light"] .card {
  box-shadow: 0 10px 24px rgba(18, 25, 38, 0.08);
}

.card:hover {
  border-color: rgba(31, 157, 141, 0.35);
  transform: translateY(-2px);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

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

.card .link {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
}

/* ===== SECTIONS ===== */
.section {
  margin: 32px 0;
}

.section h2 {
  margin: 0 0 12px;
  font-size: clamp(1.3rem, 3vw, 1.6rem);
}

.section ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.section li {
  margin: 8px 0;
}

.notice {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(44, 197, 179, 0.14);
  border: 1px solid rgba(44, 197, 179, 0.25);
  color: var(--muted);
  font-size: 0.95rem;
}

hr.sep {
  border: none;
  border-top: 1px solid var(--border);
  margin: 24px 0;
}

.ad {
  min-height: 110px;
  background: rgba(14, 20, 30, 0.92);
  border: 1px dashed rgba(44, 197, 179, 0.35);
  border-radius: 18px;
  padding: 18px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.ad .ad-label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(242, 245, 251, 0.55);
}

html[data-theme="light"] .ad {
  background: rgba(255, 255, 255, 0.92);
  border: 1px dashed rgba(31, 157, 141, 0.35);
}

html[data-theme="light"] .ad .ad-label {
  color: rgba(27, 31, 42, 0.55);
}

.ad .ad-slot {
  display: flex;
  justify-content: center;
  width: 100%;
  overflow: hidden;
}

.ad .ad-slot iframe {
  width: 100% !important;
  height: 100% !important;
  border: 0;
}

.ad.ad-728x90 {
  min-height: 90px;
  max-width: 728px;
}

.ad.ad-300x250 {
  min-height: 250px;
  max-width: 300px;
}

.ad.ad-728x90 .ad-slot {
  max-width: 728px;
  width: 100%;
  aspect-ratio: 728 / 90;
}

.ad.ad-300x250 .ad-slot {
  max-width: 300px;
  width: 100%;
  aspect-ratio: 300 / 250;
}

.donation-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.donation-panel h2 {
  margin-top: 0;
}

.donation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.donation-item {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
}

html[data-theme="light"] .donation-item {
  background: rgba(255, 255, 255, 0.9);
}

.donation-item .label {
  font-weight: 700;
  margin-bottom: 6px;
}

.crypto-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.crypto-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #061114;
  background: linear-gradient(145deg, rgba(44, 197, 179, 0.85), rgba(240, 192, 106, 0.85));
  border: 1px solid rgba(44, 197, 179, 0.45);
}

html[data-theme="light"] .crypto-icon {
  color: #0b1619;
}

/* ===== FOOTER ===== */
small, .small {
  color: var(--muted);
}

footer {
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.95rem;
}

.footerlinks {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.footerlinks a {
  color: var(--muted);
  transition: color 0.2s ease;
}

.footerlinks a:hover {
  color: var(--text);
}

/* ===== PAGE ELEMENTS ===== */
.page-title {
  margin: 28px 0 12px;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  letter-spacing: -0.02em;
}

.kv {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 10px;
  margin: 14px 0;
}

.kv div {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
}

.kv .k {
  color: var(--muted);
  font-weight: 700;
}

code.inline {
  background: rgba(0, 0, 0, 0.4);
  padding: 3px 7px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 0.9em;
}

html[data-theme="light"] code.inline {
  background: rgba(27, 31, 42, 0.05);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 980px) {
  .container {
    padding: 18px;
  }

  .nav {
    padding: 12px 14px;
  }

  .navlinks {
    display: none;
  }

  .burger {
    display: flex;
  }

  .hero {
    padding: 36px 0 18px;
  }

  .cta {
    flex-direction: column;
  }

  .cta .btn,
  .drawer-footer .btn {
    width: 100%;
  }

  .nav-right .btn {
    padding: 10px 14px;
  }

  .kv {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 981px) {
  .mobile-drawer {
    display: none !important;
  }
}

@media (max-width: 520px) {
  .container {
    padding: 14px;
  }

  .badge {
    display: none;
  }

  .mobile-drawer {
    padding: 96px 18px 24px;
  }
}

@media (max-width: 760px) {
  .ad.ad-728x90 {
    max-width: 100%;
  }

  .ad.ad-728x90 .ad-slot {
    overflow-x: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
