/* styles.css – Premium dark crypto aesthetic – fixed & balanced March 2026 */

:root {
  --bg:          #04060c;
  --surface:     #0b0f1f;
  --panel:       rgba(12, 16, 32, 0.96);
  --ink:         #f1f5ff;
  --muted:       #a5b0d0;
  --accent:      #d9c07a;
  --accent-dark: #b89f58;
  --glow:        rgba(217, 192, 122, 0.45);
  --glow-strong: rgba(217, 192, 122, 0.75);
  --border:      rgba(217, 192, 122, 0.25);
  --stat-bg:     linear-gradient(145deg, rgba(20,25,45,0.85), rgba(10,15,35,0.85));
  --input-bg:    rgba(20, 25, 45, 0.75);
  --input-border: rgba(217, 192, 122, 0.28);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.78;
}

.sticky-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 1000;
  background: rgba(4, 6, 12, 0.94);
  backdrop-filter: blur(20px) saturate(200%);
  -webkit-backdrop-filter: blur(20px) saturate(200%);
  padding: 1rem 1.4rem;
  box-shadow: 0 6px 24px rgba(0,0,0,0.55);
  text-align: center;
}

.wallet-btn,
.trade-btn,
.submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 1.8rem;          /* smaller than before – original compact feel */
  border-radius: 50px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #0a0e1e;
  font-weight: 700;
  font-size: 1.02rem;               /* slightly smaller text */
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.1);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.wallet-btn:hover,
.trade-btn:hover,
.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px var(--glow), inset 0 1px 0 rgba(255,255,255,0.15);
}

main {
  padding-top: 7rem;
}

header {
  text-align: center;
  padding: 3.5rem 1.2rem 5rem;
}

.logo-video-container {
  max-width: 320px;
  margin: 0 auto 2.5rem;
  border-radius: 50%;
  overflow: hidden;
  background: #0c1124;
  box-shadow: 0 20px 60px rgba(198,168,107,0.4), inset 0 0 30px rgba(198,168,107,0.15);
  border: 1px solid rgba(198,168,107,0.3);
  transition: transform 0.4s ease;
}

.logo-video-container:hover {
  transform: scale(1.03);
}

.logo-video-container video {
  width: 100%;
  height: auto;
  display: block;
}

header h1 {
  font-family: 'Cinzel', serif;
  font-size: clamp(2.4rem, 7vw, 4rem);
  letter-spacing: 0.05em;
  background: linear-gradient(90deg, #f1f5ff, var(--accent), #f1f5ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 1rem 0 1.2rem;
  text-shadow: 0 4px 16px var(--glow);
  hyphens: auto;
  overflow-wrap: break-word;
}

header p {
  max-width: 780px;
  margin: 0 auto 2rem;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.statbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin: 3rem auto;
  max-width: 1100px;
}

.stat {
  background: var(--stat-bg);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 1.6rem 1.8rem;
  min-width: 240px;
  flex: 1 1 240px;
  max-width: 280px;
  text-align: center;
  box-shadow: 0 10px 32px rgba(0,0,0,0.5);
  transition: all 0.35s ease;
}

.stat:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px var(--glow);
}

.stat i {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 0.8rem;
}

.stat span {
  font-size: 0.95rem;
  opacity: 0.8;
  display: block;
  margin-bottom: 0.5rem;
}

.stat strong {
  font-size: 1.7rem;
  color: var(--accent);
}

.chapter {
  padding: 5rem 1.2rem;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
}

.panel {
  background: var(--panel);
  border-radius: 1.8rem;
  padding: 2.4rem;
  border: 1px solid var(--border);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
  margin-bottom: 2.5rem;
  transition: transform 0.4s ease;
}

.panel:hover {
  transform: translateY(-6px);
}

h2 {
  font-family: 'Cinzel', serif;
  font-size: 2.4rem;
  margin-bottom: 1.4rem;
  color: #fff;
}

h3 {
  color: var(--accent);
  margin: 2rem 0 1rem;
  font-size: 1.6rem;
}

p, li {
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.8;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* === Login form – reverted to original compact look === */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.input-group {
  position: relative;
}

.input-group input {
  width: 100%;
  padding: 1.25rem 1.2rem 0.7rem;     /* original small padding */
  background: rgba(30,35,55,0.7);
  border: 1px solid rgba(198,168,107,0.22);
  border-radius: 14px;
  color: var(--ink);
  font-size: 1.02rem;                   /* smaller font */
  transition: all 0.3s;
}

.input-group input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(198,168,107,0.18);
}

.input-group label {
  position: absolute;
  top: 1.1rem;
  left: 1.2rem;
  color: var(--muted);
  font-size: 1.02rem;
  pointer-events: none;
  transition: all 0.3s ease;
}

.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label {
  top: 0.5rem;
  left: 1.2rem;
  font-size: 0.82rem;
  color: var(--accent);
}

.password-toggle {
  position: absolute;
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 1.2rem;
}

.submit-btn {
  padding: 1rem 1.8rem;                /* original smaller size */
  background: linear-gradient(135deg, var(--accent), #a8834a);
  color: #000;
  border: none;
  border-radius: 14px;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 8px 24px rgba(198,168,107,0.3);
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(198,168,107,0.5);
}

.create-link {
  text-align: center;
  font-size: 0.95rem;
  color: var(--muted);
  margin-top: 0.8rem;
}

.create-link a {
  color: var(--accent);
  font-weight: 500;
}

/* FAQ */
.faq-section details {
  margin-bottom: 1.4rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.faq-section summary {
  padding: 1.2rem 1.8rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--accent);
  font-size: 1.15rem;
  background: rgba(217,192,122,0.06);
  transition: background 0.25s;
}

.faq-section summary:hover {
  background: rgba(217,192,122,0.12);
}

/* Merge diagram */
.merge-diagram {
  background: linear-gradient(145deg, rgba(15,20,40,0.98), rgba(8,12,28,0.98));
  border: 2px solid var(--accent);
  border-radius: 1.4rem;
  padding: 2rem;
  box-shadow: 0 16px 60px var(--glow);
  margin: 2rem 0;
}

/* Footer */
footer {
  background: #000;
  padding: 6rem 1.2rem 4rem;
  border-top: 1px solid rgba(217,192,122,0.12);
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 5rem;
}

.footer-column h4 {
  font-family: 'Cinzel', serif;
  margin-bottom: 1.6rem;
  color: #fff;
}

.footer-column a {
  display: block;
  margin: 0.7rem 0;
  color: #d0d8ff;
  opacity: 0.88;
}

.footer-column a:hover {
  opacity: 1;
  color: var(--accent);
}

.social-icons {
  font-size: 1.9rem;
  display: flex;
  gap: 1.5rem;
  margin-top: 1.6rem;
}

.footer-bottom {
  text-align: center;
  margin-top: 5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.95rem;
  opacity: 0.75;
}

/* Responsive */
@media (max-width: 820px) {
  header { padding: 2.5rem 1rem 4rem; }
  .logo-video-container { max-width: 280px; }
  .stat { min-width: 48%; padding: 1.4rem 1.2rem; }
  .panel { padding: 2rem; }
  h2 { font-size: 2.1rem; }
  .wallet-btn, .submit-btn { padding: 0.85rem 1.6rem; font-size: 0.98rem; }
}