/* DMB Coin – Modern Crypto Theme */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:     #06060f;
  --bg2:    #0b0b1a;
  --bg3:    #10101f;
  --card:   rgba(255,255,255,0.04);
  --card-h: rgba(255,255,255,0.08);
  --border: rgba(255,255,255,0.08);
  --a1: #6366f1;
  --a2: #8b5cf6;
  --grad: linear-gradient(135deg,#6366f1 0%,#8b5cf6 100%);
  --text:  #f1f5f9;
  --text2: #94a3b8;
  --text3: #64748b;
  --font: system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
  --r: 12px;
  --shadow: 0 8px 32px rgba(99,102,241,0.18);
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; overflow-x: hidden; }
a { color: var(--a1); text-decoration: none; transition: color .2s; }
a:hover { color: var(--a2); }
img { max-width: 100%; height: auto; }

/* ─── NAV ─── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 68px; padding: 0 6%;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(6,6,15,0.85);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-logo { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; font-weight: 700; color: var(--text); }
.nav-logo img { width: 34px; height: 34px; border-radius: 50%; }
.nav-logo:hover { color: var(--text); }

/* checkbox hack mobile menu */
#nav-check { display: none; }
.nav-links {
  display: flex; align-items: center; gap: 1.8rem; list-style: none;
}
.nav-links a { color: var(--text2); font-size: .9rem; font-weight: 500; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links .nav-cta {
  background: var(--grad); color: #fff !important; padding: 8px 18px;
  border-radius: 8px; font-weight: 600 !important; font-size: .85rem !important;
}
.nav-links .nav-cta:hover { opacity: .9; }
.nav-burger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  padding: 6px; background: none; border: none;
}
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; }

/* ─── HERO ─── */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 110px 6% 80px; position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(99,102,241,.35) 0%, transparent 70%),
    radial-gradient(ellipse at 15% 80%, rgba(139,92,246,.1) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 70%, rgba(99,102,241,.1) 0%, transparent 50%);
}
.hero-content { position: relative; z-index: 1; max-width: 820px; margin: 0 auto; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(99,102,241,.12); border: 1px solid rgba(99,102,241,.3);
  color: #a5b4fc; padding: 6px 18px; border-radius: 100px;
  font-size: .82rem; font-weight: 600; letter-spacing: .04em; margin-bottom: 28px;
}
.hero h1 {
  font-size: clamp(2.4rem,6vw,4.2rem); font-weight: 800; line-height: 1.1; margin-bottom: 22px;
  background: linear-gradient(135deg,#f1f5f9 0%,#a5b4fc 55%,#c4b5fd 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero p { font-size: 1.15rem; color: var(--text2); max-width: 580px; margin: 0 auto 40px; }
.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 26px;
  border-radius: 10px; font-weight: 600; font-size: .95rem;
  cursor: pointer; border: none; transition: all .2s;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 4px 20px rgba(99,102,241,.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(99,102,241,.5); color: #fff; }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { background: var(--card-h); border-color: rgba(255,255,255,.2); transform: translateY(-2px); color: var(--text); }
.btn-sm { padding: 8px 18px; font-size: .85rem; }

/* ─── SECTIONS ─── */
section { padding: 88px 6%; }
.s-inner { max-width: 1160px; margin: 0 auto; }
.s-dark { background: var(--bg2); }
.s-alt { background: radial-gradient(ellipse at center,rgba(99,102,241,.05) 0%,transparent 70%); }
.s-label {
  font-size: .75rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--a1); margin-bottom: 10px;
}
.s-title { font-size: clamp(1.8rem,4vw,2.6rem); font-weight: 800; margin-bottom: 14px; }
.s-sub { font-size: 1rem; color: var(--text2); max-width: 580px; margin-bottom: 52px; line-height: 1.7; }
.text-center { text-align: center; }
.text-center .s-sub { margin-left: auto; margin-right: auto; }

/* ─── CARDS ─── */
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 22px; }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r);
  padding: 30px; transition: all .3s;
}
.card:hover {
  background: var(--card-h); border-color: rgba(99,102,241,.3);
  transform: translateY(-4px); box-shadow: var(--shadow);
}
.card-icon {
  width: 50px; height: 50px; background: var(--grad); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 18px;
}
.card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.card p { color: var(--text2); font-size: .9rem; line-height: 1.75; }

/* ─── SPEC TABLE ─── */
.spec-wrap {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden;
}
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table tr:nth-child(even) { background: rgba(255,255,255,.02); }
.spec-table tr:hover { background: rgba(99,102,241,.05); }
.spec-table td { padding: 13px 22px; border-bottom: 1px solid var(--border); font-size: .88rem; }
.spec-table td:first-child { color: var(--text2); font-weight: 500; width: 42%; }
.spec-table td:last-child { color: var(--text); font-weight: 600; font-family: 'Courier New',monospace; }
.spec-table tr:last-child td { border-bottom: none; }

