/* ==========================================================================
   Come App — comeapkdownloadforandroid.com
   ========================================================================== */

:root {
  --bg-0: #0a0e17;
  --bg-1: #0f1420;
  --bg-2: #161d2e;
  --bg-3: #1e2740;
  --border: #2a3450;
  --text-0: #f5f7fb;
  --text-1: #c3cbdd;
  --text-2: #8891a8;
  --accent: #ffb020;
  --accent-2: #ff5f6d;
  --accent-grad: linear-gradient(135deg, #ffb020 0%, #ff8a3d 50%, #ff5f6d 100%);
  --brand-grad: linear-gradient(135deg, #7c5cff 0%, #ff5f9d 100%);
  --success: #3ddc97;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-lg: 0 20px 50px rgba(0,0,0,0.45);
  --shadow-md: 0 10px 26px rgba(0,0,0,0.35);
  --max-width: 1200px;
  font-size: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: radial-gradient(1200px 600px at 15% -10%, #1c1440 0%, transparent 60%),
              radial-gradient(1000px 600px at 110% 10%, #14243a 0%, transparent 55%),
              var(--bg-0);
  color: var(--text-1);
  font-family: "Segoe UI", Roboto, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(255,176,32,0.1);
  border: 1px solid rgba(255,176,32,0.3);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

h1, h2, h3, h4 {
  color: var(--text-0);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 16px;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.2rem; margin-bottom: 8px; }

p { margin: 0 0 16px; color: var(--text-1); }

.section-head {
  max-width: 720px;
  margin: 0 auto 44px;
  text-align: center;
}
.section-head p { color: var(--text-2); font-size: 1.05rem; }

section { padding: 88px 0; }
section.tight { padding: 56px 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent-grad);
  color: #1a1200;
  box-shadow: 0 10px 30px rgba(255,138,61,0.35);
}
.btn-primary:hover { filter: brightness(1.08); box-shadow: 0 14px 34px rgba(255,138,61,0.45); }

.btn-ghost {
  background: rgba(255,255,255,0.04);
  color: var(--text-0);
  border-color: var(--border);
}
.btn-ghost:hover { background: rgba(255,255,255,0.09); }

.btn-block { width: 100%; }
.btn-sm { padding: 10px 18px; font-size: 0.9rem; }

.btn .material-version {
  font-weight: 500;
  opacity: 0.75;
  font-size: 0.82em;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,14,23,0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text-0);
}
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.brand small { display: block; font-weight: 500; font-size: 0.7rem; color: var(--text-2); }

.main-nav ul { display: flex; gap: 28px; align-items: center; }
.main-nav a {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text-1);
  transition: color 0.15s ease;
}
.main-nav a:hover { color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 44px;
  height: 44px;
  color: var(--text-0);
  font-size: 1.3rem;
}

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 40px;
  position: relative;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 30px;
}
.hero-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--text-1);
  font-weight: 600;
}
.hero-badge strong { color: var(--text-0); }
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 8px var(--success); }

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }

.hero-meta {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: var(--text-2);
}
.hero-meta b { color: var(--text-0); display: block; font-size: 1.15rem; }

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.phone-frame {
  position: relative;
  width: min(280px, 70vw);
  border-radius: 34px;
  border: 6px solid #1a2135;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,0.04);
  overflow: hidden;
  background: #000;
}
.phone-frame img { width: 100%; height: auto; }
.hero-visual::before {
  content: "";
  position: absolute;
  inset: -60px;
  background: var(--brand-grad);
  filter: blur(90px);
  opacity: 0.35;
  z-index: -1;
}
.floating-chip {
  position: absolute;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  box-shadow: var(--shadow-md);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-0);
  display: flex;
  align-items: center;
  gap: 8px;
}
.chip-top { top: 6%; left: -6%; }
.chip-bottom { bottom: 10%; right: -8%; }

/* ---------- Trust strip ---------- */
.trust-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-1);
}
.trust-strip .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 30px 24px;
}
.trust-item { text-align: center; }
.trust-item .num { font-size: 1.8rem; font-weight: 800; color: var(--text-0); }
.trust-item .label { font-size: 0.85rem; color: var(--text-2); }

