/* =========================================================
   Ran Digital (RND) — Professional Blockchain UI
   Fixed Navbar Version
   ========================================================= */

/* ---------- Design Tokens ---------- */
:root {
  --bg-0: #05070d;
  --bg-1: #0a0e18;
  --bg-2: #0f1424;
  --surface: rgba(18, 24, 40, 0.65);
  --surface-strong: rgba(22, 30, 50, 0.85);
  --border: rgba(120, 180, 255, 0.15);
  --border-strong: rgba(0, 191, 255, 0.45);
  --text: #eaf1ff;
  --text-dim: #a8b8d4;
  --text-muted: #7d8fb0;
  --cyan: #00dbff;
  --blue: #3b82f6;
  --violet: #7c5cff;
  --grad-primary: linear-gradient(135deg, #00dbff 0%, #3b82f6 55%, #7c5cff 100%);
  --grad-soft: linear-gradient(135deg, #ffffff 0%, #b7e6ff 60%, #7cb8ff 100%);
  --shadow-glow: 0 12px 40px -12px rgba(0, 219, 255, 0.5);
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;
  --nav-height: 72px;
}

/* ---------- Reset ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 12px);
}
html, body { overflow-x: hidden; }

body {
  background: var(--bg-0);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: -0.005em;
  position: relative;
  padding-top: var(--nav-height);   /* ← content navbar के नीचे न छिपे */
}

/* Scroll lock जब mobile menu खुला हो */
body.nav-open {
  overflow: hidden;
}

/* ---------- Animated Background ---------- */
.bg-orbs {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  animation: float 18s ease-in-out infinite;
}
.orb-1 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, #00dbff 0%, transparent 70%);
  top: -160px; left: -120px;
}
.orb-2 {
  width: 620px; height: 620px;
  background: radial-gradient(circle, #7c5cff 0%, transparent 70%);
  bottom: -200px; right: -180px;
  animation-delay: -6s;
}
.orb-3 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, #3b82f6 0%, transparent 70%);
  top: 45%; left: 55%;
  animation-delay: -12s;
}
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(120, 180, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 180, 255, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.8), transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.8), transparent 75%);
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.08); }
}

/* ---------- Navbar (Fixed) ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(6, 9, 18, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 clamp(16px, 6vw, 90px);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 16px;
  padding: 14px 0;
  max-width: 1400px;
  margin: 0 auto;
  min-height: var(--nav-height);
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.logo-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--grad-primary);
  color: #05070d;
  font-size: 1.1rem;
  box-shadow: var(--shadow-glow);
  flex-shrink: 0;
}
.logo-text { color: var(--text); font-family: 'Space Grotesk', sans-serif; }
.logo-text span {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-left: 2px;
}

.nav-menu {
  display: flex;
  gap: 6px;
  align-items: center;
  list-style: none;
}
.nav-menu li a {
  color: var(--text-dim);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.94rem;
  padding: 10px 14px;
  border-radius: 12px;
  transition: 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.nav-menu li a:hover {
  color: var(--text);
  background: rgba(0, 191, 255, 0.08);
}
.nav-menu li a i { font-size: 0.85rem; opacity: 0.85; }
.docs-link {
  background: rgba(0, 219, 255, 0.1) !important;
  border: 1px solid var(--border-strong);
  color: var(--cyan) !important;
}
.docs-link:hover { background: rgba(0, 219, 255, 0.2) !important; }

.menu-toggle {
  display: none;
  background: rgba(0, 219, 255, 0.1);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--cyan);
  transition: 0.25s;
  margin-left: auto;
  flex-shrink: 0;
}
.menu-toggle:hover { background: rgba(0, 219, 255, 0.2); }

/* ---------- Hero ---------- */
.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 90px clamp(20px, 5vw, 60px) 70px;
  position: relative;
}
.hero-content {
  max-width: 1080px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background: rgba(0, 219, 255, 0.08);
  border: 1px solid var(--border-strong);
  color: var(--cyan);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.hero-badge i { animation: pulse 2s infinite; }
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-content h1 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: clamp(2.4rem, 6.5vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  background: var(--grad-soft);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-content h1 .grad-text {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: var(--text-dim);
  max-width: 680px;
  margin: 0 auto;
}

/* ---------- Buttons ---------- */
.btn-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 8px;
}
.btn {
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  cursor: pointer;
}
.buy-btn {
  background: var(--grad-primary);
  color: #05070d;
  box-shadow: var(--shadow-glow);
}
.buy-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 45px -12px rgba(0, 219, 255, 0.7);
}
.white-btn {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-strong);
  color: var(--text);
  backdrop-filter: blur(10px);
}
.white-btn:hover {
  background: rgba(0, 219, 255, 0.12);
  border-color: var(--cyan);
  transform: translateY(-3px);
}