/* ─── EXCHANGE / POOL GRID ─── */
.ex-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(190px,1fr)); gap: 16px; }
.ex-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r);
  padding: 22px 18px; text-align: center; display: flex; flex-direction: column;
  align-items: center; gap: 12px; transition: all .3s;
}
.ex-card:hover { border-color: rgba(99,102,241,.35); background: var(--card-h); transform: translateY(-3px); box-shadow: var(--shadow); }
.ex-card img { height: 30px; width: auto; object-fit: contain; filter: brightness(1.1) saturate(.9); }
.ex-card .ex-name { font-size: .82rem; font-weight: 600; color: var(--text2); }

/* ─── STATS ─── */
.stats-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; text-align: center; }
.stat-box { background: var(--card); border: 1px solid var(--border); border-radius: var(--r); padding: 36px 20px; }
.stat-num {
  font-size: 2.4rem; font-weight: 800; line-height: 1;
  background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 8px;
}
.stat-label { color: var(--text2); font-size: .88rem; font-weight: 500; }

/* ─── FAQ (details/summary) ─── */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
details.faq-item {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden;
  transition: border-color .2s;
}
details.faq-item[open] { border-color: rgba(99,102,241,.3); }
details.faq-item summary {
  padding: 18px 22px; font-weight: 600; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  user-select: none;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
  content: '+'; font-size: 1.3rem; color: var(--a1); flex-shrink: 0; transition: transform .25s;
}
details.faq-item[open] summary::after { content: '−'; }
details.faq-item .faq-body { padding: 0 22px 18px; color: var(--text2); font-size: .9rem; line-height: 1.75; }
details.faq-item .faq-body ul { padding-left: 20px; margin-top: 8px; }
details.faq-item .faq-body li { margin-bottom: 4px; }

/* ─── CONTACT FORM ─── */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 7px; color: var(--text2); font-size: .85rem; font-weight: 500; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; background: var(--card); border: 1px solid var(--border);
  border-radius: 8px; padding: 11px 15px; color: var(--text); font-family: var(--font);
  font-size: .92rem; outline: none; transition: border-color .2s;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--a1); }
.form-group textarea { resize: vertical; min-height: 130px; }

