/* =========================================
   OneCircle — Global Stylesheet
   Theme: Dark + Cyan Glassmorphism
   ========================================= */

:root {
  --bg: #07090f;
  --bg2: #0b0e18;
  --bg-card: rgba(0, 229, 255, 0.03);
  --cyan: #00e5ff;
  --cyan-dim: rgba(0, 229, 255, 0.6);
  --cyan-glow: rgba(0, 229, 255, 0.12);
  --cyan-border: rgba(0, 229, 255, 0.2);
  --cyan-border-hover: rgba(0, 229, 255, 0.45);
  --text: #edf2ff;
  --text-muted: #7a8499;
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.25s ease;
}

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

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 40% at 50% 0%, rgba(0, 229, 255, 0.07) 0%, transparent 70%);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.65;
  min-height: 100vh;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--cyan-border); border-radius: 4px; }

/* ---- Typography ---- */
h1, h2, h3, h4 { line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--cyan);
  color: var(--bg);
  border-color: var(--cyan);
}
.btn-primary:hover {
  box-shadow: 0 0 28px rgba(0, 229, 255, 0.5), 0 4px 16px rgba(0,0,0,0.3);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--cyan);
  border-color: var(--cyan-border);
}
.btn-outline:hover {
  background: var(--cyan-glow);
  border-color: var(--cyan);
  box-shadow: 0 0 18px var(--cyan-glow);
}

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

.btn-lg { padding: 0.85rem 2.2rem; font-size: 1rem; border-radius: 10px; }
.btn-sm { padding: 0.4rem 1rem; font-size: 0.8rem; }
.btn-block { width: 100%; }

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  padding: 0 2rem;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(7, 9, 15, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--cyan-border);
}

.nav-logo {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
}
.nav-logo .accent { color: var(--cyan); text-shadow: 0 0 22px rgba(0, 229, 255, 0.45); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--cyan);
  box-shadow: 0 0 6px var(--cyan);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--cyan);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-actions { display: flex; gap: 0.6rem; align-items: center; }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--cyan);
  border-radius: 2px;
  transition: all var(--transition);
}

/* Backdrop overlay */
.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 800;
}
.nav-backdrop.is-visible { display: block; }

/* Mobile nav */
@media (max-width: 820px) {
  .nav-burger { display: flex; }
  .nav-actions { display: none; }
  .nav-links {
    display: none;
    /* absolute, not fixed — nav's backdrop-filter makes it the containing block
       for fixed children, collapsing their height to zero */
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    height: calc(100vh - 66px);
    background: #07090f;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem 2rem;
    gap: 0;
    border-top: 1px solid var(--cyan-border);
    overflow-y: auto;
  }
  .nav-links.is-open { display: flex; }
  .nav-links > li {
    width: 100%;
    border-bottom: 1px solid rgba(0, 229, 255, 0.07);
  }
  .nav-links > li:last-child { border-bottom: none; }
  .nav-links a {
    font-size: 1.05rem;
    display: block;
    padding: 1rem 0;
    width: 100%;
  }
  .nav-links .nav-mobile-cta {
    display: flex !important;
    flex-direction: column;
    gap: 0.65rem;
    padding: 1.5rem 0 0.5rem;
    width: 100%;
  }
}

/* ---- Hero ---- */
.hero {
  min-height: 100vh;
  padding: 7rem 2rem 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 80%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 80%);
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
}
.hero-orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.1) 0%, transparent 70%);
  top: 20%; left: 50%;
  transform: translate(-50%, -50%);
}
.hero-orb-2 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(0, 80, 200, 0.1) 0%, transparent 70%);
  top: 60%; right: 15%;
}

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

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  border: 1px solid var(--cyan-border);
  border-radius: 50px;
  font-size: 0.8rem;
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.06);
  margin-bottom: 1.75rem;
  letter-spacing: 0.03em;
}
.hero-pill-dot {
  width: 6px; height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--cyan);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.8rem);
  margin-bottom: 1.25rem;
  color: var(--text);
}
.hero h1 .glow {
  color: var(--cyan);
  text-shadow: 0 0 40px rgba(0, 229, 255, 0.4);
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
}