/* ---------- Status Grid ---------- */
.status-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
  width: 100%;
}
.status-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 28px;
  min-width: 260px;
  text-align: center;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: 0.3s;
}
.status-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
}
.status-card h4 {
  color: var(--cyan);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.status-card p { color: var(--text); font-size: 0.92rem; }
.status-card small {
  display: block;
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 0.76rem;
}

/* ---------- Live Stats ---------- */
.live-stats-row {
  background: linear-gradient(135deg, rgba(15, 22, 40, 0.9), rgba(8, 12, 22, 0.9));
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 22px 40px;
  margin-top: 12px;
  display: flex;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
  backdrop-filter: blur(14px);
}
.live-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 130px;
}
.stat-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  font-weight: 500;
}
.live-stat strong {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  background: var(--grad-soft);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Sections ---------- */
section {
  padding: 100px clamp(20px, 6vw, 90px);
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}
h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 56px;
  text-align: center;
  letter-spacing: -0.02em;
  background: var(--grad-soft);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
h2 i {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 0.85em;
}

.section-narrow {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-dim);
  line-height: 1.8;
}
.section-narrow p + p { margin-top: 18px; }
.section-narrow strong { color: var(--text); font-weight: 600; }

/* ---------- Cards ---------- */
.cards {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
.card {
  background: var(--surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 250px;
  padding: 34px 22px;
  text-align: center;
  transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(0, 219, 255, 0.5), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}
.card:hover {
  transform: translateY(-8px);
  border-color: transparent;
  box-shadow: 0 20px 45px -20px rgba(0, 219, 255, 0.5);
}
.card:hover::before { opacity: 1; }
.card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 8px;
}
.card p { color: var(--text-dim); font-size: 0.92rem; }
.card > i {
  display: inline-block;
  margin-top: 16px;
  font-size: 1.3rem;
  color: rgba(0, 219, 255, 0.4);
  transition: 0.3s;
}
.card:hover > i { color: var(--cyan); transform: scale(1.15); }

.cards-team .card h3 { font-size: 1.6rem; }
.cards-team .card p + p { margin-top: 6px; color: var(--text-muted); font-size: 0.85rem; }

.muted-note {
  margin-top: 26px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-style: italic;
}

/* ---------- Timeline ---------- */
.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.timeline-item {
  background: var(--surface);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-left: 3px solid transparent;
  border-image: linear-gradient(180deg, var(--cyan), var(--violet)) 1;
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: 0.35s;
  position: relative;
}
.timeline-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px -22px rgba(0, 219, 255, 0.5);
}
.timeline-item h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 10px;
}
.timeline-item p { color: var(--text-dim); font-size: 0.92rem; line-height: 1.65; }

