/* ============================================================
   Roadmap
   ============================================================ */

.roadmap-timeline {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
}

.roadmap-line {
  position: absolute;
  left: 22px;
  top: 0; bottom: 0;
  width: 1px;
  background: var(--line-strong);
}
.roadmap-line-fill {
  position: absolute;
  left: 22px;
  top: 0;
  width: 1px;
  background: linear-gradient(180deg, var(--gold-bright), var(--purple));
  height: 0%;
  transition: height 0.2s linear;
}

.phase {
  position: relative;
  padding-left: 4.2rem;
  padding-bottom: 2.6rem;
}
.phase:last-child { padding-bottom: 0; }

.phase-dot {
  position: absolute;
  left: 14px; top: 2px;
  width: 17px; height: 17px;
  border-radius: 50%;
  background: var(--black-1);
  border: 2px solid var(--line-strong);
  transition: border-color 0.4s, background 0.4s;
  z-index: 2;
}
.phase.is-active .phase-dot,
.phase.is-done .phase-dot {
  border-color: var(--gold-bright);
  background: var(--gold-bright);
  box-shadow: 0 0 0 4px rgba(216,173,85,0.15);
}

.phase-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--black-1);
  overflow: hidden;
  transition: border-color 0.3s;
}
.phase.is-active .phase-card { border-color: var(--line-strong); }

.phase-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 1.5rem;
  text-align: left;
}

.phase-meta { display: flex; flex-direction: column; gap: 0.3rem; }

.phase-tag {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-dim);
}
.phase.is-done .phase-tag { color: var(--success); }
.phase.is-active .phase-tag { color: var(--gold-bright); }

.phase-trigger h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.02rem;
}
.phase-trigger .phase-quarter { color: var(--ink-3); font-weight: 400; font-size: 0.88rem; }

.phase-chevron {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform 0.35s var(--ease-out);
}
.phase[data-open="true"] .phase-chevron { transform: rotate(45deg); }

.phase-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease-in-out);
}

.phase-panel-inner {
  padding: 0 1.5rem 1.6rem;
  border-top: 1px solid var(--line);
  padding-top: 1.2rem;
}

.phase-goal {
  font-size: 0.85rem;
  color: var(--gold-bright);
  margin-bottom: 1rem;
  font-style: normal;
}

.milestone-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.55rem 1.2rem;
}

.milestone {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.85rem;
  color: var(--ink-2);
  line-height: 1.5;
}
.milestone svg { width: 14px; height: 14px; margin-top: 3px; flex-shrink: 0; color: var(--ink-4); }
.phase.is-done .milestone svg, .phase.is-active .milestone svg { color: var(--success); }

@media (max-width: 600px) {
  .milestone-grid { grid-template-columns: 1fr; }
  .phase { padding-left: 3.4rem; }
  .roadmap-line, .roadmap-line-fill { left: 17px; }
  .phase-dot { left: 9px; }
}

/* ============================================================
   Buy & Swap
   ============================================================ */

.buy-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--black-1);
}

.buy-swap-side {
  padding: clamp(2rem, 4vw, 2.8rem);
  border-right: 1px solid var(--line);
}

.swap-card {
  background: var(--black-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  padding: 1.4rem;
}

.swap-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem;
}
.swap-card-head .pcs-brand { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; font-weight: 600; }
.swap-card-head .pcs-brand svg { width: 22px; height: 22px; }

.swap-field {
  background: var(--black-1);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.95rem 1.05rem;
  margin-bottom: 0.5rem;
}
.swap-field .sf-label { font-size: 0.68rem; color: var(--ink-4); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.4rem; }
.swap-field .sf-row { display: flex; justify-content: space-between; align-items: center; }
.swap-field .sf-amount { font-family: var(--font-display); font-size: 1.15rem; color: var(--ink-2); }
.swap-field .sf-token { display: flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; background: var(--black-3); padding: 0.35rem 0.65rem; border-radius: 20px; }
.swap-field .sf-token .tok-dot { width: 16px; height: 16px; border-radius: 50%; }

.swap-arrow-wrap { display: flex; justify-content: center; margin: -0.25rem 0; position: relative; z-index: 2; }
.swap-arrow-wrap span {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--black-1);
  border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center;
}

