/*
Theme Name: 3F Games App India
Theme URI: https://example.com/
Author: ccwseo
Description: 3F Games App – India-facing official-style landing theme. Focus on 3F Games login, download APK and register guide.
Version: 1.1
Text Domain: threef-games
*/

/* ========== Base ========== */

:root {
  --bg: #050816;
  --bg-soft: #0c1024;
  --accent: #16a34a;
  --accent-soft: rgba(22,163,74,0.15);
  --accent-strong: #22c55e;
  --text-main: #e5e7eb;
  --text-soft: #9ca3af;
  --border-soft: #1f2933;
  --danger: #f97316;
  --radius-lg: 1.25rem;
  --shadow-soft: 0 18px 45px rgba(0,0,0,0.6);
}

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

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #111827 0, #020617 55%, #000 100%);
  color: var(--text-main);
  line-height: 1.6;
}

/* Layout wrapper */

.site-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ========== Header ========== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: linear-gradient(to bottom, rgba(2,6,23,0.95), rgba(2,6,23,0.85));
  border-bottom: 1px solid rgba(148,163,184,0.18);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

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

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 999px;
   /* 如果你想完全用图片，就可以去掉背景渐变和阴影 */
  /* background: conic-gradient(from 180deg at 50% 50%, #22c55e, #22c55e, #22c55e, #16a34a); */
  overflow: hidden;            /* 让图片自动裁成圆形 */
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 1px rgba(209,250,229,0.3), 0 12px 25px rgba(34,197,94,0.45);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;           /* 图片铺满圆形 */
}
  background: conic-gradient(from 180deg at 50% 50%, #22c55e, #22c55e, #22c55e, #16a34a);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 1px rgba(209,250,229,0.3), 0 12px 25px rgba(34,197,94,0.45);
  font-weight: 800;
  font-size: 15px;
  color: #022c22;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-text strong {
  font-size: 18px;
  letter-spacing: 0.04em;
  color: #e5e7eb;
}

.brand-text span {
  font-size: 11px;
  color: var(--text-soft);
}

/* Nav desktop */

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

.nav a {
  font-size: 14px;
  text-decoration: none;
  color: var(--text-soft);
  padding: 6px 0;
  position: relative;
}

.nav a:hover,
.nav a:focus {
  color: #f9fafb;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, var(--accent), var(--accent-strong));
  border-radius: 999px;
  transition: width .18s ease-out;
}

.nav a:hover::after,
.nav a:focus::after {
  width: 100%;
}

/* Header CTA */

.header-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chip-india {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(55,65,81,0.6);
  color: var(--text-soft);
}

.btn-xs {
  font-size: 12px;
  padding: 6px 11px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(to right, var(--accent), var(--accent-strong));
  color: #022c22;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

/* Mobile nav button */

.nav-toggle {
  display: none;
  border: none;
  background: none;
  color: var(--text-main);
  cursor: pointer;
  padding: 6px;
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
}

/* Mobile nav menu (默认隐藏，通过 body.nav-open 控制显示) */

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px 0 14px;
  background: #020617;
  border-top: 1px solid rgba(148,163,184,0.2);
}

.nav-mobile a {
  text-decoration: none;
  color: var(--text-soft);
  font-size: 14px;
  padding: 7px 0;
  display: block;
}

/* ========== Hero & Main ========== */

main {
  flex: 1;
}

.hero {
  padding: 32px 0 24px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

.hero-kicker {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent-strong);
  margin-bottom: 10px;
}

.hero-title {
  font-size: clamp(28px, 3vw, 34px);
  line-height: 1.1;
  margin: 0 0 12px;
}

