/* ===== PIONEX REFERRAL CODE — GLOBAL STYLES ===== */
:root {
  --orange: #F7931A;
  --orange-dark: #d97a0f;
  --dark: #111827;
  --dark-2: #1f2937;
  --mid: #6b7280;
  --light: #f9fafb;
  --white: #ffffff;
  --border: #e5e7eb;
  --green: #10b981;
  --red: #ef4444;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  --radius: 10px;
  --shadow: 0 2px 12px rgba(0,0,0,.08);
  --max: 1100px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  color: var(--dark);
  background: var(--white);
  line-height: 1.65;
}

a { color: var(--orange); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

/* ===== NAV ===== */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 6px rgba(0,0,0,.06);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--dark);
  white-space: nowrap;
  text-decoration: none;
}
.nav-logo span { color: var(--orange); }
.nav-links {
  display: flex;
  align-items: center;
  gap: .1rem;
  list-style: none;
  flex-wrap: wrap;
}
.nav-links a {
  color: var(--dark);
  font-size: .82rem;
  font-weight: 500;
  padding: .35rem .6rem;
  border-radius: 6px;
  transition: background .15s, color .15s;
  white-space: nowrap;
  text-decoration: none;
}
.nav-links a:hover, .nav-links a.active { background: #fff4e8; color: var(--orange); }
.nav-cta {
  background: var(--orange);
  color: var(--white) !important;
  padding: .4rem .9rem !important;
  border-radius: 20px !important;
}
.nav-cta:hover { background: var(--orange-dark) !important; color: var(--white) !important; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: .5rem; }
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--dark);
  margin: 4px 0; transition: .2s;
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, #fff7ed 0%, #fff 60%, #fef9f0 100%);
  border-bottom: 1px solid var(--border);
  padding: 5rem 1.25rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, #f7931a18 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
.hero-badge {
  display: inline-block;
  background: #fff4e8;
  color: var(--orange);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: .3rem .85rem;
  border-radius: 20px;
  border: 1px solid #fcd9a0;
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--dark);
  margin-bottom: .75rem;
}
.hero h1 .code {
  color: var(--orange);
  background: #fff4e8;
  border: 2px solid #fcd9a0;
  border-radius: 8px;
  padding: 0 .25em;
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--mid);
  max-width: 580px;
  margin: 0 auto 2rem;
}
.hero-code-box {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  background: var(--white);
  border: 2px solid var(--orange);
  border-radius: var(--radius);
  padding: .75rem 1.25rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
}
.hero-code-box .label { font-size: .75rem; color: var(--mid); font-weight: 600; text-transform: uppercase; }
.hero-code-box .code { font-size: 1.4rem; font-weight: 800; color: var(--dark); letter-spacing: .05em; }
.copy-btn {
  background: #fff4e8;
  border: 1px solid #fcd9a0;
  color: var(--orange);
  font-size: .8rem;
  font-weight: 700;
  padding: .3rem .7rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background .15s;
}
.copy-btn:hover { background: var(--orange); color: var(--white); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  font-weight: 700;
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform .15s, box-shadow .15s, background .15s;
  border: none;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(247,147,26,.3); }
.btn-primary {
  background: var(--orange);
  color: var(--white) !important;
  padding: .9rem 2rem;
  font-size: 1.05rem;
}
.btn-primary:hover { background: var(--orange-dark); }
.btn-secondary {
  background: var(--white);
  color: var(--dark) !important;
  padding: .85rem 1.75rem;
  font-size: 1rem;
  border: 2px solid var(--border);
}
.btn-secondary:hover { border-color: var(--orange); box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.btn-sm { padding: .55rem 1.25rem; font-size: .9rem; }

/* ===== SECTIONS ===== */
section { padding: 4.5rem 1.25rem; }
section:nth-child(even) { background: var(--light); }
.section-label {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--orange);
  margin-bottom: .5rem;
}
h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: .5rem;
  line-height: 1.25;
}
h3 { font-size: 1.15rem; font-weight: 700; color: var(--dark); margin-bottom: .5rem; }
.section-sub { color: var(--mid); max-width: 600px; margin: 0 auto 2.5rem; font-size: 1.05rem; }
.center { text-align: center; }

/* ===== CARDS ===== */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.card-icon { font-size: 2rem; margin-bottom: 1rem; }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--mid); font-size: .95rem; }

/* ===== STEPS ===== */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.step-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-body h3 { margin-bottom: .25rem; font-size: 1rem; }
.step-body p { color: var(--mid); font-size: .9rem; }

