:root {
  --bg: #0d1024;
  --bg-soft: #141a37;
  --text: #f4f5ff;
  --muted: #b8b9cc;
  --primary: #ff7a1a;
  --accent: #8b5cf6;
  --success: #2dd4bf;
  --card: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.14);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --header-bg: rgba(13, 16, 36, 0.72);
  --header-border: rgba(255, 255, 255, 0.08);
  --nav-hover: #ffffff;
  --theme-hover-border: rgba(255, 255, 255, 0.35);
  --badge-border: rgba(255, 255, 255, 0.2);
  --badge-bg: rgba(255, 255, 255, 0.06);
  --badge-text: #e8e8ff;
  --btn-secondary-bg: rgba(255, 255, 255, 0.06);
  --hero-card-grad-top: rgba(255, 255, 255, 0.09);
  --hero-card-grad-bottom: rgba(255, 255, 255, 0.03);
  --stat-bg: rgba(6, 10, 28, 0.55);
  --stat-border: rgba(255, 255, 255, 0.15);
  --rules-divider: rgba(255, 255, 255, 0.2);
  --chip-bg: rgba(255, 255, 255, 0.03);
}

:root[data-theme="light"] {
  --bg: #f4f7ff;
  --bg-soft: #ffffff;
  --text: #1a2142;
  --muted: #4f5a78;
  --card: rgba(255, 255, 255, 0.94);
  --border: rgba(39, 52, 89, 0.16);
  --shadow: 0 18px 40px rgba(24, 33, 61, 0.16);
  --header-bg: rgba(255, 255, 255, 0.88);
  --header-border: rgba(39, 52, 89, 0.12);
  --nav-hover: #1a2142;
  --theme-hover-border: rgba(39, 52, 89, 0.4);
  --badge-border: rgba(39, 52, 89, 0.18);
  --badge-bg: rgba(255, 255, 255, 0.95);
  --badge-text: #3a4669;
  --btn-secondary-bg: rgba(255, 255, 255, 0.96);
  --hero-card-grad-top: rgba(255, 255, 255, 0.98);
  --hero-card-grad-bottom: rgba(236, 243, 255, 0.9);
  --stat-bg: #eef3ff;
  --stat-border: rgba(39, 52, 89, 0.16);
  --rules-divider: rgba(39, 52, 89, 0.18);
  --chip-bg: rgba(236, 243, 255, 0.75);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

img {
  max-width: 100%;
  height: auto;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 5%, rgba(139, 92, 246, 0.35), transparent 34%),
    radial-gradient(circle at 90% 15%, rgba(255, 122, 26, 0.25), transparent 30%),
    radial-gradient(circle at 55% 80%, rgba(45, 212, 191, 0.18), transparent 35%),
    var(--bg);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 15;
  backdrop-filter: blur(12px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.55rem;
}

.logo {
  font-weight: 800;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.2rem;
}

.logo-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-links a:hover {
  color: var(--nav-hover);
}

.theme-btn {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  color: var(--text);
  padding: 0.5rem 0.9rem;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
  font-size: 0.9rem;
}

.theme-btn:hover {
  transform: translateY(-1px);
  border-color: var(--theme-hover-border);
}

main section {
  margin-top: 4.3rem;
}

.hero {
  margin-top: 3.2rem;
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--badge-border);
  background: var(--badge-bg);
  color: var(--badge-text);
  padding: 0.4rem 0.8rem;
  font-size: 0.82rem;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.08;
  margin-bottom: 1rem;
}

.hero p {
  color: var(--muted);
  max-width: 60ch;
  margin-bottom: 1.4rem;
  font-size: 1.05rem;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 12px;
  font-weight: 600;
  border: 1px solid transparent;
  padding: 0.72rem 1.05rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #1f1023;
  background: linear-gradient(135deg, #ffbe0b, var(--primary));
  box-shadow: 0 12px 24px rgba(255, 122, 26, 0.26);
}

.btn-secondary {
  color: var(--text);
  background: var(--btn-secondary-bg);
  border-color: var(--border);
}

.hero-card {
  position: relative;
  border-radius: 22px;
  border: 1px solid var(--border);
  background:
    linear-gradient(145deg, var(--hero-card-grad-top), var(--hero-card-grad-bottom)),
    var(--bg-soft);
  box-shadow: var(--shadow);
  padding: 1.2rem;
  min-height: 340px;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  right: -90px;
  top: -90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 122, 26, 0.38), transparent 70%);
}

