:root {
  color-scheme: light dark;
  --blue: #0071e3;
  --green: #00c896;
  --bg: #f8fafc;
  --fg: #0f172a;
  --muted: #55606e;
  --card-bg: #ffffff;
  --border: rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* Background blobs */
.bg-blobs {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
}

.blob-blue {
  width: 560px;
  height: 560px;
  top: -180px;
  left: -140px;
  background: var(--blue);
}

.blob-green {
  width: 620px;
  height: 620px;
  top: 220px;
  right: -220px;
  background: var(--green);
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  background: rgba(248, 250, 252, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.logo-mark {
  display: inline-block;
  width: 30px;
  height: 30px;
  border-radius: 9px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-cta {
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--green));
  padding: 9px 20px;
  border-radius: 980px;
  font-size: 14px;
  font-weight: 600;
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.dropdown-toggle {
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 980px;
  padding: 9px 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: box-shadow 0.2s ease;
}

.dropdown-toggle:hover,
.dropdown-toggle:focus-visible {
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1);
}

.chevron {
  font-size: 10px;
  transition: transform 0.2s ease;
}

.nav-dropdown:hover .chevron,
.nav-dropdown:focus-within .chevron,
.nav-dropdown.open .chevron {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 280px;
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16);
  border: 1px solid var(--border);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 10;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu,
.nav-dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--fg);
}

.dropdown-menu a:hover {
  background: rgba(15, 23, 42, 0.05);
}

.dropdown-icon {
  font-size: 22px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.dropdown-title {
  display: block;
  font-size: 14px;
  font-weight: 600;
}

.dropdown-domain {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 40px;
  padding: 110px 40px 100px;
  max-width: 1180px;
  margin: 0 auto;
}

.hero-text {
  text-align: left;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 20px;
  color: var(--fg);
}

.hero .subtitle {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--muted);
  font-weight: 400;
  line-height: 1.55;
  margin: 0 0 32px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: 8px;
  transition: background 0.2s ease;
}

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

.btn-primary:hover {
  background: #0b63c5;
}

.btn-link {
  color: var(--blue);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
}

.btn-link:hover {
  text-decoration: underline;
}

/* Hero visual */
.hero-visual {
  position: relative;
  height: 320px;
}

.hero-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px 22px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
}

.hero-card-1 {
  top: 20px;
  left: 20px;
}

.hero-card-2 {
  bottom: 30px;
  right: 0;
}

.hero-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  font-size: 24px;
  object-fit: cover;
  flex-shrink: 0;
}

.hero-card-label {
  font-weight: 600;
  font-size: 15px;
  color: var(--fg);
}

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 90px 24px 60px;
  }

  .hero-text {
    text-align: center;
  }

  .hero .subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    height: 220px;
  }
}

/* Products */
.products {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px 120px;
  text-align: center;
}

.products h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 6px 0 48px;
  color: var(--fg);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 32px;
  text-decoration: none;
  color: var(--fg);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  text-align: left;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1);
}

.product-icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
}

.icon-games {
  background: linear-gradient(135deg, #0071e3, #4facfe);
}

.icon-counter {
  background: linear-gradient(135deg, #00c896, #43e97b);
}

.product-info h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
}

.product-info p {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 12px;
  line-height: 1.5;
}

.product-link {
  color: var(--blue);
  font-size: 14px;
  font-weight: 600;
}

/* Footer */
footer {
  text-align: center;
  padding: 40px 20px;
  border-top: 1px solid var(--border);
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 10px;
  color: var(--fg);
}

footer p {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}
