/* ============================================================
   MintaSol — main stylesheet
   Palette + type scale live in :root; keep component rules
   grouped by section (nav → hero → sections → footer → modal).
   ============================================================ */

:root {
  --bg: #07060e;
  --bg-soft: #0d0b18;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-border: rgba(255, 255, 255, 0.09);
  --text: #e7e5f4;
  --text-dim: #9d98b8;
  --violet: #7c3aed;
  --cyan: #22d3ee;
  --grad: linear-gradient(100deg, var(--violet), var(--cyan));
  --font-display: "Space Grotesk", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  --radius: 14px;
  --container: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  line-height: 1.6;
  overflow-x: hidden;
}

.mono { font-family: var(--font-mono); }
.container { width: min(var(--container), calc(100% - 2.5rem)); margin-inline: auto; }
.container-narrow { max-width: 720px; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---------- background orbs ---------- */
.bg-orbs { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.35; }
.orb-violet { width: 480px; height: 480px; background: var(--violet); top: -160px; right: -120px; }
.orb-cyan { width: 380px; height: 380px; background: #0e7490; bottom: -140px; left: -120px; }
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 70%);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem; padding: 0.75rem 1.5rem;
  border-radius: 10px; border: 1px solid transparent;
  font: 600 0.95rem var(--font-display);
  cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--grad); color: #0b0a14;
  box-shadow: 0 8px 28px rgba(124, 58, 237, 0.35);
}
.btn-primary:hover { box-shadow: 0 10px 34px rgba(34, 211, 238, 0.4); }
.btn-ghost {
  background: transparent; color: var(--text);
  border-color: var(--panel-border);
}
.btn-ghost:hover { background: var(--panel); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(7, 6, 14, 0.75);
  border-bottom: 1px solid var(--panel-border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: 0.5rem; font-size: 1.15rem; font-weight: 700; }
.brand-mark { color: var(--cyan); }
.brand-name b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; gap: 1.75rem; }
.nav-links a { color: var(--text-dim); font-size: 0.92rem; font-weight: 500; transition: color 0.15s; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 0.75rem; }
.nav-actions .btn { padding: 0.55rem 1.1rem; font-size: 0.85rem; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; }

/* ---------- hero ---------- */
.hero { padding: 5.5rem 0 4rem; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3.5rem; align-items: center; }
.eyebrow { color: var(--cyan); font-size: 0.8rem; letter-spacing: 0.12em; margin-bottom: 1.1rem; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); line-height: 1.08; letter-spacing: -0.02em; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--text-dim); margin: 1.25rem 0 1.5rem; max-width: 46ch; }
.hero-points { list-style: none; display: grid; gap: 0.55rem; font-size: 0.85rem; color: var(--text-dim); }
.hero-points .tick { color: var(--cyan); margin-right: 0.5rem; }

.countdown {
  display: inline-flex; gap: 0.6rem; margin-top: 2rem;
  padding: 0.85rem 1.1rem; border: 1px solid var(--panel-border);
  border-radius: var(--radius); background: var(--panel);
}
.cd-cell { display: grid; justify-items: center; min-width: 52px; }
.cd-cell b { font: 700 1.3rem var(--font-mono); }
.cd-cell span { font: 500 0.62rem var(--font-mono); color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.1em; }

/* ---------- mint card ---------- */
.mint-card {
  background: var(--bg-soft);
  border: 1px solid var(--panel-border);
  border-radius: 18px; padding: 1.4rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.mint-art {
  height: 210px; border-radius: 12px; margin-bottom: 1.1rem;
  background:
    radial-gradient(circle at 30% 20%, rgba(124, 58, 237, 0.5), transparent 55%),
    radial-gradient(circle at 75% 80%, rgba(34, 211, 238, 0.4), transparent 50%),
    #0b0916;
  border: 1px solid var(--panel-border);
  display: grid; place-items: center;
}
.mint-art-inner { text-align: center; }
.art-tag { display: block; font-size: 0.68rem; letter-spacing: 0.22em; color: var(--cyan); margin-bottom: 0.4rem; }
.mint-art-inner strong { font-size: 2rem; font-family: var(--font-mono); }
.mint-meta { display: grid; gap: 0.45rem; margin-bottom: 0.9rem; }
.mint-row { display: flex; justify-content: space-between; font-size: 0.88rem; color: var(--text-dim); }
.mint-row b { color: var(--text); }

.progress { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, 0.07); overflow: hidden; margin-bottom: 1rem; }
.progress-fill { height: 100%; width: 0%; background: var(--grad); border-radius: 99px; transition: width 0.8s ease; }