.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 2.5rem;
  justify-content: center;
  margin-top: 3.5rem;
  flex-wrap: wrap;
}
.hero-stat-item { text-align: center; }
.hero-stat-num {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--cyan);
  text-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
}
.hero-stat-label { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.2rem; }

/* ---- Section Base ---- */
.section { padding: 5.5rem 2rem; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(0,229,255,0.02), transparent); }

.section-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.75rem;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 1rem;
}
.section-sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.75;
}

.section-head {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 4rem;
}

/* ---- Glass Card ---- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--cyan-border);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  border-color: var(--cyan-border-hover);
  box-shadow: 0 0 32px rgba(0, 229, 255, 0.08), 0 8px 32px rgba(0,0,0,0.3);
  transform: translateY(-4px);
}
.card-top-line::before {
  content: '';
  display: block;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  border-radius: var(--radius) var(--radius) 0 0;
  opacity: 0;
  transition: opacity var(--transition);
}
.card-top-line:hover::before,
.card-top-line.is-featured::before { opacity: 1; }

/* ---- Packages ---- */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto;
}

@media (max-width: 1024px) {
  .packages-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 768px) {
  .packages-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 500px) {
  .packages-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
}

.pkg-card {
  padding: 1.5rem 1.1rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.pkg-card.is-featured {
  border-color: rgba(0, 229, 255, 0.4);
  box-shadow: 0 0 36px rgba(0, 229, 255, 0.1);
}

.pkg-popular {
  position: absolute;
  top: 10px; right: -20px;
  background: var(--cyan);
  color: var(--bg);
  font-size: 0.62rem;
  font-weight: 800;
  padding: 0.2rem 1.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: rotate(45deg);
  transform-origin: center;
  width: 80px;
  right: -16px;
  top: 14px;
}

.pkg-slot {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}
.pkg-amount {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--cyan);
  text-shadow: 0 0 18px rgba(0, 229, 255, 0.35);
  line-height: 1;
  margin-bottom: 0.15rem;
}
.pkg-currency {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}
.pkg-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.5);
  margin: 0.75rem 0;
}
.pkg-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.35rem;
  margin-bottom: 0.25rem;
}
.pkg-features {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1.2rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.pkg-features li::before { content: '✓ '; color: var(--cyan); }

.btn-pkg {
  display: block;
  width: 100%;
  padding: 0.55rem;
  border: 1px solid var(--cyan-border);
  border-radius: 6px;
  color: var(--cyan);
  background: transparent;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}
.btn-pkg:hover, .is-featured .btn-pkg {
  background: var(--cyan);
  color: var(--bg);
  border-color: var(--cyan);
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.3);
}

/* ---- Page Hero (inner pages) ---- */
.page-hero {
  padding: 9rem 2rem 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, black, transparent);
  mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, black, transparent);
  pointer-events: none;
}
.page-hero-inner { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }
.page-hero-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1rem;
}
.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1.1rem;
}
.page-hero p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ---- About Page ---- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  max-width: 900px;
  margin: 0 auto;
}
@media (max-width: 640px) { .about-grid { grid-template-columns: 1fr; } }

.about-card { padding: 2rem; }
.about-card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.about-card h3 { font-size: 1.2rem; margin-bottom: 0.6rem; color: var(--cyan); }
.about-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; }

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  max-width: 900px;
  margin: 0 auto;
}
@media (max-width: 640px) { .stats-row { grid-template-columns: repeat(2, 1fr); } }

.stat-card {
  padding: 1.75rem 1.25rem;
  text-align: center;
}
.stat-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--cyan);
  text-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.stat-label { font-size: 0.82rem; color: var(--text-muted); }