/* ─── CTA BANNER ─── */
.cta-banner {
  background: var(--grad); border-radius: 18px; padding: 64px 40px; text-align: center;
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 50%,rgba(255,255,255,.12) 0%,transparent 60%);
}
.cta-banner > * { position: relative; }
.cta-banner h2 { font-size: clamp(1.5rem,3vw,2.1rem); font-weight: 800; color: #fff; margin-bottom: 10px; }
.cta-banner p { color: rgba(255,255,255,.8); margin-bottom: 28px; }
.btn-white { background: #fff; color: var(--a1) !important; font-weight: 700 !important; }
.btn-white:hover { background: #f1f5f9; color: var(--a1) !important; transform: translateY(-2px); }

/* ─── PORTFOLIO CARDS ─── */
.portfolio-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.portfolio-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r);
  overflow: hidden; transition: all .3s;
}
.portfolio-card:hover { border-color: rgba(99,102,241,.3); transform: translateY(-4px); box-shadow: var(--shadow); }
.portfolio-card-img { height: 190px; overflow: hidden; }
.portfolio-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.portfolio-card:hover .portfolio-card-img img { transform: scale(1.05); }
.portfolio-card-body { padding: 22px; }
.portfolio-card-body h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.portfolio-card-body p { color: var(--text2); font-size: .87rem; margin-bottom: 14px; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 100px; font-size: .73rem; font-weight: 600; background: rgba(99,102,241,.15); color: #a5b4fc; margin-bottom: 12px; }

/* ─── PAGE HEADER ─── */
.page-header {
  padding: 140px 6% 70px; text-align: center;
  background: radial-gradient(ellipse 80% 60% at 50% 0%,rgba(99,102,241,.22) 0%,transparent 70%);
}
.page-header h1 {
  font-size: clamp(2rem,5vw,3.2rem); font-weight: 800; margin-bottom: 14px;
  background: linear-gradient(135deg,var(--text) 0%,#a5b4fc 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.page-header p { font-size: 1rem; color: var(--text2); max-width: 560px; margin: 0 auto; }

/* ─── TIMELINE (Roadmap) ─── */
.timeline { position: relative; padding-left: 28px; max-width: 780px; }
.timeline::before {
  content: ''; position: absolute; left: 6px; top: 0; bottom: 0;
  width: 2px; background: linear-gradient(to bottom,var(--a1),transparent);
}
.tl-item { position: relative; padding: 0 0 44px 28px; }
.tl-item::before {
  content: ''; position: absolute; left: -22px; top: 5px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--grad); border: 2px solid var(--bg);
}
.tl-date { font-size: .75rem; color: var(--a1); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 5px; }
.tl-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.tl-body { color: var(--text2); font-size: .9rem; line-height: 1.75; }
.badge { display: inline-block; padding: 2px 9px; border-radius: 100px; font-size: .72rem; font-weight: 600; }
.badge-done { background: rgba(34,197,94,.15); color: #4ade80; }
.badge-progress { background: rgba(99,102,241,.15); color: #a5b4fc; }
.badge-planned { background: rgba(100,116,139,.15); color: #94a3b8; }

/* ─── FORUM ─── */
.forum-category {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r);
  padding: 26px 28px; margin-bottom: 14px; display: flex; align-items: center;
  gap: 18px; transition: all .3s;
}
.forum-category:hover { border-color: rgba(99,102,241,.3); background: var(--card-h); }
.forum-icon { width: 46px; height: 46px; background: var(--grad); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.forum-info { flex: 1; }
.forum-info h3 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.forum-info p { color: var(--text2); font-size: .84rem; }
.forum-meta { text-align: right; color: var(--text3); font-size: .8rem; }

/* ─── CHATBOX ─── */
.chat-container {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r);
  max-width: 700px; margin: 0 auto; overflow: hidden;
}
.chat-header { background: var(--grad); padding: 16px 22px; display: flex; align-items: center; gap: 10px; }
.chat-header h3 { color: #fff; font-weight: 700; }
.chat-online { width: 8px; height: 8px; background: #4ade80; border-radius: 50%; }
.chat-messages { padding: 24px; display: flex; flex-direction: column; gap: 14px; min-height: 300px; }
.chat-msg { background: var(--bg3); border-radius: 10px; padding: 12px 16px; max-width: 80%; }
.chat-msg.own { background: rgba(99,102,241,.2); border: 1px solid rgba(99,102,241,.2); align-self: flex-end; }
.chat-msg-user { font-size: .75rem; font-weight: 700; color: var(--a1); margin-bottom: 4px; }
.chat-msg-text { font-size: .88rem; color: var(--text2); }
.chat-input { border-top: 1px solid var(--border); padding: 16px 18px; display: flex; gap: 10px; }
.chat-input input { flex: 1; background: var(--bg3); border: 1px solid var(--border); border-radius: 8px; padding: 10px 14px; color: var(--text); font-family: var(--font); font-size: .9rem; outline: none; }
.chat-input input:focus { border-color: var(--a1); }
.chat-note { text-align: center; color: var(--text3); font-size: .8rem; margin-top: 14px; }

/* ─── FOOTER ─── */
footer { background: var(--bg2); border-top: 1px solid var(--border); padding: 64px 6% 28px; }
.footer-inner { max-width: 1160px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand-logo { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; font-weight: 700; color: var(--text); margin-bottom: 14px; }
.footer-brand-logo img { width: 30px; height: 30px; border-radius: 50%; }
.footer-brand p { color: var(--text3); font-size: .87rem; line-height: 1.75; max-width: 270px; }
.footer-col h4 { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--text); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { color: var(--text3); font-size: .87rem; transition: color .2s; }
.footer-col ul li a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 22px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { color: var(--text3); font-size: .82rem; }
.social-links { display: flex; gap: 10px; }
.soc {
  width: 34px; height: 34px; background: var(--card); border: 1px solid var(--border);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  color: var(--text2); font-size: .85rem; transition: all .2s;
}
.soc:hover { background: var(--card-h); border-color: rgba(99,102,241,.3); color: var(--text); }

/* ─── 404 ─── */
.err-page { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100vh; text-align: center; padding: 40px; }
.err-code { font-size: 8rem; font-weight: 900; line-height: 1; background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.err-page h2 { font-size: 1.8rem; font-weight: 700; margin: 10px 0 14px; }
.err-page p { color: var(--text2); margin-bottom: 30px; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .portfolio-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: fixed; top: 68px; left: 0; right: 0; background: rgba(6,6,15,.97); padding: 20px 6%; border-bottom: 1px solid var(--border); gap: 18px; z-index: 199; }
  #nav-check:checked ~ .nav-links { display: flex; }
  .nav-burger { display: flex; }
  .grid-3, .grid-2, .stats-grid, .portfolio-grid, .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .ex-grid { grid-template-columns: repeat(2,1fr); }
  section { padding: 64px 5%; }
  .cta-banner { padding: 44px 22px; }
  .hero-btns { flex-direction: column; align-items: center; }
}
@media (max-width: 480px) {
  .ex-grid { grid-template-columns: 1fr; }
}