.qty-row { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1rem; }
.qty-btn {
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--panel); border: 1px solid var(--panel-border);
  color: var(--text); font-size: 1.1rem; cursor: pointer;
}
.qty-btn:hover { background: rgba(255, 255, 255, 0.09); }
.qty-val { min-width: 1.6rem; text-align: center; font-weight: 700; }
.qty-total { margin-left: auto; font-size: 0.8rem; color: var(--text-dim); }
.btn-mint { width: 100%; padding: 1rem; font-size: 1.05rem; letter-spacing: 0.06em; }
.mint-note { margin-top: 0.8rem; text-align: center; font-size: 0.68rem; color: var(--text-dim); letter-spacing: 0.04em; }

/* ---------- sections ---------- */
.section { padding: 4.5rem 0; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); text-align: center; margin-bottom: 2.75rem; letter-spacing: -0.01em; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.step { background: var(--panel); border: 1px solid var(--panel-border); border-radius: var(--radius); padding: 1.6rem; }
.step-num { color: var(--cyan); font-size: 0.8rem; letter-spacing: 0.15em; }
.step h3 { margin: 0.6rem 0 0.5rem; font-size: 1.15rem; }
.step p { color: var(--text-dim); font-size: 0.92rem; }

/* ---------- roadmap ---------- */
.timeline { list-style: none; position: relative; max-width: 680px; margin-inline: auto; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px;
  width: 2px; background: var(--panel-border);
}
.tl-item { position: relative; padding: 0 0 2rem 2.2rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute; left: 0; top: 6px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--bg); border: 2px solid var(--text-dim);
}
.tl-item.done .tl-dot { background: var(--cyan); border-color: var(--cyan); }
.tl-item.active .tl-dot { border-color: var(--violet); box-shadow: 0 0 14px rgba(124, 58, 237, 0.8); }
.tl-item h3 { font-size: 0.95rem; letter-spacing: 0.06em; margin-bottom: 0.35rem; }
.tl-item p { color: var(--text-dim); font-size: 0.9rem; }
.badge {
  font-size: 0.62rem; padding: 0.15rem 0.5rem; border-radius: 99px;
  background: rgba(34, 211, 238, 0.14); color: var(--cyan);
  vertical-align: middle; margin-left: 0.4rem;
}

/* ---------- faq ---------- */
.faq-list { display: grid; gap: 0.75rem; }
.faq {
  background: var(--panel); border: 1px solid var(--panel-border);
  border-radius: var(--radius); padding: 1rem 1.25rem;
}
.faq summary {
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; font-weight: 600; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq-icon { color: var(--cyan); font-size: 1.2rem; transition: transform 0.2s; }
.faq[open] .faq-icon { transform: rotate(45deg); }
.faq p { color: var(--text-dim); font-size: 0.92rem; margin-top: 0.6rem; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--panel-border); padding: 2.2rem 0; margin-top: 2rem; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.footer-links { display: flex; gap: 1.4rem; font-size: 0.88rem; color: var(--text-dim); }
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: 0.7rem; color: var(--text-dim); }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(4, 3, 10, 0.8); backdrop-filter: blur(4px); }
.modal-panel {
  position: relative; width: min(520px, calc(100% - 2rem));
  background: var(--bg-soft); border: 1px solid var(--panel-border);
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6);
}
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid var(--panel-border); }
.modal-head h3 { font-size: 1.05rem; }
.modal-close { background: none; border: 0; color: var(--text-dim); font-size: 1.6rem; cursor: pointer; line-height: 1; }
.modal-close:hover { color: var(--text); }
.modal-body { padding: 1.25rem; min-height: 240px; }
.modal-body iframe { width: 100%; height: 560px; border: 0; border-radius: 10px; background: #fff; }

/* ---------- toast ---------- */
.toast {
  position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  z-index: 120; background: var(--bg-soft); border: 1px solid var(--panel-border);
  padding: 0.7rem 1.2rem; border-radius: 10px; font-size: 0.78rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .steps { grid-template-columns: 1fr; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--bg-soft); border-bottom: 1px solid var(--panel-border);
    max-height: 0; overflow: hidden; transition: max-height 0.25s ease;
  }
  .nav-links.open { max-height: 300px; }
  .nav-links a { padding: 0.9rem 1.4rem; border-top: 1px solid var(--panel-border); }
  .nav-toggle { display: flex; }
}
