:root{
  --accent:#248658;          /* darkened from Figma's #2fae72 to keep white text/buttons >=4.5:1 on white */
  --accent-soft:#e8f5ee;
  --diplomat-deep:#1c7a59;
  --bg-primary:#ffffff;
  --bg-warmcanvas:#fffcf9;
  --text-primary:#0d0d11;
  --text-secondary:#6e6e7a;
  --border-default:#e1e1e8;
  --surface-elevated:rgba(255,255,255,.97);
  --surface-glass:rgba(255,255,255,.86);

  --analyst:#40338c;
  --diplomat:#35a873;
  --diplomat-ink:#2a865c;
  --sentinel:#2f6db5;
  --explorer:#df7d12;
  --explorer-ink:#b0630e;

  --quick:#ffe39e;
  --quick-ink:#996d00;
  --depth:#e0f7ec;
  --depth-ink:#228355;
  --match-heart-ink:#aa6500;
  --glow-lavender:#c2b3ff;

  --radius-sm:14px;
  --radius-md:20px;
  --radius-lg:24px;
  --radius-xl:28px;
  --radius-full:999px;
  --max:1280px;
  --font-sans:'Inter','Noto Sans SC',-apple-system,BlinkMacSystemFont,'PingFang SC','Microsoft YaHei',sans-serif;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;background:var(--bg-primary);color:var(--text-primary);
  font-family:var(--font-sans);line-height:1.6;-webkit-font-smoothing:antialiased;
}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
.wrap{width:min(calc(100% - 40px),var(--max));margin:auto}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  height:52px;padding:0 24px;border-radius:var(--radius-full);
  font-weight:500;font-size:15px;white-space:nowrap;
  border:1.5px solid var(--accent);cursor:pointer;transition:transform .15s ease,box-shadow .15s ease;
}
.btn:hover{transform:translateY(-1px)}
.btn-primary{background:var(--accent);color:#fff;box-shadow:0 8px 20px rgba(36,134,88,.24)}
.btn-primary:hover{box-shadow:0 12px 26px rgba(36,134,88,.32)}
.btn-secondary{background:var(--bg-primary);color:var(--accent)}
.btn-on-dark{background:#fff;border-color:#fff;color:var(--accent)}

/* ---------- Header ---------- */
.site-header{
  position:sticky;top:0;z-index:30;background:rgba(255,255,255,.9);backdrop-filter:blur(14px);
  border-bottom:1px solid var(--border-default);
}
.header-inner{height:88px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.brand{font-weight:700;font-size:27px;color:var(--accent);letter-spacing:-.01em}
.main-nav{display:flex;align-items:center;gap:38px}
.main-nav a{font-weight:500;font-size:14px;color:var(--text-primary);opacity:.85}
.main-nav a:hover{opacity:1;color:var(--accent)}
.header-cta{display:flex;align-items:center;gap:16px}
.lang-toggle{
  border:1px solid var(--border-default);border-radius:var(--radius-full);background:none;
  color:var(--text-primary);font-weight:500;font-size:13px;padding:9px 16px;cursor:pointer;font-family:var(--font-sans);
}
.lang-toggle:hover{border-color:var(--accent);color:var(--accent)}
.lang-toggle.mobile{width:100%;padding:12px 16px;margin-top:4px}
.menu-toggle{
  display:none;width:44px;height:44px;border-radius:12px;border:1px solid var(--border-default);
  background:#fff;align-items:center;justify-content:center;cursor:pointer;flex-shrink:0;
}
.menu-toggle span{display:block;width:18px;height:2px;background:var(--text-primary);position:relative}
.menu-toggle span::before,.menu-toggle span::after{content:"";position:absolute;left:0;width:18px;height:2px;background:var(--text-primary)}
.menu-toggle span::before{top:-6px}
.menu-toggle span::after{top:6px}
.mobile-panel{display:none;flex-direction:column;gap:4px;padding:12px 0 20px;border-top:1px solid var(--border-default)}
.mobile-panel a{padding:12px 4px;font-weight:500;font-size:15px;border-bottom:1px solid var(--border-default)}
.mobile-panel .btn{margin-top:12px;width:100%}
.mobile-panel.open{display:flex}

/* ---------- Section shells ---------- */
section{padding:90px 0}
.eyebrow{font-weight:700;font-size:13px;letter-spacing:.06em;text-transform:uppercase;color:var(--accent);margin:0 0 14px}
h1,h2,h3{font-weight:700;color:var(--text-primary);margin:0}
.section-head{max-width:720px;margin:0 auto 40px;text-align:center}
.section-head p{color:var(--text-secondary);font-size:16px;margin:12px 0 0}
.section-head h2{font-size:clamp(28px,4vw,36px);line-height:1.3}

/* ---------- Hero ---------- */
.hero{background:var(--bg-primary);padding:64px 0 60px;overflow:hidden}
.hero-inner{display:grid;grid-template-columns:1fr 1fr;gap:60px;align-items:center}
.hero-copy h1{font-size:clamp(36px,4.6vw,52px);line-height:1.25;letter-spacing:-.01em;margin:16px 0 20px}
.hero-copy .lead{font-size:clamp(16px,1.4vw,18px);color:var(--text-secondary);line-height:1.6;max-width:490px;margin:0 0 28px}
.hero-actions{display:flex;gap:16px;flex-wrap:wrap;margin-bottom:16px}
.trust-note{font-size:13px;color:var(--text-secondary);font-weight:500}

.phones{position:relative;height:600px;display:flex;align-items:center;justify-content:center}
.phone{
  position:absolute;width:230px;background:var(--bg-warmcanvas);border:1px solid var(--border-default);
  border-radius:32px;box-shadow:0 24px 50px rgba(20,20,30,.14);overflow:hidden;padding:14px 12px;
}
.phone-status{font-size:11px;font-weight:600;color:var(--text-primary);display:flex;justify-content:space-between;margin-bottom:8px}
.phone-1{left:0;top:60px;z-index:1;height:480px}
.phone-2{left:130px;top:0;z-index:2;height:560px;width:246px}
.phone-3{left:280px;top:40px;z-index:3;height:500px}

/* Phone 1: Home */
.ph-home-title{font-weight:700;font-size:20px;margin:2px 0 12px}
.ph-label{font-size:11px;color:var(--text-secondary);font-weight:600;margin-bottom:8px}
.ph-personality-card{
  background:linear-gradient(135deg,var(--analyst),#5c48b8);border-radius:18px;padding:14px 16px;color:#fff;margin-bottom:10px;
  position:relative;overflow:hidden;
}
.ph-personality-card .type{font-weight:700;font-size:22px}
.ph-personality-card .tag{
  display:inline-block;background:rgba(255,255,255,.22);border-radius:var(--radius-full);
  font-size:10px;font-weight:600;padding:3px 8px;margin:4px 0 6px;
}
.ph-personality-card .link{font-size:10px;opacity:.9}
.ph-invite-card{
  background:var(--bg-primary);border:1px solid var(--border-default);border-radius:16px;padding:12px 14px;
  font-size:11px;font-weight:600;color:var(--text-primary);margin-bottom:12px;display:flex;align-items:center;gap:8px;
}
.ph-invite-card .dot{width:26px;height:26px;border-radius:50%;background:var(--accent-soft);flex-shrink:0}
.ph-test-card{border-radius:16px;padding:12px 14px;margin-bottom:8px}
.ph-test-card.quick{background:linear-gradient(135deg,#fff3d6,var(--quick))}
.ph-test-card.depth{background:var(--bg-primary);border:1px solid var(--border-default)}
.ph-test-card .t-title{font-weight:700;font-size:13px}
.ph-test-card .t-meta{font-size:10px;color:var(--quick-ink);font-weight:600;margin-top:2px}
.ph-test-card.depth .t-meta{color:var(--text-secondary)}
.ph-tabbar{display:flex;justify-content:space-around;margin-top:12px;padding-top:10px;border-top:1px solid var(--border-default)}
.ph-tabbar span{width:8px;height:8px;border-radius:50%;background:var(--border-default)}
.ph-tabbar span.active{background:var(--accent)}

/* Phone 2: Quick test question */
.ph-q-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:4px}
.ph-q-head .back{width:26px;height:26px;border-radius:50%;background:var(--bg-primary);border:1px solid var(--border-default);display:flex;align-items:center;justify-content:center}
.ph-q-head .back svg{width:12px;height:12px;color:var(--text-primary)}
.ph-q-head .q-title{font-weight:600;font-size:13px}
.ph-q-progress{font-size:9px;color:var(--text-secondary);text-align:center;margin-bottom:10px}
.ph-q-card{background:var(--bg-primary);border:1px solid var(--border-default);border-radius:12px;padding:9px 10px;margin-bottom:7px}
.ph-q-card p{font-size:10.5px;font-weight:600;margin:0 0 7px;line-height:1.4}
.ph-scale{display:flex;justify-content:space-between}
.ph-scale span{width:11px;height:11px;border-radius:50%;border:1.5px solid var(--border-default)}
.ph-scale span.mid{background:var(--accent);border-color:var(--accent)}
.ph-next-btn{background:var(--accent);color:#fff;text-align:center;font-weight:600;font-size:12px;border-radius:var(--radius-full);padding:10px;margin-top:6px}

/* Phone 3: Result */
.ph-result-card{background:linear-gradient(135deg,var(--analyst),#5c48b8);border-radius:16px;padding:14px;color:#fff;position:relative;overflow:hidden;margin-bottom:12px}
.ph-result-card .type{font-weight:700;font-size:24px}
.ph-result-card .tag{display:inline-block;background:rgba(255,255,255,.22);border-radius:var(--radius-full);font-size:10px;font-weight:600;padding:3px 8px;margin:5px 0}
.ph-result-card .link{font-size:9.5px;opacity:.92;display:block;margin-top:4px}
.ph-result-card .portal{position:absolute;right:-18px;top:-6px;width:92px;height:92px;opacity:.95}
.ph-radar-title{font-weight:700;font-size:12px;margin-bottom:8px}
.ph-radar-wrap{display:flex;justify-content:center;margin-bottom:6px}

/* ---------- Test Modes ---------- */
.mode-cards{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-top:44px}
.mode-card{
  background:var(--surface-elevated);border:1px solid var(--mode-border,var(--quick));border-radius:var(--radius-lg);
  padding:30px;display:flex;gap:22px;align-items:center;
}
.mode-card.quick{--mode-border:var(--quick)}
.mode-card.depth{--mode-border:var(--depth)}
.mode-icon{width:64px;height:64px;border-radius:32px;display:flex;align-items:center;justify-content:center;flex-shrink:0;color:#fff}
.mode-icon svg{width:28px;height:28px}
.mode-card.quick .mode-icon{background:var(--quick-ink)}
.mode-card.depth .mode-icon{background:var(--depth-ink)}
.mode-copy h3{font-size:24px;margin-bottom:6px}
.mode-meta{font-size:14px;font-weight:600;margin-bottom:6px}
.mode-card.quick .mode-meta{color:var(--quick-ink)}
.mode-card.depth .mode-meta{color:var(--depth-ink)}
.mode-copy p{font-size:14px;color:var(--text-secondary);margin:0}

/* ---------- Personality Families ---------- */
.families-section{background:var(--bg-warmcanvas)}
.family-row{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;margin-top:36px}
.family-card{
  background:var(--surface-elevated);border:1px solid var(--family-color,var(--analyst));border-radius:var(--radius-md);
  padding:16px;display:flex;flex-direction:column;gap:12px;
}
.family-accent{height:8px;border-radius:4px;background:var(--family-color,var(--analyst))}
.family-art{height:130px;border-radius:14px;overflow:hidden}
.family-art img{width:100%;height:100%;object-fit:cover}
.family-card h3{font-size:19px;color:var(--family-ink,var(--family-color));font-weight:700}
.family-card p{font-size:13px;color:var(--text-secondary);margin:0}
.family-analyst{--family-color:var(--analyst);--family-ink:var(--analyst)}
.family-diplomat{--family-color:var(--diplomat);--family-ink:var(--diplomat-ink)}
.family-sentinel{--family-color:var(--sentinel);--family-ink:var(--sentinel)}
.family-explorer{--family-color:var(--explorer);--family-ink:var(--explorer-ink)}

/* ---------- Report / Friends two-col ---------- */
.feature-inner{display:grid;grid-template-columns:1fr 1fr;gap:80px;align-items:center}
.feature-inner.reverse .feature-visual{order:2}
.feature-inner.reverse .feature-copy{order:1}
.feature-copy h2{font-size:clamp(28px,3.4vw,42px);line-height:1.3;margin:0 0 16px}
.feature-copy p.body{font-size:clamp(15px,1.3vw,17px);color:var(--text-secondary);line-height:1.6;max-width:480px;margin:0 0 22px}
.benefit-list{display:flex;flex-direction:column;gap:14px}
.benefit{display:flex;align-items:center;gap:12px;font-weight:500;font-size:15px}
.benefit .dot{width:10px;height:10px;border-radius:50%;background:var(--accent);flex-shrink:0}

.report-preview{
  background:var(--bg-warmcanvas);border:1px solid var(--border-default);border-radius:var(--radius-xl);
  box-shadow:0 14px 34px rgba(46,36,26,.09);padding:24px;max-width:460px;
}
.report-result-card{background:linear-gradient(135deg,var(--analyst),#5c48b8);border-radius:18px;padding:20px;color:#fff;position:relative;overflow:hidden;margin-bottom:20px}
.report-result-card .top{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}
.report-result-card .icon-btn{width:32px;height:32px;border-radius:50%;background:rgba(255,255,255,.2);display:flex;align-items:center;justify-content:center}
.report-result-card .icon-btn svg{width:14px;height:14px;color:#fff}
.report-result-card .type{font-weight:700;font-size:30px}
.report-result-card .tag{display:inline-block;background:rgba(255,255,255,.22);border-radius:var(--radius-full);font-size:12px;font-weight:600;padding:5px 12px;margin:8px 0}
.report-result-card .link{font-size:12.5px;opacity:.92}
.report-result-card .portal{position:absolute;right:0;top:14px;width:130px;height:130px;opacity:.95}
.report-radar-title{font-weight:700;font-size:15px;margin-bottom:14px}

/* Radar chart */
.radar-chart{display:block;margin:0 auto}
.radar-dim{
  display:inline-flex;align-items:center;gap:6px;background:var(--accent-soft);border-radius:var(--radius-full);
  padding:6px 10px;font-size:11px;font-weight:600;color:var(--text-primary);
}
.radar-dims{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin-top:14px}
.radar-dim .badge-letter{width:18px;height:18px;border-radius:50%;background:var(--accent);color:#fff;display:flex;align-items:center;justify-content:center;font-size:10px;font-weight:700}

/* ---------- Friends ---------- */
.friends-section{background:var(--bg-warmcanvas)}
.compat-visual{
  background:var(--surface-elevated);border:1px solid var(--glow-lavender);border-radius:var(--radius-xl);
  padding:30px;display:flex;align-items:center;justify-content:center;gap:26px;
}
.match-item{display:flex;flex-direction:column;align-items:center;gap:10px}
.match-circle{width:84px;height:84px;border-radius:42px;display:flex;align-items:center;justify-content:center;color:#fff;font-weight:700;font-size:26px}
.match-item .label{font-weight:700;font-size:16px}
.match-item.a .match-circle{background:var(--analyst)}
.match-item.a .label{color:var(--analyst)}
.match-item.h .match-circle{background:var(--match-heart-ink)}
.match-item.h .label{color:var(--match-heart-ink)}
.match-item.d .match-circle{background:var(--diplomat)}
.match-item.d .label{color:var(--diplomat-ink)}

/* ---------- Value cards ---------- */
.value-row{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-top:40px}
.value-card{
  background:var(--surface-elevated);border:1px solid var(--border-default);border-radius:var(--radius-md);
  padding:28px;display:flex;flex-direction:column;gap:14px;
}
.value-icon{width:40px;height:40px;color:var(--accent)}
.value-icon svg{width:100%;height:100%}
.value-card h3{font-size:20px}
.value-card p{font-size:14px;color:var(--text-secondary);margin:0}

/* ---------- Proof ---------- */
.proof-section{background:var(--diplomat-deep);color:#fff}
.proof-inner{display:flex;gap:56px;align-items:center;justify-content:center;flex-wrap:wrap}
.metrics{display:flex;gap:40px;flex-wrap:wrap}
.metric{text-align:center}
.metric strong{display:block;font-weight:700;font-size:32px;line-height:1.2}
.metric span{display:block;font-size:13px;margin-top:6px;opacity:.88}
.testimonial{
  background:var(--surface-glass);border-radius:var(--radius-lg);padding:24px 28px;max-width:480px;
}
.testimonial p.quote{font-weight:700;font-size:19px;line-height:1.5;color:var(--text-primary);margin:0 0 12px}
.testimonial .attribution{font-size:12px;color:var(--text-secondary)}

/* ---------- Final CTA ---------- */
.final-cta{background:var(--accent);color:#fff;text-align:center}
.final-cta .eyebrow{color:#fff}
.final-cta h2{color:#fff;font-size:clamp(28px,4vw,40px);line-height:1.3;max-width:760px;margin:0 auto 16px}
.final-cta p{font-size:16px;line-height:1.5;margin:0 auto 28px;opacity:.94}

/* ---------- Footer ---------- */
.site-footer{padding:40px 0 32px;border-top:1px solid var(--border-default);background:var(--bg-warmcanvas)}
.footer-main{display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap}
.footer-brand .brand{display:block}
.footer-brand p{font-size:13px;color:var(--text-secondary);margin:4px 0 0}
.footer-links{display:flex;gap:30px;flex-wrap:wrap}
.footer-links a{font-weight:500;font-size:13px}
.footer-links a:hover{color:var(--accent)}
.footer-divider{height:1px;background:var(--border-default);margin:24px 0}
.footer-meta{font-size:12px;color:var(--text-secondary)}

/* ---------- Responsive ---------- */
@media (max-width:960px){
  .main-nav{display:none}
  .header-cta .btn{display:none}
  .header-cta #lang-toggle{display:none}
  .menu-toggle{display:flex}
  .mobile-panel{display:none}
  .mobile-panel.open{display:flex}

  .hero-inner{grid-template-columns:1fr;gap:40px}
  .phones{display:none}

  .mode-cards{grid-template-columns:1fr}
  .family-row{grid-template-columns:repeat(2,1fr)}

  .feature-inner{grid-template-columns:1fr;gap:36px}
  .feature-inner.reverse .feature-visual,
  .feature-inner.reverse .feature-copy{order:0}
  .report-preview{max-width:100%}

  .value-row{grid-template-columns:1fr}

  .proof-inner{flex-direction:column}
  .metrics{justify-content:center}
  .testimonial{max-width:100%}

  .footer-main{flex-direction:column;align-items:flex-start}
}

@media (max-width:640px){
  section{padding:60px 0}
  .header-inner{height:72px}
  .brand{font-size:22px}
  .hero{padding:44px 0}
  .hero-actions .btn{width:100%}
  .compat-visual{flex-wrap:wrap}
  .match-circle{width:68px;height:68px;font-size:20px}
}
