*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:         #2563EB;
  --blue-dark:    #1D4ED8;
  --blue-light:   #DBEAFE;
  --blue-lighter: #EFF6FF;
  --bg:           #FFFFFF;
  --surface:      #F8FAFC;
  --border:       #E2E8F0;
  --text:         #0F172A;
  --text-2:       #334155;
  --text-muted:   #64748B;
  --shadow:       0 1px 3px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
  --shadow-md:    0 4px 20px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04);
  --shadow-blue:  0 8px 30px rgba(37,99,235,0.22);
  --r:            12px;
  --r-sm:         8px;
  --r-lg:         20px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 32px;
  transition: box-shadow 0.3s;
}

.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-box {
  background: var(--blue);
  border-radius: 9px;
  padding: 7px 13px;
  line-height: 1;
}

.logo-box span {
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.logo-word {
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3.5px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

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

.nav-cta {
  background: var(--blue) !important;
  color: #fff !important;
  padding: 8px 18px;
  border-radius: var(--r-sm);
}

.nav-cta:hover {
  background: var(--blue-dark) !important;
  color: #fff !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.hamburger span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  display: block;
  transition: all 0.3s;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 12px 32px 20px;
  gap: 4px;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.mobile-menu a:last-child { border-bottom: none; }

@media (max-width: 768px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { padding: 12px 20px 20px; }
}

/* ── HERO ────────────────────────────────────── */
#hero {
  padding: 108px 32px 88px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 80% 55% at 50% -10%, rgba(37,99,235,0.07) 0%, transparent 70%);
}

.hero-dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(37,99,235,0.13) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse 65% 60% at 50% 50%, black 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 65% 60% at 50% 50%, black 25%, transparent 75%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--blue-lighter);
  color: var(--blue);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 32px;
  border: 1px solid var(--blue-light);
  animation: fadeDown 0.6s ease both;
}

.hero-badge svg { flex-shrink: 0; }

h1 {
  font-size: clamp(2.4rem, 5.5vw, 3.9rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.04em;
  color: var(--text);
  margin-bottom: 22px;
  animation: fadeUp 0.7s 0.1s ease both;
}

h1 em {
  font-style: normal;
  color: var(--blue);
}

.hero-desc {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 44px;
  line-height: 1.75;
  font-weight: 400;
  animation: fadeUp 0.7s 0.2s ease both;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.7s 0.3s ease both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--r-sm);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.22s;
  cursor: pointer;
  border: none;
  line-height: 1;
}

.btn-primary { background: var(--blue); color: #fff; }

.btn-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-blue);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: #fff;
  border-color: #CBD5E1;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

@media (max-width: 640px) {
  #hero { padding: 72px 20px 64px; }
  .btn { padding: 12px 20px; font-size: 14px; }
}

/* ── STATS ───────────────────────────────────── */
#stats {
  padding: 52px 32px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-row {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 72px;
  flex-wrap: wrap;
}

.stat { text-align: center; }

.stat-num {
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1;
}

.stat-lbl {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 6px;
}

@media (max-width: 640px) {
  #stats { padding: 40px 20px; }
  .stats-row { gap: 36px; }
  .stat-num { font-size: 1.7rem; }
}

/* ── SECTION SHARED ─────────────────────────── */
section { padding: 88px 32px; }

.section-inner { max-width: 1160px; margin: 0 auto; }

.section-eyebrow {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--text);
  margin-bottom: 14px;
  line-height: 1.2;
}

.section-sub {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 460px;
  line-height: 1.75;
}

.section-head { margin-bottom: 52px; }

@media (max-width: 640px) {
  section { padding: 64px 20px; }
  .section-head { margin-bottom: 36px; }
}

/* ── PRODUCTS ────────────────────────────────── */
#products { background: var(--surface); }

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .products-grid { grid-template-columns: 1fr; }
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}

/* The ::before overlay must never block clicks on child elements */
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, rgba(37,99,235,0.04) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.card:hover {
  border-color: rgba(37,99,235,0.28);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card:hover::before { opacity: 1; }

.card-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
}

.card-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.card-meta { flex: 1; min-width: 0; }

.card-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-category {
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 500;
}

.card-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.68;
  flex: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 2px;
}

.tags { display: flex; gap: 6px; flex-wrap: wrap; }

.tag {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  letter-spacing: 0.2px;
}

.tag-free   { background: #DCFCE7; color: #15803D; }
.tag-paid   { background: #FEF9C3; color: #A16207; }
.tag-game   { background: #F3E8FF; color: #7E22CE; }
.tag-dev    { background: var(--blue-lighter); color: var(--blue); }
.tag-plugin { background: #FFE4E6; color: #BE123C; }

.card-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: var(--r-sm);
  background: var(--blue-lighter);
  transition: background 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.card-link:hover { background: var(--blue-light); }

.card-link.disabled {
  color: var(--text-muted);
  background: var(--surface);
  cursor: default;
  pointer-events: none;
}

.arr { display: inline-block; transition: transform 0.2s; }
.card:hover .arr { transform: translateX(3px); }

/* ── SUPPORT ─────────────────────────────────── */
#support { background: var(--text); }

#support .section-eyebrow { color: rgba(255,255,255,0.42); }
#support .section-title   { color: #fff; }
#support .section-sub     { color: rgba(255,255,255,0.55); }

.support-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

@media (max-width: 768px) {
  .support-layout { grid-template-columns: 1fr; gap: 40px; }
}

.support-cards { display: flex; flex-direction: column; gap: 16px; }

.support-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r);
  text-decoration: none;
  color: #fff;
  transition: background 0.22s, transform 0.22s, border-color 0.22s;
}

.support-card:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.18);
  transform: translateY(-2px);
}

.support-ico {
  width: 50px;
  height: 50px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.support-info { flex: 1; }

.support-name {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 3px;
}

.support-url {
  font-size: 12.5px;
  color: rgba(255,255,255,0.45);
}

.support-arr { color: rgba(255,255,255,0.3); font-size: 18px; }

/* ── LINKS SECTION ────────────────────────────── */
#links { padding: 64px 32px; }

.links-row {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.22s;
}

.link-card:hover {
  border-color: rgba(37,99,235,0.3);
  background: var(--blue-lighter);
  color: var(--blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.link-card svg { flex-shrink: 0; }

@media (max-width: 640px) {
  #links { padding: 48px 20px; }
  .links-row { gap: 12px; }
  .link-card { padding: 14px 18px; }
}

/* ── FOOTER ──────────────────────────────────── */
footer {
  background: var(--text);
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 36px 32px;
}

.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

footer .logo-word { color: rgba(255,255,255,0.55); }

.footer-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.footer-links a {
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: color 0.2s;
}

.footer-links a:hover { color: rgba(255,255,255,0.9); }

.footer-copy {
  color: rgba(255,255,255,0.28);
  font-size: 12.5px;
}

@media (max-width: 640px) {
  footer { padding: 32px 20px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-links { gap: 18px; flex-wrap: wrap; }
}

/* ── ANIMATIONS ──────────────────────────────── */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
