/* Hexin public website — operational SaaS style */
:root{
  --primary:#2457ff;
  --primary-700:#153bd1;
  --primary-900:#172044;
  --accent:#ff8a1f;
  --amber:#ff8a1f;
  --green:#19a36b;
  --ink:#172044;
  --muted:#5e6b85;
  --soft:#f4f8ff;
  --soft-2:#eaf2ff;
  --line:#dce7fb;
  --white:#fff;
  --radius:8px;
  --shadow:0 18px 52px rgba(36,87,255,.11);
  --font:"Noto Sans SC","PingFang SC","Microsoft YaHei",Arial,sans-serif;
}
*{box-sizing:border-box;margin:0;padding:0}
html{min-height:100%;scroll-behavior:smooth}
body{min-height:100vh;display:flex;flex-direction:column;font-family:var(--font);font-size:16px;line-height:1.72;color:var(--ink);background:var(--soft);overflow-x:hidden}
main{flex:1 0 auto}
img{display:block;max-width:100%}
a{color:var(--primary);text-decoration:none}
a:hover{color:var(--primary-700)}
a:focus-visible,button:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid rgba(36,87,255,.26);outline-offset:3px}
.container{max-width:1180px;margin:0 auto;padding:0 24px}

.topbar{position:sticky;top:0;z-index:40;background:rgba(255,255,255,.96);border-bottom:1px solid var(--line);backdrop-filter:blur(12px)}
.nav-shell{height:68px;display:flex;align-items:center;gap:28px}
.brand{display:flex;align-items:center;gap:9px;color:var(--primary-900);font-weight:850;font-size:20px;white-space:nowrap}
.logo-mark{display:grid;grid-template-columns:repeat(2,10px);gap:3px;width:28px;height:28px;align-content:center;justify-content:center}
.logo-mark span{display:block;width:10px;height:10px;border-radius:3px;background:var(--primary)}
.logo-mark span:nth-child(2){background:#19a0ff}
.logo-mark span:nth-child(3){background:var(--primary-900)}
.logo-mark span:nth-child(4){background:var(--accent)}
.topnav{display:flex;gap:24px;margin-left:auto}
.topnav a{font-size:15px;font-weight:650;color:#60737c}
.topnav a:hover,.topnav a.on{color:var(--primary-700)}
.topbar-actions{display:flex;gap:10px}

.btn{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:9px 20px;border-radius:8px;border:1px solid transparent;font-size:15px;font-weight:750;line-height:1.2;cursor:pointer;transition:background .16s,border-color .16s,color .16s,transform .16s}
.btn:hover{transform:translateY(-1px)}
.btn-solid{background:linear-gradient(90deg,var(--primary),#198bff);color:#fff;box-shadow:0 12px 28px rgba(36,87,255,.26)}
.btn-solid:hover{background:linear-gradient(90deg,var(--primary-700),#1175e6);color:#fff}
.topbar-actions .btn-solid,.hero-cta .btn-solid{background:linear-gradient(90deg,#ff8a1f,#ff9f32);box-shadow:0 12px 28px rgba(255,138,31,.26)}
.topbar-actions .btn-solid:hover,.hero-cta .btn-solid:hover{background:linear-gradient(90deg,#f07808,#ff8a1f);color:#fff}
.btn-ghost{background:#fff;color:var(--primary-700);border-color:#b9caff}
.btn-ghost:hover{background:var(--soft-2);color:var(--primary-700)}
.btn-light{background:#fff;color:var(--primary-900)}
.btn-light:hover{background:#eef4ff;color:var(--primary-900)}
.btn-lg{min-height:46px;padding:12px 24px;font-size:16px}

.hero{position:relative;overflow:hidden}
.hero-platform{background:linear-gradient(120deg,#f4f8ff 0%,#eaf4ff 46%,#ffffff 100%);padding:82px 0 0;border-bottom:1px solid var(--line)}
.hero-platform .container{max-width:1260px}
.hero-layout{position:relative;display:grid;grid-template-columns:minmax(390px,.72fr) minmax(650px,1.28fr);gap:44px;align-items:center;z-index:1}
.hero-copy{min-width:0}
.hero-tag{display:inline-flex;align-items:center;height:30px;padding:0 13px;border-radius:999px;background:#e6f0ff;color:var(--primary-700);font-size:13px;font-weight:800;margin-bottom:18px}
.hero h1{font-size:clamp(34px,3.65vw,48px);line-height:1.18;font-weight:900;letter-spacing:0;color:#151b38;max-width:610px}
.hero .sub{margin-top:20px;max-width:560px;color:#4e5969;font-size:17px}
.hero-cta{display:flex;gap:12px;flex-wrap:wrap;margin-top:28px}
.hero-stats{position:relative;z-index:2;display:grid;grid-template-columns:repeat(4,1fr);max-width:760px;margin:46px 0 0;background:#fff;border:1px solid var(--line);border-radius:12px 12px 0 0;box-shadow:0 14px 40px rgba(36,87,255,.10);overflow:hidden}
.hero-stats div{padding:20px 26px;text-align:center;border-right:1px solid var(--line)}
.hero-stats div:last-child{border-right:0}
.hero-stats b{display:block;color:var(--primary);font-size:28px;line-height:1;font-weight:900}
.hero-stats span{display:block;color:#86909c;font-size:13px;margin-top:6px}
.hero-banner{position:relative;border:1px solid rgba(36,87,255,.10);border-radius:18px;background:#fff;overflow:hidden;box-shadow:0 24px 70px rgba(36,87,255,.16)}
.hero-banner::after,.product-visual::after{content:"";position:absolute;inset:0;background:linear-gradient(135deg,rgba(36,87,255,.025),rgba(25,139,255,.015));pointer-events:none;mix-blend-mode:multiply}
.hero-banner img{width:100%;height:auto;aspect-ratio:1900/828;object-fit:cover}
.hero-banner img,.product-visual img{filter:saturate(1.05) contrast(1.01)}
.product-visual{position:relative;border:1px solid rgba(23,43,53,.08);border-radius:12px;background:#fff;overflow:hidden;box-shadow:var(--shadow)}
.product-visual img{width:100%;height:auto;aspect-ratio:16/9;object-fit:cover}
.section{padding:74px 0}
.section.alt{background:#fff}
.pain-band{padding:44px 0;background:#fff;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.section-head{margin-bottom:30px}
.section-head h2,.section h2,.page-hero h1,.cta-band h2{margin-top:10px;color:var(--primary-900);font-size:clamp(25px,3vw,36px);line-height:1.25;font-weight:900;letter-spacing:0}
.section-head p,.lede,.page-hero p,.cta-band p{color:var(--muted);max-width:720px;margin-top:10px}
.section-head.split{display:flex;align-items:end;justify-content:space-between;gap:28px}
.section-head.split p{max-width:430px;margin:0}
.section-head.center{text-align:center;max-width:760px;margin:0 auto 34px}
.section-head.center p{margin-left:auto;margin-right:auto}
.kicker{display:inline-flex;align-items:center;height:28px;padding:0 12px;border-radius:999px;background:#e6f0ff;color:var(--primary);font-size:12px;font-weight:850;letter-spacing:.12em}
.kicker.light{background:rgba(255,255,255,.16);color:#f8fbff;border:1px solid rgba(255,255,255,.25)}
.text-link{font-weight:800}

.pain-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.pain-item{padding:18px 18px 17px;border:1px solid var(--line);border-radius:8px;background:linear-gradient(180deg,#fff,#f9fcfd)}
.pain-item b{display:block;color:#202a35;font-size:16px}
.pain-item span{display:block;color:var(--muted);font-size:14px;margin-top:7px}

.solution-section{background:linear-gradient(180deg,var(--soft) 0%,#fff 100%)}
.flow-row{display:grid;grid-template-columns:repeat(4,1fr);gap:0;border:1px solid var(--line);border-radius:8px;overflow:hidden;background:#fff}
.flow-step{position:relative;min-height:180px;padding:24px 22px;border-right:1px solid var(--line)}
.flow-step:last-child{border-right:0}
.flow-step span{display:inline-grid;place-items:center;width:36px;height:36px;border-radius:8px;background:#eaf2ff;color:var(--primary);font-weight:900}
.flow-step b{display:block;margin-top:22px;color:#202a35;font-size:18px}
.flow-step p{margin-top:8px;color:var(--muted);font-size:14px}

.module-layout,.security-layout{display:grid;grid-template-columns:.86fr 1.14fr;gap:42px;align-items:center}
.security-layout{grid-template-columns:1.1fr .9fr}
.module-list{display:grid;grid-template-columns:1fr;gap:10px;margin-top:26px}
.module-list a{display:flex;align-items:center;justify-content:space-between;min-height:46px;padding:0 16px;border:1px solid var(--line);border-radius:8px;background:#fff;color:#283645;font-weight:750}
.module-list a::after{content:"→";color:var(--primary);font-weight:900}
.module-list a:hover{border-color:#b9caff;background:#f8fbff}
.feature-matrix{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.feature-tile{padding:22px;border:1px solid var(--line);border-radius:8px;background:#fff}
.feature-tile span{display:inline-block;color:var(--primary);font-size:12px;font-weight:900;letter-spacing:.12em}
.feature-tile b{display:block;margin-top:8px;color:#202a35;font-size:18px}
.feature-tile p{margin-top:7px;color:var(--muted);font-size:14px}
.security-section{background:#f3f7ff}
.assure{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-top:26px}
.assure.compact{grid-template-columns:repeat(2,1fr)}
.assure .item{padding:17px;border:1px solid var(--line);border-radius:8px;background:#fff}
.assure .item b{display:block;color:#202a35;font-size:17px}
.assure .item span{display:block;margin-top:5px;color:var(--muted);font-size:13px}
.cta-band{padding:54px 0;background:linear-gradient(135deg,#1740d8 0%,#2457ff 58%,#198bff 100%);color:#f8fbff}
.cta-inner{display:flex;align-items:center;justify-content:space-between;gap:28px}
.cta-band h2{color:#fff}
.cta-band p{color:#dce8ff}

.page-hero{padding:58px 0;background:linear-gradient(180deg,#fff,#eef5ff);border-bottom:1px solid var(--line)}
.page-hero-grid{display:grid;grid-template-columns:.9fr 1.1fr;gap:40px;align-items:center}
.page-hero h1{font-size:clamp(30px,4vw,46px)}
.compact-hero{text-align:center}
.compact-hero p{margin-left:auto;margin-right:auto}
.center-block{text-align:center}
.feature-detail-list{display:grid;gap:14px}
.feature-row{display:grid;grid-template-columns:72px 1fr;gap:22px;padding:24px;border:1px solid var(--line);border-radius:8px;background:#fff}
.feature-index{width:54px;height:54px;display:grid;place-items:center;border-radius:8px;background:#eaf2ff;color:var(--primary);font-weight:900}
.feature-row h2{font-size:22px;margin:0 0 8px;color:#202a35}
.feature-row p{color:var(--muted);margin-top:7px}
.roles{display:flex;flex-wrap:wrap;gap:7px;margin-top:14px}
.tagchip{display:inline-flex;align-items:center;min-height:25px;padding:2px 10px;border-radius:999px;background:#eaf2ff;color:var(--primary-700);font-size:12px;font-weight:750}
.tagchip.r{background:#fff4e8;color:#b85c00;border:1px solid #ffd6ad}

.feature-overview{max-width:1080px}
.visual-list{gap:26px}
.feature-story{display:grid;grid-template-columns:1.02fr .98fr;gap:28px;align-items:center;padding:26px;border:1px solid var(--line);border-radius:8px;background:#fff}
.feature-story.flip .feature-media{order:2}
.feature-media{position:relative;overflow:hidden;border:1px solid rgba(23,43,53,.08);border-radius:8px;background:#fff;box-shadow:0 16px 42px rgba(36,87,255,.10)}
.feature-media img{width:100%;height:auto;aspect-ratio:16/9;object-fit:cover}
.feature-content{min-width:0}
.feature-content .feature-index{margin-bottom:18px}
.feature-content h2{font-size:clamp(23px,2.4vw,30px);line-height:1.24;color:#202a35}
.feature-content p{margin-top:12px;color:var(--muted)}
.outcome-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin-top:20px}
.outcome-grid div{padding:16px;border:1px solid var(--line);border-radius:8px;background:#f8fbff}
.outcome-grid b{display:block;color:#202a35;font-size:15px}
.outcome-grid span{display:block;margin-top:6px;color:var(--muted);font-size:14px;line-height:1.65}

.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:28px}
.grid2{display:grid;grid-template-columns:repeat(2,1fr);gap:18px;margin-top:28px}
.card{padding:22px;border:1px solid var(--line);border-radius:8px;background:#fff}
.card .icon{display:grid;place-items:center;width:42px;height:42px;border-radius:8px;background:#eaf2ff;color:var(--primary);font-weight:900}
.card h3{margin-top:12px;color:#202a35;font-size:18px}
.card p{margin-top:8px;color:var(--muted);font-size:14.5px}
.card .en{color:#7b8e97;font-size:12px;margin-top:2px}

.plans{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;align-items:stretch}
.plan{position:relative;display:flex;flex-direction:column;padding:28px;border:1px solid var(--line);border-radius:8px;background:#fff}
.plan.hot{border:2px solid var(--primary);box-shadow:var(--shadow)}
.plan .flag{position:absolute;top:16px;right:16px;padding:3px 10px;border-radius:999px;background:var(--primary);color:#fff;font-size:12px;font-weight:850}
.plan .name{color:#202a35;font-size:20px;font-weight:900}
.plan .price{margin-top:12px;color:#0f2e39;font-size:38px;font-weight:900}
.plan .price small{font-size:14px;color:var(--muted);font-weight:650}
.plan ul{list-style:none;margin:20px 0 24px}
.plan li{position:relative;margin-top:10px;padding-left:22px;color:var(--muted);font-size:14.5px}
.plan li::before{content:"✓";position:absolute;left:0;color:var(--primary);font-weight:900}
.plan .btn{margin-top:auto}
.faq-panel{margin-top:30px;border:1px solid var(--line);border-radius:8px;background:#fff;padding:24px}
.faq-panel h2{font-size:24px;color:#202a35;margin-bottom:10px}
.faq-panel details{border-top:1px solid var(--line);padding:14px 0}
.faq-panel details:first-of-type{border-top:0}
.faq-panel summary{cursor:pointer;font-weight:850;color:#202a35}
.faq-panel p{margin-top:8px;color:var(--muted)}

table{width:100%;border-collapse:collapse;margin:18px 0;background:#fff;font-size:14.5px}
th,td{border:1px solid var(--line);padding:10px 14px;text-align:left;vertical-align:top}
th{background:#eaf2ff;color:#202a35;font-weight:800}

.policy-hero{padding:50px 0;background:#18212b;color:#fff}
.policy-hero h1{font-size:32px;font-weight:900}
.policy-hero .meta{margin-top:10px;color:#cbd7e2;font-size:14px}
.policy-wrap{display:grid;grid-template-columns:240px 1fr;gap:38px;padding:52px 24px}
.toc{position:sticky;top:88px;align-self:start;padding:18px;border:1px solid var(--line);border-radius:8px;background:#fff}
.toc .t{margin-bottom:8px;color:#202a35;font-weight:850}
.toc a{display:block;padding:4px 0;color:var(--muted);font-size:13.5px}
.policy-content h2{margin:34px 0 12px;color:#202a35;font-size:21px}
.policy-content h2:first-of-type{margin-top:0}
.policy-content p,.policy-content li{color:#2f4651}
.policy-content p{margin-top:10px}
.policy-content ul{margin:10px 0 0 22px}

.auth-wrap{width:calc(100% - 32px);max-width:460px;margin:58px auto;padding:34px;border:1px solid var(--line);border-radius:8px;background:#fff;box-shadow:var(--shadow)}
.auth-wrap h1{color:#202a35;font-size:25px}
.auth-wrap .sub{margin-top:6px;color:var(--muted);font-size:14px}
.field{margin-top:17px}
.field label{display:block;margin-bottom:6px;font-size:14px;font-weight:750}
.field input{width:100%;min-height:44px;padding:10px 13px;border:1px solid #cbdce2;border-radius:8px;font-family:var(--font);font-size:15px}
.field input:focus{border-color:var(--primary)}
.auth-wrap .btn{width:100%;margin-top:22px}
.auth-foot{margin-top:16px;text-align:center;color:var(--muted);font-size:14px}

.status-wrap{max-width:560px;margin:76px auto;padding:46px 36px;text-align:center;border:1px solid var(--line);border-radius:8px;background:#fff;box-shadow:var(--shadow)}
.status-wrap .mark{width:70px;height:70px;margin:0 auto;border-radius:50%;display:grid;place-items:center}
.status-wrap .mark.ok{background:#e7f6ef;color:var(--green)}
.status-wrap .mark.bad{background:#fdecec;color:#b91c1c}
.status-symbol{font-size:36px;line-height:1;font-weight:900}
.status-wrap h1{margin-top:20px;color:#202a35;font-size:24px}
.status-wrap p{margin-top:9px;color:var(--muted)}
.status-wrap .actions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin-top:24px}

.footer{flex-shrink:0;background:#18212b;color:#cbd7e2;margin-top:0}
.footer .cols{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:36px;padding:46px 0 34px}
.footer h4{color:#fff;font-size:15px;margin-bottom:12px}
.footer p,.footer a{font-size:14px}
.footer p{margin-top:8px}
.footer a{display:block;color:#cbd7e2;margin-top:8px}
.footer a:hover{color:#fff}
.footer .legal{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;border-top:1px solid rgba(255,255,255,.14);padding:17px 0;color:#9facb8;font-size:13px}

.cookie-banner{position:fixed;left:24px;right:24px;bottom:20px;z-index:80;display:flex;align-items:center;justify-content:space-between;gap:22px;max-width:1180px;margin:0 auto;padding:16px 18px 16px 20px;border:1px solid rgba(36,87,255,.18);border-radius:8px;background:rgba(255,255,255,.98);box-shadow:0 20px 60px rgba(23,43,53,.18);transition:opacity .18s ease,transform .18s ease}
.cookie-banner-hidden{opacity:0;transform:translateY(12px);pointer-events:none}
.cookie-banner-text{display:grid;gap:3px;min-width:0}
.cookie-banner-text strong{color:#202a35;font-size:15px}
.cookie-banner-text span{color:#4e5969;font-size:14px;line-height:1.6}
.cookie-banner-actions{display:flex;align-items:center;gap:12px;flex-shrink:0}
.cookie-link{color:var(--primary);font-size:14px;font-weight:800;white-space:nowrap}
.cookie-accept{min-height:38px;padding:8px 16px;border:0;border-radius:8px;background:var(--primary);color:#fff;font-family:var(--font);font-size:14px;font-weight:850;cursor:pointer}
.cookie-accept:hover{background:var(--primary-700)}

@media (max-width:980px){
  .hero-layout,.page-hero-grid,.module-layout,.security-layout{grid-template-columns:1fr}
  .feature-story,.feature-story.flip{grid-template-columns:1fr}
  .feature-story.flip .feature-media{order:0}
  .hero-layout{gap:30px}
  .hero-banner{max-width:860px}
  .pain-grid,.flow-row,.feature-matrix,.plans,.assure{grid-template-columns:repeat(2,1fr)}
  .flow-step{border-right:0;border-bottom:1px solid var(--line)}
  .flow-step:nth-child(3),.flow-step:nth-child(4){border-bottom:0}
  .section-head.split,.cta-inner{align-items:flex-start;flex-direction:column}
  .topnav{display:none}
  .policy-wrap{grid-template-columns:1fr}
  .toc{position:static}
  .cookie-banner{align-items:flex-start;flex-direction:column;gap:14px}
  .cookie-banner-actions{width:100%;justify-content:space-between}
}
@media (max-width:620px){
  .container{padding:0 24px}
  .nav-shell{height:auto;min-height:64px;gap:12px;flex-wrap:wrap;padding-top:10px;padding-bottom:10px}
  .topbar-actions{display:none}
  .hero-platform,.section,.page-hero{padding:44px 0}
  .hero-layout{display:block}
  .hero h1{font-size:30px;max-width:100%;word-break:normal;line-height:1.22}
  .hero-copy,.hero .sub,.hero-cta,.hero-banner{max-width:100%;min-width:0}
  .hero .sub{max-width:32em}
  .hero .sub,.hero-tag{font-size:16px;max-width:100%;overflow-wrap:break-word}
  .hero-tag{font-size:12px}
  .quick-stats,.pain-grid,.flow-row,.feature-matrix,.plans,.assure,.assure.compact,.grid2,.grid3,.footer .cols{grid-template-columns:1fr}
  .flow-step{min-height:auto;border-bottom:1px solid var(--line)}
  .flow-step:last-child{border-bottom:0}
  .feature-row{grid-template-columns:1fr;gap:12px}
  .feature-story{padding:18px;gap:18px}
  .outcome-grid{grid-template-columns:1fr}
  .hero-cta{width:100%}
  .hero-cta .btn{width:100%;max-width:100%}
  .hero-banner{margin-top:30px;border-radius:14px}
  .hero-banner img{min-height:240px;object-position:center}
  .hero-stats{grid-template-columns:repeat(2,1fr);width:100%;margin-top:34px}
  .hero-stats div:nth-child(2){border-right:0}
  .hero-stats div:nth-child(1),.hero-stats div:nth-child(2){border-bottom:1px solid var(--line)}
  .auth-wrap{margin:34px auto;padding:26px 22px}
  .footer .legal{flex-direction:column;align-items:flex-start}
  .cookie-banner{left:12px;right:12px;bottom:12px;padding:15px}
  .cookie-banner-actions{align-items:stretch;flex-direction:column}
  .cookie-accept{width:100%}
}