/* ---------- Contract Box ---------- */
.contract-wrapper {
  display: flex;
  justify-content: center;
}
.contract-box {
  background: var(--surface-strong);
  backdrop-filter: blur(18px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px 40px;
  max-width: 780px;
  width: 100%;
  text-align: center;
  box-shadow: 0 30px 60px -30px rgba(0, 219, 255, 0.25);
}
.contract-input {
  background: rgba(5, 8, 16, 0.9);
  border: 1px solid rgba(0, 191, 255, 0.3);
  border-radius: var(--radius-pill);
  padding: 18px 24px;
  width: 100%;
  font-family: 'Space Grotesk', monospace;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--cyan);
  text-align: center;
  outline: none;
  transition: 0.3s;
}
.contract-input:focus { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(0, 219, 255, 0.15); }
.copy-btn {
  background: rgba(0, 219, 255, 0.12);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  padding: 13px 30px;
  cursor: pointer;
  color: var(--cyan);
  margin-top: 18px;
  font-weight: 600;
  font-size: 0.92rem;
  font-family: inherit;
  transition: 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.copy-btn:hover {
  background: var(--grad-primary);
  color: #05070d;
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

/* ---------- Chart Embed ---------- */
.chart-embed {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 30px 60px -30px rgba(0, 219, 255, 0.3);
  background: var(--surface);
}
.chart-embed iframe { display: block; }

/* ---------- FAQ ---------- */
.faq-container {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq-item {
  background: var(--surface);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.faq-item:hover { border-color: rgba(0, 219, 255, 0.35); }
.faq-question {
  padding: 22px 28px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--text);
  transition: background 0.25s;
  user-select: none;
}
.faq-question:hover { background: rgba(0, 219, 255, 0.05); }
.faq-question i {
  color: var(--cyan);
  transition: transform 0.3s ease;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.faq-answer {
  padding: 0 28px;
  color: var(--text-dim);
  line-height: 1.7;
  font-size: 0.94rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}
.faq-answer.active {
  max-height: 320px;
  padding: 0 28px 22px;
}

/* ---------- Footer ---------- */
footer {
  background: linear-gradient(180deg, rgba(6, 9, 18, 0.5), rgba(3, 5, 10, 1));
  border-top: 1px solid var(--border);
  padding: 48px 24px 36px;
  text-align: center;
  margin-top: 40px;
}
.social-links {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.social-links a {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 1.15rem;
  transition: 0.3s;
}
.social-links a:hover {
  color: var(--cyan);
  border-color: var(--border-strong);
  background: rgba(0, 219, 255, 0.1);
  transform: translateY(-3px);
}
footer p { color: var(--text-dim); font-size: 0.9rem; }
.disclaimer {
  margin-top: 12px;
  font-size: 0.78rem !important;
  color: var(--text-muted) !important;
}
.disclaimer a { color: var(--cyan); text-decoration: none; }
.disclaimer a:hover { text-decoration: underline; }

/* ---------- Focus States ---------- */
a:focus-visible,
button:focus-visible,
.faq-question:focus-visible,
.contract-input:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .orb { animation: none; }
}

/* =========================================================
   RESPONSIVE — Mobile Navbar (Fixed version)
   ========================================================= */

/* ---------- Tablet / Mobile (≤960px) ---------- */
@media (max-width: 960px) {

  .navbar {
    padding-left: 16px;
    padding-right: 16px;
  }

  .nav-container {
    min-height: var(--nav-height);
    gap: 12px;
  }

  .logo {
    flex: 0 1 auto;
    min-width: 0;
    margin-right: auto;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .nav-container > nav {
    position: static;
    display: contents;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    margin: 0 0 0 auto;
    flex: 0 0 44px;
    order: 2;
    position: relative;
    z-index: 1002;
    cursor: pointer;
  }

  .nav-menu {
    position: fixed;
    top: calc(var(--nav-height) + 12px);
    left: 12px;
    right: 12px;
    width: auto;
    max-width: none;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 6px;
    background: rgba(6, 9, 18, 0.98);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.7);
    transform: translateY(-150%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      transform 0.3s ease,
      opacity 0.3s ease,
      visibility 0.3s ease;
    z-index: 1001;
    max-height: calc(100vh - var(--nav-height) - 24px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-menu li,
  .nav-menu li a {
    width: 100%;
  }

  .nav-menu li a {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    font-size: 1rem;
  }

  .docs-link {
    justify-content: flex-start;
    text-align: left;
  }

  section { padding: 70px 20px; }
  h2 { margin-bottom: 40px; }
  .live-stats-row { gap: 28px; padding: 22px 24px; }
  .contract-box { padding: 28px 24px; }
}

/* ---------- Small phones (≤560px) ---------- */
@media (max-width: 560px) {
  .navbar {
    padding-left: 12px;
    padding-right: 12px;
  }

  .nav-container {
    gap: 8px;
  }

  .logo {
    font-size: 1.05rem;
    gap: 8px;
  }

  .logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 0.9rem;
  }

  .menu-toggle {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
    font-size: 1.05rem;
  }

  .nav-menu {
    left: 8px;
    right: 8px;
    padding: 14px;
  }

  .nav-menu li a {
    padding: 13px 14px;
    font-size: 0.98rem;
  }

  .hero { padding: 70px 18px 50px; min-height: auto; }
  .btn { width: 100%; justify-content: center; }
  .btn-group { flex-direction: column; align-items: stretch; gap: 12px; }
  .card { width: 100%; }
  .timeline { grid-template-columns: 1fr; }
  .live-stat { min-width: 100px; }
  .live-stat strong { font-size: 1.1rem; }
  .status-card { min-width: 100%; }
  .faq-question { font-size: 0.95rem; padding: 18px 20px; }
  .faq-answer.active { padding: 0 20px 18px; }
  .social-links a { width: 42px; height: 42px; font-size: 1rem; }
}

/* ---------- Very small phones (≤380px) ---------- */
@media (max-width: 380px) {
  .logo-text { font-size: 1rem; }
  .logo-mark { width: 32px; height: 32px; font-size: 0.85rem; }
  .menu-toggle { width: 42px; height: 42px; flex-basis: 42px; }
}