/* ---------- Feature grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}
.feature-card p { margin: 0; color: var(--text-2); font-size: 0.94rem; }

/* ---------- Games gallery ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 34px;
}
.filter-btn {
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text-1);
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
  transition: all 0.15s ease;
}
.filter-btn:hover { color: var(--text-0); border-color: var(--accent); }
.filter-btn.active {
  background: var(--accent-grad);
  color: #1a1200;
  border-color: transparent;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}
.game-card {
  margin: 0;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.game-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.game-card .thumb {
  aspect-ratio: 211 / 260;
  background: var(--bg-3);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.game-card img { width: 100%; height: 100%; object-fit: contain; }
.game-card figcaption { padding: 10px 12px 14px; }
.game-name { display: block; font-size: 0.86rem; font-weight: 700; color: var(--text-0); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.game-tag { display: block; font-size: 0.72rem; color: var(--text-2); margin-top: 2px; }

.gallery-cta { text-align: center; margin-top: 40px; }

/* ---------- Screenshots ---------- */
.shot-strip {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 6px 6px 20px;
  scroll-snap-type: x mandatory;
}
.shot-strip::-webkit-scrollbar { height: 8px; }
.shot-strip::-webkit-scrollbar-thumb { background: var(--border); border-radius: 8px; }
.shot-strip img {
  scroll-snap-align: start;
  flex: 0 0 auto;
  width: 200px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  cursor: zoom-in;
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: step;
}
.step {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  position: relative;
}
.step .step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-grad);
  color: #1a1200;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.step p { font-size: 0.92rem; color: var(--text-2); margin: 0; }
.step-note {
  margin-top: 26px;
  font-size: 0.85rem;
  color: var(--text-2);
  background: var(--bg-2);
  border: 1px dashed var(--border);
  padding: 14px 18px;
  border-radius: var(--radius-md);
}

/* ---------- Community ---------- */
.community-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.community-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.community-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, #2aa8ea, #229ed9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}
.community-card h3 { margin-bottom: 4px; }
.community-card p { margin: 0 0 14px; font-size: 0.9rem; color: var(--text-2); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-q {
  width: 100%;
  background: none;
  border: none;
  color: var(--text-0);
  text-align: left;
  padding: 22px 4px;
  font-size: 1.02rem;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-q .icon { color: var(--accent); transition: transform 0.2s ease; font-size: 1.2rem; }
.faq-item.open .faq-q .icon { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  color: var(--text-2);
  font-size: 0.95rem;
}
.faq-a div { padding: 0 4px 22px; }
.faq-item.open .faq-a { max-height: 400px; }

/* ---------- Disclaimer ---------- */
.disclaimer {
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.disclaimer .container { padding: 40px 24px; }
.disclaimer h3 { font-size: 1rem; }
.disclaimer p { font-size: 0.85rem; color: var(--text-2); margin-bottom: 10px; }

/* ---------- Footer ---------- */
.site-footer { padding: 60px 0 30px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 40px;
}
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { font-size: 0.88rem; color: var(--text-2); }
.footer-col h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-2); margin-bottom: 16px; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 0.92rem; color: var(--text-1); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--text-2);
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5,7,12,0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img { max-height: 88vh; border-radius: var(--radius-md); }
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text-0);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1.2rem;
}

/* ---------- Simple pages (privacy/terms/etc.) ---------- */
.legal {
  max-width: 820px;
  margin: 0 auto;
  padding: 60px 24px 100px;
}
.legal h1 { margin-bottom: 6px; }
.legal .updated { color: var(--text-2); font-size: 0.85rem; margin-bottom: 36px; }
.legal h2 { font-size: 1.3rem; margin-top: 36px; }
.legal p, .legal li { color: var(--text-1); font-size: 0.96rem; }
.legal ul { list-style: disc; padding-left: 22px; }
.legal li { margin-bottom: 8px; }

/* ---------- 404 ---------- */
.error-page {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
}
.error-page .code {
  font-size: 6rem;
  font-weight: 900;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { order: -1; margin-bottom: 10px; }
  .phone-frame { width: 220px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trust-strip .container { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; align-items: center; justify-content: center; }
  .site-header.nav-open .main-nav {
    display: block;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--bg-1);
    border-bottom: 1px solid var(--border);
    padding: 10px 24px 24px;
  }
  .site-header.nav-open .main-nav ul { flex-direction: column; align-items: flex-start; gap: 4px; }
  .site-header.nav-open .main-nav a { display: block; padding: 12px 0; width: 100%; }
  .community-grid { grid-template-columns: 1fr; }
  .community-card { flex-direction: column; text-align: center; }
  .feature-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  section { padding: 60px 0; }
}
