/* ============ GLOBAL ============ */
:root{
  --bg:#f7f8fa;
  --card:#ffffff;
  --ink:#111827;
  --muted:#6b7280;
  --line:rgba(15,23,42,.10);
  --accent:#0FA958; /* main green */
  --accent-soft:rgba(15,169,88,.08);
  --danger:#ef4444;
  --radius-lg:16px;
  --radius-md:12px;
  --shadow-soft:0 18px 45px rgba(15,23,42,.12);
  --max-width:520px;
}
*{box-sizing:border-box;}
html{font-size:100%;}
body{
  margin:0;
  font-family:'Inter',system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  background:
    radial-gradient(circle at 0 0,#e0f2fe 0,#f7f8fa 38%,#ecfdf5 100%);
  color:var(--ink);
  -webkit-font-smoothing:antialiased;
}
.page{
  min-height:100vh;
  display:flex;
  flex-direction:column;
  align-items:center;
  padding:18px 14px 96px;
}
.shell{
  width:100%;
  max-width:var(--max-width);
}

/* ============ HERO ============ */
.badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 10px;
  border-radius:999px;
  background:var(--accent-soft);
  color:#047857;
  font-size:.73rem;
  font-weight:500;
  margin-bottom:10px;
  box-shadow:0 8px 18px rgba(34,197,94,.25);
}
.badge-dot{
  width:7px;
  height:7px;
  border-radius:999px;
  background:#22c55e;
  box-shadow:0 0 0 6px rgba(34,197,94,.25);
}
h1{
  font-size:1.55rem;
  line-height:1.25;
  margin:0 0 10px;
  letter-spacing:-0.02em;
}
.hero-sub{
  margin:0 0 14px;
  font-size:.95rem;
  color:var(--muted);
  line-height:1.6;
}
.hero-highlight{
  font-size:.85rem;
  color:#065f46;
  background:var(--accent-soft);
  border-radius:var(--radius-md);
  padding:8px 10px;
  display:inline-flex;
  align-items:flex-start;
  gap:8px;
  margin-bottom:18px;
  box-shadow:0 10px 30px rgba(16,185,129,.3);
}
.hero-highlight strong{
  display:block;
  font-weight:600;
  color:#064e3b;
}
.hero-highlight-icon{
  font-size:1rem;
  line-height:1;
  margin-top:1px;
}