.swap-card .btn-primary { width: 100%; margin-top: 1rem; }

.security-note {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  margin-top: 1.4rem;
  font-size: 0.78rem;
  color: var(--ink-3);
  line-height: 1.55;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(216,173,85,0.2);
  border-radius: var(--radius-sm);
  background: rgba(216,173,85,0.04);
}
.security-note svg { width: 17px; height: 17px; flex-shrink: 0; color: var(--gold-bright); margin-top: 1px; }

.buy-guide-side { padding: clamp(2rem, 4vw, 2.8rem); }

.guide-step { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
.guide-step:last-child { margin-bottom: 0; }
.guide-num {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 0.78rem;
  color: var(--gold-bright);
  flex-shrink: 0;
}
.guide-step h4 { font-family: var(--font-body); font-size: 0.94rem; font-weight: 600; margin-bottom: 0.3rem; }
.guide-step p { font-size: 0.83rem; color: var(--ink-3); line-height: 1.55; }

.contract-box {
  margin-top: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  background: var(--black-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
}
.contract-box .ca-text { font-family: 'Courier New', monospace; font-size: 0.72rem; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; }
.contract-box button { flex-shrink: 0; color: var(--gold-bright); display: flex; align-items: center; gap: 0.4rem; font-size: 0.78rem; font-weight: 600; }

.qr-row { display: flex; align-items: center; gap: 1rem; margin-top: 1.6rem; }
.qr-box { width: 76px; height: 76px; background: white; border-radius: 8px; padding: 6px; flex-shrink: 0; }
.qr-box svg, .qr-box img { width: 100%; height: 100%; }
.qr-row p { font-size: 0.78rem; color: var(--ink-3); }

@media (max-width: 880px) {
  .buy-panel { grid-template-columns: 1fr; }
  .buy-swap-side { border-right: none; border-bottom: 1px solid var(--line); }
}

/* ============================================================
   Community
   ============================================================ */

.community-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.community-card {
  background: var(--black-1);
  padding: 2rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: background 0.35s;
  position: relative;
}
.community-card:hover { background: var(--black-2); }

.community-card .cc-icon {
  width: 46px; height: 46px;
  border-radius: var(--radius-sm);
  background: var(--black-3);
  border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.35s var(--ease-out), border-color 0.35s;
}
.community-card:hover .cc-icon { transform: translateY(-3px); border-color: var(--gold-dim); }
.community-card .cc-icon svg { width: 24px; height: 24px; }

.community-card h4 { font-family: var(--font-body); font-size: 1rem; font-weight: 600; }
.community-card p { font-size: 0.83rem; color: var(--ink-3); line-height: 1.55; flex-grow: 1; }
.community-card .cc-link { font-size: 0.78rem; color: var(--gold-bright); font-weight: 600; display: inline-flex; align-items: center; gap: 0.35rem; }
.community-card .cc-link svg { width: 13px; height: 13px; transition: transform 0.3s; }
.community-card:hover .cc-link svg { transform: translate(2px, -2px); }

@media (max-width: 960px) { .community-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .community-grid { grid-template-columns: 1fr; } }

/* ============================================================
   FAQ
   ============================================================ */

.faq-list { max-width: 760px; margin: 0 auto; }

.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item:first-child { border-top: 1px solid var(--line); }

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 0.2rem;
  text-align: left;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--white);
}

.faq-q .fq-plus {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.35s var(--ease-out);
  position: relative;
}
.faq-q .fq-plus::before, .faq-q .fq-plus::after {
  content: '';
  position: absolute;
  background: var(--ink-2);
}
.faq-q .fq-plus::before { width: 10px; height: 1px; }
.faq-q .fq-plus::after { width: 1px; height: 10px; }
.faq-item[data-open="true"] .fq-plus { transform: rotate(45deg); border-color: var(--gold-dim); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s var(--ease-in-out);
}
.faq-a-inner {
  padding: 0 0.2rem 1.5rem;
  color: var(--ink-2);
  font-size: 0.92rem;
  line-height: 1.75;
  max-width: 640px;
}