.hero-title span {
  background: linear-gradient(to right, #bbf7d0, #22c55e);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: 15px;
  color: var(--text-soft);
  max-width: 540px;
  margin-bottom: 18px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.hero-badges span {
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(15,23,42,0.85);
  border: 1px solid rgba(148,163,184,0.5);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(to right, var(--accent), var(--accent-strong));
  color: #022c22;
  box-shadow: var(--shadow-soft);
}

.btn-outline {
  background: rgba(15,23,42,0.85);
  color: var(--text-main);
  border: 1px solid rgba(148,163,184,0.5);
}

.hero-note {
  font-size: 12px;
  color: var(--text-soft);
}

.hero-card {
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top, rgba(34,197,94,0.14), rgba(15,23,42,0.98));
  padding: 16px;
  border: 1px solid rgba(148,163,184,0.3);
  box-shadow: var(--shadow-soft);
}

.hero-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.badge-soft {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(15,23,42,0.9);
  border: 1px solid rgba(148,163,184,0.6);
  color: var(--text-soft);
}

.status-green {
  font-size: 11px;
  color: #bbf7d0;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.metric {
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(15,23,42,0.9);
  border: 1px solid rgba(55,65,81,0.9);
}

.metric-label {
  font-size: 11px;
  color: var(--text-soft);
}

.metric-value {
  font-size: 18px;
  font-weight: 700;
}

.hero-steps {
  font-size: 12px;
  color: var(--text-soft);
}

/* ========== Sections ========== */

.section {
  padding: 24px 0;
}

.section-title {
  font-size: 18px;
  margin-bottom: 6px;
}

.section-sub {
  font-size: 13px;
  color: var(--text-soft);
  margin-bottom: 14px;
}

/* Feature grid */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.card {
  background: var(--bg-soft);
  border-radius: 18px;
  border: 1px solid var(--border-soft);
  padding: 14px 14px 12px;
  box-shadow: 0 12px 34px rgba(0,0,0,0.5);
}

.card h3 {
  font-size: 14px;
  margin: 0 0 6px;
}

.card p {
  font-size: 13px;
  color: var(--text-soft);
  margin: 0 0 6px;
}

.card small {
  font-size: 11px;
  color: var(--accent-strong);
}

/* Steps */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}

.step {
  background: var(--bg-soft);
  border-radius: 16px;
  padding: 12px;
  border: 1px dashed rgba(148,163,184,0.5);
}

.step-number {
  font-size: 12px;
  color: var(--accent-strong);
  margin-bottom: 4px;
}

.step-title {
  font-size: 13px;
  margin-bottom: 4px;
}

/* FAQ */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  background: var(--bg-soft);
  border-radius: 14px;
  border: 1px solid var(--border-soft);
  padding: 10px;
}

.faq-q {
  font-size: 13px;
  font-weight: 600;
}

.faq-a {
  font-size: 13px;
  color: var(--text-soft);
}

/* Responsible */

.responsible-box {
  border-radius: 16px;
  border: 1px solid rgba(248,113,113,0.7);
  background: rgba(24,24,27,0.95);
  padding: 12px;
  font-size: 12px;
}

/* ========== Page / Content ========== */

.page-wrap {
  padding: 32px 0;
}

.page-header {
  margin-bottom: 16px;
}

.page-header h1 {
  font-size: 24px;
  margin: 0 0 6px;
}

.page-header p {
  font-size: 13px;
  color: var(--text-soft);
}

.entry-content {
  font-size: 14px;
  color: var(--text-main);
}

.entry-content h2 {
  font-size: 18px;
  margin-top: 20px;
  margin-bottom: 8px;
}

.entry-content p {
  margin: 0 0 10px;
}

.entry-content ul,
.entry-content ol {
  margin: 0 0 12px 20px;
}

.entry-content a {
  color: var(--accent-strong);
}

/* 404 */

.not-found {
  text-align: center;
  padding: 60px 0;
}

.not-found h1 {
  font-size: 36px;
  margin-bottom: 8px;
}

/* ========== Footer ========== */

.site-footer {
  border-top: 1px solid rgba(31,41,55,0.9);
  background: #020617;
  padding: 18px 0;
  font-size: 12px;
  color: var(--text-soft);
}

.footer-flex {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.footer-links a {
  color: var(--text-soft);
  text-decoration: none;
  margin-right: 10px;
}

/* ========== Responsive ========== */

@media (max-width: 768px) {
  .header-inner {
    height: 56px;
  }

  .nav {
    display: none;          /* 隐藏桌面菜单 */
  }

  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;   /* 显示汉堡按钮 */
  }

  /* 点击汉堡后，body 加 class="nav-open" */
  body.nav-open .nav-mobile {
    display: flex;
  }

  body.nav-open {
    overflow-y: auto;
  }

  .hero {
    padding-top: 22px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-card {
    margin-top: 4px;
  }
}
