:root{
  --navy-950:#05130f; --navy-900:#0a1f18; --navy-800:#0f2d22; --navy-700:#153c2e;
  --green-600:#1a8f5f; --green-500:#22b478;
  --teal-400:#2dd4bf; --teal-300:#5eead4;
  --ice-50:#f3faf7; --ice-100:#e7f5ef; --ice-200:#d7ecE3;
  --white:#ffffff;
  --text-900:#0f1c17; --text-700:#33463d; --text-500:#5b7267; --text-400:#7c9186;
  --line:#dceae2; --line-soft:#eef6f1;
  --success:#1fae74; --warn:#e8912b;
  --purple-500:#8b6bd8; --orange-500:#e2882f;
  --radius-lg:18px; --radius-md:12px; --radius-sm:8px;
  --shadow-card:0 4px 24px rgba(10,31,24,.07);
  --shadow-pop:0 12px 40px rgba(10,31,24,.15);
  --maxw:1240px;
  --font:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei","Helvetica Neue",Arial,sans-serif;
}
*{box-sizing:border-box;}
html,body{overflow-x:hidden;}
body{margin:0;font-family:var(--font);color:var(--text-900);background:var(--white);line-height:1.6;-webkit-font-smoothing:antialiased;}
a{color:var(--green-600);text-decoration:none;}
a:hover{text-decoration:underline;}
img{max-width:100%;display:block;}
ul{margin:0;padding:0;list-style:none;}
h1,h2,h3,h4{margin:0;line-height:1.35;color:var(--text-900);}
p{margin:0 0 14px;}
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 20px;}
.skip-link{position:absolute;left:-999px;top:0;background:var(--green-600);color:#fff;padding:10px 16px;z-index:200;}
.skip-link:focus{left:12px;top:12px;}

/* topbar */
.topbar{background:var(--navy-950);color:var(--ice-100);font-size:12.5px;}
.topbar .wrap{display:flex;justify-content:space-between;align-items:center;height:34px;}
.topbar .tagline{color:var(--text-400);}
@media (max-width:640px){.topbar .tagline{display:none;}}

/* header/nav */
.site-header{position:sticky;top:0;z-index:60;background:var(--navy-900);border-bottom:1px solid rgba(255,255,255,.06);}
.header-row{display:flex;align-items:center;justify-content:space-between;height:64px;gap:10px;}
.brand{display:flex;align-items:center;gap:8px;color:#fff;flex:none;}
.brand img{width:34px;height:34px;}
.brand .name{font-size:15px;font-weight:700;}
.brand .sub{font-size:10.5px;color:var(--text-400);display:block;}
.main-nav{display:flex;align-items:center;gap:0;flex:1 1 auto;justify-content:center;min-width:0;}
.main-nav a{color:var(--ice-100);font-size:12px;font-weight:500;padding:8px 3px;border-radius:8px;white-space:nowrap;}
.main-nav a:hover,.main-nav a:focus-visible{background:rgba(255,255,255,.08);text-decoration:none;}
.main-nav a[aria-current="page"]{color:#fff;background:rgba(34,180,120,.24);}
.header-actions{display:flex;align-items:center;gap:10px;flex:none;}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:9px 18px;border-radius:10px;font-size:13.5px;font-weight:600;border:1px solid transparent;cursor:pointer;white-space:nowrap;}
.btn-primary{background:linear-gradient(135deg,var(--green-600),var(--teal-400));color:#fff;}
.btn-primary:hover{opacity:.92;text-decoration:none;}
.btn-ghost{background:transparent;border-color:rgba(255,255,255,.3);color:#fff;}
.btn-ghost:hover{background:rgba(255,255,255,.08);text-decoration:none;}
.btn-outline{background:transparent;border-color:var(--line);color:var(--text-700);}
.btn-outline:hover{border-color:var(--green-600);color:var(--green-600);text-decoration:none;}
.nav-toggle{display:none;background:transparent;border:1px solid rgba(255,255,255,.3);border-radius:8px;width:40px;height:40px;flex:none;cursor:pointer;position:relative;}
.nav-toggle span,.nav-toggle::before,.nav-toggle::after{content:"";position:absolute;left:9px;right:9px;height:2px;background:#fff;border-radius:2px;}
.nav-toggle span{top:19px;} .nav-toggle::before{top:13px;} .nav-toggle::after{top:25px;}
@media (max-width:1300px){
  .main-nav{position:absolute;left:0;right:0;top:64px;flex-direction:column;align-items:stretch;gap:0;background:var(--navy-900);border-top:1px solid rgba(255,255,255,.08);max-height:0;overflow:hidden;transition:max-height .25s ease;}
  .site-header.is-open .main-nav{max-height:560px;}
  .main-nav a{padding:14px 20px;border-radius:0;border-bottom:1px solid rgba(255,255,255,.06);}
  .hide-mobile{display:none;}
  .nav-toggle{display:block;}
}

/* breadcrumb */
.breadcrumb{background:var(--ice-50);border-bottom:1px solid var(--line-soft);font-size:13px;color:var(--text-500);}
.breadcrumb .wrap{padding:12px 20px;}
.breadcrumb a{color:var(--text-500);}
.breadcrumb a:hover{color:var(--green-600);}
.breadcrumb .sep{margin:0 6px;color:var(--text-400);}
.breadcrumb .current{color:var(--text-900);}

/* sections */
.section{padding:56px 0;}
.section-tight{padding:32px 0;}
.section-alt{background:var(--ice-50);}
.section-dark{background:var(--navy-900);color:var(--ice-100);}
.section-dark h2,.section-dark h3,.section-dark h4{color:#fff;}
.section-dark p{color:var(--text-400);}
.section-head{max-width:680px;margin:0 0 32px;}
.section-head.center{margin-left:auto;margin-right:auto;text-align:center;}
.section-kicker{display:inline-block;font-size:12.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--green-600);margin-bottom:10px;}
.section-dark .section-kicker{color:var(--teal-400);}
.section-head h2{font-size:26px;}
.section-head p{color:var(--text-500);margin-top:10px;}

/* hero */
.hero{background:radial-gradient(circle at 15% 20%,rgba(34,180,120,.25),transparent 45%),radial-gradient(circle at 85% 10%,rgba(45,212,191,.2),transparent 40%),var(--navy-900);color:#fff;padding:56px 0 40px;}
.hero-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:40px;align-items:start;}
@media (max-width:900px){.hero-grid{grid-template-columns:1fr;}}
.hero h1{font-size:34px;line-height:1.4;}
.hero h1 em{font-style:normal;color:var(--teal-300);}
.hero .lead{color:var(--text-400);font-size:15.5px;margin:16px 0 22px;}
.hero-cta{display:flex;gap:12px;flex-wrap:wrap;}
.hero-panel{background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.14);border-radius:var(--radius-lg);padding:26px;backdrop-filter:none;}
.hero-panel .quote{font-size:14px;color:var(--ice-100);border-left:3px solid var(--teal-400);padding-left:14px;margin-bottom:14px;}
.hero-panel .explain{font-size:13.5px;color:var(--text-400);margin-bottom:16px;}
.hero-flow{display:flex;flex-direction:column;gap:8px;}
.hero-flow .step{display:flex;align-items:center;gap:10px;background:rgba(255,255,255,.06);border-radius:999px;padding:8px 14px;font-size:12.5px;color:var(--ice-100);}
.hero-flow .step .num{width:20px;height:20px;border-radius:50%;background:linear-gradient(135deg,var(--green-600),var(--teal-400));display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:700;flex:none;}
.hero-strip{margin-top:36px;display:grid;grid-template-columns:repeat(4,1fr);gap:20px;border-top:1px solid rgba(255,255,255,.1);padding-top:24px;}
@media (max-width:760px){.hero-strip{grid-template-columns:repeat(2,1fr);}}
.hero-strip .stat b{display:block;font-size:22px;color:#fff;}
.hero-strip .stat span{font-size:12.5px;color:var(--text-400);}

/* grids/cards */
.grid{display:grid;gap:20px;}
.grid-2{grid-template-columns:repeat(2,1fr);}
.grid-3{grid-template-columns:repeat(3,1fr);}
.grid-4{grid-template-columns:repeat(4,1fr);}
@media (max-width:900px){.grid-2,.grid-3,.grid-4{grid-template-columns:repeat(2,1fr);}}
@media (max-width:600px){.grid-2,.grid-3,.grid-4{grid-template-columns:1fr;}}

.article-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius-md);box-shadow:var(--shadow-card);display:flex;flex-direction:column;height:100%;overflow:hidden;}
.article-card .thumb{display:block;aspect-ratio:16/9;overflow:hidden;background:var(--ice-100);}
.article-card .thumb img{width:100%;height:100%;object-fit:cover;}
.article-card .body{padding:18px 20px 20px;display:flex;flex-direction:column;flex:1;}
.article-card .meta-row{display:flex;gap:10px;flex-wrap:wrap;font-size:12px;color:var(--text-400);margin-bottom:8px;}
.article-card h3{font-size:16.5px;margin-bottom:8px;}
.article-card h3 a{color:var(--text-900);}
.article-card h3 a:hover{color:var(--green-600);text-decoration:none;}
.article-card .excerpt{font-size:13.5px;color:var(--text-500);flex:1;}
.article-card .tag-row{display:flex;gap:6px;flex-wrap:wrap;margin:8px 0;}
.tag{display:inline-block;background:var(--ice-100);color:var(--green-600);font-size:11.5px;padding:3px 9px;border-radius:999px;}
.read-more{font-size:13px;font-weight:600;color:var(--green-600);margin-top:auto;}
.read-more:hover{text-decoration:none;color:var(--teal-400);}

/* article detail */
.article-layout{display:grid;grid-template-columns:minmax(0,760px) 280px;gap:44px;align-items:start;padding:36px 0 60px;}
@media (max-width:960px){.article-layout{grid-template-columns:1fr;}}
.article-head{margin-bottom:14px;}
.article-cat a{font-size:12.5px;font-weight:700;letter-spacing:.04em;color:var(--green-600);text-transform:uppercase;}
.article-head h1{font-size:27px;margin-top:10px;}
.article-meta{display:flex;flex-wrap:wrap;gap:16px;align-items:center;font-size:13px;color:var(--text-500);border-bottom:1px solid var(--line);padding-bottom:16px;margin-bottom:22px;}
.article-meta .author{display:flex;align-items:center;gap:8px;font-weight:600;color:var(--text-700);}
.article-meta .avatar{width:28px;height:28px;border-radius:50%;}
.article-body{font-size:16px;color:var(--text-700);}
.article-body h2{font-size:20px;color:var(--text-900);margin:30px 0 12px;}
.article-body p{margin-bottom:15px;}
.article-body ul{margin:0 0 15px;padding-left:0;}
.article-body ul li{position:relative;padding-left:20px;margin-bottom:8px;}
.article-body ul li::before{content:"";position:absolute;left:0;top:9px;width:6px;height:6px;border-radius:50%;background:var(--green-500);}
.article-body blockquote{margin:20px 0;padding:14px 18px;border-left:3px solid var(--teal-400);background:var(--ice-50);color:var(--text-700);font-size:14.5px;}
.article-body a{text-decoration:underline;text-underline-offset:2px;}
.article-tags{display:flex;gap:8px;flex-wrap:wrap;margin:26px 0;}
.related-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;}
@media (max-width:760px){.related-grid{grid-template-columns:1fr;}}
.related-grid .article-card h3{font-size:14.5px;}
.related-grid .article-card .body{padding:14px 16px 16px;}

.sidebar-box{background:var(--ice-50);border:1px solid var(--line-soft);border-radius:var(--radius-md);padding:20px;margin-bottom:20px;}
.sidebar-box h4{font-size:14.5px;margin-bottom:12px;}
.mini-card{display:flex;align-items:flex-start;gap:10px;padding:8px 0;font-size:13.5px;border-bottom:1px solid var(--line-soft);}
.mini-card:last-of-type{border-bottom:none;}
.mini-card .n{flex:none;width:20px;height:20px;border-radius:50%;background:var(--ice-200);color:var(--green-600);font-size:11px;font-weight:700;display:flex;align-items:center;justify-content:center;}

/* matrix / feature rows */
.matrix-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;}
@media (max-width:900px){.matrix-grid{grid-template-columns:repeat(3,1fr);}}
@media (max-width:600px){.matrix-grid{grid-template-columns:repeat(2,1fr);}}
.matrix-item{background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.1);border-radius:var(--radius-md);padding:18px;}
.matrix-item .ic{width:38px;height:38px;border-radius:10px;background:linear-gradient(135deg,var(--green-600),var(--teal-400));display:flex;align-items:center;justify-content:center;margin-bottom:12px;}
.matrix-item:nth-child(7n+3) .ic{background:linear-gradient(135deg,var(--purple-500),var(--teal-400));}
.matrix-item:nth-child(7n+6) .ic{background:linear-gradient(135deg,var(--orange-500),var(--green-600));}
.matrix-item h4{font-size:14px;margin-bottom:6px;}
.matrix-item p{font-size:12.5px;color:var(--text-400);margin:0;}

