/* =============================
   iMons for Android - Web Page
   ============================= */

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

:root {
  --bg: #0c0f14;
  --bg-card: #151922;
  --bg-alt: #111520;
  --surface: #1c2230;
  --border: #252d3d;
  --text: #e4e8f0;
  --text-muted: #8a94a8;
  --accent: #34d399;
  --accent-dim: rgba(52, 211, 153, 0.12);
  --accent-hover: #5eead4;
  --radius: 12px;
  --radius-sm: 8px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Topbar ---- */

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  background: rgba(12, 15, 20, 0.75);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar-brand {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.topbar-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.topbar-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

.topbar-discord {
  display: inline-flex;
  align-items: center;
  color: var(--text-muted) !important;
  transition: color 0.2s;
}

.topbar-discord:hover {
  color: #5865F2 !important;
}

.topbar-discord svg {
  display: block;
}

.topbar-cta {
  background: var(--accent-dim);
  color: var(--accent) !important;
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 600 !important;
}

.topbar-cta:hover {
  background: rgba(52, 211, 153, 0.2);
  color: var(--accent-hover) !important;
}

/* ---- Language Switcher ---- */

.lang-switcher {
  display: flex;
  gap: 2px;
  background: var(--surface);
  border-radius: 999px;
  padding: 2px;
  border: 1px solid var(--border);
}

.lang-btn {
  background: transparent;
  color: var(--text-muted);
  border: none;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.02em;
}

.lang-btn:hover {
  color: var(--text);
}

.lang-btn.active {
  background: var(--accent);
  color: #0c0f14;
}

/* ---- Hero ---- */

.hero {
  position: relative;
  padding: 140px 0 80px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(52, 211, 153, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero-layout {
  display: flex;
  align-items: center;
  gap: 48px;
}

.hero-icon {
  width: 140px;
  height: 140px;
  border-radius: 28px;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px var(--border), 0 24px 64px rgba(0, 0, 0, 0.4);
}

.hero-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.hero-text h1 {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 28px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.hero-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.7;
}

/* ---- Buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: #0c0f14;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(52, 211, 153, 0.25);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1rem;
}

.btn-discord {
  background: #5865F2;
  color: #fff;
}

.btn-discord:hover {
  background: #4752C4;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(88, 101, 242, 0.3);
}

/* ---- Sections ---- */

.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 8px;
}

.section-heading {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-sub {
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 40px;
  line-height: 1.7;
}

/* ---- Feature Grid ---- */

.feat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 40px;
}

.feat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.2s, transform 0.2s;
}

.feat-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.feat-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  color: var(--accent);
}

.feat-icon svg {
  width: 20px;
  height: 20px;
}

.feat-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.feat-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---- Sources ---- */

.source-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.source-chip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  transition: border-color 0.2s;
}

.source-chip:hover {
  border-color: var(--accent);
}

/* ---- Extra Grid ---- */

.extra-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.extra-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.extra-card h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--accent);
}

.extra-card p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---- Download ---- */

.section-download {
  text-align: center;
  padding: 100px 0;
}

.download-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.download-content {
  max-width: 520px;
}

.download-content .section-sub {
  margin-left: auto;
  margin-right: auto;
}

.download-content .btn-primary {
  margin-top: 8px;
}

.download-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ---- Footer ---- */

.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}

.credits {
  margin-bottom: 40px;
}

.credits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.credit-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.credit-role {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.credit-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.credit-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 500;
  transition: color 0.2s;
}

.credit-link:hover {
  color: var(--text);
}

.credit-card-discord {
  border-color: rgba(88, 101, 242, 0.3);
}

.credit-card-discord:hover {
  border-color: #5865F2;
}

.credit-link-discord:hover {
  color: #5865F2;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.footer-brand {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.6;
}

/* ---- Responsive ---- */

@media (max-width: 640px) {
  .topbar-inner {
    padding: 0 16px;
  }

  .topbar-right {
    gap: 10px;
  }

  .topbar-links a:not(.topbar-cta) {
    display: none;
  }

  .topbar-links {
    gap: 0;
  }

  .lang-btn {
    padding: 4px 7px;
    font-size: 0.65rem;
  }

  .hero {
    padding: 100px 0 60px;
  }

  .hero-layout {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .hero-icon {
    width: 96px;
    height: 96px;
    border-radius: 22px;
  }

  .hero-text h1 {
    font-size: 2.25rem;
  }

  .hero-lead {
    font-size: 1rem;
  }

  .section-heading {
    font-size: 1.4rem;
  }

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

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

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}