/* ---- How It Works ---- */
.steps-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
}

.steps-list::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 28px;
  bottom: 28px;
  width: 1px;
  background: linear-gradient(180deg, var(--cyan-border), transparent);
}

.step-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.75rem 1.75rem 1.75rem 1.5rem;
}

.step-num {
  flex-shrink: 0;
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 1px solid var(--cyan-border);
  background: rgba(0, 229, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--cyan);
  text-shadow: 0 0 14px rgba(0, 229, 255, 0.4);
  position: relative;
  z-index: 1;
  transition: all var(--transition);
}
.step-item:hover .step-num {
  border-color: var(--cyan);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.25);
  background: rgba(0, 229, 255, 0.12);
}

.step-content h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.step-content p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; }

/* ---- FAQs ---- */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

details.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--cyan-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color var(--transition);
}
details.faq-item[open] {
  border-color: rgba(0, 229, 255, 0.35);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.06);
}

details.faq-item summary {
  padding: 1.2rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  transition: color var(--transition);
  user-select: none;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item[open] summary { color: var(--cyan); }

.faq-icon {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border: 1px solid var(--cyan-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--cyan);
  transition: transform var(--transition), background var(--transition);
}
details[open] .faq-icon {
  transform: rotate(45deg);
  background: var(--cyan-glow);
}

.faq-body {
  padding: 0 1.5rem 1.2rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.75;
  border-top: 1px solid var(--cyan-border);
  padding-top: 1rem;
  margin-top: -0.1rem;
}

/* ---- Earn Table ---- */
.earn-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.earn-table thead tr {
  border-bottom: 1px solid rgba(0, 229, 255, 0.3);
}
.earn-table th {
  padding: 0.65rem 1rem;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
}
.earn-table td {
  padding: 0.6rem 1rem;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(0, 229, 255, 0.05);
}
.earn-table tbody tr:last-child td { border-bottom: none; }
.earn-table tbody tr:hover td {
  background: rgba(0, 229, 255, 0.03);
  color: var(--text);
}
.earn-table .bonus-val {
  color: var(--cyan);
  font-weight: 700;
  font-size: 0.95rem;
}
.earn-table .rank-val {
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ---- Terms ---- */
.terms-content {
  max-width: 760px;
  margin: 0 auto;
}
.terms-section {
  padding: 2rem;
  margin-bottom: 1rem;
}
.terms-section h3 {
  font-size: 1.1rem;
  color: var(--cyan);
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.terms-section h3 span {
  display: inline-flex;
  width: 24px; height: 24px;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid var(--cyan-border);
  border-radius: 50%;
  color: var(--cyan);
}
.terms-section p, .terms-section li {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 0.6rem;
}
.terms-section ul { padding-left: 1.2rem; }
.terms-section li { list-style: disc; }
.terms-section li::marker { color: var(--cyan); }

/* ---- Footer ---- */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--cyan-border);
  padding: 3rem 2rem 2.5rem;
  text-align: center;
}
.footer-logo {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.02em;
  margin-bottom: 0.6rem;
}
.footer-logo .accent {
  color: var(--cyan);
  text-shadow: 0 0 24px rgba(0, 229, 255, 0.4);
}
.footer-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 0.83rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--cyan); }
.footer-divider {
  height: 1px;
  background: var(--cyan-border);
  max-width: 400px;
  margin: 0 auto 1.25rem;
  opacity: 0.5;
}
.footer-copy {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}
.footer-love {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.footer-love .heart { color: #ff6b6b; }

/* ---- Utilities ---- */
.container { max-width: 1160px; margin: 0 auto; }
.text-cyan { color: var(--cyan); }
.text-muted { color: var(--text-muted); }
.glow { text-shadow: 0 0 30px rgba(0, 229, 255, 0.4); }
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan-border), transparent);
  margin: 0;
}