/* ============ HERO VISUAL ============ */
.hero-visual{
  margin:0 0 18px;
}
.hero-card{
  border-radius:var(--radius-lg);
  background:
    radial-gradient(circle at 0 0,rgba(34,197,94,.16),transparent 60%),
    radial-gradient(circle at 120% 20%,rgba(59,130,246,.2),transparent 60%),
    var(--card);
  border:1px solid rgba(148,163,184,.4);
  padding:14px 14px 12px;
  display:flex;
  align-items:center;
  gap:10px;
  box-shadow:0 16px 45px rgba(15,23,42,.08);
  transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease;
}
.hero-card:hover{
  transform:translateY(-2px);
  box-shadow:0 22px 55px rgba(15,23,42,.16);
  border-color:rgba(34,197,94,.55);
}
.hero-chip{
  width:46px;
  height:46px;
  border-radius:999px;
  background:conic-gradient(from 210deg,rgba(15,169,88,.1),rgba(59,130,246,.35),rgba(15,169,88,.95));
  display:flex;
  align-items:center;
  justify-content:center;
  color:#ecfdf5;
  font-size:1.3rem;
  font-weight:700;
  position:relative;
  overflow:hidden;
  box-shadow:0 14px 35px rgba(15,23,42,.65);
}
.hero-chip::after{
  content:'AI';
  font-size:.6rem;
  letter-spacing:0.08em;
  text-transform:uppercase;
  position:absolute;
  bottom:6px;
  right:8px;
  opacity:.9;
}
.hero-meta{
  flex:1;
  min-width:0;
}
.hero-meta-title{
  font-size:.9rem;
  font-weight:600;
  margin:0 0 4px;
}
.hero-meta-sub{
  margin:0;
  font-size:.8rem;
  color:var(--muted);
  line-height:1.5;
}
.pill-row{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:10px;
}
.pill{
  font-size:.78rem;
  padding:4px 10px;
  border-radius:999px;
  background:rgba(248,250,252,.9);
  border:1px solid rgba(148,163,184,.7);
  color:#4b5563;
  white-space:nowrap;
  box-shadow:0 6px 14px rgba(15,23,42,.06);
}
.pill strong{color:#111827;}

/* ============ MAIN CARD ============ */
.card{
  margin-top:18px;
  background:var(--card);
  border-radius:var(--radius-lg);
  padding:16px 14px 16px;
  border:1px solid rgba(148,163,184,.32);
  box-shadow:var(--shadow-soft);
}
.card-header{
  display:flex;
  justify-content:space-between;
  gap:8px;
  align-items:center;
  margin-bottom:10px;
}
.card-title{
  font-size:1rem;
  font-weight:600;
  margin:0;
}
.card-sub{
  font-size:.8rem;
  color:var(--muted);
  margin:4px 0 0;
}
.steps{
  font-size:.78rem;
  color:#6b7280;
  display:flex;
  gap:10px;
  margin-top:8px;
  flex-wrap:wrap;
}
.steps span{
  display:inline-flex;
  align-items:center;
  gap:5px;
}
.steps-badge{
  width:18px;
  height:18px;
  border-radius:999px;
  background:rgba(15,169,88,.08);
  color:#047857;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:.7rem;
  font-weight:600;
}

/* ============ FORM ============ */
.field-wrap{
  margin-top:12px;
}
.label-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:4px;
}
label{
  font-size:.8rem;
  font-weight:500;
}
.label-hint{
  font-size:.73rem;
  color:var(--muted);
}
.input-row{
  display:flex;
  gap:8px;
  align-items:stretch;
}
.input{
  flex:1;
  border-radius:999px;
  border:1px solid rgba(148,163,184,.8);
  padding:9px 12px;
  font-size:.86rem;
  font-family:inherit;
  outline:none;
  background:#f9fafb;
  transition:border-color .18s ease,box-shadow .18s ease,background .18s;
}
.input:focus{
  border-color:var(--accent);
  background:#ffffff;
  box-shadow:0 0 0 1px rgba(16,185,129,.35);
}
.input::placeholder{
  color:#9ca3af;
}
.btn{
  border:none;
  appearance:none;
  border-radius:999px;
  padding:0 16px;
  font-size:.86rem;
  font-weight:600;
  font-family:inherit;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  white-space:nowrap;
  background:linear-gradient(135deg,#22c55e,#16a34a);
  color:#ecfdf5;
  box-shadow:0 10px 25px rgba(16,185,129,.35);
  transition:transform .12s ease,box-shadow .12s ease,background .12s ease,filter .12s ease;
}
.btn span.icon{
  font-size:1rem;
}
.btn:hover{
  transform:translateY(-1px);
  box-shadow:0 14px 35px rgba(16,185,129,.4);
  filter:brightness(1.02);
}
.btn:active{
  transform:translateY(0);
  box-shadow:0 8px 18px rgba(16,185,129,.35);
}
.btn-secondary{
  background:linear-gradient(135deg,#0f172a,#020617);
  color:#f9fafb;
  box-shadow:0 8px 24px rgba(15,23,42,.7);
}
.btn-secondary:hover{
  background:linear-gradient(135deg,#020617,#020617);
}
.btn-ghost{
  background:transparent;
  color:#e5e7eb;
  border:1px solid rgba(148,163,184,.6);
  box-shadow:none;
}
.btn-ghost:hover{
  background:rgba(15,23,42,.7);
  box-shadow:0 6px 18px rgba(15,23,42,.7);
}
.error{
  font-size:.75rem;
  color:var(--danger);
  margin-top:6px;
  min-height:1em;
}

/* ============ TRUST ============ */
.trust{
  margin-top:18px;
  padding:14px;
  border-radius:var(--radius-lg);
  background:rgba(15,23,42,.02);
  border:1px dashed rgba(148,163,184,.7);
}
.trust-title{
  font-size:.92rem;
  font-weight:600;
  margin:0 0 6px;
}
.trust ul{
  margin:0;
  padding-left:18px;
}
.trust li{
  font-size:.8rem;
  color:var(--muted);
  margin-bottom:4px;
  line-height:1.5;
}

/* ============ STOCKS ============ */
.stocks{
  margin-top:16px;
  padding:14px;
  border-radius:var(--radius-lg);
  background:var(--card);
  border:1px solid rgba(148,163,184,.3);
  box-shadow:0 10px 30px rgba(15,23,42,.08);
}
.section-title{
  font-size:.9rem;
  font-weight:600;
  margin:0 0 6px;
}
.stock-tags{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-top:8px;
}
.stock-tag{
  padding:4px 9px;
  font-size:.78rem;
  border-radius:999px;
  background:#0f172a;
  color:#e5e7eb;
}

/* ============ PERSONA ============ */
.persona{
  margin-top:16px;
  padding:14px;
  border-radius:var(--radius-lg);
  background:var(--card);
  border:1px solid rgba(148,163,184,.3);
  display:flex;
  gap:12px;
  align-items:flex-start;
  box-shadow:0 10px 30px rgba(15,23,42,.08);
}
.avatar-wrap{
  width:52px;
  height:52px;
  border-radius:999px;
  background:radial-gradient(circle at 20% 0,rgba(248,250,252,.9),transparent 55%),radial-gradient(circle at 80% 120%,rgba(16,185,129,.72),rgba(59,130,246,.7));
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 16px 35px rgba(15,23,42,.4);
  position:relative;
  overflow:hidden;
}
.avatar-face{
  width:34px;
  height:34px;
  border-radius:999px;
  background:radial-gradient(circle at 30% 20%,#fef9c3,#fed7aa);
  position:relative;
}
.avatar-face::before,
.avatar-face::after{
  content:'';
  position:absolute;
  top:13px;
  width:5px;
  height:5px;
  border-radius:999px;
  background:#0f172a;
}
.avatar-face::before{left:9px;}
.avatar-face::after{right:9px;}
.avatar-mouth{
  position:absolute;
  bottom:9px;
  left:50%;
  width:14px;
  height:7px;
  border-radius:0 0 999px 999px;
  border-bottom:2px solid #0f172a;
  transform:translateX(-50%);
}
.avatar-body{
  position:absolute;
  bottom:-5px;
  left:50%;
  width:40px;
  height:22px;
  border-radius:999px;
  background:linear-gradient(135deg,#22c55e,#16a34a);
  transform:translateX(-50%);
}
.persona-main-title{
  font-size:.88rem;
  font-weight:600;
  margin:0 0 2px;
}
.persona-role{
  font-size:.76rem;
  color:#22c55e;
  font-weight:500;
  margin:0 0 6px;
}
.persona-text{
  font-size:.8rem;
  color:var(--muted);
  margin:0;
  line-height:1.55;
}

/* ============ FAQ ============ */
.faq{
  margin-top:18px;
  padding:14px;
  border-radius:var(--radius-lg);
  background:#0b1120;
  color:#e5e7eb;
  box-shadow:0 18px 45px rgba(15,23,42,.75);
  border:1px solid rgba(30,64,175,.7);
}
.faq .section-title{
  color:#e5e7eb;
}
.faq-item{
  margin-top:8px;
}
.faq-q{
  font-size:.82rem;
  font-weight:600;
  margin:0 0 3px;
}
.faq-a{
  font-size:.8rem;
  color:#cbd5f5;
  margin:0;
  line-height:1.55;
}

/* ============ FOOTER CTA ============ */
.footer-cta{
  margin-top:18px;
  padding:14px;
  border-radius:var(--radius-lg);
  background:var(--card);
  border:1px solid rgba(148,163,184,.4);
  text-align:center;
  box-shadow:0 12px 32px rgba(15,23,42,.08);
}
.footer-cta-title{
  font-size:.96rem;
  font-weight:600;
  margin:0 0 6px;
}
.footer-cta-sub{
  font-size:.82rem;
  color:var(--muted);
  margin:0 0 12px;
}
.foot-note{
  margin-top:10px;
  font-size:.72rem;
  color:#9ca3af;
  text-align:center;
  max-width:var(--max-width);
}

/* ============ FLOATING WA BAR ============ */
.wa-bar{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  padding:10px 14px 14px;
  background:linear-gradient(180deg,rgba(15,23,42,.0),rgba(15,23,42,.55));
  display:flex;
  justify-content:center;
  pointer-events:none;
  z-index:40;
}
.wa-bar-inner{
  width:100%;
  max-width:var(--max-width);
  pointer-events:auto;
  background:#022c22;
  border-radius:999px;
  padding:6px 10px;
  display:flex;
  align-items:center;
  gap:8px;
  box-shadow:0 20px 40px rgba(15,23,42,.9);
}
.wa-bar-text{
  flex:1;
  min-width:0;
}
.wa-bar-title{
  font-size:.78rem;
  font-weight:600;
  color:#ecfdf5;
  margin:0;
}
.wa-bar-sub{
  font-size:.72rem;
  color:#a7f3d0;
  margin:1px 0 0;
}
.wa-icon-circle{
  width:30px;
  height:30px;
  border-radius:999px;
  background:#22c55e;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#022c22;
  font-size:1.1rem;
  flex-shrink:0;
}
.wa-bar-btn{
  border:none;
  border-radius:999px;
  padding:6px 12px;
  font-size:.78rem;
  font-weight:600;
  font-family:inherit;
  background:#ecfdf5;
  color:#065f46;
  cursor:pointer;
  white-space:nowrap;
  display:inline-flex;
  align-items:center;
  gap:6px;
}

/* ============ MODAL ============ */
.modal-backdrop{
  position:fixed;
  inset:0;
  background:rgba(15,23,42,.55);
  display:none;
  align-items:center;
  justify-content:center;
  padding:18px;
  z-index:50;
}
.modal-backdrop.active{
  display:flex;
}
.modal{
  width:100%;
  max-width:400px;
  background:#020617;
  color:#e5e7eb;
  border-radius:18px;
  padding:16px 16px 14px;
  box-shadow:0 22px 60px rgba(15,23,42,.85);
  position:relative;
  border:1px solid rgba(148,163,184,.5);
  overflow:hidden;
}

/* 半透明领取成功滚动条 */
.modal-ticker{
  position:relative;
  overflow:hidden;
  border-radius:999px;
  background:rgba(15,23,42,.4);
  border:1px solid rgba(34,197,94,.7);
  padding:3px 0;
  margin:-2px -2px 10px;
  backdrop-filter:blur(3px);
}
.modal-ticker-inner{
  display:inline-block;
  white-space:nowrap;
  font-size:.72rem;
  color:#bbf7d0;
  animation:ticker-scroll 22s linear infinite;
}
@keyframes ticker-scroll{
  0%{transform:translateX(0);}
  100%{transform:translateX(-100%);}
}

.modal-tag{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:3px 8px;
  border-radius:999px;
  background:rgba(34,197,94,.16);
  color:#bbf7d0;
  font-size:.72rem;
  margin-bottom:8px;
}
.modal-title{
  font-size:.98rem;
  font-weight:600;
  margin:0 0 6px;
}
.modal-sub{
  font-size:.8rem;
  color:#cbd5f5;
  margin:0 0 10px;
  line-height:1.6;
}
.modal-summary{
  margin:0 0 10px;
  padding:8px 10px;
  border-radius:12px;
  background:rgba(15,23,42,.7);
  border:1px dashed rgba(148,163,184,.7);
  font-size:.78rem;
  color:#e5e7eb;
}
.modal-summary strong{
  color:#a7f3d0;
}
.modal-list{
  margin:0 0 10px;
  padding-left:16px;
}
.modal-list li{
  font-size:.78rem;
  color:#cbd5f5;
  margin-bottom:4px;
  line-height:1.5;
}
.modal-actions{
  margin-top:8px;
  display:flex;
  flex-direction:column;
  gap:6px;
}
.modal-buttons{
  display:flex;
  gap:8px;
  align-items:stretch;
}
.modal-buttons .btn{
  flex:1;
}
.modal-note{
  font-size:.7rem;
  color:#9ca3af;
  margin:0;
  text-align:left;
}
.modal-close{
  position:absolute;
  top:10px;
  right:10px;
  width:24px;
  height:24px;
  border-radius:999px;
  border:none;
  background:rgba(15,23,42,.8);
  color:#9ca3af;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:1rem;
  cursor:pointer;
}
.modal-close:hover{
  background:rgba(15,23,42,1);
  color:#e5e7eb;
}

/* ============ RESPONSIVE ============ */
@media (min-width:640px){
  .page{padding-top:32px;padding-bottom:110px;}
  h1{font-size:1.8rem;}
  .hero-card{padding:16px 16px 14px;}
}
