:root {
  --bg: #0a0f0d;
  --bg-2: #0e1512;
  --card: #121a16;
  --card-2: #16211b;
  --border: rgba(255, 255, 255, 0.07);
  --green: #FFBE17;
   /* --green: #4ade80; */
  --green-2: #FFBE17
    /* --green-2: #22c55e; */
  --green-glow: rgba(74, 222, 128, 0.35);
  --text: #f4f7f5;
  --muted: #8b968f;
  --radius: 16px;
  --maxw: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
h1, h2, h3, h4, .brand { font-family: 'Sora', sans-serif; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.green { color: var(--green); }
section { position: relative; }

/* ---------- Loading Screen ---------- */
#loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  z-index: 9999;
  transition: opacity .6s ease, visibility .6s ease;
}
#loader.hidden { opacity: 0; visibility: hidden; }
.loader-logo {
  font-family: 'Sora', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: .5px;
}
.loader-logo i { color: var(--green); animation: spin 1.6s linear infinite; }
.loader-ring {
  width: 54px; height: 54px;
  border: 3px solid rgba(255,255,255,0.08);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
.loader-bar {
  width: 180px; height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 4px; overflow: hidden;
}
.loader-bar span {
  display: block; height: 100%; width: 40%;
  background: linear-gradient(90deg, var(--green-2), var(--green));
  border-radius: 4px;
  animation: load 1.2s ease-in-out infinite;
}
@keyframes load {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Navbar ---------- */
header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background .3s ease, backdrop-filter .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
header.scrolled {
  background: rgba(10, 15, 13, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.brand {
  font-size: 1.35rem; font-weight: 700;
  display: flex; align-items: center; gap: 10px;
}
.brand i { color: var(--green); }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a {
  color: var(--muted); font-size: .95rem; font-weight: 500;
  position: relative; transition: color .25s ease;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 2px; background: var(--green);
  transition: width .25s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 600; font-size: .95rem;
  padding: 12px 24px; border-radius: 40px;
  cursor: pointer; border: none;
  transition: transform .2s ease, box-shadow .3s ease, background .3s ease;
}
.btn-primary {
  background: var(--green); color: #04120a;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px var(--green-glow);
}
.btn-ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--green); color: var(--green); }

.nav-right { display: flex; align-items: center; gap: 16px; }
.hamburger {
  display: none; background: none; border: none;
  color: var(--text); font-size: 1.4rem; cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  padding: 160px 0 90px;
  overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 1fr;
  gap: 40px; align-items: center;
}
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--card); border: 1px solid var(--border);
  padding: 8px 16px; border-radius: 40px;
  font-size: .82rem; color: var(--muted); margin-bottom: 28px;
}
.badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 10px var(--green);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(1.4); }
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800; line-height: 1.1; letter-spacing: -1px;
  margin-bottom: 22px;
}
.hero p { color: var(--muted); font-size: 1.05rem; max-width: 440px; margin-bottom: 34px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

/* Hero visual */
.hero-visual { position: relative; display: flex; justify-content: center; }
.phone-glow {
  position: absolute; width: 340px; height: 340px;
  background: radial-gradient(circle, var(--green-glow), transparent 65%);
  filter: blur(30px); z-index: 0;
  animation: floatGlow 6s ease-in-out infinite;
}
.phone {
  position: relative; z-index: 2;
  width: 260px; border-radius: 34px;
  background: linear-gradient(160deg, #1b241f, #0d1310);
  border: 1px solid var(--border);
  padding: 16px; box-shadow: 0 40px 80px rgba(0,0,0,0.6);
  animation: floatY 5s ease-in-out infinite;
}
.phone-notch {
  width: 90px; height: 6px; background: #000; border-radius: 6px;
  margin: 0 auto 16px;
}
.phone-screen { background: #0a0f0d; border-radius: 22px; padding: 16px; }
.phone-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.phone-row small { color: var(--muted); font-size: .7rem; }
.phone-row .val { font-weight: 700; font-family: 'Sora'; }
.chart { display: flex; align-items: flex-end; gap: 5px; height: 70px; margin: 12px 0; }
.chart span {
  flex: 1; background: linear-gradient(var(--green), var(--green-2));
  border-radius: 4px 4px 0 0; opacity: .85;
  animation: grow 1.4s ease forwards;
}
@keyframes grow { from { height: 0; } }
.float-card {
  position: absolute; z-index: 3;
  background: rgba(18, 26, 22, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 14px; padding: 12px 16px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.float-card i { color: var(--green); font-size: 1.1rem; }
.float-card small { color: var(--muted); font-size: .68rem; display: block; }
.float-card b { font-family: 'Sora'; font-size: .9rem; }
.fc-1 { top: 30px; left: -10px; animation: floatY 4s ease-in-out infinite; }
.fc-2 { bottom: 50px; right: -20px; animation: floatY 4.5s ease-in-out infinite .5s; }

@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@keyframes floatGlow { 0%,100% { transform: scale(1); opacity:.8; } 50% { transform: scale(1.15); opacity:1; } }

/* ---------- Trusted / Logos ---------- */
.trusted { padding: 40px 0 30px; text-align: center; }
.trusted p { color: var(--muted); font-size: .85rem; margin-bottom: 28px; }
.logos {
  display: flex; justify-content: center; align-items: center;
  gap: 50px; flex-wrap: wrap; opacity: .65;
}
.logos div {
  display: flex; align-items: center; gap: 8px;
  font-family: 'Sora'; font-weight: 700; font-size: 1.1rem; color: #cfd6d1;
}
.logos i { color: var(--green); }

/* ---------- Section headings ---------- */
.sec-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.sec-tag {
  display: inline-block; color: var(--muted); font-size: .85rem;
  text-transform: uppercase; letter-spacing: 2px; margin-bottom: 14px;
}
.sec-tag b { color: var(--green); }
.sec-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; letter-spacing: -.5px; }

.pad { padding: 90px 0; }

/* ---------- Coins ---------- */
.coins {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px;
}
.coin-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.coin-card:hover {
  transform: translateY(-6px); border-color: rgba(74,222,128,.4);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.coin-card small { color: var(--muted); font-size: .72rem; }
.coin-icon {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; margin: 12px 0 10px;
}
.coin-card b { font-family: 'Sora'; display: block; font-size: .95rem; }
.coin-card .price { color: var(--muted); font-size: .82rem; margin-top: 4px; }

/* ---------- Features ---------- */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.feature {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px 28px;
  transition: transform .3s ease, border-color .3s ease, background .3s ease;
}
.feature:hover {
  transform: translateY(-8px); border-color: rgba(74,222,128,.4);
  background: var(--card-2);
}
.feature .ic {
  width: 54px; height: 54px; border-radius: 14px;
  background: rgba(74,222,128,.12); color: var(--green);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem; margin-bottom: 20px;
  transition: transform .3s ease;
}
.feature:hover .ic { transform: rotate(-8deg) scale(1.08); }
.feature h3 { font-size: 1.15rem; margin-bottom: 10px; }
.feature p { color: var(--muted); font-size: .92rem; }

/* ---------- Stats ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.stat {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 34px 24px; text-align: center;
  transition: transform .3s ease, border-color .3s ease;
}
.stat:hover { transform: translateY(-6px); border-color: rgba(74,222,128,.4); }
.stat .num { font-family: 'Sora'; font-size: 2.4rem; font-weight: 700; color: var(--green); }
.stat small { color: var(--muted); }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step {
  position: relative; text-align: center; padding: 34px 22px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform .3s ease, border-color .3s ease;
}
.step:hover { transform: translateY(-8px); border-color: rgba(74,222,128,.4); }
.step-num {
  width: 48px; height: 48px; margin: 0 auto 18px;
  border-radius: 50%; background: var(--green);
  color: #04120a; font-family: 'Sora'; font-weight: 700; font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 24px var(--green-glow);
}
.step .ic-lg { font-size: 1.6rem; color: var(--green); margin-bottom: 12px; }
.step h3 { font-size: 1.1rem; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: .9rem; }
.step:not(:last-child)::after {
  content: '\f061'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
  position: absolute; right: -22px; top: 50%; transform: translateY(-50%);
  color: rgba(74,222,128,.3); font-size: 1rem;
}

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 780px; margin: 0 auto; }
.faq-item {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; margin-bottom: 14px; overflow: hidden;
  transition: border-color .3s ease;
}
.faq-item.open { border-color: rgba(74,222,128,.4); }
.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 24px; cursor: pointer; font-family: 'Sora';
  font-weight: 600; font-size: 1.02rem;
}
.faq-q i { color: var(--green); transition: transform .35s ease; flex-shrink: 0; }
.faq-item.open .faq-q i { transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .4s ease, padding .4s ease;
  padding: 0 24px; color: var(--muted); font-size: .95rem;
}
.faq-item.open .faq-a { max-height: 240px; padding: 0 24px 22px; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, rgba(74,222,128,.14), rgba(34,197,94,.04));
  border: 1px solid rgba(74,222,128,.25);
  border-radius: 24px; padding: 60px 40px; text-align: center;
  position: relative; overflow: hidden;
}
.cta-banner h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 16px; }
.cta-banner p { color: var(--muted); max-width: 480px; margin: 0 auto 30px; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--border); padding: 60px 0 30px; }
.foot-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px;
  margin-bottom: 40px;
}
.foot-grid h4 { margin-bottom: 18px; font-size: 1rem; }
.foot-grid p { color: var(--muted); font-size: .9rem; max-width: 280px; }
.foot-grid li { margin-bottom: 12px; }
.foot-grid li a { color: var(--muted); font-size: .9rem; transition: color .2s ease; }
.foot-grid li a:hover { color: var(--green); }
.socials { display: flex; gap: 12px; margin-top: 20px; }
.socials a {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--card); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); transition: all .25s ease;
}
.socials a:hover { background: var(--green); color: #04120a; transform: translateY(-3px); }
.foot-bottom {
  text-align: center; color: var(--muted); font-size: .85rem;
  border-top: 1px solid var(--border); padding-top: 24px;
}

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .7s ease, transform .7s ease; }
.reveal.show { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-visual { margin-top: 40px; }
  .coins { grid-template-columns: repeat(3, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-links, .nav-right .btn-ghost { display: none; }
  .hamburger { display: block; }
  .nav-links.mobile-open {
    display: flex; flex-direction: column; gap: 22px;
    position: absolute; top: 76px; left: 0; right: 0;
    background: rgba(10,15,13,.97); backdrop-filter: blur(14px);
    padding: 30px 24px; border-bottom: 1px solid var(--border);
  }
  .coins { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .stat { padding: 26px 16px; }
  .stat .num { font-size: 1.8rem; word-break: break-word; }
  .stat .num i { font-size: 1.3rem !important; }
  .steps { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .pad { padding: 60px 0; }
}

/* ---------- Auth pages (login / register / activate) ---------- */
.auth-body { display: flex; flex-direction: column; min-height: 100vh; }

.auth-header {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px; max-width: var(--maxw); margin: 0 auto 28px; width: 100%;
  padding: 0 24px;
}

.auth-wrap {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 40px 24px 70px; position: relative; overflow: hidden;
}
.auth-wrap .phone-glow {
  top: -60px; left: 50%; transform: translateX(-50%);
  width: 420px; height: 420px;
}

.auth-card {
  position: relative; z-index: 2;
  width: 100%; max-width: 440px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 24px; padding: 44px 38px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.45);
}

.auth-icon {
  width: 62px; height: 62px; margin: 0 auto 20px;
  border-radius: 16px; background: rgba(74,222,128,.12);
  color: var(--green); font-size: 1.5rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 26px var(--green-glow);
}
.auth-head { text-align: center; margin-bottom: 30px; }
.auth-head h1 { font-size: 1.7rem; margin-bottom: 8px; letter-spacing: -.5px; }
.auth-head p { color: var(--muted); font-size: .92rem; }

.form-group { margin-bottom: 18px; }
.form-group label {
  display: block; font-size: .85rem; margin-bottom: 8px;
  color: var(--muted); font-weight: 500;
}
.input-wrap { position: relative; }
.input-wrap > i {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  color: var(--muted); font-size: .95rem;
}
.input-wrap input {
  width: 100%; padding: 14px 16px 14px 44px;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 12px; color: var(--text);
  font-family: inherit; font-size: .95rem;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.input-wrap input::placeholder,
.input-wrap textarea::placeholder { color: #5c665f; }
.input-wrap input:focus,
.input-wrap select:focus,
.input-wrap textarea:focus {
  outline: none; border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(74,222,128,.12);
}

/* Selects and textareas share the input look */
.input-wrap select,
.input-wrap textarea {
  width: 100%; padding: 14px 16px 14px 44px;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 12px; color: var(--text);
  font-family: inherit; font-size: .95rem;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.input-wrap select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.input-wrap select:invalid { color: #5c665f; }
.input-wrap select option { color: var(--text); background: var(--bg-2); }
.input-wrap textarea {
  min-height: 96px; resize: vertical; line-height: 1.5;
}
/* Icon aligns to the top for multi-line textarea */
.input-wrap.textarea-wrap > i { top: 22px; transform: none; }

.form-row {
  display: flex; justify-content: space-between; align-items: center;
  margin: 22px 0; font-size: .85rem; flex-wrap: wrap; gap: 10px;
}
.checkbox {
  display: flex; align-items: center; gap: 8px;
  color: var(--muted); cursor: pointer; user-select: none;
}
.checkbox input { accent-color: var(--green); width: 15px; height: 15px; }
.form-row a { color: var(--green); font-weight: 500; }

.auth-card .btn { width: 100%; justify-content: center; padding: 14px; margin-top: 4px; }

.auth-alt { text-align: center; margin-top: 24px; color: var(--muted); font-size: .9rem; }
.auth-alt a { color: var(--green); font-weight: 600; }

.auth-divider {
  display: flex; align-items: center; gap: 14px;
  color: var(--muted); font-size: .8rem; margin: 24px 0;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

/* Activation code single field, large + centered */
.code-input input {
  text-align: center; letter-spacing: 12px; font-family: 'Sora', sans-serif;
  font-size: 1.5rem; font-weight: 700; padding-left: 16px;
}

.auth-note {
  text-align: center; color: var(--muted); font-size: .82rem;
  margin-top: 18px; line-height: 1.5;
}

@media (max-width: 640px) {
  .auth-header {
    height: auto; padding: 14px 16px; gap: 12px;
  }
  .auth-header .brand { font-size: 1.1rem; gap: 8px; }
  .auth-header .btn {
    padding: 10px 18px; font-size: .88rem;
    flex-shrink: 0; white-space: nowrap;
  }
  .auth-wrap { padding: 24px 16px 60px; margin-top: 100px; }
}

@media (max-width: 480px) {
  .auth-card { padding: 34px 24px; }
  .auth-header { padding: 12px 14px; }
  .auth-header .brand { font-size: 1rem; }
  .auth-header .brand i { font-size: 1.1rem; }
  .auth-header .btn { padding: 9px 16px; font-size: .85rem; }
  .auth-wrap { padding: 20px 14px 56px; }
}