/* ===== BONUS TABLE ===== */
.bonus-table { width: 100%; border-collapse: collapse; margin-top: 1.5rem; font-size: .95rem; }
.bonus-table th {
  background: var(--orange);
  color: var(--white);
  font-weight: 700;
  padding: .85rem 1rem;
  text-align: left;
}
.bonus-table td { padding: .8rem 1rem; border-bottom: 1px solid var(--border); }
.bonus-table tr:hover td { background: #fff9f2; }
.bonus-table tr:last-child td { border-bottom: none; }
.pill {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  padding: .2rem .6rem;
  border-radius: 20px;
}
.pill-green { background: #d1fae5; color: #065f46; }
.pill-orange { background: #fff4e8; color: #92400e; }

/* ===== COMPARISON TABLE ===== */
.compare-wrap { overflow-x: auto; }
.compare-table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 520px; }
.compare-table th {
  padding: 1rem;
  text-align: center;
  font-weight: 800;
  font-size: 1rem;
  border-bottom: 2px solid var(--border);
}
.compare-table th.pionex-col { color: var(--orange); }
.compare-table td { padding: .8rem 1rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.compare-table td:first-child { font-weight: 600; color: var(--mid); }
.compare-table td:not(:first-child) { text-align: center; }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:hover td { background: #f9fafb; }
.check { color: var(--green); font-size: 1.1rem; }
.cross { color: var(--red); font-size: 1.1rem; }
.winner { background: #fff4e8 !important; }
.winner td { font-weight: 700; }

/* ===== FAQ ===== */
.faq { max-width: 780px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  padding: 1.25rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-family: var(--font);
}
.faq-q:hover { color: var(--orange); }
.faq-q .arrow { color: var(--orange); font-size: 1.2rem; transition: transform .2s; flex-shrink: 0; }
.faq-q.open .arrow { transform: rotate(180deg); }
.faq-a { display: none; padding-bottom: 1.25rem; color: var(--mid); font-size: .97rem; }
.faq-a.open { display: block; }

/* ===== HIGHLIGHT BOX ===== */
.highlight-box {
  background: linear-gradient(135deg, #fff4e8, #fff9f2);
  border: 2px solid #fcd9a0;
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  margin: 2.5rem 0;
}
.highlight-box .big-code {
  font-size: 2rem;
  font-weight: 900;
  color: var(--orange);
  letter-spacing: .08em;
  margin-bottom: .5rem;
}

/* ===== TRUST BADGES ===== */
.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--mid);
}
.trust-item .icon { color: var(--green); font-size: 1.1rem; }

/* ===== BREADCRUMB ===== */
.breadcrumb { font-size: .85rem; color: var(--mid); padding: .75rem 0; }
.breadcrumb a { color: var(--mid); }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb span { margin: 0 .4rem; }

/* ===== ARTICLE BODY ===== */
.article { max-width: 820px; margin: 0 auto; }
.article h2 { margin: 2.5rem 0 1rem; }
.article h3 { margin: 1.75rem 0 .75rem; }
.article p { margin-bottom: 1rem; color: var(--dark-2); }
.article ul, .article ol { margin: .75rem 0 1rem 1.25rem; color: var(--dark-2); }
.article li { margin-bottom: .4rem; }
.article strong { color: var(--dark); }

/* ===== FOOTER ===== */
footer {
  background: var(--dark);
  color: #9ca3af;
  padding: 3rem 1.25rem 2rem;
  font-size: .9rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2rem;
}
.footer-brand { font-weight: 700; font-size: 1.1rem; color: var(--white); margin-bottom: .5rem; }
.footer-brand span { color: var(--orange); }
.footer-desc { line-height: 1.6; font-size: .88rem; }
.footer-col h4 { color: var(--white); font-size: .9rem; margin-bottom: .75rem; font-weight: 700; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: .4rem; }
.footer-col a { color: #9ca3af; text-decoration: none; font-size: .88rem; }
.footer-col a:hover { color: var(--orange); }
.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom a { color: #9ca3af; }
.footer-bottom a:hover { color: var(--orange); }
.risk-text {
  font-size: .78rem;
  color: #6b7280;
  max-width: 900px;
  margin: 1.5rem auto 0;
  text-align: center;
  line-height: 1.55;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--border); padding: 1rem; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .6rem .8rem; font-size: .9rem; }
  .nav-toggle { display: block; }
  .nav-inner { position: relative; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  section { padding: 3rem 1rem; }
  .hero { padding: 3.5rem 1rem 3rem; }
}
@media (max-width: 480px) {
  .hero-code-box { flex-direction: column; gap: .5rem; }
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
}