.feature-row{display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:center;padding:26px 0;}
.feature-row.reverse{direction:rtl;}
.feature-row.reverse>*{direction:ltr;}
@media (max-width:820px){.feature-row,.feature-row.reverse{grid-template-columns:1fr;direction:ltr;}}
.feature-row h3{font-size:19px;margin-bottom:10px;}
.feature-row p{color:var(--text-500);}
.feature-row .fig img{border-radius:var(--radius-md);border:1px solid var(--line);}

.card{background:#fff;border:1px solid var(--line);border-radius:var(--radius-md);box-shadow:var(--shadow-card);padding:22px;}
.card h3{font-size:16px;margin-bottom:8px;}
.card p{font-size:13.5px;color:var(--text-500);margin:0;}

/* FAQ */
.faq{border-top:1px solid var(--line);}
.faq-item{border-bottom:1px solid var(--line);}
.faq-q{width:100%;text-align:left;background:none;border:none;cursor:pointer;padding:18px 4px;font-size:15.5px;font-weight:600;color:var(--text-900);display:flex;justify-content:space-between;align-items:center;gap:16px;}
.faq-q::after{content:"+";font-size:20px;color:var(--green-600);flex:none;transition:transform .2s;}
.faq-item.open .faq-q::after{transform:rotate(45deg);}
.faq-a{max-height:0;overflow:hidden;transition:max-height .25s ease;font-size:14.5px;color:var(--text-500);}
.faq-item.open .faq-a{max-height:700px;}
.faq-a-inner{padding:0 4px 18px;}

/* cta band */
.cta-band{background:linear-gradient(135deg,var(--navy-950),var(--navy-700));border-radius:var(--radius-lg);padding:40px;text-align:center;color:#fff;}
.cta-band h2{font-size:24px;margin-bottom:10px;}
.cta-band p{color:var(--text-400);margin-bottom:20px;}
.cta-band .hero-cta{justify-content:center;}

/* footer */
.site-footer{background:var(--navy-950);color:var(--text-400);padding:48px 0 0;}
.footer-grid{display:grid;grid-template-columns:1.4fr repeat(4,1fr);gap:28px;padding-bottom:32px;border-bottom:1px solid rgba(255,255,255,.08);}
@media (max-width:900px){.footer-grid{grid-template-columns:repeat(2,1fr);}}
@media (max-width:560px){.footer-grid{grid-template-columns:1fr;}}
.footer-grid h4{color:#fff;font-size:13.5px;margin-bottom:14px;}
.footer-grid li{margin-bottom:9px;font-size:13px;}
.footer-grid a{color:var(--text-400);}
.footer-grid a:hover{color:var(--teal-300);}
.footer-brand{display:flex;align-items:center;gap:8px;color:#fff;font-weight:700;margin-bottom:10px;}
.footer-brand img{width:28px;height:28px;}
.footer-bottom{display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px;padding:20px 0;font-size:12.5px;}
.footer-bottom a{color:var(--text-400);}

/* doc-page (about/privacy/terms) */
.doc-page{max-width:820px;margin:0 auto;}
.doc-page .updated{font-size:13px;color:var(--text-400);margin-bottom:24px;}
.doc-page h2{font-size:19px;margin:28px 0 10px;}
.doc-page p{color:var(--text-700);}
table.plain{width:100%;border-collapse:collapse;margin:16px 0;font-size:13.5px;}
table.plain th,table.plain td{border:1px solid var(--line);padding:10px 12px;text-align:left;}
table.plain th{background:var(--ice-50);}

.author-hero{display:flex;align-items:center;gap:22px;padding:36px 0;}
.author-hero img{width:88px;height:88px;border-radius:20px;flex:none;}
.author-hero h1{font-size:24px;}
.author-hero .desc{color:var(--text-500);margin-top:6px;}
.author-focus{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px;}
.checklist li{position:relative;padding-left:22px;margin-bottom:10px;}
.checklist li::before{content:"\2713";position:absolute;left:0;top:0;color:var(--green-600);font-weight:700;}

.form-card{max-width:420px;margin:0 auto;background:#fff;border:1px solid var(--line);border-radius:var(--radius-lg);box-shadow:var(--shadow-card);padding:32px;}
.form-field{margin-bottom:16px;}
.form-field label{display:block;font-size:13px;color:var(--text-700);margin-bottom:6px;}
.form-field input{width:100%;padding:10px 12px;border:1px solid var(--line);border-radius:var(--radius-sm);font-size:14px;font-family:var(--font);}

.search-box{display:flex;gap:10px;max-width:560px;margin:0 auto 30px;}
.search-box input{flex:1;padding:12px 16px;border:1px solid var(--line);border-radius:var(--radius-sm);font-size:14px;font-family:var(--font);}
.search-results{max-width:720px;margin:0 auto;}
.search-result{padding:18px 0;border-bottom:1px solid var(--line);}
.search-result .url{color:var(--success);font-size:12.5px;margin-bottom:4px;}
.search-result h3{font-size:16px;margin-bottom:6px;}
.search-result p{color:var(--text-500);font-size:13.5px;margin:0;}

.back-to-top{position:fixed;right:24px;bottom:24px;width:44px;height:44px;border-radius:50%;background:var(--navy-900);color:#fff;border:none;font-size:18px;cursor:pointer;box-shadow:var(--shadow-pop);opacity:0;pointer-events:none;transition:opacity .2s;z-index:80;}
.back-to-top.show{opacity:1;pointer-events:auto;}