.stat-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.8rem;
}

.stat {
  border-radius: 14px;
  border: 1px solid var(--stat-border);
  background: var(--stat-bg);
  padding: 0.9rem;
}

.stat strong {
  display: block;
  font-size: 1.4rem;
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.stat span {
  color: var(--muted);
  font-size: 0.9rem;
}

.section-title {
  font-size: clamp(1.4rem, 2vw, 2rem);
  margin-bottom: 0.35rem;
}

.section-sub {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.card {
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--card);
  backdrop-filter: blur(6px);
  padding: 1rem;
  box-shadow: var(--shadow);
}

.card h3 {
  margin-bottom: 0.6rem;
  font-size: 1.08rem;
}

.card p,
.card li {
  color: var(--muted);
}

.rules-list {
  list-style: none;
  display: grid;
  gap: 0.7rem;
  margin-top: 0.8rem;
}

.rules-list li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding-bottom: 0.7rem;
  border-bottom: 1px dashed var(--rules-divider);
}

.rules-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.dot {
  flex: 0 0 9px;
  height: 9px;
  border-radius: 50%;
  margin-top: 0.42rem;
  background: linear-gradient(135deg, #ffbe0b, var(--primary));
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.feature {
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 1rem;
}

.feature h4 {
  margin-bottom: 0.5rem;
}

.faq {
  display: grid;
  gap: 0.75rem;
}

details {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
  padding: 0.9rem 1rem;
}

summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

details p {
  color: var(--muted);
  margin-top: 0.6rem;
}

.developer {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1rem;
  align-items: center;
}

.avatar {
  width: 120px;
  aspect-ratio: 1;
  border-radius: 20px;
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 70% 20%, rgba(255, 190, 11, 0.6), transparent 40%),
    radial-gradient(circle at 20% 80%, rgba(139, 92, 246, 0.7), transparent 35%),
    #1e2246;
  display: grid;
  place-items: center;
  font-size: 2rem;
  box-shadow: var(--shadow);
}

.developer small {
  color: var(--muted);
}

.developer p {
  overflow-wrap: anywhere;
}

.dev-links {
  margin-top: 0.8rem;
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.chip {
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--chip-bg);
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.copy-note {
  color: var(--success);
  font-size: 0.82rem;
  min-height: 1em;
  margin-top: 0.45rem;
}

.footer {
  margin-top: 4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.2rem 0 2.2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  main section {
    margin-top: 3.6rem;
  }

  .hero {
    gap: 1.5rem;
  }
}

@media (max-width: 980px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .header-inner {
    min-height: 72px;
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 0.75rem;
    background: var(--card);
    box-shadow: var(--shadow);
  }

  .site-header.nav-open .nav-links {
    display: flex;
  }

  .site-header.nav-open .menu-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .site-header.nav-open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .site-header.nav-open .menu-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .nav-links a,
  .theme-btn {
    width: 100%;
    text-align: center;
    padding: 0.62rem 0.85rem;
    border-radius: 10px;
  }

  .hero {
    margin-top: 2.2rem;
    grid-template-columns: 1fr;
  }

  .hero-card {
    min-height: auto;
  }

  .developer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(1120px, 94%);
  }

  main section {
    margin-top: 2.8rem;
  }

  .header-inner {
    gap: 0.65rem;
  }

  .logo {
    font-size: 1rem;
  }

  .logo-icon {
    width: 24px;
    height: 24px;
  }

  .hero h1 {
    font-size: clamp(1.7rem, 8vw, 2.3rem);
  }

  .hero p {
    font-size: 0.98rem;
  }

  .cta {
    gap: 0.55rem;
  }

  .btn {
    flex: 1 1 100%;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .avatar {
    width: 96px;
  }
}

@media (max-width: 430px) {
  .badge {
    font-size: 0.75rem;
    padding: 0.32rem 0.58rem;
  }

  .section-sub {
    margin-bottom: 1rem;
  }

  .card,
  .feature,
  details {
    padding: 0.85rem;
  }

  .chip {
    width: 100%;
    text-align: center;
  }

  .copy-note {
    text-align: center;
  }
}

